O'Reilly logo

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Learning FreeNAS

Book Description

Configure and manage a network attached storage solution

  • Turn a PC into a Network Attached Storage server with FreeNAS

  • Configure, manage, and troubleshoot your FreeNAS installation

  • Up to date with the latest FreeNAS release

  • Includes a comprehensive troubleshooting section

In Detail

FreeNAS is free software that turns a PC into a Network Attached Storage (NAS) server. It supports client connections from Microsoft Windows, Apple OS X, Linux, and FreeBSD. It has a web interface for administration and includes support for RAID (0, 1, 5), iSCSI, drive encryption, and UPnP. Based on FreeBSD, it has modest system requirements but is scalable for the enterprise.

This book will show you how to work with FreeNAS and set it up for your needs. You will learn how to configure and administer a FreeNAS server in a variety of networking scenarios. You will also learn how to plan and implement RAID on the server as well as how to use Storage Area Network technologies like iSCSI. The standard FreeNAS documentation walks you through the basic configuration, but this book will tell you exactly what you should do to plan, work, and deploy FreeNAS. This book has a comprehensive troubleshooting section that will point you in the right direction whenever you need help.

This book is a comprehensive guide to building and using resilient network-attached storage solutions for your business using FreeNAS. Written in an accessible style and filled with facts you need to know, this book will show you how to get things done the right way.

Table of Contents

  1. Learning FreeNAS
    1. Learning FreeNAS
    2. Credits
    3. About the Author
    4. About the Reviewer
    5. Preface
      1. What This Book Covers
      2. What You Need for This Book
      3. Conventions
      4. Reader Feedback
      5. Customer Support
        1. Errata
        2. Piracy
        3. Questions
    6. 1. All About NAS and FreeNAS
      1. Network Attached Storage
      2. What is FreeNAS?
      3. Features
      4. What Does FreeNAS Do for Me and My Business?
        1. How FreeNAS Meet These Needs
        2. Practical Uses for the FreeNAS Server
        3. Consolidation
      5. Summary
    7. 2. Preparing to Add FreeNAS to Your Network
      1. Planning Your NAS
        1. Capacity Planning
        2. Choosing Your Hardware
          1. CPU
          2. Disks
            1. Buses
            2. Drives
            3. Multiple Disk Drives
            4. Memory, Network Card, PCI, and USB
      2. Planning for Backup
      3. What is RAID? And, Do I Need It?
        1. Hardware or Software RAID
      4. Network Considerations
        1. Switch or Hub?
        2. What About Wireless?
      5. Summary
    8. 3. Exploring FreeNAS
      1. Downloading FreeNAS
      2. What Hardware Do I Need?
        1. Warning
      3. Quick Start Guide For the Impatient
        1. Burning and Booting
        2. Configuring
        3. Sharing with Windows Machines
        4. Testing the Share
      4. Detailed Overview of Installation
        1. Making the FreeNAS CD
        2. Booting from CD
          1. Phoenix BIOS
          2. Phoenix-Award BIOS
          3. AMI BIOS
        3. First Look at FreeNAS
        4. Configuring the Network
          1. What is a LAN IP Address?
      5. Basic Configuration
        1. FreeNAS Web Interface
          1. System
          2. Interfaces
          3. Disks
          4. Services
          5. Access
          6. Status
          7. Diagnostics
          8. Advanced
        2. Adding a Disk
        3. Accessing the Disk via CIFS
          1. Testing the Share
        4. Accessing via FTP
          1. Testing FTP Access
      6. Installing to Hard Disk
        1. Embedded versus Full
      7. Upgrading FreeNAS from a Previous Version
      8. Summary
    9. 4. Connecting to the FreeNAS
      1. Introduction
      2. Connecting via CIFS
        1. Configure CIFS on the FreeNAS Server
          1. CIFS Settings Explained
          2. CIFS Advanced Settings
          3. Options when Adding Shares
        2. What does It Mean to Map a Network Drive?
        3. Connecting with CIFS via Windows Millennium
        4. Using CIFS with Windows XP
        5. FreeNAS, CIFS, and Windows Vista
        6. Accessing the FreeNAS via CIFS from Linux
        7. A CIFS Connection from OS X
      3. FTP
        1. Using the Command Line FTP Client
        2. Using a Web Browser for FTP
      4. NFS
        1. Using NFS from OS X
        2. Mount FreeNAS via NFS on Linux
      5. RSYNCD, Unison, AFP, and UPnP
        1. Using RSYNC for Backups
        2. Using Unison for Backups and Synchronization
        3. Connecting to FreeNAS via AFP
        4. Streaming Media with UPnP
      6. iSCSI Target
        1. Testing the iSCSI Target with Another FreeNAS Server
        2. Testing the iSCSI Target with Windows Vista
      7. Accessing Your Files Using HTTP and the Built-In Web Server
      8. Summary
    10. 5. User and System Administration
      1. Introduction
      2. Local User Management
        1. Using CIFS with Local Users
        2. FTP and User Login
        3. Authenticating AFP Users
        4. Connect to the FreeNAS Server via SSH
        5. Services that Don't Use Local User Accounts
      3. Using FreeNAS with the Microsoft Active Directory
      4. System Admin
        1. How to Change the Web GUI User Name and Password
        2. Rebooting and Shutting Down
        3. How to Set the Hostname of the Server
        4. Configuring the Web Interface to use HTTPS
        5. Changing the Web Interface Port
        6. How to Set a DNS Server
        7. How to Set the Language for the Web Interface
        8. Date and Time Configuration
        9. How to Disable Console Menu
        10. How to Stop the Startup and Shutdown Beeps
        11. Adding Predefined Network Hosts
        12. Reset the Server to the Factory Defaults
        13. Simple Network Administration
        14. Disabling Bonjour/ZeroConf
        15. Getting Status Information About the Server
        16. Sending Status Report by Email
      5. Summary
    11. 6. Configuring Storage
      1. Introduction
      2. How FreeNAS Handles Data Disks
        1. UNIX Device Names
        2. Adding the Disk
        3. Formatting a Newly Added Disk
        4. Mounting Your Newly Formatted Disks
        5. Making the New Disk Available on the Network
      3. Configuring Software RAID on FreeNAS
        1. RAID All Starts with Adding the Disks
        2. Configuring RAID 1
        3. Configuring RAID 5
        4. Configuring JBOD or RAID 0
        5. Nested RAID Configurations
        6. Configuring RAID 1+0
        7. Configuring RAID 0+1
        8. Configuring RAID 5+0
        9. Configuring RAID 5+1
        10. RAID 10+0 and Beyond
      4. iSCSI Initiator
      5. Summary
    12. 7. Backup Strategies
        1. Backup Your FreeNAS Using Windows XP's Built-In Backup Utility
        2. Setting Scheduled Backups with XP's Built-In Backup Utility
      1. Restoring a FreeNAS Backup Made with XP's Built-In Backup Utility
      2. Backing Up the FreeNAS Configuration Files
        1. Backup Configuration
          1. What is XML?
        2. Restore Configuration
      3. Using Another FreeNAS Server as a Backup Server
        1. Debugging Your RSYNC Setup
      4. RSYNC Internal Backup
        1. Debugging Your Internal RSYNC Setup
      5. Mirroring vs Conventional Backups
      6. Summary
    13. 8. Advanced System Configuration
      1. Disk Encryption
        1. Encrypting a Disk in FreeNAS
        2. Entering the Password When You Reboot
        3. Encryption Tools
          1. How to Unlock an Encrypted Disk—Attach and Detach
          2. How to Change the Password on an Encrypted Disk—setkey
          3. Checking the Status of an Encrypted Disk—list and status
      2. Advanced Hard Drive Parameters (S.M.A.R.T)
        1. Enabling and using S.M.A.R.T of the FreeNAS
      3. File System Consistency Check—FSCK
      4. Advanced OS Tweaking
      5. Tweaking the Network Settings
        1. MTU, Device Polling, Speed, and Duplex
        2. Adding a Static Route
      6. Using Wireless
      7. Adding a Swap File
      8. Enabling Secure Shell Connections (SSH)
        1. Allow Root Login
        2. Types of SSH Authentication
      9. Summary
    14. 9. General Troubleshooting
      1. Where to Look for Log Information
        1. Diagnostics: Logs
        2. Understanding Diagnostics—Logs: System
          1. Converting between Device Names and the Real World
      2. Networking Problems
        1. General Connection Problems
        2. Using Ping
        3. Using Ping from within the Web Interfaces
        4. Using ARP Tables to Solve Network Problems
        5. Gigabit Transfers are Slow
      3. Problems Connecting to Shares (via CIFS)
        1. Windows Vista Asks for My Username and Password for Anonymous Shares
        2. There are Two FreeNAS Servers on the Network, but Windows Can only See One
        3. Turning On Logging to Help Solve Windows Networking Problems
      4. Diagnostics: Information
      5. Replacing a Failed Hard Drive in a RAID Set
        1. Rebuilding a RAID 1 Array After Disk Failure
        2. Rebuilding a RAID 5 Array After Disk Failure
      6. Where to Go for More Help
      7. Summary
    15. 10. FreeBSD and Command Line Tools
      1. Introduction to FreeBSD
        1. Your First FreeBSD Commands
          1. Print the Working Directory with pwd
          2. Directory Listings (ls)
          3. Change Directory with cd
          4. Copy a File and Change Its Permissions (cp and chmod)
        2. Connecting to FreeBSD Using Putty
        3. Monitoring your FreeNAS Server from the Command Line
          1. See Which Disks are Mounted with mount
          2. Check Disk Space Usage with df
          3. Discover the Size of Directories Using du
          4. Process Monitoring Using ps and top
      2. Advanced FreeBSD Commands for FreeNAS
        1. Starting and Stopping Services
          1. Getting Drastic with kill and killall
        2. RAID Command Line Tools
          1. Warning
          2. List and Status Commands
          3. JBOD and gconcat
          4. RAID 0 and gstripe
          5. RAID 1 and gmirror
          6. RAID 5 and graid5
      3. Where the FreeNAS Stores Things
      4. Miscellaneous & Sundries
        1. Using ping and arp from the Command Line
        2. Creating Directories and Deleting Things
        3. Editing Files Using nano
        4. Shutting Down Using the Command Line
      5. Summary