Freenas® 11.1-U7 User Guide
Total Page:16
File Type:pdf, Size:1020Kb
FreeNAS® 11.1-U7 User Guide January 2019 Edition FreeNAS® is © 2011-2019 iXsystems FreeNAS® and the FreeNAS® logo are registered trademarks of iXsystems FreeBSD® is a registered trademark of the FreeBSD Foundation Written by users of the FreeNAS® network-attached storage operating system. Version 11.1 Copyright © 2011-2019 iXsystems (https://www.ixsystems.com/) CONTENTS Welcome .............................................................. 8 Typographic Conventions ..................................................... 10 1 Introduction 11 1.1 New Features in 11.1 .................................................... 11 1.2 Changes Since 11.1 ..................................................... 13 1.2.1 U1 .......................................................... 13 1.2.2 U2 .......................................................... 13 1.2.3 U3 .......................................................... 14 1.2.4 U5 .......................................................... 14 1.2.5 U6 .......................................................... 14 1.2.6 U6.3 ......................................................... 14 1.2.7 U7 .......................................................... 14 1.3 Path and Name Lengths .................................................. 15 1.4 Hardware Recommendations ............................................... 16 1.4.1 RAM ......................................................... 16 1.4.2 The Operating System Device ........................................... 17 1.4.3 Storage Disks and Controllers ........................................... 17 1.4.4 Network Interfaces ................................................. 18 1.5 Getting Started with ZFS .................................................. 19 2 Installing and Upgrading 20 2.1 Getting FreeNAS® ...................................................... 20 2.2 Preparing the Media .................................................... 20 2.2.1 On FreeBSD or Linux ................................................ 21 2.2.2 On Windows .................................................... 21 2.2.3 macOS ........................................................ 21 2.3 Performing the Installation ................................................. 22 2.4 Installation Troubleshooting ................................................ 30 2.5 Upgrading .......................................................... 31 2.5.1 Caveats ....................................................... 31 2.5.2 Initial Preparation ................................................. 31 2.5.3 Upgrading Using the ISO .............................................. 32 2.5.4 Upgrading From the GUI .............................................. 34 2.5.5 If Something Goes Wrong ............................................. 34 2.5.6 Upgrading a ZFS Pool ............................................... 35 2.6 Virtualization ......................................................... 36 2.6.1 VirtualBox ...................................................... 37 2.6.2 VMware ESXi .................................................... 45 3 Booting 52 3.1 Obtaining an IP Address .................................................. 53 3.2 Logging In .......................................................... 54 3.3 Initial Configuration ..................................................... 55 3 4 Account 56 4.1 Groups ............................................................ 56 4.2 Users ............................................................. 59 5 System 63 5.1 Information ......................................................... 63 5.2 General ............................................................ 64 5.3 Boot .............................................................. 67 5.3.1 Mirroring the Boot Device ............................................. 70 5.4 Advanced ........................................................... 71 5.4.1 Autotune ...................................................... 73 5.4.2 Self-Encrypting Drives ............................................... 73 5.5 Email ............................................................. 74 5.6 System Dataset ....................................................... 76 5.7 Tunables ........................................................... 76 5.8 Update ............................................................ 79 5.8.1 Preparing for Updates ............................................... 79 5.8.2 Updates and Trains ................................................ 79 5.8.3 Checking for Updates ............................................... 81 5.8.4 Applying Updates .................................................. 81 5.8.5 Manual Updates .................................................. 82 5.9 Cloud Credentials ...................................................... 82 5.10 Alert Services ........................................................ 83 5.10.1 How it Works .................................................... 84 5.11 CAs .............................................................. 84 5.12 Certificates .......................................................... 87 5.13 Support ............................................................ 90 6 Tasks 93 6.1 Cloud Sync .......................................................... 93 6.1.1 Cloud Sync Example ................................................ 96 6.2 Cron Jobs ........................................................... 98 6.3 Init/Shutdown Scripts .................................................... 100 6.4 Rsync Tasks ......................................................... 101 6.4.1 Rsync Module Mode ................................................ 105 6.4.2 Rsync over SSH Mode ............................................... 105 6.5 S.M.A.R.T. Tests ....................................................... 108 7 Network 111 7.1 Global Configuration .................................................... 111 7.2 Interfaces .......................................................... 113 7.3 IPMI .............................................................. 115 7.4 Link Aggregations ...................................................... 117 7.4.1 LACP, MPIO, NFS, and ESXi ............................................ 117 7.4.2 Creating a Link Aggregation ............................................ 118 7.5 Network Summary ..................................................... 121 7.6 Static Routes ......................................................... 121 7.7 VLANs ............................................................. 122 8 Storage 124 8.1 Volumes ........................................................... 124 8.1.1 Volume Manager .................................................. 124 8.1.1.1 Encryption ................................................. 126 8.1.1.2 Encryption Performance ......................................... 127 8.1.1.3 Manual Setup ............................................... 127 8.1.1.4 Extending a ZFS Volume ......................................... 129 8.1.2 Change Permissions ................................................ 129 8.1.3 Create Dataset ................................................... 131 8.1.3.1 Deduplication ............................................... 133 8.1.3.2 Compression ................................................ 134 8.1.4 Create zvol ..................................................... 134 8.1.5 Import Disk ..................................................... 136 8.1.6 Import Volume ................................................... 136 8.1.6.1 Importing an Encrypted Pool ....................................... 137 8.1.7 View Disks ...................................................... 138 8.1.8 Volumes ....................................................... 139 8.1.8.1 Managing Encrypted Volumes ...................................... 142 8.1.8.2 Additional Controls for Encrypted Volumes .............................. 142 8.1.9 View Multipaths ................................................... 144 8.1.10 Replacing a Failed Drive .............................................. 145 8.1.10.1 Replacing an Encrypted Drive ...................................... 147 8.1.10.2 Removing a Log or Cache Device .................................... 147 8.1.11 Replacing Drives to Grow a ZFS Pool ....................................... 147 8.1.12 Hot Spares ..................................................... 148 8.2 Periodic Snapshot Tasks .................................................. 148 8.3 Replication Tasks ...................................................... 150 8.3.1 Examples: Common Configuration ........................................ 150 8.3.1.1 Alpha (Source) ............................................... 150 8.3.1.2 Beta (Destination) ............................................. 151 8.3.2 Example: FreeNAS® to FreeNAS® Semi-Automatic Setup ........................... 151 8.3.3 Example: FreeNAS® to FreeNAS® Dedicated User Replication ........................ 153 8.3.4 Example: FreeNAS® to FreeNAS® or Other Systems, Manual Setup ..................... 154 8.3.4.1 Encryption Keys .............................................. 154 8.3.5 Replication Options ................................................ 157 8.3.6 Replication Encryption ............................................... 158 8.3.7 Limiting Replication Times ............................................. 158 8.3.8 Troubleshooting Replication ........................................... 158 8.3.8.1 SSH ....................................................