{"id":298,"date":"2012-08-09T11:22:00","date_gmt":"2012-08-09T14:22:00","guid":{"rendered":"http:\/\/linuxrs.com.br\/?p=298"},"modified":"2017-09-19T19:46:27","modified_gmt":"2017-09-19T22:46:27","slug":"freenas-8-0-3-guide","status":"publish","type":"post","link":"https:\/\/blog.clusterweb.com.br\/?p=298","title":{"rendered":"FreeNAS\u2122 8.0.3 Guide"},"content":{"rendered":"<p>FreeNAS\u2122 8.0.3 Guide Page 1 of 164<br \/>\nFreeNAS\u2122 8.0.3 Guide Page 2 of 164<br \/>\nFreeNAS\u2122 is \u00a9 2011, 2012 iXsystems<br \/>\nFreeNAS\u2122 is a trademark of iXsystems<br \/>\nFreeBSD is a registered trademark of the FreeBSD Foundation<br \/>\nCover art by Jenny Rosenberg<br \/>\nFreeNAS\u2122 8.0.3 Guide Page 3 of 164<br \/>\nTable of Contents<br \/>\nSection 1: Introduction and Installation<!--more--><br \/>\n1 Introduction&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;.8<br \/>\n1.1 Hardware Requirements&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;.9<br \/>\n1.1.1 Architecture&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;.9<br \/>\n1.1.2 RAM&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;..9<br \/>\n1.1.3 Compact or USB Flash&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;..10<br \/>\n1.1.4 Storage Disks and Controllers&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;10<br \/>\n1.1.5 Network Interfaces&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;11<br \/>\n1.1.6 RAID Overview&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;.11<br \/>\n1.1.7 ZFS Overview&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;.13<br \/>\n1.2 What&#8217;s New &#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;14<br \/>\n1.3 Features&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;.15<br \/>\n1.4 Known Issues&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;.16<br \/>\n1.5 Roadmap for 8.2&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;..16<br \/>\n2 Installing FreeNAS\u2122&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;..17<br \/>\n2.1 Getting FreeNAS\u2122&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;18<br \/>\n2.2 Installing from CDROM&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;..19<br \/>\n2.3 Installing from the Image&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;.21<br \/>\n2.3.1 Using xzcat and dd on a FreeBSD or Linux System&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;..21<br \/>\n2.3.2 Using Keka and dd on an OS X System&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;22<br \/>\n2.3.3 Using physdiskwrite on Windows&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;22<br \/>\n2.4 Initial Setup&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;.23<br \/>\n2.5 Upgrading FreeNAS\u2122&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;.25<br \/>\n2.5.1 Using the ISO&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;..26<br \/>\n2.5.2 From the GUI &#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;.28<br \/>\n2.5.2.1If Something Goes Wrong . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30<br \/>\nSection 2: Using the Graphical Interface<br \/>\n3 Account Configuration&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;30<br \/>\n3.1 My Account&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;31<br \/>\n3.2 Groups&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;..32<br \/>\n3.3 Users&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;..34<br \/>\n4 System Configuration&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;..36<br \/>\n4.1 Reporting&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;.37<br \/>\n4.2 Settings&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;.37<br \/>\n4.2.1 General Tab&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;..38<br \/>\n4.2.2 Advanced Tab&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;.39<br \/>\n4.2.3 Email Tab&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;..41<br \/>\n4.2.4 SSL Tab&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;..42<br \/>\n4.3 System Information&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;43<br \/>\n4.4 Cron Jobs&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;.44<br \/>\nFreeNAS\u2122 8.0.3 Guide Page 4 of 164<br \/>\n4.5 Loaders&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;.45<br \/>\n4.5.1 Recovering From Incorrect Loaders&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;47<br \/>\n4.6 Rsync Tasks&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;48<br \/>\n4.6.1 Creating an Rsync Task&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;..48<br \/>\n4.6.2 Configuring Rsync Between Two FreeNAS\u2122 Systems&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;50<br \/>\n4.7 S.M.A.R.T. Tests&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;..51<br \/>\n4.8 Sysctls&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;53<br \/>\n5 Network Configuration&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;54<br \/>\n5.1 Global Configuration&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;.54<br \/>\n5.2 Network Summary&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;..55<br \/>\n5.3 Interfaces&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;..56<br \/>\n5.4 Link Aggregations&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;..57<br \/>\n5.5 Static Routes&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;..61<br \/>\n5.6 VLANs&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;..61<br \/>\n6 Storage Configuration&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;.62<br \/>\n6.1 Periodic Snapshot Tasks&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;..62<br \/>\n6.2 Replication Tasks&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;.65<br \/>\n6.2.1 Configuring SSH Key Based Authentication&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;..66<br \/>\n6.2.2 Creating the Replication Task&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;.68<br \/>\n6.2.3 Testing Replication&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;..69<br \/>\n6.2.4 Troubleshooting&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;.70<br \/>\n6.3 Volumes&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;71<br \/>\n6.3.1 Auto Importing Volumes&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;71<br \/>\n6.3.2 Importing Volumes&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;72<br \/>\n6.3.3 Creating Volumes&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;..73<br \/>\n6.3.4 Adding to an Existing Volume&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;75<br \/>\n6.3.5 Creating ZFS Datasets&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;75<br \/>\n6.3.6 Creating a zvol&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;77<br \/>\n6.3.7 Setting Permissions&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;..78<br \/>\n6.3.8 Viewing Volumes&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;..79<br \/>\n6.3.9 Replacing a Failed Drive&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;..82<br \/>\n6.3.10 Hot Swapping a ZFS Failed Drive&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;.84<br \/>\n7 Sharing Configuration&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;.84<br \/>\n7.1 AFP Shares&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;..85<br \/>\n7.1.1 Creating AFP Shares&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;85<br \/>\n7.1.2 Connecting to AFP Shares As Guest&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;87<br \/>\n7.1.3 Using Time Machine&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;90<br \/>\n7.2 CIFS Shares&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;91<br \/>\n7.2.1 Creating CIFS Shares&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;..92<br \/>\n7.2.2 Configuring Anonymous Access&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;93<br \/>\n7.2.3 Configuring Local User Access&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;.98<br \/>\n7.3 NFS Shares&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;..102<br \/>\n7.3.1 Creating NFS Shares&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;.102<br \/>\n7.3.2 Sample NFS Share Configuration&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;..103<br \/>\n7.3.3 Connecting to the NFS Share&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;104<br \/>\n7.3.3.1From BSD or Linux Clients . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 104<br \/>\n7.3.3.2From Microsoft Clients . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 104<br \/>\nFreeNAS\u2122 8.0.3 Guide Page 5 of 164<br \/>\n7.3.3.3From Mac OS X Clients . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 105<br \/>\n7.3.4 Troubleshooting&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;..106<br \/>\n8 Services Configuration&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;.107<br \/>\n8.1 Control Services&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;.107<br \/>\n8.2 AFP&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;..108<br \/>\n8.3 Active Directory&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;.109<br \/>\n8.3.1 Troubleshooting Tips&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;.112<br \/>\n8.4 CIFS&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;.112<br \/>\n8.4.1 Troubleshooting Tips&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;.115<br \/>\n8.5 Dynamic DNS&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;.115<br \/>\n8.6 FTP&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;..117<br \/>\n8.6.1 Anonymous FTP&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;.119<br \/>\n8.6.2 Specified User Access in chroot&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;.120<br \/>\n8.6.3 Encrypting FTP&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;123<br \/>\n8.6.4 Troubleshooting&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;..123<br \/>\n8.7 LDAP&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;..124<br \/>\n8.8 NFS&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;..125<br \/>\n8.9 S.M.A.R.T&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;126<br \/>\n8.10 SNMP&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;..127<br \/>\n8.11 SSH&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;128<br \/>\n8.11.1 Chrooting SFTP users &#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;..130<br \/>\n8.11.2 Troubleshooting SSH Connections&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;.134<br \/>\n8.12 TFTP&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;.134<br \/>\n8.13 UPS&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;135<br \/>\n8.14 iSCSI&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;.136<br \/>\n8.14.1 Target Global Configuration&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;..137<br \/>\n8.14.2 Authorized Accesses&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;..140<br \/>\n8.14.3 Device Extents&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;..141<br \/>\n8.14.4 Extents&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;143<br \/>\n8.14.5 Initiators&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;143<br \/>\n8.14.6 Portals&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;145<br \/>\n8.14.7 Targets&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;145<br \/>\n8.14.8 Target\/Extents&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;..147<br \/>\n8.14.9 Connecting to iSCSI Share&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;.147<br \/>\n8.15 Rsync&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;148<br \/>\n8.15.1 Rsync Modules&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;..148<br \/>\n9 Additional Options&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;.150<br \/>\n9.1 Display System Processes&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;.150<br \/>\n9.2 Reboot&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;.150<br \/>\n9.3 Shutdown&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;..151<br \/>\n9.4 Log Out&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;..151<br \/>\n9.5 Help&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;.152<br \/>\n9.6 Alert&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;.152<br \/>\nFreeNAS\u2122 8.0.3 Guide Page 6 of 164<br \/>\nSection 3: Getting Help<br \/>\n10 FreeNAS\u2122 Support Resources&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;.152<br \/>\n10.1 Website and Social Media&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;..153<br \/>\n10.2 Trac Database&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;153<br \/>\n10.3 IRC&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;.153<br \/>\n10.4 Mailing Lists&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;.154<br \/>\n10.5 Forums&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;.154<br \/>\n10.6 Instructional Videos&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;..156<br \/>\n10.7 Professional Support&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;.156<br \/>\n10.8 FAQs&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;.156<br \/>\n10.8.1 Can a RAID-Z array be expanded? For example, if I start off with a 8x2TB RAID-Z2<br \/>\narray can I add more drives to it in the future? &#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;..156<br \/>\n10.8.2 Is there a command to force FreeBSD to scan for new disks? I&#8217;m trying to add some<br \/>\ndisks to my array using the hot-swappable bays and a 3ware SATA card. The drives go in fine<br \/>\nand light up, but the operating system can&#8217;t see them. &#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;157<br \/>\n10.8.3 If my hardware\/motherboard dies, can I rebuild with new\/different hardware and still<br \/>\nimport\/read the data from my disks? What about my datasets?&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;.157<br \/>\n10.8.4 How do I replace a bad drive?&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;..157<br \/>\n10.8.5 Can I share files from my external USB drive?&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;158<br \/>\n10.8.6 Can I mount my MAC formatted drive?&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;..158<br \/>\n10.8.7 How do I get to the command line \/CLI\/shell?&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;.158<br \/>\n10.8.8 Does FreeNAS support 4k sector drives? How do I check if it is configured?&#8230;&#8230;&#8230;&#8230;158<br \/>\n10.8.9 My network transfer speeds are very slow, what is wrong?&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;..158<br \/>\n10.8.10 Why do changes I make at the command line to config files or settings disappear after<br \/>\na reboot?&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;..159<br \/>\nSection 4: Contributing to FreeNAS\u2122<br \/>\n11 How to Get Involved&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;..159<br \/>\n11.1 Assist with Localization &#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;.159<br \/>\n11.2 Submit Bug Reports&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;..161<br \/>\n11.3 Test Upcoming Versions&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;.163<br \/>\n11.3.1 Upcoming Version 8.2&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;163<br \/>\n11.3.2 Testing a Nightly Snapshot&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;.163<br \/>\n11.3.3 Rolling Your Own Testing Snapshot&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;..163<br \/>\nFreeNAS\u2122 8.0.3 Guide Page 7 of 164<br \/>\nSection 1: Introduction and Installation<br \/>\nPreface<br \/>\nWritten by users of the FreeNAS\u2122 network-attached storage operating system.<br \/>\nVersion 8.0.3<br \/>\nPublished January 17, 2012<br \/>\nCopyright \u00a9 2011, 2012 iXsystems.<br \/>\nThis Guide covers the installation and use of FreeNAS\u2122 8.0.3. If you are running a version of<br \/>\nFreeNAS\u2122 8.x that is earlier than FreeNAS\u2122 8.0.3, it is strongly recommended that you upgrade to or<br \/>\ninstall FreeNAS\u2122 8.0.3. This version fixes many bugs from previous 8.x versions and several features<br \/>\nmentioned in this Guide were not available or did not work as documented in earlier versions of<br \/>\nFreeNAS\u2122 8.x.<br \/>\nThe FreeNAS\u2122 Users Guide is a work in progress and relies on the contributions of many individuals.<br \/>\nIf you are interested in helping us to improve the Guide, visit doc.freenas.org and create a wiki login<br \/>\naccount. If you use IRC Freenode, you are welcome to join the #freenas channel where you will find<br \/>\nother FreeNAS\u2122 users.<br \/>\nThe FreeNAS\u2122 Users Guide is freely available for sharing and redistribution under the terms of the<br \/>\nCreative Commons Attribution License. This means that you have permission to copy, distribute,<br \/>\ntranslate, and adapt the work as long as you attribute iXsystems as the original source of the Guide.<br \/>\nFreeNAS\u2122 is a trademark of iXsystems.<br \/>\nFreeBSD and the FreeBSD logo are registered trademarks of the FreeBSD Foundation.<br \/>\nTypographic Conventions<br \/>\nThe FreeNAS\u2122 8.0.3 Guide uses the following typographic conventions:<br \/>\nbold text: represents a command written at the command line. In usage examples, the font is changed<br \/>\nto Courier 10 with any command output displayed in unbolded text.<br \/>\nitalic text: used to represent device names or file name paths.<br \/>\nbold italic text: used to emphasize an important point.<br \/>\n1 Introduction<br \/>\nFreeNAS\u2122 is an embedded open source network-attached storage (NAS) system based on FreeBSD<br \/>\nand released under a BSD license. A NAS provides an operating system that has been optimized for file<br \/>\nstorage and sharing.<br \/>\nThe FreeNAS\u2122 Project was originally founded by Olivier Cochard-Labb\u00e9 in 2005 and was based on<br \/>\nm0n0wall, an embedded firewall based on FreeBSD. It was PHP based, easy-to-use, and had lots of<br \/>\nfeatures. In December of 2009, Olivier announced that the .7 branch would be placed in maintenanceonly<br \/>\nmode as he no longer had time to devote to further FreeNAS\u2122 development. Volker Theile, a<br \/>\nFreeNAS\u2122 developer who also develops on Debian in his day job, decided to start the<br \/>\nOpenMediaVault project, which would be a rewrite of FreeNAS\u2122 based on Debian Linux and released<br \/>\nFreeNAS\u2122 8.0.3 Guide Page 8 of 164<br \/>\nunder the terms of the GpLv3 license. Many FreeNAS\u2122 users were not pleased about the change of<br \/>\nlicense and the loss of kernel-based ZFS support due to GPL incompatibilities with the CDDL license.<br \/>\niXsystems, a provider of FreeBSD-based hardware solutions and professional support, took the<br \/>\ninitiative to continue the development of a BSD licensed FreeNAS\u2122 solution based on FreeBSD. They<br \/>\ntook the opportunity to analyze the positives (lots of cool features) and negatives (monolithic,<br \/>\neverything-but-the-kitchen-sink design that was difficult to maintain and support). It was decided that<br \/>\nthe next version would be rewritten from scratch using a modular design that would support plugins.<br \/>\nThis would allow FreeNAS\u2122 to have a small footprint that was easy to support while allowing users to<br \/>\njust install the plugins for the features they desired. It would have the added benefit of allowing users to<br \/>\ncreate and contribute plugins for niche features, allowing its usage cases to grow with users&#8217; needs.<br \/>\nWork on the new design began in 2010 and the initial redesigned version, FreeNAS\u2122 8.0, was released<br \/>\non May 2, 2011. Working with the community to fix the bugs and add the features needed within the<br \/>\ncore portion of the NAS resulted in FreeNAS\u2122 8.0.1 which was released on September 30, 2011.<br \/>\nFreeNAS\u2122 8.0.2 was released on October 13, 2011 and provided additional bug fixes. FreeNAS\u2122<br \/>\n8.0.3 was released on January 3, 2012. This latest release provides full NAS functionality suited for<br \/>\nboth home use and production environments. It does not contain all of the features provided by<br \/>\nFreeNAS .7&#8211;the upcoming 8.2 release and its plugin architecture will allow the creation of plugins so<br \/>\nthat missing features can be installed by the users that require them.<br \/>\n1.1 Hardware Requirements<br \/>\nSince FreeNAS\u2122 8.0.3 is based on FreeBSD 8.2, it supports the same hardware found in the amd64<br \/>\nand i386 sections of the FreeBSD 8.2 Hardware Compatibility List .<br \/>\nActual hardware requirements will vary depending upon what you are using your FreeNAS\u2122 system<br \/>\nfor. This section provides some guidelines to get you started. You should also skim through the<br \/>\nFreeNAS\u2122 Hardware Forum for performance tips from other FreeNAS\u2122 users. The Hardware Forum<br \/>\nis also an excellent place to post questions regarding your hardware setup or the hardware best suited to<br \/>\nmeet your requirements.<br \/>\n1.1.1 Architecture<br \/>\nWhile FreeNAS\u2122 is available for both 32-bit and 64-bit architectures, you should use 64-bit hardware<br \/>\nif you care about speed or performance. A 32-bit system can only address up to 4GB of RAM, making<br \/>\nit poorly suited to the RAM requirements of ZFS. If you only have access to a 32-bit system, consider<br \/>\nusing UFS instead of ZFS.<br \/>\n1.1.2 RAM<br \/>\nThe best way to get the most out of your FreeNAS\u2122 system is to install as much RAM as possible. If<br \/>\nyour RAM is limited, consider using UFS until you can afford better hardware. ZFS typically requires a<br \/>\nminimum of 6 GB of RAM in order to provide good performance; in practical terms (what you can<br \/>\nactually install), this means that the minimum is really 8 GB. The more RAM, the better the<br \/>\nperformance, and the Forums provide anecdotal evidence from users on how much performance is<br \/>\ngained by adding more RAM. For systems with large disk capacity (greater than 6 TB), a general rule<br \/>\nof thumb is 1GB of RAM for every 1TB of storage.<br \/>\nNOTE: by default, ZFS disables pre-fetching (caching) for systems containing less than 4 GB of<br \/>\nFreeNAS\u2122 8.0.3 Guide Page 9 of 164<br \/>\nusable RAM. Not using pre-fetching can really slow down performance. 4 GB of usable RAM is not<br \/>\nthe same thing as 4 GB of installed RAM as the operating system resides in RAM. This means that the<br \/>\npractical pre-fetching threshold is 6 GB, or 8 GB of installed RAM. You can still use ZFS with less<br \/>\nRAM, but performance will be effected.<br \/>\nIf you are installing FreeNAS\u2122 on a headless system, disable the shared memory settings for the video<br \/>\ncard in the BIOS.<br \/>\n1.1.3 Compact or USB Flash<br \/>\nThe FreeNAS\u2122 operating system is a running image that needs to be installed onto a USB or compact<br \/>\nflash device that is at least 2 GB in size. A list of compact flash drives known to work with FreeNAS\u2122<br \/>\ncan be found on the .7 wiki. If you don&#8217;t have compact flash, you can instead use a USB thumb drive<br \/>\nthat is dedicated to the running image and which stays inserted in the USB slot. While technically you<br \/>\ncan install FreeNAS\u2122 onto a hard drive, this is discouraged as you will lose the storage capacity of the<br \/>\ndrive. In other words, the operating system will take over the drive and will not allow you to store data<br \/>\non it, regardless of the size of the drive.<br \/>\nThe FreeNAS\u2122 installation will partition the operating system drive into two ~1GB partitions. One<br \/>\npartition holds the current operating system and the other partition is used when you upgrade. This<br \/>\nallows you to safely upgrade to a new image or to revert to an older image should you encounter<br \/>\nproblems.<br \/>\n1.1.4 Storage Disks and Controllers<br \/>\nThe Disk section of the FreeBSD Hardware List lists the supported disk controllers. In addition,<br \/>\nsupport for 3ware 6gbps RAID controllers has been added along with the CLI utility tw_cli for<br \/>\nmanaging 3ware RAID controllers.<br \/>\nFreeNAS\u2122 supports hot pluggable drives. Make sure that AHCI is enabled in the BIOS and that you<br \/>\nhave read Hot Swapping a ZFS Failed Drive before implementing this feature.<br \/>\nIf you have some money to spend and wish to optimize your disk subsystem, consider your read\/write<br \/>\nneeds, your budget, and your RAID requirements.<br \/>\nFor example, moving the the ZIL (ZFS Intent Log) to a dedicated SSD only helps performance if you<br \/>\nhave synchronous writes, like a database server. SSD cache devices only help if your working set is<br \/>\nlarger than system RAM, but small enough that a significant percentage of it will fit on the SSD.<br \/>\nIf you have steady, non-contiguous writes, use disks with low seek times. Examples are 10K or 15K<br \/>\nSAS drives which cost about $1\/GB. An example configuration would be six 15K SAS drives in a<br \/>\nRAID 10 which would yield 1.8 TB of usable space or eight 15K SAS drives in a RAID 10 which<br \/>\nwould yield 2.4 TB of usable space.<br \/>\n7200 RPM SATA disks are designed for single-user sequential I\/O and are not a good choice for multiuser<br \/>\nwrites.<br \/>\nIf you have the budget and high performance is a key requirement, consider a Fusion-I\/O card which is<br \/>\noptimized for massive random access. These cards are expensive and are suited for high end systems<br \/>\nthat demand performance. A Fusion-I\/O can be formatted with a filesystem and used as direct storage;<br \/>\nwhen used this way, it does not have the write issues typically associated with a flash device. A Fusion-<br \/>\nI\/O can also be used as a cache device when your ZFS dataset size is bigger than your RAM. Due to the<br \/>\nFreeNAS\u2122 8.0.3 Guide Page 10 of 164<br \/>\nincreased throughput, systems running these cards typically use multiple 10 GigE network interfaces.<br \/>\nIf you will be using ZFS, Disk Space Requirements for ZFS Storage Pools recommends a minimum of<br \/>\n16 GB of disk space. Due to the way that ZFS creates swap, you can not format less than 3GB of space<br \/>\nwith ZFS. However, on a drive that is below the minimum recommended size you lose a fair amount of<br \/>\nstorage space to swap: for example, on a 4 GB drive, 2GB will be reserved for swap.<br \/>\nIf you are new to ZFS and are purchasing hardware, read through ZFS Storage Pools<br \/>\nRecommendations first.<br \/>\n1.1.5 Network Interfaces<br \/>\nThe FreeBSD Ethernet section of the Hardware Notes indicates which interfaces are supported by each<br \/>\ndriver. While many interfaces are supported, FreeNAS\u2122 users have seen the best performance from<br \/>\nIntel and Chelsio interfaces, so consider these brands if you are purchasing a new interface.<br \/>\nAt a minimum you will want to use a GigE interface. While GigE interfaces and switches are<br \/>\naffordable for home use, it should be noted that modern disks can easily saturate 110 MB\/s. If you<br \/>\nrequire a higher network throughput, you can &#8220;bond&#8221; multiple GigE cards together using the LACP<br \/>\ntype of Link Aggregation. However, any switches will need to support LACP which means you will<br \/>\nneed a more expensive managed switch rather than a home user grade switch.<br \/>\nIf network performance is a requirement and you have some money to spend, use 10 GigE interfaces<br \/>\nand a managed switch. If you are purchasing a managed switch, consider one that supports LACP and<br \/>\njumbo frames as both can be used to increase network throughput.<br \/>\nNOTE: at this time the following are not supported: InfiniBand, FibreChannel over Ethernet, or<br \/>\nwireless interfaces.<br \/>\nIf network speed is a requirement, consider both your hardware and the type of shares that you create.<br \/>\nOn the same hardware, CIFS will be slower than FTP or NFS as Samba is single-threaded. If you will<br \/>\nbe using CIFS, use a fast CPU.<br \/>\n1.1.6 RAID Overview<br \/>\nData redundancy and speed are important considerations for any network attached storage system.<br \/>\nMost NAS systems use multiple disks to store data, meaning you should decide what type of RAID to<br \/>\nuse before installing FreeNAS\u2122. This section provides an overview of RAID types to assist you in<br \/>\ndeciding which type best suits your requirements.<br \/>\nRAID 0: uses data striping to store data across multiple disks. It provides zero fault tolerance, meaning<br \/>\nif one disk fails, all of the data on all of the disks is lost. The more disks in the RAID 0, the more likely<br \/>\nthe chance of a failure.<br \/>\nRAID 1: all data is mirrored onto two disks, creating a redundant copy should one disk fail. If the disks<br \/>\nare on separate controllers, this form of RAID is also called duplexing.<br \/>\nRAID 5: requires a minimum of 3 disks and can tolerate the loss of one disk without losing data. Disk<br \/>\nreads are fast but write speed can be reduced by as much as 50%. If a disk fails, it is marked as<br \/>\ndegraded but the system will continue to operate until the drive is replaced and the RAID is rebuilt.<br \/>\nHowever, should another disk fail before the RAID is rebuilt, all data will be lost. If your FreeNAS\u2122<br \/>\nsystem will be used for steady writes, RAID 5 is a poor choice due to the slow write speed.<br \/>\nFreeNAS\u2122 8.0.3 Guide Page 11 of 164<br \/>\nRAID 6: requires a minimum of 4 disks and can tolerate the loss of 2 disks without losing data.<br \/>\nBenefits from having many disks as performance, fault tolerance, and cost efficiency are all improved<br \/>\nrelatively with more disks. The larger the failed drive, the longer it takes to rebuild the array. Reads are<br \/>\nvery fast but writes are slower than a RAID 5.<br \/>\nRAID 10: requires a minimum of 4 disks and number of disks is always even as this type of RAID<br \/>\nmirrors striped sets. Offers faster writes than RAID 5. Can tolerate multiple disk loss without losing<br \/>\ndata, as long as both disks in a mirror are not lost.<br \/>\nRAID 60: requires a minimum of 8 disks. Combines RAID 0 striping with the distributed double parity<br \/>\nof RAID 6 by striping 2 4-disk RAID 6 arrays. RAID 60 rebuild times are half that of RAID 6.<br \/>\nRAIDZ1: ZFS software solution that is equivalent to RAID5. Its advantage over RAID 5 is that it<br \/>\navoids the write-hole and doesn&#8217;t require any special hardware, meaning it can be used on commodity<br \/>\ndisks. If your FreeNAS\u2122 system will be used for steady writes, RAIDZ is a poor choice due to the<br \/>\nslow write speed. Requires a minimum of 3 disks though 5 disks is recommended (over 3, 4, or 6<br \/>\ndisks). It should be noted that you cannot add additional drives to expand the size of a RAIDZ1 after<br \/>\nyou have created it. The only way to increase the size of a RAIDZ1 is to replace each drive with a<br \/>\nlarger drive one by one while allowing time for restriping between each drive swap out. However, you<br \/>\ncan combine two existing RAIDZ1&#8217;s to increase the size of a ZFS volume (pool).<br \/>\nRAIDZ2: double-parity ZFS software solution that is similar to RAID-6. Its advantage over RAID 5 is<br \/>\nthat it avoids the write-hole and doesn&#8217;t require any special hardware, meaning it can be used on<br \/>\ncommodity disks. Requires a minimum of 3 disks. RAIDZ2 allows you to lose 1 drive without any<br \/>\ndegradation as it basically becomes a RAIDZ1 until you replace the failed drive and restripe. At this<br \/>\ntime, RAIDZ2 on FreeBSD is slower than RAIDZ1.<br \/>\nNOTE: It isn&#8217;t recommended to mix ZFS RAID with hardware RAID. It is recommended that you<br \/>\nplace your hardware RAID controller in JBOD mode and let ZFS handle the RAID. According to<br \/>\nWikipedia: ZFS can not fully protect the user&#8217;s data when using a hardware RAID controller, as it is<br \/>\nnot able to perform the automatic self-healing unless it controls the redundancy of the disks and<br \/>\ndata. ZFS prefers direct, exclusive access to the disks, with nothing in between that interferes. If the<br \/>\nuser insists on using hardware-level RAID, the controller should be configured as JBOD mode (i.e.<br \/>\nturn off RAID-functionality) for ZFS to be able to guarantee data integrity. Note that hardware<br \/>\nRAID configured as JBOD may still detach disks that do not respond in time; and as such may<br \/>\nrequire TLER\/CCTL\/ERC-enabled disks to prevent drive dropouts. These limitations do not apply<br \/>\nwhen using a non-RAID controller, which is the preferred method of supplying disks to ZFS.<br \/>\nWhen comparing hardware RAID types conventional wisdom recommends the following in order of<br \/>\npreference: Raid6, Raid10, Raid5, then Raid0. If using ZFS, the recommended preference changes to<br \/>\nRAIDZ2. These forum posts are also worth reading:<br \/>\n\u2022 What is the Best RAIDZ Configuration<br \/>\n\u2022 Getting the Most out of ZFS Pools<br \/>\n\u2022 RAIDZ Configuration Requirements and Recommendations<br \/>\nNOTE: NO RAID SOLUTION PROVIDES A REPLACEMENT FOR A RELIABLE BACKUP<br \/>\nSTRATEGY. BAD STUFF CAN STILL HAPPEN AND YOU WILL BE GLAD THAT YOU<br \/>\nBACKED UP YOUR DATA WHEN IT DOES. See section 6.1 Periodic Snapshot Tasks and section<br \/>\n6.2 Replication Tasks if you would like to use ZFS snapshots and rsync as part of your backup strategy.<br \/>\nFreeNAS\u2122 8.0.3 Guide Page 12 of 164<br \/>\n1.1.7 ZFS Overview<br \/>\nWhile ZFS isn&#8217;t hardware (it is a filesystem), an overview is included in this section as the decision to<br \/>\nuse ZFS may impact on your hardware choices and whether or not to use hardware RAID.<br \/>\nIf you&#8217;re new to ZFS, the Wikipedia entry on ZFS provides an excellent starting point to learn about its<br \/>\nfeatures. These resources are also useful to bookmark and refer to as needed:<br \/>\n\u2022 ZFS Evil Tuning Guide<br \/>\n\u2022 FreeBSD ZFS Tuning Guide<br \/>\n\u2022 ZFS Best Practices Guide<br \/>\n\u2022 ZFS Administration Guide<br \/>\n\u2022 Becoming a ZFS Ninja (video)<br \/>\nZFS version numbers change as features are introduced and are incremental, meaning that a version<br \/>\nincludes all of the features introduced by previous versions. Table 1.1a summarizes various ZFS<br \/>\nversions, the features which were added by that ZFS version, and in which version of FreeNAS\u2122 that<br \/>\nZFS version was introduced. Recent versions of FreeNAS\u2122 .7.x use ZFS version 13 which is why you<br \/>\ncan&#8217;t downgrade a ZFS volume from FreeNAS\u2122 8.x to FreeNAS\u2122 .7.x. FreeNAS\u2122 8.0.3 uses ZFS<br \/>\nversion 15, meaning that it includes all of the features that were introduced between versions 13 to 15.<br \/>\nTable 1.1a: Summary of ZFS Versions<br \/>\nZFS Version Features Added FreeNAS\u2122 Version<br \/>\n10 cache devices .7.x<br \/>\n11 improved scrub performance .7.x<br \/>\n12 snapshot properties .7.x<br \/>\n13 snapused property .7.x<br \/>\n14 passthrough-x aclinherit property 8.0<br \/>\n15 user and group space accounting 8.0<br \/>\n16 STMF property support on roadmap<br \/>\n17 RAIDZ3 on roadmap<br \/>\n18 snapshot user holds on roadmap<br \/>\n19 log device removal on roadmap<br \/>\n20 compression using zle (zero-length encoding) on roadmap<br \/>\n21 deduplication on roadmap<br \/>\n22 received properties on roadmap<br \/>\n23 deferred update (slim ZIL) on roadmap<br \/>\n24 system attributes on roadmap<br \/>\n25 improved scrub stats on roadmap<br \/>\n26 improved snapshot deletion performance on roadmap<br \/>\n27 improved snapshot creation performance on roadmap<br \/>\nFreeNAS\u2122 8.0.3 Guide Page 13 of 164<br \/>\nZFS Version Features Added FreeNAS\u2122 Version<br \/>\n28 multiple vdev replacements on roadmap<br \/>\n30 encryption Oracle has not released as open source<br \/>\nZFS uses the ZIL (ZFS Intent Log) to manage writes. If you are using VMWare, the speed of the ZIL<br \/>\ndevice is essentially the write performance bottleneck when using NFS. In this scenario, iSCSI will<br \/>\nperform better than NFS. If you decide to create a dedicated cache device to speed up NFS writes, it<br \/>\ncan be half the size of system RAM as anything larger than that is unused capacity. Mirroring the ZIL<br \/>\ndevice won&#8217;t increase the speed, but it will help performance and reliability if one of the drives fails.<br \/>\n1.2 What&#8217;s New<br \/>\nThe FreeNAS\u2122 8 series represents an entire rewrite from the .7 series of FreeNAS\u2122. In other words,<br \/>\nFreeNAS\u2122 was rewritten from scratch and features were added as the new base stabilized. This means<br \/>\nthat not every feature in the .7 series was re-implemented and some features that are not available in<br \/>\nFreeNAS\u2122 .7 are available in FreeNAS\u2122 8.x. Notable differences between the two implementations<br \/>\nare as follows:<br \/>\n\u2022 versioning numbers have changed with the intent to have the version number reflect the base<br \/>\nversion of FreeBSD. FreeNAS\u2122 8.0.3 is based on FreeBSD 8.2; as the 8 branch of FreeNAS\u2122<br \/>\nbecomes feature complete, its version number will increment to 8.2.<br \/>\n\u2022 based on NanoBSD rather than m0n0wall<br \/>\n\u2022 design was changed from monolithic to modularized to allow for the creation of plugins so that<br \/>\nusers can install and configure only the modules they need<br \/>\n\u2022 GUI rewritten in Django to allow for future expansion<br \/>\n\u2022 new GUI is the default with the original GUI still available by entering the appname after the<br \/>\nFreeNAS\u2122 system&#8217;s URL (e.g. http:\/\/192.168.1.1\/services)<br \/>\n\u2022 improved management of ownership\/group\/permissions of volumes and datasets<br \/>\n\u2022 ZFS parameters per dataset, such as quotas, were added<br \/>\n\u2022 LSI 6 gbps HBAs are now supported<br \/>\n\u2022 migrated to rc.d init system<br \/>\n\u2022 ports updated to FreeBSD 8.2<br \/>\n\u2022 iSCSI support added<br \/>\n\u2022 support for 3ware 6bps RAID controllers has been added along with the CLI utility tw_cli for<br \/>\nmanaging 3ware RAID controllers<br \/>\n\u2022 added the ability to create periodic snapshot jobs, create one-time snapshots, clone snapshots<br \/>\nwhich can then be exported as shares like any other dataset, and rollback to a previous snapshot<br \/>\nFreeNAS\u2122 8.0.3 Guide Page 14 of 164<br \/>\n1.3 Features<br \/>\nNotable features in FreeNAS\u2122 8.0.3 include:<br \/>\n\u2022 supports AFP, CIFS, FTP, NFS, SSH (including SFTP), and TFTP as file sharing mechanisms<br \/>\n\u2022 supports exporting file or device extents via iSCSI<br \/>\n\u2022 supports Active Directory or LDAP for user authentication<br \/>\n\u2022 supports UFS2 based volumes, including gmirror, gstripe, and graid3<br \/>\n\u2022 supports ZFS as the primary filesystem, enabling many features not available in UFS2 such as<br \/>\nquotas, snapshots, compression, replication, and datasets for sharing subsets of volumes<br \/>\n\u2022 upgrade procedure takes advantage of NanoBSD by writing the operating system to an inactive<br \/>\npartition, allowing for an easy reversal of an undesirable upgrade<br \/>\n\u2022 automatic system notifications about LSI RAID controller events (requires email service to be<br \/>\nconfigured)<br \/>\n\u2022 Django-driven graphical user interface<br \/>\n\u2022 rsync configuration through the graphical interface<br \/>\n\u2022 cron management through the graphical interface<br \/>\n\u2022 menu localization<br \/>\n\u2022 the SCSI serial number can be set on a per target basis, fixing an issue where MMIO was seeing<br \/>\ndifferent FreeNAS\u2122 servers as the same device<br \/>\n\u2022 multiple IPs can now be specified per iSCSI portal<br \/>\n\u2022 ssh daemon now logs to \/var\/log\/auth.log<br \/>\n\u2022 CIFS now defaults to AIO enabled<br \/>\n\u2022 ZFS hot spare cutover helper application within GUI<br \/>\n\u2022 SMART monitoring in GUI<br \/>\n\u2022 UPS management in GUI<br \/>\n\u2022 USB 3.0 support<br \/>\n\u2022 ACLs and UNIX file system permissions work properly on both UFS and ZFS volumes<br \/>\n\u2022 periodic ZFS snapshots are now exported to CIFS shares and are visible in Windows as shadow<br \/>\ncopies<br \/>\n\u2022 read-only is enabled on creation of remote filesystem to prevent accidental writes to the replica<br \/>\nwhich would break replication<br \/>\n\u2022 added tmux, a BSD-licensed utility similar to GNU screen<br \/>\n\u2022 added dmidecode which can provide very useful hardware diagnostic information<br \/>\n\u2022 updated the version of Intel NIC drivers to handle Intel&#8217;s latest round of hardware<br \/>\nFreeNAS\u2122 8.0.3 Guide Page 15 of 164<br \/>\n\u2022 added support for Marvell MX2 SATA controllers, sold with some WD 3TB drives<br \/>\n\u2022 netatalk (AFP) is now compatible with OS X 10.7<br \/>\n1.4 Known Issues<br \/>\nBefore installing FreeNAS\u2122 you should be aware of the following known issues:<br \/>\n\u2022 UPGRADES FROM FreeNAS\u2122 0.7x ARE UNSUPPORTED. The system has no way to<br \/>\nimport configuration settings from 0.7x versions of FreeNAS\u2122, but the volume importer<br \/>\nshould be able to handle volumes created with FreeNAS\u2122 0.7x. Please note that zpool upgrade<br \/>\nis a one way street and upgraded volumes will not be usable with FreeNAS\u2122 0.7x.<br \/>\n\u2022 The ZFS upgrade procedure is non-reversible and must be run manually. Please do not upgrade<br \/>\nyour pools unless you are absolutely sure that you&#8217;ll never want to go back to other systems. For<br \/>\nclarity, zpool upgrade is a ONE-WAY street. There is no reversing it, and there is no way for a<br \/>\nsystem with an older version of ZFS to access pools that have been upgraded.<br \/>\n\u2022 The iSCSI target does not support a configuration reload meaning that changes to the<br \/>\nconfiguration restart the daemon.<br \/>\n\u2022 Disks with certain configurations can get probed by GEOM and become essentially unwritable<br \/>\nwithout manual intervention. For instance, if you use disks that previously had a gmirror on<br \/>\nthem, the system may pick that up and the disks will be unavailable until the existing gmirror is<br \/>\nstopped and destroyed.<br \/>\n\u2022 In a departure from FreeNAS\u2122 0.7x, the operating system drive can not be used as a<br \/>\ncomponent for a volume, nor can it be partitioned for sharing.<br \/>\n\u2022 Some Atom-based systems with Realtek GigE interfaces have network performance issues with<br \/>\nFreeBSD 8.2.<br \/>\n1.5 Roadmap for 8.2<br \/>\n8.2 is expected to be released by the end of the first quarter of 2012. Originally, this release was to be<br \/>\nnamed 8.1, but it was decided to change the upcoming release name to 8.2 to better reflect the FreeBSD<br \/>\nversion it is based upon.<br \/>\nTable 1.7 lists the features which are currently being worked on and should be implemented for the 8.2<br \/>\nrelease:<br \/>\nTable 1.7: 8.2 Features Roadmap<br \/>\nFeature Status Notes<br \/>\nmigration utility from .7 to 8.x<br \/>\nrsync over SSH committed<br \/>\nplugin system which will allow the<br \/>\ninstallation of additional applications<br \/>\nthrough the PBI system<br \/>\nin-progress<br \/>\nFreeNAS\u2122 8.0.3 Guide Page 16 of 164<br \/>\nFeature Status Notes<br \/>\nUPS client<br \/>\nWake on LAN support<br \/>\nsplit NTP server and options into several<br \/>\nfields in the GUI committed<br \/>\nSNMP connection to UPS<br \/>\ncommitted (and<br \/>\navailable to<br \/>\nsome degree via<br \/>\nnut in 8.0.3)<br \/>\ntransmission support committed GUI and plugin support still not enabled<br \/>\nuPnP\/DAAP\/DLNA support<br \/>\nfirefly support committed; GUI \/ plugin<br \/>\nsupport still not enabled<br \/>\nminidlna support committed; GUI \/ plugin<br \/>\nsupport still not enabled<br \/>\nThe following features will not make it into 8.2 and are being considered for a later version of<br \/>\nFreeNAS\u2122:<br \/>\n\u2022 encryption (with GELI?)<br \/>\n\u2022 automated mechanism for error reporting and user feedback<br \/>\n\u2022 more detailed system information<br \/>\n\u2022 network bandwidth reporting<br \/>\n\u2022 Unison<br \/>\n2 Installing FreeNAS\u2122<br \/>\nBefore installing, it is important to remember that the FreeNAS\u2122 operating system must be installed<br \/>\non a separate device from the drive(s) that will hold the storage data. In other words, if you only have<br \/>\none disk drive you will be able to use the FreeNAS\u2122 graphical interface but won&#8217;t be able to store any<br \/>\ndata, which after all, is the whole point of a NAS system. If you are a home user who is experimenting<br \/>\nwith FreeNAS\u2122, you can install FreeNAS\u2122 on an inexpensive USB thumb drive and use the<br \/>\ncomputer&#8217;s disk(s) for storage.<br \/>\nThis section describes how to:<br \/>\n\u2022 Getting FreeNAS\u2122<br \/>\n\u2022 Installing from CDROM<br \/>\n\u2022 Installing from the Image<br \/>\n\u2022 Initial Setup<br \/>\n\u2022 Upgrading FreeNAS\u2122<br \/>\nFreeNAS\u2122 8.0.3 Guide Page 17 of 164<br \/>\nIf you are installing FreeNAS\u2122 into a VirtualBox as a testing environment, you will need to configure<br \/>\nthe vbox interface for bridging in order to access the FreeNAS\u2122 GUI through a web browser. To do<br \/>\nthis in VirtualBox, go to Settings -&gt; Network. In the Attached to drop-down menu select Bridged<br \/>\nAdapter and select the name of the physical interface from the Name drop-down menu. In the example<br \/>\nshown in Figure 2a, the Intel Pro\/1000 Ethernet card is attached to the network and has a device name<br \/>\nof re0.<br \/>\nFigure 2a: Configuring a Bridged Adapter in VirtualBox<br \/>\nYou will also need to create at least 2 virtual disks: the primary master should be at least 4 GB in size<br \/>\nto hold the operating system and swap and the other virtual disk(s) can be used as data storage.<br \/>\n2.1 Getting FreeNAS\u2122<br \/>\nFreeNAS\u2122 8.0.3 can be downloaded from the FreeNAS-8 Sourceforge page. FreeNAS\u2122 is available<br \/>\nfor 32-bit (x386) and 64-bit (x64) architectures. You should download the architecture type that<br \/>\nmatches your CPU&#8217;s capabilities..<br \/>\nThe download page contains the following types of files:<br \/>\nFreeNAS\u2122 8.0.3 Guide Page 18 of 164<br \/>\n\u2022 GUI_upgrade.xz: this is a compressed firmware upgrade image and requires a previous<br \/>\ninstallation of FreeNAS\u2122 8.x. If your intent is to upgrade FreeNAS\u2122, download the correct<br \/>\n.xz file for your architecture and see section 2.5 Upgrading FreeNAS\u2122.<br \/>\n\u2022 Full_Install.xz: this is a compressed image of the full image disk that needs to be written to a<br \/>\nUSB or compact flash device. Section 2.3 Installing from the Image describes how to use this<br \/>\nimage.<br \/>\n\u2022 .iso: this is a bootable image that can be written to CDROM. Installing from the CDROM is<br \/>\ndescribed in more detail in the next section.<br \/>\nThe download directory also contains a ReleaseNotes for that version of FreeNAS\u2122. This file contains<br \/>\nthe changes introduced by that release, any known issues, and the SHA256 checksums of the files in<br \/>\nthe download directory. The command you use to verify the checksum varies by operating system:<br \/>\n\u2022 on a BSD system use the command sha256 name_of_file<br \/>\n\u2022 on a Linux system use the command sha256sum name_of_file<br \/>\n\u2022 on a Mac system use the command shasum -a 256 name_of_file<br \/>\n\u2022 on a Windows system install a utility such as HashCalc or HashTab (which is also available for<br \/>\nMac)<br \/>\n2.2 Installing from CDROM<br \/>\nIf you prefer to install FreeNAS\u2122 using a menu-driven installer, download the ISO image that matches<br \/>\nthe architecture of the system you will install onto (32 or 64 bit) and burn it to a CDROM.<br \/>\nNOTE: the installer on the CDROM will recognize if a previous version of FreeNAS\u2122 8.x is already<br \/>\ninstalled, meaning the CDROM can also be used to upgrade FreeNAS\u2122. However, the installer can not<br \/>\nperform an upgrade from a FreeNAS\u2122 7.x system.<br \/>\nInsert the CDROM into the system and boot from it. Once the media has finished booting, you will be<br \/>\npresented with the console setup menu seen in Figure 2.2a.<br \/>\nNOTE: if the installer does not boot, check that the CD drive is listed first in the boot order in the<br \/>\nBIOS. Some motherboards may require you to connect the CD-ROM to SATA0 (the first connector) in<br \/>\norder to boot from CD-ROM. If it stalls during boot, check the SHA256 hash of your ISO against that<br \/>\nlisted in the README file; if the hash does not match, re-download the file. If the hash is correct, try<br \/>\nreburning the CD at a lower speed.<br \/>\nPress enter to select the default option of \u201c1 Install\/Upgrade to hard drive\/flash device, etc.\u201d. The next<br \/>\nmenu, seen in Figure 2.2b, will list all available drives, including any inserted USB thumb drives which<br \/>\nwill begin with &#8220;da&#8221;. In this example, the user is installing into VirtualBox and has created a 4GB<br \/>\nvirtual disk to hold the operating system.<br \/>\nUse your arrow keys to highlight the USB or compact flash device then tab to OK and press enter.<br \/>\nFreeNAS\u2122 will issue the warning seen in Figure 2.2c, reminding you not to install on a hard drive.<br \/>\nFreeNAS\u2122 8.0.3 Guide Page 19 of 164<br \/>\nFigure 2.2a: FreeNAS\u2122 Console Setup<br \/>\nFigure 2.2b: Selecting Which Drive to Install Into<br \/>\nFigure 2.2c: FreeNAS\u2122 Warning on Why You Should Install onto USB Flash Drive<br \/>\nPress enter and FreeNAS\u2122 will extract the running image from the ISO and transfer it to the device.<br \/>\nOnce the installation is complete, you should see the message in Figure 2.2d.<br \/>\nFreeNAS\u2122 8.0.3 Guide Page 20 of 164<br \/>\nFigure 2.2d: FreeNAS\u2122 Installation Complete<br \/>\nPress enter and you&#8217;ll return to the first menu, seen in Figure 2.2a. Highlight \u201c3 Reboot System\u201d and<br \/>\npress enter. Remove the CDROM. If you installed onto a USB thumb drive, leave the thumb drive<br \/>\ninserted. Make sure that the device you installed to is listed as the first boot entry in the BIOS so that<br \/>\nthe system will boot from it. FreeNAS\u2122 should now be able to boot into the Console setup menu<br \/>\ndescribed in section 2.4 Initial Setup .<br \/>\n2.3 Installing from the Image<br \/>\nIf your system does not have a CDROM or you prefer to manually write the running image, download<br \/>\nthe Full_Install.xz file. This file will need to be uncompressed and then written to a CF card or USB<br \/>\nthumbdrive that is 2GB or larger.<br \/>\nNOTE: any data currently saved on the flash device will be erased. If you are writing the image to a<br \/>\nCF card, make sure that it is MSDOS formatted.<br \/>\nDANGER! The dd command is very powerful and can destroy any existing data on the specified<br \/>\ndevice. Be very sure that you know the device name representing the USB thumb drive and make sure<br \/>\nyou do not typo the device name when using dd!<br \/>\n2.3.1 Using xzcat and dd on a FreeBSD or Linux System<br \/>\nOn a FreeBSD or Linux system, the xzcat and dd commands can be used to uncompress and write<br \/>\nthe .xz image to an inserted USB thumb drive or compact flash device. Example 2.3a demonstrates<br \/>\nwriting the image to the first USB device (\/dev\/da0) on a FreeBSD system. Substitute the filename of<br \/>\nyour ISO and the device name representing the device to write to on your system.<br \/>\nExample 2.3a: Writing the Full_Install Image to a USB Thumb Drive<br \/>\nxzcat FreeNAS-8.0.3-RELEASE-x64-Full_Install.xz | dd of=\/dev\/da0 bs=64k<br \/>\n0+244141 records in<br \/>\n0+244141 records out<br \/>\n2000000000 bytes transferred in 326.345666 secs (6128471 bytes\/sec)<br \/>\nWhen using the dd command:<br \/>\n\u2022 of= refers to the output file; in our case, the device name of the flash card or removable USB<br \/>\ndrive. You may have to increment the number in the name if it is not the first USB device. On<br \/>\nLinux, use \/dev\/sda to refer to the first USB device.<br \/>\n\u2022 bs= refers to the block size<br \/>\nFreeNAS\u2122 8.0.3 Guide Page 21 of 164<br \/>\n2.3.2 Using Keka and dd on an OS X System<br \/>\nOn an OS X system, you can download and install Keka to uncompress the image. In FINDER,<br \/>\nnavigate to the location where you saved the downloaded .xz file. Shift+Click (or right-click) on the .xz<br \/>\nfile and select &#8216;Open With Keka&#8217;. After a few minutes you&#8217;ll have a large file with the same name, but<br \/>\nno extension.<br \/>\nInsert the USB thumb drive and go to Launchpad -&gt; Utilities -&gt; Disk Utility. Unmount any mounted<br \/>\npartitions on the USB thumb drive. Check that the USB thumb drive has only one partition (if not you<br \/>\nwill get GPT partition table errors on boot). Use Disk Utility to setup one partition on the USB drive;<br \/>\n&#8220;free space&#8221; works fine.<br \/>\nNext, determine the device name of the inserted USB thumb drive. From TERMINAL, navigate to your<br \/>\nDesktop then type this command:<br \/>\ndiskutil &#8211; list<br \/>\nThis will show you what devices are available to the system. Locate your USB stick and record the<br \/>\npath. If you are not sure which path is the correct one for the USB stick, remove the device, run the<br \/>\ncommand again, and compare the difference. Once you are sure of the device name, navigate to the<br \/>\nDesktop from TERMINAL and use the dd command with the USB stick inserted. In Example 2.3b, the<br \/>\nUSB thumb drive is \/dev\/disk8. Substitute the name of your uncompressed file and the correct path to<br \/>\nyour USB thumb drive.<br \/>\nExample 2.3b: Using dd on an OS X System<br \/>\ndd if=FreeNAS-8.0.3-RELEASE-x64-Full_Install of=\/dev\/disk8 bs=64k<br \/>\nNOTE: If you get the error &#8220;Resource busy&#8221; when you run the dd command, go to Applications -&gt;<br \/>\nUtilities -&gt; Disk Utility, find your USB thumb drive, and click on its partitions to make sure all of them<br \/>\nare unmounted.<br \/>\nThe dd command will take some minutes to complete. Wait until you get a prompt back and a message<br \/>\nthat displays how long it took to write the image to the USB drive.<br \/>\nOnce you have a running image, make sure the boot order in the BIOS is set to boot from the device<br \/>\ncontaining the image and boot the system. It should boot into the Console setup menu described in<br \/>\nsection 2.4 Initial Setup.<br \/>\nNOTE: if the image does not boot, check the BIOS and change the USB emulation from<br \/>\nCD\/DVD\/floppy to hard drive. If it still will not boot, check to see if the card\/drive is UDMA<br \/>\ncompliant. Some users have also found that some cheap 2GB USB sticks don&#8217;t work as they are not<br \/>\nreally 2GB in size, but changing to a 4GB stick fixes the problem.<br \/>\n2.3.3 Using physdiskwrite on Windows<br \/>\nWindows users will need to download a utility that can uncompress xz files and a utility that can create<br \/>\na USB bootable image. A detailed how-to for using 7zip and physdiskwrite can be found in the forum<br \/>\npost How to write the embedded FreeNAS 8 image under Windows.<br \/>\nFreeNAS\u2122 8.0.3 Guide Page 22 of 164<br \/>\n2.4 Initial Setup<br \/>\nThe first time you reboot into FreeNAS\u2122, you will be presented with the Console Setup screen shown<br \/>\nin Figure 2.4a.<br \/>\nNOTE: if you receive a boot error, check your BIOS settings to make sure that the device you installed<br \/>\nFreeNAS\u2122 to is listed first in the boot order. Also check the settings for that device. For example, a<br \/>\nBIOS may require you to change from floppy emulation mode to hard disk mode. If your BIOS is too<br \/>\nold to support a USB boot device, see if a BIOS update is available. If you receive a &#8220;primary GPT is<br \/>\ncorrupt&#8221; error, you will need to use the dd command to remove both partition tables as described in this<br \/>\nforum post. You should then be able to reinstall FreeNAS\u2122 and successfully boot into the new<br \/>\ninstallation.<br \/>\nFreeNAS\u2122 will automatically try to connect to a DHCP server on any live interfaces. If it successfully<br \/>\nreceives an IP address, it will display what IP address can be used to access the graphical console. In<br \/>\nthe example seen in Figure 2.4a, the FreeNAS\u2122 system is accessible from http:\/\/10.0.2.15.<br \/>\nFigure 2.4a: FreeNAS\u2122 Console Setup Menu<br \/>\nIf your FreeNAS\u2122 server is not connected to a network with a DHCP server, you will need to<br \/>\nmanually configure the interface as seen in Example 2.4a. In this example, the FreeNAS\u2122 system has<br \/>\none network interface (em0).<br \/>\nFreeNAS\u2122 8.0.3 Guide Page 23 of 164<br \/>\nExample 2.4a: Manually Setting an IP Address from the Console Menu<br \/>\nEnter an option from 1-11: 1<br \/>\n1) em0<br \/>\nSelect an interface (q to quit): 1<br \/>\nDelete existing config? (y\/n) n<br \/>\nConfigure interface for DHCP? (y\/n) n<br \/>\nConfigure IPv4? (y\/n) y<br \/>\nInterface name: (press enter as can be blank)<br \/>\nSeveral input formats are supported<br \/>\nExample 1 CIDR Notation:<br \/>\n192.168.1.1\/24<br \/>\nExample 2 IP and Netmask separate:<br \/>\nIP: 192.168.1.1<br \/>\nNetmask: 255.255.255.0, or \/24 or 24<br \/>\nIPv4 Address: 192.168.1.108\/24<br \/>\nSaving interface configuration: Ok<br \/>\nConfigure IPv6? (y\/n) n<br \/>\nRestarting network: ok<br \/>\nYou may try the following URLs to access the web user interface:<br \/>\nhttp:\/\/192.168.1.108<br \/>\nFrom another system with a graphical web browser, input the IP address for your FreeNAS\u2122<br \/>\ninstallation. The administrative GUI, shown in Figure 2.4b should be displayed. If it does not appear,<br \/>\ncheck that your browser configuration does not have any proxy settings enabled. If it does, disable<br \/>\nthem and try again. Also, IE9 has known issues. If you can&#8217;t login using Internet Explorer, use Firefox<br \/>\ninstead.<br \/>\nNOTE: earlier versions of FreeNAS\u2122 8 required you to login using the default credentials of admin<br \/>\nfor the username and freenas for the password.<br \/>\nIf you click the flashing Alert icon in the upper right corner, it will alert you that you should<br \/>\nimmediately change the password for the admin user as currently no password is required to login. You<br \/>\ncan do so in Account -&gt; My Account -&gt; Change Password. Once you do so, the Alert icon will change<br \/>\nto a solid green.<br \/>\nFreeNAS\u2122 8.0.3 Guide Page 24 of 164<br \/>\nFigure 2.4b: FreeNAS\u2122 Graphical Configuration Menu<br \/>\n2.5 Upgrading FreeNAS\u2122<br \/>\nNOTE: Before performing an upgrade you must always backup your configuration file, system disk,<br \/>\nand all of your data.<br \/>\nUPGRADES FROM FreeNAS\u2122 0.7x ARE NOT SUPPORTED: the system has no way to import<br \/>\nconfiguration settings from 0.7 versions of FreeNAS\u2122, nor is there any sort of volume importer yet<br \/>\nthat will preserve data on existing volumes. Attempting to upgrade from 0.7 will result in the loss of<br \/>\nyour configuration and data.<br \/>\nThe image size was increased from 1GB to 2GB between 8.01-BETA2 and 8.0.1-BETA3. THIS<br \/>\nMEANS THAT A GUI UPGRADE FROM AN EARLIER 8.X VERSION TO AN 8.0.1-BETA3 OR<br \/>\nHIGHER VERSION WILL FAIL. However, a CD upgrade will succeed and will save all of your<br \/>\nconfiguration settings. If you are unable to perform a CD upgrade, you will need to: 1) backup your<br \/>\nFreeNAS\u2122 8.0.3 Guide Page 25 of 164<br \/>\nconfiguration using System -&gt; Settings -&gt; General -&gt; Save Config; 2) perform a full install; and 3)<br \/>\nrestore your configuration using System -&gt; Settings -&gt; General -&gt; Upload Config. The GUI upgrade<br \/>\ncan be used to upgrade a system from BETA3 to BETA4.<br \/>\nBeginning with FreeNAS\u2122 8.0, FreeNAS\u2122 supports two operating systems on the operating system<br \/>\ndevice: the current \u201crunning\u201d operating system and, if you have performed an upgrade, your previous<br \/>\nversion of the operating system. When you upgrade, FreeNAS\u2122 automatically backs up your<br \/>\nconfiguration and preserves the initial operating system. This means that it is easy to rollback to the<br \/>\nprevious version and its configuration should you experience a problem with the upgraded version. The<br \/>\nupgrade automatically configures the system to boot from the new operating system; a rollback<br \/>\nconfigures the system to boot from the previous operating system. Should you ever be unable to boot<br \/>\ninto a newly upgraded operating system, simply select F2 at the FREENAS\u2122 console when you see<br \/>\nthis screen at the very beginning of the boot process:<br \/>\nF1 FreeBSD<br \/>\nF2 FreeBSD<br \/>\nBoot: F1<br \/>\nThere are 2 ways to upgrade a FreeNAS\u2122 8.x system: from the ISO or from the xz file. Both methods<br \/>\nare described below.<br \/>\n2.5.1 Using the ISO<br \/>\nTo upgrade from the CDROM, download the latest version of the ISO image that matches the<br \/>\narchitecture of the system (32 or 64 bit) and burn it to a CDROM.<br \/>\nNOTE: the installer on the CDROM will recognize if a previous version of FreeNAS\u2122 8.x is already<br \/>\ninstalled, meaning the CDROM can also be used to upgrade FreeNAS\u2122. However, the installer can not<br \/>\nperform an upgrade from a FreeNAS\u2122 7.x system.<br \/>\nInsert the CDROM into the system and boot from it. Once the media has finished booting into the<br \/>\ninstallation menu, press enter to select the default option of &#8220;1 Install\/Upgrade to hard drive\/flash<br \/>\ndevice, etc.&#8221; As with a fresh install, the installer will present a screen showing all available drives (see<br \/>\nFigure 2.2b); select the drive FreeNAS\u2122 is installed into and press enter.<br \/>\nThe installer will recognize that an earlier version of FreeNAS\u2122 is installed on the drive and will<br \/>\npresent the message shown in Figure 2.5a.<br \/>\nIf you select NO at this screen, the installer will do a fresh install of the version on the CD rather than<br \/>\nupgrading the previous version. To upgrade, press enter to accept the default of Yes. Again, the<br \/>\ninstaller will remind you that the operating system should be installed on a thumb drive (seen in Figure<br \/>\n2.2c). Press enter to start the upgrade. Once the installer has finished unpacking the new image, you<br \/>\nwill see the menu shown in Figure 2.5b.<br \/>\nThe database file that is preserved and migrated contains your FreeNAS\u2122 configuration settings. Press<br \/>\nenter and FreeNAS\u2122 will indicate that the upgrade is complete and that you should reboot, as seen in<br \/>\nFigure 2.5c.<br \/>\nFreeNAS\u2122 8.0.3 Guide Page 26 of 164<br \/>\nFigure 2.5a: Upgrading a FreeNAS\u2122 Installation<br \/>\nFigure 2.5b: FreeNAS\u2122 will Preserve and Migrate Settings<br \/>\nFreeNAS\u2122 8.0.3 Guide Page 27 of 164<br \/>\nFigure 2.5c: Upgrade is Complete<br \/>\n2.5.2 From the GUI<br \/>\nBefore upgrading FreeNAS\u2122:<br \/>\n1. Download the *.GUI_upgrade.xz image file that matches your architecture; download this file<br \/>\nto the computer that you use to access the FreeNAS\u2122 system.<br \/>\n2. Download the ReleaseNotes for that version; towards the bottom you will find the SHA256<br \/>\nhash for the *.GUI_upgrade.xz image file.<br \/>\n3. Backup the FreeNAS\u2122 configuration in System -&gt; Settings -&gt; General -&gt; Upload Config.<br \/>\n4. Warn all network users that the FreeNAS\u2122 shares will be unavailable during the upgrade; you<br \/>\nshould schedule the upgrade for a time that will least impact users.<br \/>\n5. Stop all services in Services -&gt; Control Services.<br \/>\n6. Go to System -&gt; Settings -&gt; Advanced, check the box \u201cShow console messages in the footer<br \/>\n(Requires UI reload)\u201d, and refresh your browser. This way you can watch the progress of the<br \/>\nupgrade until the first reboot.<br \/>\nTo perform the upgrade, go to System -&gt; Settings -&gt; Advanced -&gt; Firmware Update as shown in Figure<br \/>\n2.5d.<br \/>\nFreeNAS\u2122 8.0.3 Guide Page 28 of 164<br \/>\nFigure 2.5d: Upgrading FreeNAS\u2122 From the GUI<br \/>\nUse the drop-down menu to select a volume to temporarily place the firmware file during the upgrade,<br \/>\nthen click the Update button. You will be prompted to browse to the location of the downloaded .xz file<br \/>\nand to paste the SHA256 sum. The SHA256 sum in the ReleaseNotes will look similar to this:<br \/>\nFilename:<br \/>\nFreeNAS-8.0.3-RELEASE-x64-GUI_Upgrade.xz<br \/>\nSHA256 Hash:<br \/>\ncdcd02b2bc4cbd0b2bc92153ddc2f0f73780572f877789b21d6ef32135c7e3722b224<br \/>\nWhen finished, click the Apply Update button which will change to &#8220;please Wait&#8230;&#8221;. Behind the scenes,<br \/>\nthe following steps are occurring:<br \/>\n\u2022 the SHA256 hash is confirmed and an error will display if it does not match; if you get this<br \/>\nerror, double-check that you pasted the correct checksum and try pasting again<br \/>\n\u2022 the new image is uncompressed and written to the USB compact or flash drive; this can take 10<br \/>\nto 15 minutes so be patient<br \/>\n\u2022 once the new image is written, you will momentarily lose your connection as the FreeNAS\u2122<br \/>\nsystem will automatically reboot into the new version of the operating system<br \/>\n\u2022 FreeNAS\u2122 will actually reboot twice: once the new operating system loads the upgrade<br \/>\nprocess applies the new database schema and reboots again<br \/>\n\u2022 assuming all went well, the FreeNAS\u2122 system will receive the same IP from the DHCP server;<br \/>\nrefresh your browser after a moment to see if you access the system<br \/>\nFreeNAS\u2122 8.0.3 Guide Page 29 of 164<br \/>\n2.5.2.1 If Something Goes Wrong<br \/>\nIf the FreeNAS\u2122 system does not become available after the upgrade, you will need physical access to<br \/>\nthe system to find out what went wrong. From the console menu you can determine if it received an IP<br \/>\naddress and use option &#8220;1) Configure Network Interfaces&#8221; if it did not.<br \/>\nIf this does not fix the problem, go into option &#8220;9) Shell&#8221; and read the system log with this command:<br \/>\nmore \/var\/log\/messages<br \/>\nIf the problem is not obvious or you are unsure how to fix it, see section 10 FreeNAS Support<br \/>\nResources.<br \/>\nIf the system remains inaccessible and you wish to revert back to the previous installation, type reboot<br \/>\nfrom the shell or select &#8220;10) Reboot&#8221; from the console menu. Watch the boot screens and press F2<br \/>\nwhen you see this menu:<br \/>\nF1 FreeBSD<br \/>\nF2 FreeBSD<br \/>\nBoot: F1<br \/>\nSection 2: Using the Graphical Interface<br \/>\nThis section of the Guide describes all of the configuration screens available within the FreeNAS\u2122<br \/>\ngraphical administrative interface. The screens are listed in the order that they appear within the tree, or<br \/>\nthe left frame of the GUI.<br \/>\nNOTE: It is important to use the GUI (or the console) for all configuration changes. FreeNAS\u2122 uses a<br \/>\nconfiguration database to store its settings. While you can use the command line to modify your<br \/>\nconfiguration, changes made at the command line are not written to the configuration database. This<br \/>\nmeans that any changes made at the command line will not persist after a reboot and will be<br \/>\noverwritten by the values in the configuration database during an upgrade.<br \/>\n3 Account Configuration<br \/>\nThe account section of the GUI allows you to change the administrative password and manage users<br \/>\nand groups.<br \/>\nFreeNAS\u2122 supports users, groups, and permissions, allowing great flexibility in configuring which<br \/>\nusers have access to the data stored on FreeNAS.\u2122 Before you can assign permissions which will be<br \/>\nused by shares, you will need to do one of the following:<br \/>\n1. Create one guest account that all users will use. OR<br \/>\n2. Create a user account for every user in the network where the name of each account is the same<br \/>\nas a logon name used on a computer. For example, if a Windows system has a login name of<br \/>\nbobsmith, you should create a user account with the name bobsmith on FreeNAS\u2122. If your<br \/>\nintent is to assign groups of users different permissions to shares, you will need to also create<br \/>\ngroups and assign users to the groups. OR<br \/>\n3. If your network uses Active Directory to manage user accounts and permissions, enable the<br \/>\nActive Directory service.<br \/>\nFreeNAS\u2122 8.0.3 Guide Page 30 of 164<br \/>\nThis section describes how to manage the administrative account, users, and groups using the<br \/>\nFreeNAS\u2122 GUI.<br \/>\n3.1 My Account<br \/>\nBy default no password is required to access the FreeNAS\u2122 administrative interface using the built-in<br \/>\nadmin account. For security reasons, you should immediately change the default administrative account<br \/>\nname and set a password for that account. To change the administrative account name, go to Account -&gt;<br \/>\nMy Account -&gt; Change Admin User. This will open the screen shown in Figure 3.1a.<br \/>\nFigure 3.1a: Changing the FreeNAS\u2122 Administrative Account<br \/>\nReplace admin with the name of the account that will be used to login to the FreeNAS\u2122 system. The<br \/>\nFirst and Last name fields are optional. Click the Change Admin User to save your changes.<br \/>\nNOTE: in FreeNAS\u2122 the administrative account is not the same as the root user account. The<br \/>\nadministrative account is used to access the graphical administrative interface. This separation makes it<br \/>\npossible to disable root logins while maintaining the ability of logging into the graphical administrative<br \/>\ninterface.<br \/>\nTo change the password of the administrative account, click on Account -&gt; My Account -&gt; Change<br \/>\nPassword. This will open the screen shown in Figure 3.1b.<br \/>\nFreeNAS\u2122 8.0.3 Guide Page 31 of 164<br \/>\nFigure 3.1b: Setting the FreeNAS\u2122 Administrative Password<br \/>\nSince there is no default password, leave the old password field blank. Type in and confirm the<br \/>\npassword which will be used when accessing the graphical administrative interface. If you wish to<br \/>\nallow root logins using the same password, leave the &#8220;Change root password as well&#8221; box checked. If<br \/>\nyou wish to use a different root password, uncheck this box and set the root password in Account -&gt;<br \/>\nUsers -&gt; View All Users -&gt; root -&gt; Change Password.<br \/>\n3.2 Groups<br \/>\nThe Groups interface allows you to manage UNIX-style groups on the FreeNAS\u2122 system. Creating a<br \/>\nshare that will be accessed by some users but not others is a three step process:<br \/>\n1. Create a user account for each user in Account -&gt; Users -&gt; Add User.<br \/>\n2. Add the user accounts to a group that you create in Account -&gt; Groups -&gt; Add Group.<br \/>\n3. In Storage -&gt; create a volume or ZFS dataset and assign permission to the group for that<br \/>\nvolume or dataset.<br \/>\nThis section describes step 2 or how to create the group and assign it user accounts. The next section<br \/>\nwill describe step 1 or how to create user accounts. Section 6.3 Volumes describes step 3 or how to<br \/>\ncreate volumes\/datasets and set their permissions.<br \/>\nIf you click Groups -&gt; View All Groups, you will see a screen similar to Figure 3.2a.<br \/>\nFreeNAS\u2122 8.0.3 Guide Page 32 of 164<br \/>\nFigure 3.2a: FreeNAS\u2122 Groups Management<br \/>\nAll groups that came with the operating system will be listed and the screen will indicate if any<br \/>\nadditional groups have been defined by the administrator. Each group has an entry indicating the group<br \/>\nID and group name; click the group&#8217;s Members button to view and modify that group&#8217;s membership.<br \/>\nIf you click the Add New Group button, you will be prompted to enter the group&#8217;s name. The next<br \/>\navailable group ID will be suggested for you, though you can change it to another value. By<br \/>\nconvention, UNIX groups containing user accounts have an ID greater than 1000 and groups required<br \/>\nby a service have an ID equal to the default port number used by the service (e.g. the sshd group has an<br \/>\nID of 22).<br \/>\nOnce the group and users are created, assign the users as members to the group. In the example shown<br \/>\nin Figure 3.2b, a group called data1 has been created and a user account named user1 has also been<br \/>\ncreated. Click on View All Groups then the Members button for the group you wish to assign users to.<br \/>\nHighlight the user in the Member users list (which shows all user accounts on the system) and click the<br \/>\n&gt;&gt; to move that user to the right frame. Whatever user accounts appear in the right frame will be<br \/>\nmembers of that group.<br \/>\nFreeNAS\u2122 8.0.3 Guide Page 33 of 164<br \/>\nFigure 3.2b: Assigning a User as a Member of a Group<br \/>\n3.3 Users<br \/>\nIf you wish to set permissions on your volumes or datasets, you will need to create at least one user<br \/>\naccount and assign that user account the required permissions. If you also wish to create groups to<br \/>\nmanage permissions, you should create the user accounts first, then assign the accounts as members of<br \/>\nthe groups. This section demonstrates how to create a user account.<br \/>\nIf you click Account -&gt; Users -&gt; View All Users, you will see a listing of all of the user accounts that<br \/>\nwere created with the FreeNAS\u2122 system, as shown in Figure 3.3a:<br \/>\nFigure 3.3a: Managing User Accounts<br \/>\nFreeNAS\u2122 8.0.3 Guide Page 34 of 164<br \/>\nEach account entry indicates the user ID, account name, default group, home directory, default shell,<br \/>\nand offers buttons to change the user&#8217;s password, the user&#8217;s account settings, and email address. Every<br \/>\nuser account, except for the root user, that came with the FreeNAS\u2122 system is a system account. This<br \/>\nmeans that it is used by a service and should not be available for use as a login account. For this reason,<br \/>\nthe default shell is nologin(8). For security reasons (and to prevent breakage of system services) you<br \/>\nshould not modify the system accounts.<br \/>\nTIP: for security reasons, you should change the root password from the default value.<br \/>\nTo create a user account, click the Add New User button to open the screen shown in Figure 3.3b. Table<br \/>\n3.3a summarizes the options available in this screen.<br \/>\nFigure 3.3b: Adding a User Account<br \/>\nTable 3.3a: User Account Configuration<br \/>\nSetting Value Description<br \/>\nUser ID integer<br \/>\ncan accept default; by convention, user accounts have an ID greater than<br \/>\n1000 and system accounts have an ID equal to the default port number<br \/>\nused by the service<br \/>\nUsername string<br \/>\nmaximum 30 characters, can include numerals, can not include a space;<br \/>\ndue to a limitation in FreeBSD, usernames that exceed 17 characters are<br \/>\nunable to create cron jobs or be used in rsync tasks<br \/>\nFreeNAS\u2122 8.0.3 Guide Page 35 of 164<br \/>\nSetting Value Description<br \/>\nPrimary Group drop-down<br \/>\nmenu<br \/>\nif left empty this will create a group with the same name; don&#8217;t add to<br \/>\nwheel group unless you mean to give superuser access; don&#8217;t add to a<br \/>\nsystem group unless you are creating a system account required by that<br \/>\ngroup<br \/>\nHome Directory string needs to be changed to the name of an existing volume or dataset that the<br \/>\nuser will be assigned permission to access<br \/>\nShell drop-down<br \/>\nmenu<br \/>\nif creating a system account, choose nologin; if creating a user account,<br \/>\nselect shell of choice<br \/>\nFull Name string mandatory, may contain spaces<br \/>\nPassword string mandatory unless check box to disable logins<br \/>\nPassword<br \/>\nconfirmation string must match Password<br \/>\nDisable logins checkbox check this box for system accounts and for user accounts who aren&#8217;t<br \/>\nallowed to login to the FreeNAS\u2122 system<br \/>\nSSH Public Key string paste the user&#8217;s public key which can be used for SSH authentication (do<br \/>\nnot paste the private key!)<br \/>\nLock user checkbox a checked box prevents user from logging in until the account is unlocked<br \/>\n(box is unchecked)<br \/>\n4 System Configuration<br \/>\nThe System icon contains the following tabs:<br \/>\n\u2022 Reporting: provides reports and graphs monitoring the system&#8217;s CPU, disk capacity and other<br \/>\nmetrics.<br \/>\n\u2022 Settings: used to configure system wide settings such as timezone, email setup, HTTPS access<br \/>\nand firmware upgrades.<br \/>\n\u2022 System information: provides general FreeNAS\u2122 system information such as hostname,<br \/>\noperating system version, platform and uptime.<br \/>\n\u2022 CronJobs: provides a graphical front-end to crontab(5).<br \/>\n\u2022 Rsync Tasks: allows you to schedule rsync tasks.<br \/>\n\u2022 S.M.A.R.T. Tests: allows you to schedule which S.M.A.R.T. tests to run on a per-disk basis.<br \/>\nEach of these is described in more detail in this section.<br \/>\nFreeNAS\u2122 8.0.3 Guide Page 36 of 164<br \/>\n4.1 Reporting<br \/>\nIf you click the Reporting tab, several graphs will load as seen in the example in Figure 4.1a.<br \/>\nFigure 4.1a: Reporting Graphs Showing the Load on the System<br \/>\nThe graphs will display the current interface traffic (for each configured interface), CPU usage,<br \/>\nphysical memory utilization, system load, processes, swap utilization, and disk space (for each<br \/>\nconfigured volume). Reporting data is saved, allowing you to view and monitor usage trends hourly,<br \/>\ndaily, weekly, monthly, and yearly.<br \/>\n4.2 Settings<br \/>\nThe Settings tab, shown in Figure 4.2a, contains 4 tabs: General, Advanced, Email, and SSL.<br \/>\nFreeNAS\u2122 8.0.3 Guide Page 37 of 164<br \/>\nFigure 4.2a: General Tab of Settings<br \/>\n4.2.1 General Tab<br \/>\nTable 4.2a summarizes the settings that can be configured using the General tab:<br \/>\nTable 4.2a: General Tab&#8217;s Configuration Settings<br \/>\nSetting Value Description<br \/>\nProtocol drop-down<br \/>\nmenu protocol to use when connecting to the administrative GUI from a browser<br \/>\nWebGUI<br \/>\nAddress<br \/>\ndrop-down<br \/>\nmenu<br \/>\nchoose from a list of recent IP addresses for the one to use when accessing the<br \/>\nadministrative GUI; the built-in HTTP server will automatically bind to the<br \/>\nwildcard address of 0.0.0.0 (any address) if the configured address becomes<br \/>\nunavailable and issue an alert<br \/>\nWebGUI<br \/>\nPort integer allows you to configure a non-standard port for accessing the administrative<br \/>\nGUI<br \/>\nFreeNAS\u2122 8.0.3 Guide Page 38 of 164<br \/>\nSetting Value Description<br \/>\nLanguage drop-down<br \/>\nmenu<br \/>\nselect the localization from the drop-down menu; requires a browser reload;<br \/>\nyou can view the status of localization at pootle.freenas.org<br \/>\nTimezone drop-down<br \/>\nmenu select the timezone from the drop-down menu<br \/>\nNTP server string input the IP address or name of up to 3 NTP servers; options from ntp.conf(5)<br \/>\nsuch as \u201ciburst maxpoll 9\u201d can be included<br \/>\nSyslog<br \/>\nserver IP address allows you to send FreeNAS\u2122 logs to specified remote syslog server<br \/>\nIf you make any changes, click the Save button.<br \/>\nThis tab also contains the following three buttons:<br \/>\nFactory Restore: replaces current configuration with the factory default. This means that all of your<br \/>\ncustomizations will be erased, but can be handy if you mess up your system or wish to return a test<br \/>\nsystem to the original configuration.<br \/>\nSave Config: allows you to browse to location to make a backup copy of the current configuration in<br \/>\nthe format hostname-YYYYMMDDhhmmss.db. You should always do this before upgrading your<br \/>\nsystem.<br \/>\nUpload Config: allows you to browse to location of saved configuration file in order to restore that<br \/>\nconfiguration.<br \/>\nNOTE: If you intend to recreate volumes and restore the default configuration, delete the volumes first<br \/>\nin Storage -&gt; Volumes.<br \/>\n4.2.2 Advanced Tab<br \/>\nThe Advanced tab, shown in Figure 4.2b, allows you to set some miscellaneous settings on the<br \/>\nFreeNAS\u2122 system. The configurable settings are summarized in Table 4.2b.<br \/>\nFreeNAS\u2122 8.0.3 Guide Page 39 of 164<br \/>\nFigure 4.2b: Advanced Tab<br \/>\nTable 4.2b: Advanced Tab&#8217;s Configuration Settings<br \/>\nSetting Value Description<br \/>\nEnable Console Menu checkbox unchecking this box removes the console menu<br \/>\nshown in Figure 2.4a<br \/>\nUse Serial Console checkbox do not check this box if your serial port is disabled<br \/>\nEnable screen saver checkbox enables\/disables the console screen saver (see ticket<br \/>\n566)<br \/>\nEnable powerd (Power<br \/>\nSaving Daemon) checkbox<br \/>\nused to spin down disks, see powerd(8); this forum<br \/>\npost demonstrates how to determine if a drive has<br \/>\nspun down<br \/>\nSwap size non-zero integer<br \/>\nrepresenting GB effects new disks only<br \/>\nShow console messages in<br \/>\nthe footer checkbox requires you to refresh browser; will display console<br \/>\nmessages in real time at bottom of browser<br \/>\nShow tracebacks in case of<br \/>\nfatal errors checkbox<br \/>\nenable this when troubleshooting to get more<br \/>\ndiagnostic information to display in a GUI error<br \/>\nmessage<br \/>\nMOTD banner string input the message you wish to be seen when user logs<br \/>\nin via SSH<br \/>\nIf you make any changes, click the Save button.<br \/>\nThis tab also contains the following buttons:<br \/>\nRebuild LDAP\/AD Cache: click if you add a user to AD who needs immediate access to FreeNAS\u2122;<br \/>\notherwise this occurs automatically once a day as a cron job.<br \/>\nFreeNAS\u2122 8.0.3 Guide Page 40 of 164<br \/>\nSave Debug: creates a text file of diagnostic information which includes the FreeNAS\u2122 version, the<br \/>\nstatus of all services and their settings, the contents of all *.conf files, the debug log, and hardware<br \/>\ninformation.<br \/>\nFirmware Update: used to Upgrade FreeNAS\u2122. See section 2.5.2 Upgrading FreeNAS\u2122 From the<br \/>\nGUI for details.<br \/>\nApply Service Pack: future versions of FreeNAS\u2122 will provide service packs to address bugs and<br \/>\nsecurity fixes.<br \/>\n4.2.3 Email Tab<br \/>\nThe Email tab, shown in Figure 4.2c, is used to configure the email settings on the FreeNAS\u2122 system.<br \/>\nTable 4.2c summarizes the settings that can be configured using the Email tab.<br \/>\nFigure 4.2c: Email Tab<br \/>\nTable 4.2c: Email Tab&#8217;s Configuration Settings<br \/>\nSetting Value Description<br \/>\nFrom email string<br \/>\nthe From email address to be used when sending email<br \/>\nnotifications; the To email address is sent to the root user<br \/>\naccount and you can set that email address by clicking the<br \/>\nChange E-mail button for the root account in Accounts -&gt; Users<br \/>\n-&gt; View All Users<br \/>\nOutgoing mail<br \/>\nserver string or IP address hostname or IP address of SMTP server<br \/>\nFreeNAS\u2122 8.0.3 Guide Page 41 of 164<br \/>\nSetting Value Description<br \/>\nPort to connect<br \/>\nto integer SMTP port number, typically 25, 465 (secure SMTP), or 587<br \/>\n(submission)<br \/>\nTLS\/SSL drop-down menu encryption type; choices are plain, SSL, or TLS<br \/>\nUse SMTP<br \/>\nAuthentication checkbox enables\/disables SMTP AUTH using PLAIN SASL<br \/>\nUsername string used to authenticate with SMTP server<br \/>\nPassword string used to authenticate with SMTP server<br \/>\nSend Test Mail button click to check that configured email settings are working; this<br \/>\nwill fail if you do not set the To email address first<br \/>\n4.2.4 SSL Tab<br \/>\nDuring installation, an unsigned RSA certificate and key are auto-generated for you. You can view<br \/>\nthese in System -&gt; Settings -&gt; SSL, as seen in Figure 4.2d. If you already have your own signed<br \/>\ncertificate that you wish to use for SSL\/TLS connections, replace the values in the SSL certificate field<br \/>\nwith a copy\/paste of your own key and certificate. The certificate can be used to secure the HTTP<br \/>\nconnection (enabled in the Settings -&gt; General Tab) to the FreeNAS\u2122 system, as well as to secure FTP<br \/>\nconnections (described in section 8.6.4 Encrypting FTP). Table 4.2d summarizes the settings that can<br \/>\nbe configured using the SSL tab. This howto shows how to generate a certificate using OpenSSL and<br \/>\nprovides some examples for the values shown in Table 4.2d.<br \/>\nFigure 4.2d: SSL Tab<br \/>\nFreeNAS\u2122 8.0.3 Guide Page 42 of 164<br \/>\nTable 4.2d: SSL Tab&#8217;s Configuration Settings<br \/>\nSetting Value Description<br \/>\nOrganization string optional<br \/>\nOrganizational Unit string optional<br \/>\nEmail Address string optional<br \/>\nLocality string optional<br \/>\nState string optional<br \/>\nCountry string optional<br \/>\nCommon Name string optional<br \/>\nSSL Certificate string paste the RSA private key and<br \/>\ncertificate into the box<br \/>\n4.3 System Information<br \/>\nThe system information tab will display general information about the FreeNAS\u2122 system. The<br \/>\ninformation includes the hostname, underlying FreeBSD version, type of CPU (platform), the amount<br \/>\nof memory, the current system time, the system&#8217;s uptime, the current load average, and the FreeNAS\u2122<br \/>\nbuild version. An example is seen in Figure 4.3a:<br \/>\nFigure 4.3a: System Information Tab<br \/>\nFreeNAS\u2122 8.0.3 Guide Page 43 of 164<br \/>\n4.4 Cron Jobs<br \/>\ncron(8) is a daemon that runs a command or script on a regular schedule as a specified user. Typically,<br \/>\nthe user who wishes to schedule a task manually creates a crontab(5) using syntax that can be<br \/>\nperplexing to new Unix users. The FreeNAS\u2122 GUI makes it easy to schedule when you would like the<br \/>\ntask to occur.<br \/>\nNOTE: due to a limitation in FreeBSD, users with account names that exceed 17 characters are unable<br \/>\nto create cron jobs.<br \/>\nFigure 4.4a shows the screen that opens when you click System -&gt; Cron Jobs -&gt; Add Cron Job.<br \/>\nFigure 4.4a: Creating a Cron Job<br \/>\nTable 4.4a summarizes the configurable options when creating a cron job.<br \/>\nTable 4.4a: Cron Job Options<br \/>\nSetting Value Description<br \/>\nUser drop-down menu make sure the selected user has permission to run the specified<br \/>\ncommand or script<br \/>\nFreeNAS\u2122 8.0.3 Guide Page 44 of 164<br \/>\nSetting Value Description<br \/>\nCommand string the full path to the command or script to be run; if it is a script, test it at<br \/>\nthe command line first to make sure that it works as expected<br \/>\nDescription string optional<br \/>\nMinute slider or<br \/>\ncheckboxes<br \/>\nif use the slider, cron job occurs every N minutes; if use check boxes,<br \/>\ncron job occurs at the selected moments<br \/>\nHour slider or<br \/>\ncheckboxes<br \/>\nif use the slider, cron job occurs every N hours; if use check boxes,<br \/>\ncron job occurs at the selected hours<br \/>\nDay of<br \/>\nmonth<br \/>\nslider or<br \/>\ncheckboxes<br \/>\nif use the slider, cron job occurs every N days; if use check boxes, cron<br \/>\njob occurs on the selected days of the selected months<br \/>\nMonth slider or<br \/>\ncheckboxes<br \/>\nif use the slider, cron job occurs every N months; if use check boxes,<br \/>\ncron job occurs on the selected months<br \/>\nDay of week slider or<br \/>\ncheckboxes<br \/>\nif use the slider, cron job occurs every N days; if use check boxes, cron<br \/>\njob occurs on the selected days<br \/>\nEnabled checkbox uncheck if you would like to disable the cron job without deleting it<br \/>\n4.5 Loaders<br \/>\nWhen a FreeBSD-based system boots, loader.conf(5) is read to determine if any parameters should be<br \/>\npassed to the kernel or if any additional kernel modules (such as drivers) should be loaded. Since loader<br \/>\nvalues are specific to the kernel parameter or driver to be loaded, descriptions can be found in the man<br \/>\npage for the specified driver and in many sections of the FreeBSD Handbook.<br \/>\nBeginning with version 8.0.3, FreeNAS\u2122 provides a graphical interface for managing loader values.<br \/>\nThis advanced functionality is intended to make it easier to load additional kernel modules at boot time.<br \/>\nA typical usage would be to load a FreeBSD hardware driver that does not automatically load after a<br \/>\nFreeNAS\u2122 installation. The default FreeNAS\u2122 image does not load every possible hardware driver.<br \/>\nThis is a necessary evil as some drivers conflict with one another or cause stability issues, some are<br \/>\nrarely used, and some drivers just don&#8217;t belong on a standard NAS system. If you need a driver that is<br \/>\nnot automatically loaded, you need to add a loader.<br \/>\nDANGER: changing the value of a loader is an advanced feature that could adversely effect the ability<br \/>\nof the FreeNAS\u2122 system to successfully boot. It is very important that you do not have a typo when<br \/>\nadding a loader value as this could halt the boot process. Fixing this problem requires physical access<br \/>\nto the FreeNAS\u2122 system and knowledge of how to use the boot loader prompt as described in section<br \/>\n4.5.1 Recovering From Incorrect Loaders. This means that you should always test the impact of any<br \/>\nchanges on a test system first.<br \/>\nAdditionally, certain changes could make your system unsupportable by the FreeNAS\u2122 team and can<br \/>\nbreak assumptions made by the software. Some examples include:<br \/>\n\u2022 setting kernel tunables to arbitrarily low or high limits, e.g. kern.hz=1 or kern.hz=100000<br \/>\n\u2022 disabling or enabling certain features such as vfs.zfs.zil_disable=1<br \/>\n\u2022 overriding default loader values, unless directed to do so by an developer affiliated with the<br \/>\nFreeNAS\u2122 8.0.3 Guide Page 45 of 164<br \/>\nFreeNAS\u2122 project<br \/>\nTo add a loader value, go to System -&gt; Loaders -&gt; Add Loader, as seen in Figure 4.5a.<br \/>\nFigure 4.5a: Adding a Loader Value<br \/>\nTable 4.5a summarizes the options when adding a loader.<br \/>\nTable 4.5a: Adding a Loader<br \/>\nSetting Value Description<br \/>\nVariable string typically the name of the driver to load, as indicated by its man page<br \/>\nValue integer or<br \/>\nstring<br \/>\nvalue to associate with variable; typically this is set to YES to enable the<br \/>\ndriver specifed by the variable<br \/>\nComment string optional, but a useful reminder for the reason behind adding this loader<br \/>\nThe changes you make will not take effect until the system is rebooted as loader settings are only read<br \/>\nwhen the kernel is loaded at boot time. As long as the loader exists, your changes will persist at each<br \/>\nboot and across upgrades.<br \/>\nAny loaders that you add will be listed in System -&gt; Loaders -&gt; View Loaders. To change the value of a<br \/>\nloader, click its Edit button. To remove a loader, click its Delete button.<br \/>\nAt this time, the GUI does not display the loaderss that are pre-set in the installation image.<br \/>\nFreeNAS\u2122 8.0.3 ships with the following loaders set:<br \/>\nautoboot_delay=&#8221;2&#8243;<br \/>\nloader_logo=&#8221;freenas&#8221;<br \/>\nkern.cam.boot_delay=10000<br \/>\nfuse_load=&#8221;YES&#8221;<br \/>\ngeom_mirror_load=&#8221;YES&#8221;<br \/>\ngeom_stripe_load=&#8221;YES&#8221;<br \/>\ngeom_raid3_load=&#8221;YES&#8221;<br \/>\ngeom_gate_load=&#8221;YES&#8221;<br \/>\ndebug.debugger_on_panic=1<br \/>\nhw.hptrr.attach_generic=0<br \/>\nFreeNAS\u2122 8.0.3 Guide Page 46 of 164<br \/>\nYou should not add or edit the default loaders in the GUI as doing so will overwrite the default values<br \/>\nwhich may render the system unusable.<br \/>\n4.5.1 Recovering From Incorrect Loaders<br \/>\nIf a loader is preventing the system from booting, you will need physical access to the FreeNAS\u2122<br \/>\nsystem. Watch the boot messages and press the number 6 key to select &#8220;6. Escape to loader prompt&#8221;<br \/>\nwhen you see the FreeNAS\u2122 boot menu shown in Figure 4.5b.<br \/>\nFigure 4.5b: FreeNAS\u2122 Boot Menu<br \/>\nThe boot loader prompt provides a minimal set of commands described in loader(8). Once at the<br \/>\nprompt, use the unset command to disable a problematic value, the set command to modify the<br \/>\nproblematic value, or the unload command to prevent the problematic driver from loading.<br \/>\nExample 4.5a demonstrates several examples using these commands at the boot loader prompt. The<br \/>\nfirst command disables the current value associated with the kern.ipc.nmbclusters MIB and will fail<br \/>\nwith a &#8220;no such file or directory&#8221; error message if a current loader does not exist to set this value. The<br \/>\nsecond command disables ACPI. The third command instructs the system not to load the fuse driver.<br \/>\nWhen finished, type boot to continue the boot process.<br \/>\nExample 4.5a: Sample Commands at the Boot Loader Prompt<br \/>\nType &#8216;?&#8217; for a list of commands, &#8216;help&#8217; for more detailed help.<br \/>\nOK unset kern.ipc.nmbclusters<br \/>\nOK set hint.acpi.0.disabled=1<br \/>\nOK unload fuse<br \/>\nOK boot<br \/>\nAny changes made at the boot loader prompt only effect the current boot. This means that you need to<br \/>\nFreeNAS\u2122 8.0.3 Guide Page 47 of 164<br \/>\nedit or remove the problematic loader in System -&gt; Loaders -&gt; View Loaders to make your change<br \/>\npermanent and to prevent future boot errors.<br \/>\n4.6 Rsync Tasks<br \/>\nRsync is a utility that automatically copies specified data from one system to another over a network.<br \/>\nOnce the initial data is copied, rsync reduces the amount of data sent over the network by sending only<br \/>\nthe differences between the source and destination files. Rsync can be used for backups, mirroring data<br \/>\non multiple systems, or for copying files between systems.<br \/>\nTo configure rsync, you need to configure both ends of the connection:<br \/>\n\u2022 the rsync server: this system pulls (receives) the data. In the FreeNAS\u2122 GUI, the server is<br \/>\nconfigured in Services -&gt; Rsync.<br \/>\n\u2022 the rsync client: this system pushes (sends) the data. In the FreeNAS\u2122 GUI, the client is<br \/>\nconfigured in System -&gt; Rsync Tasks.<br \/>\nThis section summarizes the options when creating an Rsync Task. It then provides a configuration<br \/>\nexample for setting up rsync between two FreeNAS\u2122 systems.<br \/>\n4.6.1 Creating an Rsync Task<br \/>\nFigure 4.6a shows the screen that appears when you click System -&gt; Rsync Tasks -&gt; Add Rsync Task.<br \/>\nTable 4.6a summarizes the options that can be configured when creating an rsync task.<br \/>\nFigure 4.6a: Adding an Rsync Task<br \/>\nFreeNAS\u2122 8.0.3 Guide Page 48 of 164<br \/>\nTable 4.6a: Rsync Configuration Options<br \/>\nSetting Value Description<br \/>\nPath Browse button select the volume\/dataset\/directory that you wish to copy<br \/>\nRemote Host string IP address or hostname of the remote system that will store the copy<br \/>\nRemote Module<br \/>\nName string name must be defined in rsyncd.conf(5) of rsync server or in Rsync<br \/>\nModule of another FreeNAS\u2122 system<br \/>\nShort<br \/>\nDescription string optional<br \/>\nMinute slider or<br \/>\ncheckboxes<br \/>\nif use the slider, sync occurs every N minutes; if use check boxes,<br \/>\nsync occurs at the selected moments<br \/>\nHour slider or<br \/>\ncheckboxes<br \/>\nif use the slider, sync occurs every N hours; if use check boxes, sync<br \/>\noccurs at the selected hours<br \/>\nDay of month slider or<br \/>\ncheckboxes<br \/>\nif use the slider, sync occurs every N days; if use check boxes, sync<br \/>\noccurs on the selected days<br \/>\nMonth checkboxes task occurs on the selected months<br \/>\nDay of week checkboxes task occurs on the selected days of the week<br \/>\nUser drop-down<br \/>\nmenu<br \/>\nspecified user must have permission to write to the specified directory<br \/>\non the remote system; due to a limitation in FreeBSD, the user name<br \/>\ncan not exceed 17 characters<br \/>\nRecursive checkbox if checked, copy will include all subdirectories of the specified<br \/>\nvolume<br \/>\nTimes checkbox preserve modification times of files<br \/>\nCompress checkbox recommended on slow connections as reduces size of data to be<br \/>\ntransmitted<br \/>\nArchive checkbox<br \/>\nequivalent to -rlptgoD (recursive, copy symlinks as symlinks,<br \/>\npreserve permissions, preserve modification times, preserve group,<br \/>\npreserve owner (super-user only), and preserve device files (superuser<br \/>\nonly) and special files)<br \/>\nDelete checkbox delete extraneous files from destination directory<br \/>\nQuiet checkbox suppresses information messages from the remote server<br \/>\nPreserve<br \/>\npermissions checkbox preserves file permissions<br \/>\nPreserve<br \/>\nextended<br \/>\nattributes<br \/>\ncheckbox both systems must support extended attributes<br \/>\nExtra options string rsync(1) options not covered by the GUI<br \/>\nFreeNAS\u2122 8.0.3 Guide Page 49 of 164<br \/>\n4.6.2 Configuring Rsync Between Two FreeNAS\u2122 Systems<br \/>\nThis configuration example will configure rsync between the two following FreeNAS\u2122 systems:<br \/>\n\u2022 192.168.2.2 has existing data in \/mnt\/local\/images. It will be the rsync client, meaning that an<br \/>\nrsync task needs to be defined.<br \/>\n\u2022 192.168.2.6 has an existing volume named \/mnt\/remote. It will be the rsync server, meaning that<br \/>\nit will receive the contents of \/mnt\/local\/images. An rsync module needs to be defined on this<br \/>\nsystem and the rsyncd service needs to be started.<br \/>\nOn the client system (192.168.2.2), an rsync task is defined in System -&gt; Rsync Tasks -&gt; Add Rsync<br \/>\nTask as shown in Figure 4.6b. In this example:<br \/>\n\u2022 the Path points to \/usr\/local\/images, the directory to be copied<br \/>\n\u2022 the Remote Host points to 192.168.2.6, the IP address of the rsync server<br \/>\n\u2022 the Remote Module Name is backups; this will need to be defined on the rsync server<br \/>\n\u2022 the rsync is scheduled to occur every 15 minutes<br \/>\n\u2022 the User is set to root so it has permission to write anywhere<br \/>\n\u2022 the Preserve Permissions checkbox is checked so that the original permissions are not<br \/>\noverwritten by the root user<br \/>\nFigure 4.6b: Configuring the Rsync Client<br \/>\nFreeNAS\u2122 8.0.3 Guide Page 50 of 164<br \/>\nOn the server system (192.168.2.6), an rsync module is defined in Services -&gt; Rsync Modules -&gt; Add<br \/>\nRsync Module as shown in Figure 4.6c. In this example:<br \/>\n\u2022 the Module Name is backups; this needs to match the setting on the rsync client<br \/>\n\u2022 the Path is \/mnt\/remote; a directory called images will be created to hold the contents of<br \/>\n\/usr\/local\/images<br \/>\n\u2022 the User is set to root so it has permission to write anywhere<br \/>\n\u2022 Hosts allow is set to 192.168.2.2, the IP address of the rsync client<br \/>\nDescriptions of the configurable options can be found in section 8.15.2 Rsync Modules.<br \/>\nTo finish the configuration, start the rsync service on the server in Services -&gt; Control Services.<br \/>\nFigure 4.6c: Configuring the Rsync Server<br \/>\n4.7 S.M.A.R.T. Tests<br \/>\nS.M.A.R.T. (Self-Monitoring, Analysis and Reporting Technology) is a monitoring system for<br \/>\ncomputer hard disk drives to detect and report on various indicators of reliability. When a failure is<br \/>\nanticipated by S.M.A.R.T., the drive should be replaced. Most modern ATA, IDE and SCSI-3 hard<br \/>\ndrives support S.M.A.R.T.&#8211;refer to your drive&#8217;s documentation if you are unsure.<br \/>\nFigure 4.7a shows the configuration screen that appears when you click System -&gt; S.M.A.R.T. Tests -&gt;<br \/>\nFreeNAS\u2122 8.0.3 Guide Page 51 of 164<br \/>\nAdd S.M.A.R.T. Test. You should create a test for each drive that you wish to monitor. After creating<br \/>\nyour tests, check the configuration in Services -&gt; S.M.A.R.T, then click the slider to ON for the<br \/>\nS.M.A.R.T service in Services -&gt; Control Services.<br \/>\nNOTE: the S.M.A.R.T service will not start if you have not created any volumes.<br \/>\nFigure 4.7a: Adding a S.M.A.R.T Test<br \/>\nTable 4.7a summarizes the configurable options when creating a S.M.A.R.T test.<br \/>\nTable 4.7a: S.M.A.R.T Test Options<br \/>\nSetting Value Description<br \/>\nDisk drop-down menu select disk to monitor<br \/>\nType drop-down menu select type of list to run; see smartctl(8) for a description of each<br \/>\ntype of test<br \/>\nShort<br \/>\ndescription string optional<br \/>\nHour slider or<br \/>\ncheckboxes<br \/>\nif use the slider, test occurs every N hours; if use check boxes, test<br \/>\noccurs at the selected hours<br \/>\nDay of month slider or<br \/>\ncheckboxes<br \/>\nif use the slider, test occurs every N days; if use check boxes, test<br \/>\noccurs on the selected days<br \/>\nMonth checkboxes select the months when you wish the test to occur<br \/>\nFreeNAS\u2122 8.0.3 Guide Page 52 of 164<br \/>\nSetting Value Description<br \/>\nDay of week checkboxes select the days of the week when you wish the test to occur<br \/>\n4.8 Sysctls<br \/>\nsysctl(8) is an interface that is used to make changes to the underlying FreeBSD kernel running on a<br \/>\nFreeNAS\u2122 system. It can be used to tune the system in order to meet the specific needs of a network.<br \/>\nOver five hundred system variables can be set using sysctl(8). Each variable is known as a MIB as it is<br \/>\ncomprised of a dotted set of components. Since these MIBs are specific to the kernel feature that is<br \/>\nbeing tuned, descriptions can be found in many FreeBSD man pages (e.g. sysctl(3), tcp(4) and<br \/>\ntuning(7)) and in many sections of the FreeBSD Handbook.<br \/>\nDANGER: changing the value of a sysctl MIB is an advanced feature that immediately effects the<br \/>\nkernel of the FreeNAS\u2122 system. Do not change a MIB on a production system unless you understand<br \/>\nthe caveats associated with that change. A badly configured MIB could cause the system to become<br \/>\nunbootable, unreachable via the network, or can cause the system to panic under load. Certain changes<br \/>\nmay make your system unsupportable by the FreeNAS\u2122 team and can break assumptions made by the<br \/>\nsoftware. This means that you should always test the impact of any changes on a test system first.<br \/>\nBeginning with version 8.0.3, FreeNAS\u2122 provides a graphical interface for managing sysctl MIBs. To<br \/>\nadd a sysctl, go to System -&gt; Sysctls -&gt; Add Sysctl, shown in Figure 4.8a.<br \/>\nFigure 4.8a: Adding a Sysctl<br \/>\nTable 4.8a summarizes the options when adding a sysctl.<br \/>\nTable 4.8a: Adding a Sysctl<br \/>\nSetting Value Description<br \/>\nVariable string must be in dotted format e.g. kern.ipc.shmmax<br \/>\nValue integer or<br \/>\nstring<br \/>\nvalue to associate with MIB; do not make this up, refer to the suggested<br \/>\nvalues in a man page, FreeBSD Handbook page, or tutorial<br \/>\nComment string optional, but a useful reminder for the reason behind using this MIB\/value<br \/>\nFreeNAS\u2122 8.0.3 Guide Page 53 of 164<br \/>\nAs soon as you add or edit a sysctl, the running kernel will change that variable to the value you<br \/>\nspecify. As long as the sysctl exists, that value will persist across reboots and upgrades.<br \/>\nAny MIBs that you add will be listed in System -&gt; Sysctls -&gt; View Sysctls. To change the value of a<br \/>\nMIB, click its Edit button. To remove a MIB, click its Delete button.<br \/>\nAt this time, the GUI does not display the sysctl MIBs that are pre-set in the installation image.<br \/>\nFreeNAS\u2122 8.0.3 ships with the following MIBs set:<br \/>\ndebug.debugger_on_panic=0<br \/>\nkern.metadelay=3<br \/>\nkern.dirdelay=4<br \/>\nkern.filedelay=5<br \/>\nkern.coredump=0<br \/>\nYou should not add the default MIBs as sysctls as doing so will overwrite the default values which may<br \/>\nrender the system unusable.<br \/>\n5 Network Configuration<br \/>\nThe Network section of the administrative GUI contains the following components for viewing and<br \/>\nconfiguring the FreeNAS\u2122 system&#8217;s network settings:<br \/>\n\u2022 Global Configuration<br \/>\n\u2022 Network Summary<br \/>\n\u2022 Interfaces<br \/>\n\u2022 Link Aggregations<br \/>\n\u2022 Static Routes<br \/>\n\u2022 VLANs<br \/>\nEach of these is described in more detail below.<br \/>\n5.1 Global Configuration<br \/>\nThe global configuration tab, shown in Figure 5.1a, allows you to set non-interface specific network<br \/>\nsettings.<br \/>\nTable 5.1a summarizes the settings that can be configured using the Global Configuration tab. The<br \/>\nhostname and domain will be pre-filled for you, as seen in Figure 5.1a, but can be changed to meet the<br \/>\nlocal network&#8217;s requirements. The other settings are optional and can reduce the security of the<br \/>\nFreeNAS\u2122 system (by making it Internet accessible) if it is not properly protected by a firewall.<br \/>\nFreeNAS\u2122 8.0.3 Guide Page 54 of 164<br \/>\nFigure 5.1a: Sample Global Configuration<br \/>\nTable 5.1a: Global Configuration Settings<br \/>\nSetting Value Description<br \/>\nHostname string system host name<br \/>\nDomain string system domain name<br \/>\nIPv4 Default Gateway IP address typically not set to prevent NAS from being accessible from the<br \/>\nInternet<br \/>\nIPv6 Default Gateway IP address Typically not set<br \/>\nNameserver 1 IP address primary DNS server (typically in Windows domain)<br \/>\nNameserver 2 IP address secondary DNS server<br \/>\nNameserver 3 IP address tertiary DNS server<br \/>\n5.2 Network Summary<br \/>\nThe Network Summary tab allows you to quickly view the addressing information of every configured<br \/>\ninterface. It will show the interface name, IP address, DNS server(s), and default gateway.<br \/>\nFreeNAS\u2122 8.0.3 Guide Page 55 of 164<br \/>\n5.3 Interfaces<br \/>\nThe interfaces tab allows you to view which interfaces have been configured, to add an interface to<br \/>\nconfigure, and to edit an interface&#8217;s current configuration. Figure 5.3a shows the screen that opens<br \/>\nwhen you click Interfaces -&gt; Add Interface.<br \/>\nTable 5.3a summarizes the configuration options when you Add an interface or Edit an already<br \/>\nconfigured interface.<br \/>\nFigure 5.3a: Editing an Interfaces Configuration<br \/>\nTable 5.3a: Interface Configuration Settings<br \/>\nSetting Value Description<br \/>\nNIC drop-down menu select the FreeBSD device name; will be read-only field when edit<br \/>\nan interface<br \/>\nInterface Name string description of interface<br \/>\nDHCP checkbox requires manual IPv4 or IPv6 configuration if unchecked<br \/>\nIPv4 Address IP address set if DHCP unchecked<br \/>\nIPv4 Netmask drop-down menu set if DHCP unchecked<br \/>\nAuto configure<br \/>\nIPv6 checkbox if checked, use rtsol(8) to configure the interface; requires manual<br \/>\nconfiguration if unchecked and wish to use IPv6<br \/>\nFreeNAS\u2122 8.0.3 Guide Page 56 of 164<br \/>\nSetting Value Description<br \/>\nIPv6 Address IPv6 address must be unique on network<br \/>\nIPv6 Prefix<br \/>\nLength drop-down menu match the prefix used on network<br \/>\nOptions string<br \/>\nadditional parameters from ifconfig(8), one per line; for example:<br \/>\nmtu 9000 will increase the MTU for interfaces that support jumbo<br \/>\nframes<br \/>\nThis screen also allows you to configure an alias for the interface. If you wish to set multiple aliases,<br \/>\nclick the &#8220;Add extra alias&#8221; link for each alias you wish to configure.<br \/>\n5.4 Link Aggregations<br \/>\nFreeNAS\u2122 uses FreeBSD&#8217;s lagg(4) interface to provide link aggregation and link failover. The lagg<br \/>\ninterface allows aggregation of multiple network interfaces into a single virtual lagg interface,<br \/>\nproviding fault-tolerance and high-speed multi-link throughput. The aggregation protocols supported<br \/>\nby lagg determine which ports are used for outgoing traffic and whether a specific port accepts<br \/>\nincoming traffic. Lagg&#8217;s interface link state is used to validate if the port is active or not.<br \/>\nAggregation works best on switches supporting LACP, which distributes traffic bi-directionally while<br \/>\nresponding to failure of individual links. FreeNAS\u2122 also supports active\/passive failover between<br \/>\npairs of links.<br \/>\nImportant notice regarding aggregation performance: the LACP, FEC and load-balance modes<br \/>\nselect the output interface using a hash that includes the Ethernet source and destination address,<br \/>\nVLAN tag (if available), IP source and destination address, and flow label (IPv6 only). The benefit can<br \/>\nonly be observed when multiple clients are transfering files from your NAS. The flow entering into<br \/>\nyour NAS depends on the Ethernet switch load-balance algorithm.<br \/>\nNOTE: LACP and other forms of link aggregation generally do not work well with virtualization<br \/>\nsolutions. In a virtualized environment, consider the use of iSCSI MPIO through the creation of an<br \/>\niSCSI Portal as demonstrated in section 8.14.6. This allows an iSCSI initiator to recognize multiple<br \/>\nlinks to a target, utilizing them for increased bandwidth or redundancy. This how-to contains<br \/>\ninstructions for configuring MPIO on ESXi.<br \/>\nThe lagg driver currently supports the following aggregation protocols:<br \/>\nFailover: the default protocol. Sends traffic only through the active port. If the master port becomes<br \/>\nunavailable, the next active port is used. The first interface added is the master port; any interfaces<br \/>\nadded after that are used as failover devices. By default, received traffic is only accepted when received<br \/>\nthrough the active port. This constraint can be relaxed by setting the net.link.lagg.failover_rx_all<br \/>\nsysctl(8) variable to a nonzero value, which is useful for certain bridged network setups.<br \/>\nFEC: supports Cisco EtherChannel. This is a static setup and does not negotiate aggregation with the<br \/>\npeer or exchange frames to monitor the link.<br \/>\nFreeNAS\u2122 8.0.3 Guide Page 57 of 164<br \/>\nLACP: supports the IEEE 802.3ad Link Aggregation Control Protocol (LACP) and the Marker<br \/>\nProtocol. LACP will negotiate a set of aggregable links with the peer into one or more link aggregated<br \/>\ngroups (LAG). Each LAG is composed of ports of the same speed, set to full-duplex operation. The<br \/>\ntraffic will be balanced across the ports in the LAG with the greatest total speed; in most cases there<br \/>\nwill only be one LAG which contains all ports. In the event of changes in physical connectivity, link<br \/>\naggregation will quickly converge to a new configuration. LACP must be configured on the switch as<br \/>\nwell.<br \/>\nLoad Balance: balances outgoing traffic across the active ports based on hashed protocol header<br \/>\ninformation and accepts incoming traffic from any active port. This is a static setup and does not<br \/>\nnegotiate aggregation with the peer or exchange frames to monitor the link. The hash includes the<br \/>\nEthernet source and destination address, VLAN tag (if available), and IP source and destination<br \/>\naddress.<br \/>\nRound Robin: distributes outgoing traffic using a round-robin scheduler through all active ports and<br \/>\naccepts incoming traffic from any active port.<br \/>\nNone: this protocol is intended to do nothing: it disables any traffic without disabling the lagg interface<br \/>\nitself.<br \/>\nNOTE: The FreeNAS\u2122 system must be rebooted after configuring the lagg device, which requires<br \/>\nconsole access to the FreeNAS\u2122 system. TCP access will be lost during reboot. The interfaces used in<br \/>\nthe lagg device should not be configured before creating the lagg device.<br \/>\nFigure 5.4a shows the configuration options when adding a lagg interface.<br \/>\nFigure 5.4a: Creating a lagg Interface<br \/>\nNOTE: if interfaces are installed but do not appear in the Physical NICs in the LAGG list, check that a<br \/>\nFreeBSD driver for the interface exists here.<br \/>\nFreeNAS\u2122 8.0.3 Guide Page 58 of 164<br \/>\nSelect the desired aggregation protocol, highlight the interface(s) to associate with the lagg device, and<br \/>\nclick the OK button.<br \/>\nOnce the lagg device has been created, it will appear in View All Link Aggregations. Click its Edit<br \/>\nInterface button to open the screen shown in Figure 5.4b.<br \/>\nFigure 5.4b: Edit lagg Interface<br \/>\nTable 5.4a describes the options in this screen:<br \/>\nTable 5.4a: Configurable Options for a lagg Interface<br \/>\nSetting Value Description<br \/>\nNIC string read-only as automatically assigned next available numeric ID<br \/>\nInterface Name string by default same as device (NIC) name, can be changed to a more<br \/>\ndescriptive value<br \/>\nDHCP checkbox check if the lagg device gets its IP address info from DHCP server<br \/>\nIPv4 Address string mandatory if DHCP is left unchecked<br \/>\nIPv4 Netmask drop-down<br \/>\nmenu mandatory if DHCP is left unchecked<br \/>\nAuto configure<br \/>\nIPv6 checkbox check only if DHCP server available to provide IPv6 address info<br \/>\nIPv6 Address string optional<br \/>\nFreeNAS\u2122 8.0.3 Guide Page 59 of 164<br \/>\nSetting Value Description<br \/>\nIPv6 Prefix<br \/>\nLength<br \/>\ndrop-down<br \/>\nmenu required if input IPv6 address<br \/>\nOptions string additional ifconfig(8) options<br \/>\nThis screen also allows you to configure an alias for the lagg interface. If you wish to set multiple<br \/>\naliases, click the &#8220;Add extra alias&#8221; link for each alias you wish to configure.<br \/>\nIf you click a lagg device&#8217;s Edit Members button, then the Edit button under the Action column, you<br \/>\nwill see the screen shown in Figure 5.4c. This screen allows you to configure the individual physical<br \/>\n(parent) interface that you specified. The configurable options are summarized in Table 4.4b.<br \/>\nFigure 5.4c: Editing a Member Interface<br \/>\nTable 5.4b: Configuring a Member Interface<br \/>\nSetting Value Description<br \/>\nLAGG Interface group drop-down menu select the member interface to configure<br \/>\nLAGG Priority Number integer order of selected interface within the lagg<br \/>\nPhysical NIC drop-down menu physical interface of the selected member<br \/>\nOptions string additional parameters from ifconfig(8)<br \/>\nNOTE: you can set options such as the MTU (to enable jumbo frames) at either the lagg level or the<br \/>\nindividual parent interface level. You do not have to set the option at both levels as each level will<br \/>\nautomatically inherit its options from the other. However, it makes sense to set it at the lagg level<br \/>\n(Figure 5.4b) as each interface member will inherit from the lagg. If you set it at the interface level<br \/>\n(Figure 5.4c), you will have to repeat for each interface within the lagg. It is important to not set<br \/>\ndiffering options at the lagg and the interface level as this will confuse the lagg device. Also, do not set<br \/>\njumbo frames if the attached switch does not support jumbo frames.<br \/>\nFreeNAS\u2122 8.0.3 Guide Page 60 of 164<br \/>\n5.5 Static Routes<br \/>\nFor security reasons, no static routes are defined on the FreeNAS\u2122 system. Should you need a static<br \/>\nroute to reach portions of your network, you can add and view all static routes using Network -&gt; Static<br \/>\nRoutes. If you click &#8220;Add Static Route&#8221; you will see the screen shown in Figure 5.5a.<br \/>\nFigure 5.5a: Adding a Static Route<br \/>\nThe destination network and gateway fields are mandatory; the description field is optional.<br \/>\nIf you add any static routes, they will show in \u201cView All Static Routes\u201d. Each route will have an action<br \/>\nof Edit or Delete.<br \/>\n5.6 VLANs<br \/>\nFreeNAS\u2122 uses FreeBSD&#8217;s vlan(4) interface to demultiplex frames with IEEE 802.1q tags. This<br \/>\nallows nodes on different VLANs to communicate through a layer 3 switch or router. A vlan interface<br \/>\nmust be assigned a parent interface and a numeric VLAN tag. A single parent can be assigned to<br \/>\nmultiple vlan interfaces provided they have different tags. If you click Network -&gt; VLANs -&gt; Add<br \/>\nVLAN, you will see the screen shown in Figure 5.6a.<br \/>\nNOTE: VLAN tagging is the only 802.1Q feature that is implemented. Additionally, not all Ethernet<br \/>\ninterfaces support full VLAN processing\u2013see the HARDWARE section of vlan(4) for details.<br \/>\nFreeNAS\u2122 8.0.3 Guide Page 61 of 164<br \/>\nFigure 5.6a: Adding a VLAN<br \/>\nTable 5.6a describes the various fields.<br \/>\nTable 5.6a: Adding a VLAN<br \/>\nSetting Value Description<br \/>\nVirtual<br \/>\nInterface string Use the format vlanX where X is a number representing the<br \/>\nvlan interface<br \/>\nParent Interface select from drop-down<br \/>\nmenu<br \/>\nusually an Ethernet card connected to a properly configured<br \/>\nswitch port<br \/>\nVLAN Tag integer should match a numeric tag set up in the switched network<br \/>\nDescription string optional<br \/>\n.<br \/>\n6 Storage Configuration<br \/>\nThe Storage section of the graphical interface allows you to configure the following:<br \/>\n\u2022 Periodic Snapshot Tasks<br \/>\n\u2022 Replication Tasks<br \/>\n\u2022 Volumes<br \/>\nThese configurations are described in more detail in this section.<br \/>\n6.1 Periodic Snapshot Tasks<br \/>\nFreeNAS\u2122 ZFS volumes support snapshots, a read-only version of a ZFS volume or dataset at a given<br \/>\npoint in time. Snapshots can be created quickly and, if little data changes, new snapshots take up very<br \/>\nlittle space. For example, a snapshot where no files have changed takes 0MB of storage, but if you<br \/>\nchange a 10GB file it will keep a copy of both the old and the new 10GB version. Snapshots provide a<br \/>\nclever way of keeping a history of files, should you need to recover an older copy or even a deleted file.<br \/>\nFreeNAS\u2122 8.0.3 Guide Page 62 of 164<br \/>\nFor this reason, many administrators take snapshots often (e.g. every 15 minutes), store them for a<br \/>\nperiod of time (e.g. for a month), and store them on another system (e.g. using Replication Tasks). Such<br \/>\na strategy allows the administrator to roll the system back to a specific time or, if there is a catastrophic<br \/>\nloss, an off-site snapshot can restore the system up to the last snapshot interval (e.g. within 15 minutes<br \/>\nof the data loss). Snapshots can be cloned or rolled back, but the files on the snapshot cannot be<br \/>\naccessed independently.<br \/>\nBefore you can create a snapshot, you need to have an existing ZFS volume. How to do this is<br \/>\ndescribed in section 6.3.3 Creating Volumes.<br \/>\nTo create a ZFS snapshot, click Storage -&gt; Periodic Snapshot Tasks -&gt; Add Periodic Snapshot which<br \/>\nwill open the screen shown in Figure 6.1a.<br \/>\nFigure 6.1a: Creating a ZFS Periodic Snapshot<br \/>\nTable 6.1a summarizes the fields in this screen:<br \/>\nTable 6.1a: Options When Creating a Periodic Snapshot<br \/>\nSetting Value Description<br \/>\nMount<br \/>\nPoint drop-down menu select the mount point of an existing ZFS volume or dataset<br \/>\nRecursive checkbox<br \/>\nrecursive snapshots are created as one atomic operation<br \/>\nacross descendent file systems, meaning that the snapshot<br \/>\ndata is taken at one consistent time<br \/>\nFreeNAS\u2122 8.0.3 Guide Page 63 of 164<br \/>\nSetting Value Description<br \/>\nLifetime integer and drop-down menu how long to keep the snapshot<br \/>\nBegin drop-down menu time of first snapshot<br \/>\nEnd drop-down menu time of last snapshot<br \/>\nInterval drop-down menu how often to take snapshot between Begin and End times<br \/>\nWeekday checkboxes which days of the week to take snapshots<br \/>\nOnce you click the OK button, a snapshot will be taken and this task will be repeated according to your<br \/>\nsettings. If you click ZFS Snapshots, you will see a listing of available snapshots as seen in the example<br \/>\nin Figure 6.1b:<br \/>\nFigure 6.1b: Viewing Available Snapshots<br \/>\nThe most recent snapshot will be listed last and will have 3 icons instead of 2. The icons associated<br \/>\nwith a snapshot allow you to:<br \/>\nClone Snapshot: will prompt you for the name of the clone. The clone will be a writable copy of the<br \/>\nsnapshot and can only be created on the same ZFS volume. Clones do not inherit the properties of the<br \/>\nparent dataset, but rather inherit the properties based on where the clone is created in the ZFS pool.<br \/>\nBecause a clone initially shares all its disk space with the original snapshot, its used property is initially<br \/>\nzero. As changes are made to the clone, it uses more space.<br \/>\nDestroy Snapshot: a pop-up message will ask you to confirm this action. Note that clones must be<br \/>\ndestroyed before the parent snapshot can be destroyed.<br \/>\nRollback Snapshot: a pop-up message will ask if you are sure that you want to rollback to this<br \/>\nsnapshot state. If you click Yes, any files that have changed since the snapshot was taken will be<br \/>\nreverted back to their state at the time of the snapshot.<br \/>\nNOTE: rollback is a potentially dangerous operation and will cause any configured replication tasks to<br \/>\nfail as the replication system uses the existing snapshot when doing an incremental backup. If you do<br \/>\nneed to restore the data within a snapshot, the recommended steps are:<br \/>\nFreeNAS\u2122 8.0.3 Guide Page 64 of 164<br \/>\n1. Clone the desired snapshot.<br \/>\n2. Share the clone with the share type or service running on the FreeNAS\u2122 system.<br \/>\n3. Once users have recovered the needed data, destroy the clone.<br \/>\nThis approach will never destroy any on-disk data and has no impact on replication.<br \/>\nAlternatively, periodic snapshots will appear as shadow copies in newer versions of Windows Explorer.<br \/>\nUsers can access the files in the shadow copy using Explorer without requiring any interaction with the<br \/>\nFreeNAS\u2122 graphical administrative interface.<br \/>\n6.2 Replication Tasks<br \/>\nFreeNAS\u2122 supports the secure replication of ZFS snapshots to another remote FreeNAS\u2122 system (or<br \/>\nany other system running the same version of ZFS and a listening SSH server). This allows you to<br \/>\ncreate an off-site backup of the storage data.<br \/>\nThis section demonstrates how to setup SSH replication between two FreeNAS\u2122 systems. We will use<br \/>\nthe terms LOCAL (to represent the system that will send the snapshots) and REMOTE (to represent the<br \/>\nsystem to receive the snapshots). In this example, LOCAL has an IP address of 192.168.2.4 and<br \/>\nREMOTE has an IP address of 192.168.2.2. An overview is seen in Figure 6.2a.<br \/>\nFigure 6.2a: Overview of Configuration Example<br \/>\nFreeNAS\u2122 8.0.3 Guide Page 65 of 164<br \/>\nIn order to replicate ZFS snapshots you will need the following:<br \/>\n\u2022 a ZFS volume created on both LOCAL and REMOTE (see section 6.3.3 Creating Volumes for<br \/>\ninstructions on how to do this)<br \/>\n\u2022 a periodic snapshot task must be created on LOCAL (see section 6.1 Periodic Snapshot Tasks<br \/>\nfor instructions on how to do this)<br \/>\n\u2022 both systems configured for SSH key based authentication<br \/>\n6.2.1 Configuring SSH Key Based Authentication<br \/>\nIn order to setup SSH key based authentication, you will need to temporarily use SSH password based<br \/>\nauthentication so that you can copy the SSH key information to the required locations. The<br \/>\nconfiguration steps are as follows:<br \/>\n1. If you haven&#8217;t already, create on LOCAL a user account which will be used to ssh into LOCAL.<br \/>\nMake the user a member of the wheel group and set their home directory to the full path of the ZFS<br \/>\nvolume. In the example shown in Figure 6.2b, a user account named user1 has a home directory<br \/>\npointing to the ZFS volume named \/mnt\/data2. Create a similar user on REMOTE.<br \/>\n2. If you haven&#8217;t done so already, set the root password in Account -&gt; Users -&gt; View All Users on both<br \/>\nsystems.<br \/>\n3. Use an SSH client (e.g. the ssh command from a command prompt or PuTTY from a Windows<br \/>\nsystem) to login into LOCAL. In the example shown in Figure 6.2b, user1 is using the ssh command to<br \/>\nlogin to the LOCAL FreeNAS\u2122 system with an IP address of 192.168.2.4. Once logged in, copy the<br \/>\ncontents of \/data\/ssh\/replication.pub to a temporary file. This is the public key of LOCAL. To get the<br \/>\npublic key of REMOTE, issue the ssh-keyscan command with the IP address of REMOTE and add that<br \/>\npublic key as a separate line in your temporary file. In the example shown in Figure 6.2c, the REMOTE<br \/>\nIP address is 192.168.2.2.<br \/>\nNOTE: make sure that each key is pasted as one long line.<br \/>\nFreeNAS\u2122 8.0.3 Guide Page 66 of 164<br \/>\nFigure 6.2b: Create a User<br \/>\nFigure 6.2c: Copying the Replication Keys for LOCAL and REMOTE<br \/>\nFreeNAS\u2122 8.0.3 Guide Page 67 of 164<br \/>\n4. Now you will create an authorized_keys file on each system and paste the opposite system&#8217;s key to<br \/>\nthat file. In Example 6.2a, user1 is still logged into LOCAL. Once the REMOTE key is copied into<br \/>\nLOCAL&#8217;s authorized_keys, user1 logs into REMOTE as user2 and creates an authorized_keys file<br \/>\ncontaining the LOCAL key. When finished, the user types exit four times to leave both ssh sessions.<br \/>\nNOTE: when creating the authorized_keys file, make sure that the correct key is pasted as one long<br \/>\nline.<br \/>\nExample 6.2a: Creating the authorized_keys Files<br \/>\nmount -uw \/<br \/>\nmkdir \u2013p \/root\/.ssh\/<br \/>\nchmod 700 \/root\/.ssh<br \/>\nnano \/root\/.ssh\/authorized_keys<br \/>\n192.168.2.2 ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCrF1\/MRk3I1wJm4708l<br \/>\nyugDmGd6JFeJonoeON3wCRVxmtUh7nKp1PXnagnbVFmq7aXIBs7Jd\/GdOWjousAIT9G3qcn\/tUf6A+AqcMk<br \/>\n4cl9BURDX6xMSotmAn4m6YuKQffACv86eIo69Xn7xVKVD8s8c7OKO\/XnstPrL0NPBmpfHa04P5NZoe2C06C<br \/>\nJKQCzKJGNJ\/pmlbE0CogVHf5AJT1NtEQkD78a7SqrQK30MlkIzjCVD3WvchWJp8hr3TCs5F1Tc1ay5EU2Zv<br \/>\nLwR8txaswuLyG33DKcE2SVRG5t+LD0S7wuvATTWrzSOQTpeZoiZDw7Qf3kkjpmt14UFnLsCjs9<br \/>\nssh user2@192.168.2.2<br \/>\nsu<br \/>\nmkdir \u2013p \/root\/.ssh\/<br \/>\nchmod 700 \/root\/.ssh<br \/>\nnano \/root\/.ssh\/authorized_keys<br \/>\nssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCwt6Fb1JthH6xPtmN5SzlqEjggZCH\/<br \/>\nwwWQsYKEHO\/vdwXLri8J+Pn\/oPMM3GlRRbYhB+vpnAxrTt1uiLREtenpQhSb56RIWyyZ6m1FrXs+QSaDKCp<br \/>\nM6+XRrQtLPd+VSoGDWsz6tK8mV7vpfk3X77w1Y0PZDZyOj1aZnEE447WtEtCAgYcaH3+4G6mWzoK8Rf7yXa<br \/>\nkNV+RO8Vu+40+H5qoqTAWk+rNIsZYcl8p7JiqxXLPGj6lPr5p9jqYsWqE23bwmpGrOZF1J9rd+hKv9jfxqW<br \/>\n86Am\/izWASYfy6qEIp4haYCo5oo09pqoOk17bDRNbPvFZ58aYadjvaap8YB5z0t Key for replication<br \/>\nexit<br \/>\nexit (exits superuser and then REMOTE)<br \/>\nexit<br \/>\nexit (exits superuser and then LOCAL)<br \/>\n6.2.2 Creating the Replication Task<br \/>\nYou are now ready to create a replication task. On LOCAL, click Storage -&gt; Replication Tasks -&gt; Add<br \/>\nReplication Task. In the example shown in Figure 6.2d, the LOCAL ZFS volume is \/mnt\/data2, the<br \/>\nREMOTE ZFS filesystem is data, and the REMOTE key has been pasted into the box. Note that for the<br \/>\nremote ZFS filesystem, \/mnt\/ is assumed and should not be included in the path.<br \/>\nFreeNAS\u2122 8.0.3 Guide Page 68 of 164<br \/>\nFigure 6.2d: Adding a Replication Task<br \/>\nTable 6.2a summarizes the options in the Add Replication Task screen.<br \/>\nTable 6.2a: Adding a Replication Task<br \/>\nSetting Value Description<br \/>\nMount Point drop-down<br \/>\nmenu the ZFS volume on LOCAL containing the snapshots to be replicated<br \/>\nRemote ZFS<br \/>\nfilesystem string the ZFS volume on REMOTE that will store the snapshots<br \/>\nRecursively<br \/>\nreplicate checkbox if checked will replicate child datasets and replace previous dataset<br \/>\non remote system<br \/>\nInitialize remote<br \/>\nside checkbox does a reset once operation which destroys the replication data on the<br \/>\nremote target and then reverts to normal operation<br \/>\nRemote<br \/>\nhostname string IP address or DNS name of remote system<br \/>\nRemote hostkey string mandatory; paste the public key of the remote system (this will be<br \/>\nthe second line in the temporary file you created above)<br \/>\n6.2.3 Testing Replication<br \/>\nIf you have followed all of the steps above and have LOCAL snapshots that are not replicating to<br \/>\nREMOTE, try deleting all snapshots on LOCAL except for the most recent one. In Storage -&gt; Periodic<br \/>\nSnapshot Tasks -&gt; View All Snapshot Tasks -&gt; ZFS Snapshots check the box next to every snapshot<br \/>\nexcept for the last one (the one with 3 icons instead of 2), then click the global Destroy button at the<br \/>\nFreeNAS\u2122 8.0.3 Guide Page 69 of 164<br \/>\nbottom of the screen.<br \/>\nOnce you have only one snapshot, ssh into LOCAL and use the zfs send command. In the following<br \/>\nexample, the ZFS snapshot on LOCAL is on ZFS volume data2 and is named auto-20110922.1753-2h,<br \/>\nthe IP address of REMOTE is 192.168.2.2, and the ZFS volume on REMOTE is data. Note that the @<br \/>\nis used to separate the volume\/dataset name from the snapshot name.<br \/>\nzfs send data2@auto-20110922.1753-2h | ssh -i \/data\/ssh\/replication 192.168.2.2 \\<br \/>\nzfs receive data@auto-20110922.1753-2h<br \/>\nNOTE: if this command fails with the error &#8220;cannot receive new filesystem stream: destination has<br \/>\nsnapshots&#8221;, check the box &#8220;initialize remote side for once&#8221; in the replication task and try again. If the<br \/>\nzfs send command still fails, you will need to ssh into REMOTE and use the zfs destroy -R<br \/>\nvolume_name@snapshot_name command to delete the stuck snapshot.<br \/>\nYou can confirm that the replication was successful by going to Storage -&gt; Periodic Snapshot Tasks -&gt;<br \/>\nView All Periodic Snapshot Tasks -&gt; ZFS Snapshots on REMOTE. Figure 6.2e shows the successful<br \/>\nreplication for our example:<br \/>\nFigure 6.2e: Viewing the Replicated Snapshot From REMOTE<br \/>\n6.2.4 Troubleshooting<br \/>\nIf replication is not working, check to see if SSH is working properly. ssh into LOCAL and try to ssh<br \/>\ninto REMOTE. Replace hostname_or_ip with the value for REMOTE:<br \/>\nssh -i \/data\/ssh\/replication hostname_or_ip<br \/>\nThis command should not ask for a password. If it asks for a password, key based authentication is not<br \/>\nworking. Check that the correct keys have been copied into the authorized_key files as described in<br \/>\nsection 6.2.1 Configuring SSH Key Based Authentication.<br \/>\nIf SSH is working correctly, check if the snapshot has replicated. ssh into REMOTE and run the<br \/>\ncommand:<br \/>\nzfs list -t snapshot<br \/>\nIt should list the snapshots replicated from LOCAL. If it does not, run the zfs send command as<br \/>\nFreeNAS\u2122 8.0.3 Guide Page 70 of 164<br \/>\ndemonstrated in section 6.2.3 Testing Replication.<br \/>\nAfter successfully transmitting the snapshot, recheck again after the time period between snapshots<br \/>\nlapses to see if the next snapshot successfully transmitted. If it is still not working, you can manually<br \/>\nsend an incremental backup of the last snapshot that is on both systems to the current one with this<br \/>\ncommand:<br \/>\nzfs send data2@auto-20110922.1753-2h | ssh -i \/data\/ssh\/replication 192.168.2.2 \\<br \/>\nzfs receive data@auto-20110922.1753-2h<br \/>\n6.3 Volumes<br \/>\nSince the storage disks are separate from the FreeNAS\u2122 operating system, you don&#8217;t actually have a<br \/>\nNAS (network-attached storage) system until you configure your disks into at least one volume.<br \/>\nFreeNAS\u2122 supports the creation of both UFS and ZFS volumes; however, ZFS volumes are<br \/>\nrecommended to get the most out of your FreeNAS\u2122 system. This section demonstrates how to<br \/>\nperform the following actions:<br \/>\n\u2022 If your disks are using an existing UFS or ZFS software RAID, see section 6.3.1 Auto<br \/>\nImporting Volumes.<br \/>\n\u2022 If your disks are already formatted with UFS, NTFS, MSDOS, or EXT2, see section 6.3.2<br \/>\nImporting Volumes.<br \/>\n\u2022 If you wish to format your disks into a UFS volume or ZFS pool, see section 6.3.3 Creating<br \/>\nVolumes.<br \/>\n\u2022 If you wish to grow the size of an existing ZFS pool, see section 6.3.4 Adding to an Existing<br \/>\nVolume.<br \/>\n\u2022 If you wish to divide an existing ZFS pool into datasets, see section 6.3.5 Creating ZFS<br \/>\nDatasets.<br \/>\n\u2022 If you wish to create a ZFS block device to use as an iSCSI device extent, see section 6.3.6<br \/>\nCreating a zvol.<br \/>\n\u2022 If you wish to control user\/group access to an existing UFS volume, ZFS pool, or ZFS dataset,<br \/>\nsee section 6.3.7 Setting Permissions .<br \/>\n6.3.1 Auto Importing Volumes<br \/>\nIf you click Storage -&gt; Volumes -&gt; Auto Import Volume, you can configure FreeNAS\u2122 to use an<br \/>\nexisting software UFS or ZFS RAID volume. Supported volumes are UFS GEOM stripes (RAID0),<br \/>\nUFS GEOM mirrors (RAID1), UFS GEOM RAID3, as well as existing ZFS pools. UFS RAID5 is not<br \/>\nsupported as it is an unmaintained summer of code project which was never integrated into FreeBSD.<br \/>\nNOTE: since .7 versions of FreeNAS\u2122 use an earlier version of ZFS, importing ZFS pools into<br \/>\nFreeNAS\u2122 8 is a one-way street. In other words, once you import a ZFS volume, you can not revert<br \/>\nback to a previous version of ZFS. FreeNAS\u2122 8.0.3 does not currently support deduplication,<br \/>\ncompatibility with Nexenta pools, or Linux fuse-zfs.<br \/>\nf you have an existing software RAID volume, you will be able to select it from the drop-down menu.<br \/>\nFreeNAS\u2122 8.0.3 Guide Page 71 of 164<br \/>\nIn the example shown in Figure 6.3a, the FreeNAS\u2122 system has an existing ZFS RAIDZ1 named<br \/>\nbackups. Once the volume is selected, click the &#8220;Import Volume&#8221; button.<br \/>\nFigure 6.3a: Importing an Existing RAID Volume<br \/>\nOnce the import is complete you may have to refresh your browser in order for it to appear in the View<br \/>\nAll Volumes list.<br \/>\nNOTE: FreeNAS\u2122 will not import a dirty volume. If your existing volume does not show in the dropdown<br \/>\nmenu, you will need to access the console in order to fsck the volume.<br \/>\n6.3.2 Importing Volumes<br \/>\nThe import volume screen is used to import disks with existing filesystems so that they can be<br \/>\nconfigured for use by FreeNAS\u2122. If you click Import Volume, you&#8217;ll see the screen shown in Figure<br \/>\n6.3b:<br \/>\nFigure 6.3b: Importing a Volume<br \/>\nInput a name for the volume, use the drop-down menu to select the volume that you wish to import,<br \/>\nand select the type of filesystem on the disk. At this time, FreeNAS\u2122 supports the import of disks that<br \/>\nhave been formatted with UFS, NTFS, MSDOS, or EXT2.<br \/>\nBefore importing a disk, be aware of the following caveats:<br \/>\nFreeNAS\u2122 8.0.3 Guide Page 72 of 164<br \/>\n\u2022 FreeNAS\u2122 will not import a dirty filesystem. If a supported filesystem does not show in the<br \/>\ndrop-down menu, you will need to access the console in order to fsck the filesystem.<br \/>\n\u2022 earlier versions of FreeNAS\u2122 8 had a bug that prevented the successful import of NTFS drives.<br \/>\nDon&#8217;t try to import NTFS if you are running a version earlier than FreeNAS\u2122 8.0.1-RC1.<br \/>\n\u2022 due to the current GEOM implementation, FreeNAS\u2122 can not import dynamic NTFS volumes<br \/>\nat this time. A future version of FreeBSD may address this issue.<br \/>\n6.3.3 Creating Volumes<br \/>\nIf you have unformatted disks or wish to overwrite the filesystem (and data) on your disks, use the<br \/>\nCreate Volume screen to format the desired disks as a UFS volume or a ZFS pool.<br \/>\nIf you click on Storage -&gt; Volumes -&gt; Create Volume, you will see a screen similar to the example<br \/>\nshown in Figure 6.3c.<br \/>\nFigure 6.3c: Creating a ZFS Volume<br \/>\nThe options that are available in this screen differ depending upon the filesystem that is selected and<br \/>\nthe number of disks available:<br \/>\n\u2022 if you select one disk, you can only choose to format with UFS or ZFS<br \/>\n\u2022 if you select two disks, you can create a UFS or ZFS mirror or stripe<br \/>\n\u2022 if you select three disks, you can create a UFS or ZFS stripe, a UFS RAID3, or a ZFS RAIDZ1<br \/>\n\u2022 if you select four disks, you can create a UFS or ZFS mirror or stripe, or a ZFS RAIDZ1 or<br \/>\nRAIDZ2<br \/>\nTable 6.3a summarizes the configuration options of this screen.<br \/>\nFreeNAS\u2122 8.0.3 Guide Page 73 of 164<br \/>\nTable 6.3a: Options When Creating a ZFS Volume<br \/>\nSetting Value Description<br \/>\nVolume<br \/>\nname string<br \/>\nup to 9 alphanumeric characters. If an existing volume name is<br \/>\nspecified, the volume being created will be added to the existing<br \/>\nvolume as a stripe. This allows for complex volumes such as RAID 10,<br \/>\nRAIDZ+0, and RAIDZ2+0. The top level group is implicitly a stripe<br \/>\nand there is no provision to build a mirror of mirrors, a RAIDZ of<br \/>\nmirrors, or a mirror of RAIDZs.<br \/>\nMember<br \/>\ndisks checkboxes select desired number of disks from list of available disks<br \/>\nFilesystem<br \/>\ntype button select either UFS or ZFS<br \/>\nForce 4096<br \/>\nbytes sector<br \/>\nsize<br \/>\ncheckbox<br \/>\nthe system will automatically create the volume with 4K sectors if the<br \/>\nunderlying disk is using Advanced Format. Checking this option creates<br \/>\n4K sector size (instead of 512 bytes) regardless of the underlying<br \/>\nhardware.<br \/>\nZFS extra select for each<br \/>\nmember disk<br \/>\nonly available when select ZFS. Choose from: None, Log, Cache,<br \/>\nSpare. See note below for descriptions of each option.<br \/>\nThe Add Volume button warns that creating a volume destroys all existing data on selected disk(s).<br \/>\nThe ZFS extra options can be used to increase performance. They are as follows:<br \/>\nNone: selected disk(s) will be used for storing data.<br \/>\nLog: selected disk will be dedicated for storing the ZIL (ZFS Intent Log). See the Separate Log<br \/>\nDevices section of the ZFS Best Practices Guide for size recommendations. When two or more log<br \/>\ndevices are specified, FreeNAS\u2122 will mirror them as suggested by the ZFS Best Practices Guide. This<br \/>\nis a prevention measure because losing the ZIL could lead to disastrous results such as making the<br \/>\nentire pool inaccessible.<br \/>\nPutting the ZIL on high speed devices can also improve performance for certain workloads, especially<br \/>\nthose requiring synchronous writes such as NFS clients connecting to FreeNAS\u2122 running on VMWare<br \/>\nESXi. In such cases, a dedicated ZIL will make a big difference in performance. Applications that do<br \/>\nnot do a lot of synchronous writes are less likely to benefit from having dedicated ZIL devices. For<br \/>\nVMWare, if a high speed ZIL device is not an option, using iSCSI instead of NFS is a workaround to<br \/>\nachieve better performance.<br \/>\nCache: selected disk will be dedicated to L2ARC on-disk cache. Typically, one would select a fast<br \/>\ndisk, such as an SSD. See the Separate Cache Devices section of the ZFS Best Practices Guide for size<br \/>\nrecommendations. Losing an L2ARC device has no implications at all, other than read access can slow<br \/>\ndown.<br \/>\nSpare: will create a hot spare that is only used when another disk fails. Hot spares speed up healing in<br \/>\nthe face of hardware failures and are critical for high mean time to data loss (MTTDL) environments.<br \/>\nOne or two spares for a 40-disk pool is a commonly used configuration. Use this option with caution as<br \/>\nthere is a known bug in the current FreeBSD implementation.<br \/>\nFreeNAS\u2122 8.0.3 Guide Page 74 of 164<br \/>\nThe volume creation screen allows for advanced scenarios:<br \/>\n\u2022 to create a mirror (RAID 1): check the 2 disks to go into the mirror from the list of available<br \/>\ndisks<br \/>\n\u2022 to create a striped mirror (RAID 10): create 2 mirrors with the same volume name<br \/>\n\u2022 to add an SSD as hybrid storage: check the box for the device, select ZFS, and choose Cache<br \/>\nfor that device in the ZFS Extra section<br \/>\n\u2022 to add a cache drive which will help read performance when the working set is smaller than<br \/>\nthe cache drive, but larger than the size of RAM available to the system: check the box for the<br \/>\ndevice, select ZFS, and choose Cache for that device in the ZFS Extra section<br \/>\nAn overview of the various RAID levels can be found in section 1 . 1 .6 RAID Overview .<br \/>\n6.3.4 Adding to an Existing Volume<br \/>\nZFS supports the addition of virtual devices (vdevs) to an existing volume (ZFS pool). A RAIDZ1 is an<br \/>\nexample of a vdev. Once a vdev is created, you can not add more drives to that vdev. However, if you<br \/>\nhave an existing RAIDZ1, you can stripe it with a new RAIDZ1 (and its disks). This will increase the<br \/>\noverall size of the pool.<br \/>\nTo combine two vdevs in the graphical administrative interface, go to Storage -&gt; Volumes -&gt; Create<br \/>\nVolume. In the Volume Name section, input the same name as an existing vdev, select the disk(s) that<br \/>\nyou wish to add, the type of RAID (which has to be the same as the existing one), choose ZFS as the<br \/>\nfilesystem, and click Add Volume.<br \/>\n6.3.5 Creating ZFS Datasets<br \/>\nAn existing ZFS volume can be divided into datasets. This allows you to create a share per dataset,<br \/>\nallowing for more granularity on which users have access to which data. A dataset is similar to a folder<br \/>\nin that you can set permissions; it is also similar to a filesystem in that you can set quotas and<br \/>\ncompression.<br \/>\nNOTE: if your goal is to share an entire ZFS volume, you don&#8217;t have to create datasets. If you wish to<br \/>\ndivide up a ZFS volume&#8217;s data into different shares, create a dataset for each share.<br \/>\nIf you click Volumes -&gt; Create ZFS Dataset, you will see the screen shown in Figure 6.3d. Note that<br \/>\nthis menu option is not available until after you have created a ZFS volume.<br \/>\nTable 6.3b summarizes the options available when creating a ZFS dataset.<br \/>\nFreeNAS\u2122 8.0.3 Guide Page 75 of 164<br \/>\nFigure 6.3d: Creating a ZFS Dataset<br \/>\nTable 6.3b: ZFS Dataset Options<br \/>\nSetting Value Description<br \/>\nVolume drop-down<br \/>\nmenu select an existing ZFS volume<br \/>\nDataset Name string mandatory<br \/>\nCompression Level drop-down<br \/>\nmenu<br \/>\nchoose from: inherit, off, lzjb (optimized for performance while<br \/>\nproviding decent data compression), gzip level 6, gzip fastest (level<br \/>\n1), gzip maximum (level 9, best compression but slow); see NOTE<br \/>\nbelow<br \/>\nEnable atime inherit, on,<br \/>\nor off<br \/>\ncontrols whether the access time for files is updated when they are<br \/>\nread. Turning this property off avoids producing write traffic when<br \/>\nreading files and can result in significant performance gains, though<br \/>\nit might confuse mailers and other similar utilities.<br \/>\nQuota for dataset integer default of 0 is off; can specify M (megabyte), G (gigabyte), or T<br \/>\n(terabyte) as in 20G for 20 GB<br \/>\nQuota for dataset<br \/>\nand children integer default of 0 is off; can specify M (megabyte), G (gigabyte), or T<br \/>\n(terabyte) as in 20G for 20 GB<br \/>\nFreeNAS\u2122 8.0.3 Guide Page 76 of 164<br \/>\nSetting Value Description<br \/>\nReserved space for<br \/>\ndataset integer default of 0 is unlimited (besides hardware); can specify M<br \/>\n(megabyte), G (gigabyte), or T (terabyte) as in 20G for 20 GB<br \/>\nReserved space for<br \/>\ndataset and<br \/>\nchildren<br \/>\ninteger default of 0 is unlimited (besides hardware); can specify M<br \/>\n(megabyte), G (gigabyte), or T (terabyte) as in 20G for 20 GB<br \/>\nNOTE on compression: most media (e.g. .mp3, .mp4, .avi) is already compressed, meaning that you&#8217;ll<br \/>\nincrease CPU utilization for no gain if you store these files on a compressed dataset. However, if you<br \/>\nhave raw .wav rips of CDs or .vob rips of DVDs, you&#8217;ll see a performance gain using a compressed<br \/>\ndataset.<br \/>\n6.3.6 Creating a zvol<br \/>\nA zvol (ZFS volume) is a feature of ZFS that creates a device block over ZFS. This allows you to use a<br \/>\nzvol as an iSCSI device extent.<br \/>\nTo create a zvol, go to Storage -&gt; Volumes -&gt; Create ZFS Volume which will open the screen shown<br \/>\nin Figure 6.3e. Note that this menu option is not available until after you have created a ZFS volume.<br \/>\nFigure 6.3e: Creating a zvol<br \/>\nThe configuration options are described in Table 6.3c:<br \/>\nTable 6.3c: zvol Configuration Options<br \/>\nSetting Value Description<br \/>\nExisting Volume drop-down<br \/>\nmenu select existing ZFS pool to create the zvol from<br \/>\nZFS Volume<br \/>\nName string input a name for the zvol<br \/>\nSize integer specify size and value such as 10G<br \/>\nFreeNAS\u2122 8.0.3 Guide Page 77 of 164<br \/>\nSetting Value Description<br \/>\nCompression<br \/>\nLevel<br \/>\ndrop-down<br \/>\nmenu<br \/>\ninherit means it will use the same compression level as the existing<br \/>\nzpool used to create the zvol<br \/>\n6.3.7 Setting Permissions<br \/>\nSetting permissions is an important aspect of configuring a share so that FreeNAS\u2122 volumes are<br \/>\naccessible to the clients in your network. The graphical administrative interface is meant to set the<br \/>\ninitial permissions for a volume or dataset in order to make it available as a share. Once a share is<br \/>\navailable, the client operating system can be used to fine-tune the permissions of the files and<br \/>\ndirectories that are created by the client.<br \/>\nSection 7 Sharing contains configuration examples for several types of permission scenarios. This<br \/>\nsection provides an overview of the screen that is used to set those permissions.<br \/>\nOnce a volume or dataset is created, it will be listed by its mount point name in Storage -&gt; View All<br \/>\nVolumes. If you click the Change Permissions icon for a specific volume\/dataset, you will see the<br \/>\nscreen shown in Figure 6.3f. Table 6.3d summarizes the options in this screen.<br \/>\nFigure 6.3f: Changing Permissions on a Volume or Dataset<br \/>\nFreeNAS\u2122 8.0.3 Guide Page 78 of 164<br \/>\nTable 6.3d: Options When Changing Permissions<br \/>\nSetting Value Description<br \/>\nOwner(user) drop-down<br \/>\nmenu<br \/>\nuser to have permission to the volume\/dataset; user must be created first if<br \/>\nit does not already exist<br \/>\nOwner(group) drop-down<br \/>\nmenu<br \/>\ngroup to have permission to the volume\/dataset; group must be created first<br \/>\nif it does not already exist and desired users need to be added as members<br \/>\nof the group<br \/>\nmode checkboxes check the desired permissions for user, group, and other<br \/>\nType of ACL bullet<br \/>\nselection<br \/>\nUnix and Windows ACLs are mutually exclusive, this means that you<br \/>\nmust select the correct type of ACL to match the share; see the NOTE<br \/>\nbelow for more details<br \/>\nrecursive checkbox<br \/>\nif checked, permissions will also apply to subdirectories of the volume or<br \/>\ndataset; if you edit the owner and\/or group at a later time, be sure to check<br \/>\nthis box so that the change is populated to all of the directories<br \/>\nNOTE regarding Type of ACL: when in doubt, or if you have a mix of operating systems in your<br \/>\nnetwork, always select Unix ACLs as all clients understand them. The only time there is a benefit to<br \/>\npicking Windows ACLs is when your network only contains Windows clients and you are configuring<br \/>\nCIFS shares. You will also want to use Windows ACLs if you are configuring the Active Directory<br \/>\nservice for a network that only contains Windows clients. Windows ACLs add a superset of<br \/>\npermissions that augment those provided by Unix ACLs. This means that only Windows clients<br \/>\nunderstand Windows ACLs. While Windows clients can understand Unix ACLs, they won&#8217;t benefit<br \/>\nfrom the extra permissions provided by Active Directory and Windows ACLs when Unix ACLs are<br \/>\nused.<br \/>\n6.3.8 Viewing Volumes<br \/>\nIf you click View All Volumes, you can view and further configure each volume and dataset, as seen in<br \/>\nthe example shown in Figure 6.3g.<br \/>\nThe five icons towards the top of the right frame allow you to: create another volume, create a ZFS<br \/>\ndataset, create a ZFS volume, import a volume, and auto import a volume.<br \/>\nThe seven icons associated with a ZFS volume entry allow you to:<br \/>\n\u2022 Export Volume: this button will perform an export or a delete, depending upon the choice you<br \/>\nmake in the screen that pops up when you click this button. The pop-up message, seen in Figure<br \/>\n6.3h, will show the current used space, provide the check box &#8220;Mark the disks as new (destroy<br \/>\ndata), prompt you to make sure that you want to do this, warn you if the volume has any<br \/>\nassociated shares and ask if you wish to delete them, and the browser will turn red to alert you<br \/>\nthat you are about to do something that will make the data inaccessible. If you do not check that<br \/>\nbox, the volume will be exported. This means that the data is not destroyed and the volume can<br \/>\nbe re-imported at a later time. If you will be moving a ZFS drive from one system to another,<br \/>\nyou should first export it. This operation flushes any unwritten data to disk, writes data to the<br \/>\ndisk indicating that the export was done, and removes all knowledge of the pool from the<br \/>\nsystem. If you do check that box, the volume and all of its data will be destroyed and the<br \/>\nFreeNAS\u2122 8.0.3 Guide Page 79 of 164<br \/>\nunderlying disks will be returned to their raw state.<br \/>\nFigure 6.3g: Viewing Volumes<br \/>\nFigure 6.3h: Exporting or Deleting a Volume<br \/>\n\u2022 Scrub Volume: the ZFS Best Practices Guide recommends that you should run a ZFS scrub on<br \/>\na regular basis to identify data integrity problems. If you have consumer-quality drives, consider<br \/>\na weekly scrubbing schedule. If you have datacenter-quality drives, consider a monthly<br \/>\nscrubbing schedule. You should also scrub a volume prior to replacing any of its drives.<br \/>\nFreeNAS\u2122 8.0.3 Guide Page 80 of 164<br \/>\n\u2022 Edit ZFS Options: allows you to edit the volume&#8217;s compression level, atime setting, dataset<br \/>\nquota, and reserved space for quota.<br \/>\n\u2022 Change Permissions: allows you to edit the volume&#8217;s user, group, Unix rwx permissions, and<br \/>\nto enable recursive permissions on the volume&#8217;s subdirectories.<br \/>\n\u2022 Create Snapshot: allows you to configure the snapshot&#8217;s name and whether or not it is<br \/>\nrecursive before manually creating a snapshot of the ZFS volume.<br \/>\n\u2022 View Disks: will display each disk&#8217;s numeric ID, FreeBSD device name, serial number, UUID,<br \/>\ndescription, transfer mode, HDD standby setting, advanced power management setting, acoustic<br \/>\nlevel, whether S.M.A.R.T is enabled, S.M.A.R.T extra options, and group membership. An Edit<br \/>\nbutton is included should you wish to modify any of these settings. A Replace button is included<br \/>\nshould the disk fail and ZFS needs to be made aware that the disk has been replaced.<br \/>\n\u2022 zpool status: will show the device name and status of each disk in the ZFS pool.<br \/>\nIf you click the View Disks icon \u2192 Edit, you&#8217;ll see the screen shown in Figure 6.3i.<br \/>\nFigure 6.3i: Editing a Volume&#8217;s Disk Options<br \/>\nFreeNAS\u2122 8.0.3 Guide Page 81 of 164<br \/>\nTable 6.3d summarizes the configurable options.<br \/>\nTable 6.3d: Editable Options for a Volume&#8217;s Disk<br \/>\nSetting Value Description<br \/>\nName string read-only value showing FreeBSD device name for disk<br \/>\nIdentifier string<br \/>\nread-only value showing the UUID of the disk (name<br \/>\nmay change with hot-swappable devices but the UUID<br \/>\ndoes not)<br \/>\nDescription string by default will show name of volume<br \/>\nTransfer Mode drop-down<br \/>\nmenu<br \/>\ndefault is auto, can also specify transfer mode used by<br \/>\nhardware<br \/>\nHDD Standby drop-down<br \/>\nmenu<br \/>\nindicates the time of inactivity (in minutes) before the<br \/>\ndrive enters standby mode in order to conserve energy;<br \/>\nthe default is always on<br \/>\nAdvanced Power<br \/>\nManagement<br \/>\ndrop-down<br \/>\nmenu<br \/>\ndefault is disabled, can select a power management<br \/>\nprofile from the menu<br \/>\nAcoustic Level drop-down<br \/>\nmenu<br \/>\ndefault is disabled, can be modified for disks that<br \/>\nunderstand AAM<br \/>\nEnable S.M.A.R.T checkbox on by default<br \/>\nS.M.A.R.T extra options string smartctl(8) options<br \/>\nGroup Membership drop-down<br \/>\nmenu the volume the disk is a member of<br \/>\n6.3.9 Replacing a Failed Drive<br \/>\nIf you are using any form of RAID, you should replace a failed drive as soon as possible to repair the<br \/>\ndegraded state of the RAID. Go to Storage -&gt; Volumes -&gt; View All Volumes. Click the View Disks<br \/>\nbutton of the associated volume which will list all of the disks within the volume. Locate the failed disk<br \/>\nand click its Replace button. Select an unused drive from the drop-down menu in the pop-up menu that<br \/>\nappears, then click the Replace disk button. In the example shown in Figure 6.3j, failed disk ada0 is<br \/>\nbeing replaced by disk ada3.<br \/>\nAs seen in the example shown in Figure 6.3k, once you click the Replace disk button, the failed disk<br \/>\nwill be placed at the bottom of the list and will now have a Detach button. Click Yes to confirm and the<br \/>\ndisk will be removed from the list of member disks.<br \/>\nFreeNAS\u2122 8.0.3 Guide Page 82 of 164<br \/>\nFigure 6.3j: Replacing a Failed Disk<br \/>\nFigure 6.3k: Detaching the Failed Disk<br \/>\nFreeNAS\u2122 8.0.3 Guide Page 83 of 164<br \/>\n6.3.10 Hot Swapping a ZFS Failed Drive<br \/>\nUntil the hot swapping improvements that became available in FreeBSD 9.0 are backported to<br \/>\nFreeNAS\u2122, ZFS will not automatically detach from the underlying GEOM provider. This means that<br \/>\ncare must be taken when hot swapping a drive. The following procedure is recommended:<br \/>\n\u2022 do NOT hot-pull the disk BEFORE making the operating system aware of your intent as this<br \/>\ncould cause more problems<br \/>\n\u2022 from the FreeNAS\u2122 console, use the swapctl -l command to determine the device name of the<br \/>\ndisk&#8217;s swap partition, then run swapoff &lt;devicename&gt; to disable that swap device<br \/>\n\u2022 from the FreeNAS\u2122 console, offline the disk to be removed using the command zpool offline<br \/>\n&lt;poolname&gt; &lt;diskname&gt;<br \/>\nAt this point, the disk can be hot-pulled from the system. Insert the new disk and recreate the same disk<br \/>\nlayout. Make sure that the size of the swap partition is the same as the rest of the disks in the pool.<br \/>\nThe following example creates a swap size of 2GB on disk da11:<br \/>\ngpart create -s gpt da11<br \/>\ngpart add -b 128 -s 4194304 -t freebsd-swap da11<br \/>\ngpart add -t freebsd-zfs da11<br \/>\nNext, issue the following commands to replace the disk, turn swap back on, and to detach from the<br \/>\npool:<br \/>\nzpool replace tank da11p2<br \/>\n\/etc\/rc.d\/swap1 start<br \/>\nzpool detach tank da11p2\/old<br \/>\n7 Sharing Configuration<br \/>\nOnce you have a volume, create at least one share so that the storage is accessible by the other<br \/>\ncomputers in your network. The type of share you create depends upon the operating system(s) running<br \/>\nin your network:<br \/>\nAFP Shares: the Apple File Protocol (AFP) type of share is the best choice if all of your computers run<br \/>\nMac OS X.<br \/>\nCIFS Shares: the Common Internet File System (CIFS) type of share is accessible by Windows, Mac<br \/>\nOS X, Linux, and BSD computers, but it is slower than an NFS share due to the single-threaded design<br \/>\nof Samba. If your network contains only Windows systems, this is a good choice. However, it is a poor<br \/>\nchoice if the CPU on the FreeNAS\u2122 system is limited; if your CPU is maxed out, you need to upgrade<br \/>\nthe CPU or consider another type of share.<br \/>\nNFS Shares: the Network File System (NFS) type of share is accessible by Mac OS X, Linux, BSD,<br \/>\nand the professional\/enterprise versions (not the home editions) of Windows. It is a good choice if there<br \/>\nare many different operating systems in your network. Depending upon the operating system, it may<br \/>\nrequire the installation or configuration of client software on the desktop.<br \/>\nIf you are looking for a solution that allows fast access from any operating system, consider<br \/>\nconfiguring the FTP service instead of a share and use a cross-platform FTP and file manager client<br \/>\napplication such as Filezilla.<br \/>\nFreeNAS\u2122 8.0.3 Guide Page 84 of 164<br \/>\nIf data security is a concern and your network&#8217;s users are familiar with SSH command line utilities or<br \/>\nWinSCP, consider configuring the SSH service instead of a share. It will be slower than unencrypted<br \/>\nFTP due to the overhead of encryption, but the data passing through the network will be encrypted.<br \/>\nNOTE: while the GUI will let you do it, it is a bad idea to share the same volume using multiple types<br \/>\nof access methods. Different types of shares and services use different file locking methods. For<br \/>\nexample, if the same volume is configured to use both NFS and FTP, NFS will lock a file for editing by<br \/>\nan NFS user, but a FTP user can simultaneously edit or delete that file. This will result in lost edits and<br \/>\nconfused users. Another example: if a volume is configured for both AFP and CIFS, Windows users<br \/>\nmay be confused by the extra filenames used by Mac files and delete the ones they don&#8217;t understand;<br \/>\nthis will corrupt the files on the AFP share. In other words, pick the one type of share or service that<br \/>\nmakes the most sense for the types of clients that will access that volume, and configure that volume<br \/>\nfor that one type of share or service.<br \/>\n7.1 AFP Shares<br \/>\nFreeNAS\u2122 uses AFP (Apple Filing Protocol) to share data with Apple systems. Configuring AFP<br \/>\nshares is a multi-step process that requires you to create users and groups, set volume\/dataset<br \/>\npermissions, create your AFP share(s), configure the AFP service in Services -&gt; AFP, then enable the<br \/>\nAFP service in Services -&gt; Control Services. This section shows the configuration screen for creating<br \/>\nthe AFP share and demonstrates how to connect from a Mac OS X client once the AFP service has<br \/>\nstarted.<br \/>\n7.1.1 Creating AFP Shares<br \/>\nIf you click Sharing -&gt; AFP Shares \u2192 Add AFP Share, you will see the screen shown in Figure 7.1a.<br \/>\nTable 7.1a summarizes the available options when creating an AFP share.<br \/>\nFreeNAS\u2122 8.0.3 Guide Page 85 of 164<br \/>\nFigure 7.1a: Creating an AFP Share<br \/>\nTable 7.1a: AFP Share Configuration Options<br \/>\nSetting Value Description<br \/>\nName string<br \/>\nvolume name that will appear in the Mac computer&#8217;s \u201cconnect to<br \/>\nserver\u201d dialogue; limited to 27 characters and can not contain a<br \/>\nperiod<br \/>\nShare Comment string optional<br \/>\nPath browse button browse to the volume\/dataset to share<br \/>\nShare password string recommended; maximum of 8 characters<br \/>\nShare Character<br \/>\nSet string examples include UTF8 and ISO\u20138859-15<br \/>\nAllow List string comma delimited list of allowed users and\/or groups where<br \/>\ngroupname begins with a @<br \/>\nDeny List string comma delimited list of denied users and\/or groups where<br \/>\ngroupname begins with a @<br \/>\nRead-only Access string comma delimited list of users and\/or groups who only have read<br \/>\naccess where groupname begins with a @<br \/>\nFreeNAS\u2122 8.0.3 Guide Page 86 of 164<br \/>\nSetting Value Description<br \/>\nRead-write<br \/>\nAccess string comma delimited list of users and\/or groups who have read and write<br \/>\naccess where groupname begins with a @<br \/>\nDisk Discovery check box enable if there is no DNS record for the FreeNAS\u2122 system<br \/>\nDisk discovery<br \/>\nmode<br \/>\ndrop-down<br \/>\nmenu default or Time Machine (Apple&#8217;s backup utility)<br \/>\nDatabase Path string by default, the CNID databases used by AFP are located the root of<br \/>\nthe volume<br \/>\nCache CNID checkbox<br \/>\nif checked, AFP uses the ID information stored in AppleDouble<br \/>\nheader files to reduce database load; do not set this option if the<br \/>\nvolume is modified by non-AFP clients (e.g. NFS or CIFS)<br \/>\nTranslate CR\/LF checkbox<br \/>\nif enabled, AFP will automatically convert Macintosh line breaks into<br \/>\nUnix ones; some older programs store binary data files as type<br \/>\n&#8220;TEXT&#8221; when saving and switch the file type in a second step and<br \/>\nenabling this checkbox will break those files<br \/>\nWindows File<br \/>\nNames checkbox<br \/>\nforces filename restrictions imposed by older versions of Windows; it<br \/>\nis NOT recommended for volumes mainly used by Macs as it breaks<br \/>\nsome the ability of some applications to save files (e.g. OfficeX)<br \/>\nNo .AppleDouble checkbox<br \/>\nforces AFP to not create .AppleDouble directories when a non-Mac<br \/>\nclient saves a file; you can&#8217;t avoid the creation of .AppleDouble<br \/>\ndirectories when a Mac client writes so try to avoid this option<br \/>\nwhenever possible<br \/>\nZero Device<br \/>\nNumbers checkbox enable when the device number is not constant across a reboot<br \/>\nDisable File ID checkbox if enabled, AFP will not advertise createfileid, resolveid, and deleteid<br \/>\ncalls<br \/>\nDisable :hex<br \/>\nNames checkbox if this box is checked, AFP disables :hex translations for anything<br \/>\nexcept dot files; this option makes the \/ character illegal<br \/>\nProDOS checkbox if checked, provides compatibility with Apple II clients<br \/>\nNo Stat checkbox<br \/>\nif checked, AFP won&#8217;t stat the volume path when enumerating the<br \/>\nvolumes list; useful for automounting or volumes created by a<br \/>\npreexec script<br \/>\nAFP3 UNIX<br \/>\nPrivs checkbox do not enable if network contains Mac OS X 10.4 clients as they do<br \/>\nnot support this<br \/>\n7.1.2 Connecting to AFP Shares As Guest<br \/>\nAFP supports guest logins, meaning that all of your Mac OS X users can access the AFP share without<br \/>\nhaving to first create user accounts on the FreeNAS\u2122 system or a ZFS dataset for each user. In this<br \/>\nconfiguration example, the AFP share has been configured for guest access as follows:<br \/>\nFreeNAS\u2122 8.0.3 Guide Page 87 of 164<br \/>\n1. A ZFS volume named \/mnt\/data has its permissions set to the nobody user account and the<br \/>\nnobody group.<br \/>\n2. An AFP share with a Name of freenas has been created with a Path of \/mnt\/data, a Share<br \/>\nPassword has been set, the Allow List is set to nobody and Read-write Access has been set to<br \/>\nnobody. The Disk Discovery checkbox has been checked and the IP address of the FreeNAS\u2122<br \/>\nsystem is 192.168.2.2.<br \/>\n3. The Services -&gt; AFP has been configured as follows: Server Name is freenas, the Guest Access<br \/>\ncheckbox is checked, nobody is selected in the Guest account drop-down menu, and the Local<br \/>\nAccess checkbox is unchecked.<br \/>\nOnce the AFP service has been started in Services -&gt; Control Services, Mac OS X users can connect to<br \/>\nthe AFP share by clicking Go -&gt; Connect to Server. In the example shown in Figure 7.1b, the user has<br \/>\ninput afp: followed by the IP address of the FreeNAS\u2122 system.<br \/>\nFigure 7.1b: Connect to Server Dialogue<br \/>\nClick the Connect button and a login box, seen in Figure 7.1c, will appear. Since a password has been<br \/>\nconfigured for this AFP share, the user must input the share password (i.e. not their own password).<br \/>\nOnce connected, Finder will automatically open. The name of the AFP share will be displayed in the<br \/>\nSHARED section in the left frame and the contents of the share will be displayed in the right frame. In<br \/>\nthe example shown in Figure 7.1d, \/mnt\/data has one folder named images. The user can now copy<br \/>\nfiles to and from the share.<br \/>\nTo disconnect from the volume, click the eject button in the Shared sidebar.<br \/>\nFreeNAS\u2122 8.0.3 Guide Page 88 of 164<br \/>\nFigure 7.1c: Authenticating to the AFP Share<br \/>\nFigure 7.1d: Viewing the Contents of the Share From a Mac System<br \/>\nFreeNAS\u2122 8.0.3 Guide Page 89 of 164<br \/>\n7.1.3 Using Time Machine<br \/>\nMac OS X includes Time Machine which can be used to schedule automatic backups. In this<br \/>\nconfiguration example, Time Machine will be configured to backup to an AFP share on a FreeNAS\u2122<br \/>\nsystem. To configure the AFP share on the FreeNAS\u2122 system:<br \/>\n1. A ZFS dataset named \/mnt\/data\/backup_user1 with a quota of 60G was created in Storage -&gt;<br \/>\nCreate ZFS Dataset.<br \/>\n2. A user account was created as follows: Username of user1, Primary Group ID was left empty,<br \/>\nHome Directory of \/mnt\/data\/backup_user1, and the Full Name, E-mail, and Password fields<br \/>\nwere set. The Username and Password of the created account match the values on the Mac OS<br \/>\nX system.<br \/>\n3. An AFP share with a Name of backup_user1 has been created with a Path of<br \/>\n\/mnt\/data\/backup_user1, the Allow List is set to user1 and Read-write Access has been set to<br \/>\nuser1. The Disk Discovery checkbox has been checked, the Disk Discovery mode is set to Time<br \/>\nMachine and the IP address of the FreeNAS\u2122 system is 192.168.2.2.<br \/>\n4. Services -&gt; AFP has been configured as follows: Server Name is freenas, the Guest Access<br \/>\ncheckbox is unchecked, and the Local Access checkbox is checked.<br \/>\n5. The AFP service has been started in Services -&gt; Control Services.<br \/>\nTo configure Time Machine on the Mac OS X client, go to System Preferences -&gt; Time Machine which<br \/>\nwill open the screen shown in Figure 7.1e. Click ON and a pop-up menu should show the FreeNAS\u2122<br \/>\nsystem as a backup option. In our example, it is listed as backup_user1 on &#8220;freenas&#8221;. Highlight the<br \/>\nentry representing the FreeNAS\u2122 system and click the Use Backup Disk button. A connection bar will<br \/>\nopen and will prompt you for the user account&#8217;s password&#8211;in this example, the password for the user1<br \/>\naccount.<br \/>\nTime Machine will create a full backup after waiting two minutes. It will then create a one hour<br \/>\nincremental backup for the next 24 hours, and then one backup each day, each week and each month.<br \/>\nSince the oldest backups are deleted when the ZFS dataset becomes full, make sure that the quota size<br \/>\nyou set is sufficient to hold the backups. Note that a default installation of Mac OS X is ~21GB in size.<br \/>\nIf you receive a &#8220;Time Machine could not complete the backup. The backup disk image could not be<br \/>\ncreated (error 45)&#8221; error when backing up to the FreeNAS\u2122 system, you will need to create a<br \/>\nsparsebundle image using these instructions.<br \/>\nFreeNAS\u2122 8.0.3 Guide Page 90 of 164<br \/>\nFigure 7.1e: Configuring Time Machine on Mac OS X Lion<br \/>\n7.2 CIFS Shares<br \/>\nFreeNAS\u2122 uses Samba to share volumes using Microsoft&#8217;s CIFS protocol. CIFS is built into the<br \/>\nWindows and Mac OS X operating systems and most Linux and BSD systems pre-install the Samba<br \/>\nclient (which provides CIFS). If your distro did not, check your distro&#8217;s software repository to install<br \/>\nthe Samba client.<br \/>\nConfiguring CIFS shares is a multi-step process that requires you to set permissions, create CIFS<br \/>\nshare(s), configure the CIFS service in Services -&gt; CIFS, then enable the CIFS service in Services -&gt;<br \/>\nControl Services. If your Windows network has a Windows server running Active Directory, you will<br \/>\nalso need to configure the Active Directory service in Services -&gt; Active Directory. Depending upon<br \/>\nyour authentication requirements, you may also need to create users and groups. This section will<br \/>\ndemonstrate some common configuration scenarios:<br \/>\n\u2022 If you would like an overview of the configurable parameters, see section 7.2.1 Creating CIFS<br \/>\nShares.<br \/>\n\u2022 If you would like an example of how to configure access that does not require authentication,<br \/>\nsee section 7.2.2 Configuring Anonymous Access .<br \/>\n\u2022 If you would like each user to authenticate before accessing the share, see section 7.2.3<br \/>\nFreeNAS\u2122 8.0.3 Guide Page 91 of 164<br \/>\nConfiguring Local User Access.<br \/>\n\u2022 If you are having problems accessing your CIFS share, see Troubleshooting Tips.<br \/>\n7.2.1 Creating CIFS Shares<br \/>\nFigure 7.2a shows the configuration screen that appears when you click Sharing -&gt; CIFS Shares -&gt; Add<br \/>\nCIFS Share. Table 7.2a summarizes the options when creating a CIFS share. The values you use will<br \/>\nvary by configuration example.<br \/>\nIf you wish some files on a shared volume to be hidden and inaccessible to users, put a veto files= line<br \/>\nin the Auxiliary Parameters field. The syntax for this line and some examples can be found here.<br \/>\nIf you have created multiple CIFS shares that contain symbolic links pointing to each other, add the<br \/>\nfollowing lines to Auxiliary Parameters so that CIFS clients can follow the links:<br \/>\nunix extensions = no<br \/>\nfollow symlinks = yes<br \/>\nwide links = yes<br \/>\nFigure 7.2a: Adding a CIFS Share<br \/>\nFreeNAS\u2122 8.0.3 Guide Page 92 of 164<br \/>\nTable 7.2a: Options for a CIFS Share<br \/>\nSetting Value Description<br \/>\nName string mandatory; name of share e.g. Movies<br \/>\nComment string optional<br \/>\nPath browse button select volume\/dataset to share<br \/>\nExport Read Only checkbox prohibits write access to the share<br \/>\nBrowsable to<br \/>\nNetwork Clients checkbox enables Windows clients to browse the shared directory using<br \/>\nWindows Explorer<br \/>\nOwner Group checkbox if left unchecked, the owner&#8217;s group is taken from the logged in<br \/>\nuser of the share<br \/>\nInherit<br \/>\nPermissions checkbox if checked, permissions on new files and directories are inherited<br \/>\nfrom parent directory<br \/>\nExport Recycle<br \/>\nBin checkbox deleted files are moved to a recycle directory instead of being<br \/>\ndeleted<br \/>\nShow Hidden Files checkbox will display hidden files<br \/>\nGuest Account drop-down<br \/>\nmenu account to use for guest access<br \/>\nAllow Guest<br \/>\nAccess checkbox guest user will not be required to login in order to access the share<br \/>\nOnly Allow Guest<br \/>\nAccess checkbox forces guest access<br \/>\nHosts Allow string comma, space, or tab delimited list of allowed hostnames or IP<br \/>\naddresses<br \/>\nHosts Deny string<br \/>\ncomma, space, or tab delimited list of denied hostnames or IP<br \/>\naddresses; allowed hosts take precedence so can use ALL here and<br \/>\nspecify allowed hosts in Hosts Allow<br \/>\nAuxiliary<br \/>\nParameters string add additional smb.conf parameters not covered by other option<br \/>\nfields<br \/>\n7.2.2 Configuring Anonymous Access<br \/>\nIf you would like to share a volume with all of the users in your network without requiring them to<br \/>\ninput a password, you can configure anonymous CIFS sharing. The following steps are needed for this<br \/>\ntype of configuration:<br \/>\n1. Create a volume in Storage -&gt; Volumes -&gt; Create Volume.<br \/>\n2. Create a guest user account in Account -&gt; Users -&gt; Add User. In the screen shown in Figure 7.2b,<br \/>\ninput the username of guest, input the name of the volume you created as the home directory (in this<br \/>\nexample, \/mnt\/shared), input a description in the full name (in this example, cifs anon access), check<br \/>\nthe disable logins box, and click OK to create the account.<br \/>\nFreeNAS\u2122 8.0.3 Guide Page 93 of 164<br \/>\nFigure 7.2b: Creating a Guest Account for Anonymous Access<br \/>\n3. Associate the guest account with the volume in Storage -&gt; Volumes. Click the volume&#8217;s name then<br \/>\nChange Permissions. In the screen shown in Figure 7.2c, select guest as the owner(user) and<br \/>\nowner(group), check the permissions that are appropriate to your network, and check the set<br \/>\npermissions recursively box. If non-Windows systems will be accessing the CIFS share, leave the type<br \/>\nof permissions as Unix. Only change the type of permissions to Windows if the share is only accessed<br \/>\nby Windows systems.<br \/>\n4. Create a CIFS share in Sharing -&gt; CIFS Shares -&gt; Add CIFS Share. In the screen shown in Figure<br \/>\n7.2d, input a name for the share (in this example, windows), input a comment (in this example, anon<br \/>\naccess), browse to the path of the volume (in this example, \/mnt\/shared), select guest as the guest<br \/>\naccount, check the boxes Allow Guest Access and Only Allow Guest Access, input the network address<br \/>\n(in this example 192.168.2.0\/24 will only allow hosts in the address range from 192.168.2.1 to<br \/>\n192.168.2.254), and click OK to create the share. If you have specific hosts on your network that you<br \/>\nwould like to exclude, you can add them in the hosts deny section. You can add a specific IP address<br \/>\n(e.g. 192.168.2.7), one address per line, or specific subnets (for example, 192.168.2.32\/27).<br \/>\n5. Configure the CIFS service in Services -&gt; CIFS. In the screen shown in Figure 7.2e, select<br \/>\nAnonymous as the authentication model, select guest as the guest account, check the boxes Allow<br \/>\nAnonymous Access, Only Allow Anonymous Access, Allow Empty Password, and Enable Home<br \/>\nDirectories, browse to the volume name under home directories, and click OK.<br \/>\nFreeNAS\u2122 8.0.3 Guide Page 94 of 164<br \/>\nFigure 7.2c: Associating the Guest Account with the Volume<br \/>\nFigure 7.2d: Creating the CIFS Share<br \/>\nFreeNAS\u2122 8.0.3 Guide Page 95 of 164<br \/>\n6. Start the CIFS service in Services -&gt; Control Services. Click the click the red OFF button next to<br \/>\nCIFS. After a second or so, it will change to a blue ON , indicating that the service has been enabled.<br \/>\n7. Test the connection. To test from a Windows system, open Explorer, click on Network and you<br \/>\nshould see an icon named FREENAS. Since anonymous access has been configured, you should not be<br \/>\nprompted for a username or password in order to see the share. An example is seen in Figure 7.2f.<br \/>\nIf you click on the FREENAS icon, you can view the CIFS share that you created in step 4.<br \/>\nTo prevent Windows Explorer from hanging when accessing the share, map the share as a network<br \/>\ndrive. To do this, right-click the share and select &#8220;Map network drive&#8230;&#8221; as seen in Figure 7.2g.<br \/>\nFigure 7.2e: Configuring CIFS Service for Anonymous Access<br \/>\nFreeNAS\u2122 8.0.3 Guide Page 96 of 164<br \/>\nFigure 7.2f: Accessing the CIFS Share from a Windows Computer<br \/>\nFigure 7.2g: Mapping the Share as a Network Drive<br \/>\nFreeNAS\u2122 8.0.3 Guide Page 97 of 164<br \/>\nChoose a drive letter from the drop-down menu and click the Finish button as shown in Figure 7.2h.<br \/>\nFigure 7.2h: Selecting the Network Drive Letter<br \/>\n7.2.3 Configuring Local User Access<br \/>\nIf you would like each user to authenticate before accessing the CIFS share, you need to configure local<br \/>\nuser access as follows:<br \/>\n1. Create a user account for each user in Account -&gt; Users -&gt; Add User that matches their username<br \/>\nand password on the client system. In the screen shown in Figure 7.2i, the Username is user1 and the<br \/>\nHome Directory points to the ZFS volume \/mnt\/test1. When setting the username and password, use<br \/>\nvalues that match existing user accounts that will be accessing the CIFS share; for example, use the<br \/>\nexisting Windows login names and passwords. Repeat this process to create a user account for every<br \/>\nuser that will need access to the CIFS share.<br \/>\nFreeNAS\u2122 8.0.3 Guide Page 98 of 164<br \/>\nFigure 7.2i: Creating a User Account<br \/>\n2. Create a group in Account -&gt; Groups -&gt; Add Group. Once the group is created, click its Members<br \/>\nbutton and add the user accounts that you created in step 1. In the example shown in Figure 7.2j, the<br \/>\nuser accounts user1 and user2 are being added to the group windows.<br \/>\n3. Give the group permission to the volume in Storage -&gt; View All Volumes. In the example shown<br \/>\nin Figure 7.2k, the \/mnt\/test1 volume is set to the user nobody, the group windows, and the write<br \/>\ncheckbox for Group has been checked as it is off by default. Make sure that you set the permissions on<br \/>\nthe volume that is the home directory for the users that you added to the group.<br \/>\n4. Create a CIFS share in Sharing -&gt; CIFS Shares -&gt; Add CIFS Share. In the example shown in<br \/>\nFigure 7.2l, the Name of the share is backups the Path points to the ZFS volume \/mnt\/test1 and the<br \/>\nBrowsable to Network Clients box is checked.<br \/>\nNOTE: be careful about unchecking the Browsable to Network Clients box. When this box is checked<br \/>\n(the default), other users will see the names of every share that exists using Windows Explorer, but they<br \/>\nwill receive a permissions denied error message if they try to access someone else&#8217;s share. If this box is<br \/>\nunchecked, even the owner of the share won&#8217;t see it or be able to create a drive mapping for the share in<br \/>\nWindows Explorer. They can still access the share from the command line, so this option may be<br \/>\ndesirable in networks where security is a concern and where users are comfortable using the command<br \/>\nline.<br \/>\nFreeNAS\u2122 8.0.3 Guide Page 99 of 164<br \/>\nFigure 7.2j: Create a Group<br \/>\nFigure 7.2k: Give the Group Permissions to the Volume<br \/>\nFreeNAS\u2122 8.0.3 Guide Page 100 of 164<br \/>\nFigure 7.2l: Creating the CIFS Share<br \/>\n5. Configure the CIFS service in Services -&gt; CIFS as follows:<br \/>\n\u2022 to ensure that the user is prompted to authenticate, select Local User as the Authentication<br \/>\nModel<br \/>\n\u2022 change the Workgroup name to that being used on the Windows network; unless it has been<br \/>\nchanged by the administrator, the default workgroup name is WORKGROUP<br \/>\n6. Start the CIFS service in Services -&gt; Control Services. Click the click the red OFF button next to<br \/>\nCIFS. After a second or so, it will change to a blue ON , indicating that the service has been enabled.<br \/>\nNOTE: if you make changes in any of these steps after starting the CIFS service, you should restart the<br \/>\nCIFS service to make sure that the changes are applied.<br \/>\n7. Test the connection. To test from a Windows system, open Explorer, and click on Network. For this<br \/>\nconfiguration example, a system named FREENAS should appear with a share named backups. If you<br \/>\nclick on backups, a Windows Security pop-up screen will prompt for the user&#8217;s username and password.<br \/>\nOnce authenticated the user can copy data to and from the CIFS share.<br \/>\nNOTE: since the share is group writable, any authenticated user can change the data in the share. If<br \/>\nyou wish to setup shares where a group of users have access to some folders but only individuals have<br \/>\naccess to other folders (where all these folders reside on the same volume), you will need to create<br \/>\nthese directories and set their permissions at the console. Instructions for doing so can be found at the<br \/>\nforum post Set Permission to allow users to share a common folder &amp; have private personal folder.<br \/>\nFreeNAS\u2122 8.0.3 Guide Page 101 of 164<br \/>\n7.3 NFS Shares<br \/>\nFreeNAS\u2122 supports the Network File System (NFS) for sharing volumes over a network. Once the<br \/>\nNFS share is configured, clients use the mount command to mount the share. Once mounted, the share<br \/>\nappears as just another directory on the client system. Some Linux distros require the installation of<br \/>\nadditional software in order to mount an NFS share. Windows systems may need to first enable<br \/>\nServices for NFS.<br \/>\nNOTE: Services for NFS is only available in the Ultimate or Enterprise editions of Windows.<br \/>\nConfiguring NFS is a multi-step process that requires you to create NFS share(s), configure NFS in<br \/>\nServices -&gt; NFS, then start NFS in Services -&gt; Control Panel. It does not require you to create users or<br \/>\ngroups as NFS uses IP addresses to determine which systems are allowed to access the NFS share.<br \/>\n7.3.1 Creating NFS Shares<br \/>\nIf you click Sharing -&gt; NFS Shares \u2192 Add NFS Share you&#8217;ll see the screen shown in Figure 7.3a.<br \/>\nTable 7.3a summarizes the options in this screen.<br \/>\nFigure 7.3a: Creating an NFS Share<br \/>\nFreeNAS\u2122 8.0.3 Guide Page 102 of 164<br \/>\nTable 7.3a: NFS Share Options<br \/>\nSetting Value Description<br \/>\nComment string optional<br \/>\nPath browse button select volume\/dataset to share<br \/>\nAuthorized<br \/>\nnetwork string<br \/>\ncomma delimited list of allowed IP addresses and\/or network<br \/>\naddresses in the form 1.2.3.0\/24 where the number after the slash is<br \/>\na CIDR mask; if you need to input network addresses with different<br \/>\nCIDR masks, create multiple shares pointing to the same<br \/>\nvolume\/dataset, one for each mask<br \/>\nAll directories checkbox allows the client to mount at any point within the volume&#8217;s file<br \/>\nsystem<br \/>\nRead only checkbox prohibits writing to the volume<br \/>\nQuiet checkbox<br \/>\ninhibits some syslog diagnostics which can be useful to avoid<br \/>\nannoying error messages for known possible problems; see<br \/>\nexports(5) for examples<br \/>\nMaproot User drop-down menu<br \/>\nif left at N\/A, the root user will not be able to modify files on the<br \/>\nNFS share; if a user is selected, the root user is limited to that user&#8217;s<br \/>\npermissions<br \/>\nMaproot Group drop-down menu if specified, the root user will also be limited to that group&#8217;s<br \/>\npermissions (in addition to the maproot user)<br \/>\nMapall User drop-down menu the specified user (and their permissions) is used by all clients<br \/>\nMapall Group drop-down menu the specified group (and its permissions) is used by all clients<br \/>\nNOTE: the Maproot and Mapall options are exclusive, meaning you can only use one or the other&#8211;the<br \/>\nGUI will not let you use both. If you only wish to restrict the root user&#8217;s permissions, set the Maproot<br \/>\noption. If you wish to restrict the permissions of all users, set the Mapall option.<br \/>\n7.3.2 Sample NFS Share Configuration<br \/>\nBy default the Mapall options shown in Figure 7.3a show as N\/A. This means that when a user<br \/>\nconnects to the NFS share, they connect with the permissions associated with their user account. This is<br \/>\na security risk if a user is able to connect as root as they will have root access to the share.<br \/>\nA better scenario is to do the following:<br \/>\n1. Create a user account that is specifically used for NFS access in Account -&gt; Users -&gt; Add User.<br \/>\nAlternately, use the built-in nobody account.<br \/>\n2. In the volume that is being shared, change the owner and group to the NFS user account and set<br \/>\nthe permissions according to your specifications.<br \/>\n3. Select the NFS user and its associated group in the Mapall User and Mapall Group drop-down<br \/>\nmenus for the share in Sharing -&gt; NFS Shares.<br \/>\nWith this configuration, it does not matter what user account is used to connect to the NFS share, as it<br \/>\nwill be mapped to your NFS user account and will only have the permissions associated with that<br \/>\nFreeNAS\u2122 8.0.3 Guide Page 103 of 164<br \/>\naccount. For example, even if the root user is able to connect, it will not have root access to the share.<br \/>\n7.3.3 Connecting to the NFS Share<br \/>\nIn the following examples, the NFS share has been configured as follows:<br \/>\n1. A ZFS volume named \/mnt\/data has its permissions set to the nobody user account and the<br \/>\nnobody group.<br \/>\n2. A NFS share has been created with a Path of \/mnt\/data, an Authorized Network of<br \/>\n192.168.2.0\/24, and the MapAll User and MapAll Group of nobody. The All Directories<br \/>\ncheckbox has been checked and the IP address of the FreeNAS\u2122 system is 192.168.2.2.<br \/>\n7.3.3.1 From BSD or Linux Clients<br \/>\nTo make this share accessible on a BSD or a Linux system, run the following command as the<br \/>\nsuperuser (or with sudo) from the client system (repeat for each client that needs access to the NFS<br \/>\nshare):<br \/>\nmount 192.168.2.2:\/mnt\/data \/mnt<br \/>\nThis command should return the superuser to the command prompt without any error messages,<br \/>\nindicating that the share was successfully mounted. Users on the client system can now copy files to<br \/>\nand from \/mnt and all files will be owned by nobody:nobody. Any changes to \/mnt will be saved to the<br \/>\nFreeNAS\u2122 system&#8217;s \/mnt\/data ZFS volume. Should you wish to make any changes to the NFS share&#8217;s<br \/>\nsettings or wish to make the share inaccessible, unmount the share first as the superuser:<br \/>\numount \/mnt<br \/>\n7.3.3.2 From Microsoft Clients<br \/>\nEnterprise versions of Windows systems can connect to NFS shares using Services for NFS.<br \/>\nConnecting to NFS shares is often faster than connecting to CIFS shares due to the single-threaded<br \/>\nlimitation of Samba. Instructions for connecting from an Enterprise version of Windows 7 can be found<br \/>\nat Mount Linux NFS Share on Windows 7.<br \/>\nIf your Windows client is running a Home Edition of Windows 7, Nekodrive provides an open source<br \/>\ngraphical NFS client. To use this client, you will need to install:<br \/>\n\u2022 7zip to extract the .z files<br \/>\n\u2022 NFSClient and NFSLibrary from the Nekodrive download page; once downloaded, extract these<br \/>\nfiles using 7zip<br \/>\n\u2022 .NET Framework 4.0<br \/>\nRun the NFSClient executable to start the GUI client. In the example shown in Figure 7.3b, the user<br \/>\nhas connected to the example \/mnt\/data share of the FreeNAS\u2122 system at 192.168.2.2.<br \/>\nFreeNAS\u2122 8.0.3 Guide Page 104 of 164<br \/>\nFigure 7.3b: Using the Nekodrive NFSClient from Windows 7 Home Edition<br \/>\n7.3.3.3 From Mac OS X Clients<br \/>\nTo mount the NFS volume from a Mac OS X client, click on Go -&gt; Connect to Server. In the Server<br \/>\nAddress field, input nfs:\/\/ followed by the IP address of the FreeNAS\u2122 system and the name of the<br \/>\nvolume\/dataset being shared by NFS. The example shown in Figure 7.3c continues with our example of<br \/>\n192.168.2.2:\/mnt\/data. Once connected, Finder will automatically open. The IP address of the<br \/>\nFreeNAS\u2122 system will be displayed in the SHARED section in the left frame and the contents of the<br \/>\nshare will be displayed in the right frame. In the example shown in Figure 7.3d, \/mnt\/data has one<br \/>\nfolder named images. The user can now copy files to and from the share.<br \/>\nFreeNAS\u2122 8.0.3 Guide Page 105 of 164<br \/>\nFigure 7.3c: Mounting the NFS Share from Mac OS X<br \/>\nFigure 7.3d: Viewing the NFS Share in Finder<br \/>\n7.3.4 Troubleshooting<br \/>\nSome NFS clients do not support the NLM (Network Lock Manager) protocol used by NFS. You will<br \/>\nknow that this is the case if the client receives an error that all or part of the file may be locked when a<br \/>\nfile transfer is attempted. To resolve this error, use the option -o nolock when running the mount<br \/>\nFreeNAS\u2122 8.0.3 Guide Page 106 of 164<br \/>\ncommand on the client in order to allow write access to the NFS share.<br \/>\nIf you receive an error about a &#8220;time out giving up&#8221; when trying to mount the share from a Linux<br \/>\nsystem, make sure that the portmapper service is running on the Linux client and start it if it is not. If<br \/>\nportmapper is running and you still receive timeouts, force it to use TCP by including -o tcp in your<br \/>\nmount command.<br \/>\nIf you receive an error &#8220;RPC: Program not registered&#8221;, upgrade to the latest version of FreeNAS\u2122 and<br \/>\nrestart the NFS service after the upgrade in order to clear the NFS cache.<br \/>\n8 Services Configuration<br \/>\nThe Services section of the GUI allows you to configure, start, and stop the various services that ship<br \/>\nwith the FreeNAS\u2122 system. FreeNAS\u2122 supports the following services:<br \/>\n\u2022 AFP<br \/>\n\u2022 Active Directory<br \/>\n\u2022 CIFS<br \/>\n\u2022 Dynamic DNS<br \/>\n\u2022 FTP<br \/>\n\u2022 LDAP<br \/>\n\u2022 NFS<br \/>\n\u2022 S.M.A.R.T .<br \/>\n\u2022 SNMP<br \/>\n\u2022 SSH<br \/>\n\u2022 TFTP<br \/>\n\u2022 UPS<br \/>\n\u2022 iSCSI<br \/>\n\u2022 Rsync<br \/>\nThis section describes the configuration options for each of these services, as well as how to start a<br \/>\nFreeNAS\u2122 service.<br \/>\n8.1 Control Services<br \/>\nThe Control Services screen, shown in Figure 8.1a, allows you to quickly determine which services are<br \/>\ncurrently running, enable\/disable services, and configure services.<br \/>\nFreeNAS\u2122 8.0.3 Guide Page 107 of 164<br \/>\nFigure 8.1a: Control Services<br \/>\nTo enable\/disable a service, click its on\/off icon.<br \/>\nTo configure a service, click the wrench icon associated with the service. The configuration options for<br \/>\neach service are described in the rest of this section.<br \/>\nNOTE: if you are troubleshooting a service, go to System -&gt; Settings -&gt; Advanced and check the box<br \/>\n\u201cShow console messages in the footer (Requires UI reload)\u201d. Once you refresh your browser, the<br \/>\nconsole messages will show at the bottom of the screen. If you click on the console, it will pop-up as a<br \/>\nscrolled window, allowing you to scroll through the output and to copy\/paste messages. Watch these<br \/>\nmessages for errors when you stop and start the problematic service.<br \/>\n8.2 AFP<br \/>\nThe Apple Filing Protocol (AFP) is a network protocol that offers file services for Mac computers.<br \/>\nBefore configuring this service, you should first create your AFP Shares in Sharing -&gt; AFP Shares -&gt;<br \/>\nAdd AFP Share. After configuring this service, go to Services -&gt; Control Panel to start the service.<br \/>\nFreeNAS\u2122 8.0.3 Guide Page 108 of 164<br \/>\nEnabling this service will open the following ports on the FreeNAS\u2122 system:<br \/>\n* TCP 548 (afpd)<br \/>\n* TCP 4799 (cnid_metadata)<br \/>\n* UDP 5353 and a random UDP port (avahi)<br \/>\nFigure 8.2a shows the configuration options which are described in Table 8.2a:<br \/>\nFigure 8.2a: AFP Configuration<br \/>\nTable 8.2a: AFP Configuration Options<br \/>\nSetting Value Description<br \/>\nServer Name string server name that will appear to Mac clients; by default it is<br \/>\nfreenas<br \/>\nGuest Access checkbox if checked, clients will not be prompted to authenticate before<br \/>\naccessing the AFP share<br \/>\nGuest Account drop-down menu select account to use for guest access<br \/>\nLocal Access checkbox restricts access to local network only<br \/>\nMax Connections integer maximum number of simultaneous connections<br \/>\n8.3 Active Directory<br \/>\nActive Directory (AD) is a service for sharing resources in a Windows network. It requires a<br \/>\nconfigured system that is running at least Windows Server 2000. If you wish to share your FreeNAS\u2122<br \/>\nCIFS shares with Windows systems in a network that does not have a Windows server running AD,<br \/>\nenable and configure CIFS instead. If your network does have a Windows server running AD,<br \/>\nconfigure both the Active Directory service and the CIFS service on the FreeNAS\u2122 system so that<br \/>\nFreeNAS\u2122 8.0.3 Guide Page 109 of 164<br \/>\nusers can authenticate to the Windows server and be authorized to access the CIFS shares on the<br \/>\nFreeNAS\u2122 system.<br \/>\nNOTE: many changes and improvements have been made to Active Directory support since the release<br \/>\nof FreeNAS\u2122 8.0.1. If you are not running FreeNAS\u2122 8.0.3-RELEASE, you should upgrade before<br \/>\nattempting Active Directory integration.<br \/>\nBefore configuring AD, make sure that you can resolve the Active Directory domain controller from<br \/>\nthe FreeNAS\u2122 system by pinging its domain name. In order to do so, you may have to first set the<br \/>\nnetwork&#8217;s DNS servers and default gateway from Network -&gt; Global Configuration on the FreeNAS\u2122<br \/>\nsystem.<br \/>\nActive Directory relies on Kerberos, which is a very time sensitive protocol. This means that the time<br \/>\non both the FreeNAS\u2122 system and the Active Directory Domain Controller can not be out of sync by<br \/>\nmore than a few minutes. The best way to ensure that the same time is running on both systems is to<br \/>\nconfigure both systems to:<br \/>\n\u2022 use the same NTP server (set in System -&gt; Settings -&gt; General on the FreeNAS\u2122 system)<br \/>\n\u2022 have the same timezone<br \/>\n\u2022 be set to either localtime or universal time at the BIOS level<br \/>\nOnce you have configured the CIFS and Active Directory services, remember to start them in Services<br \/>\n-&gt; Control Services. It may take a few minutes for the Active Directory information to be populated to<br \/>\nthe FreeNAS\u2122 system. Once populated, the AD users and groups will be available in the drop-down<br \/>\nmenus of the permissions screen of a volume\/dataset.<br \/>\nNOTE: your FreeNAS\u2122 system may not show up in Active Directory until you add a DNS record for<br \/>\nthe FreeNAS\u2122 system on the Windows server.<br \/>\nFigure 8.3a shows the Active Directory Configuration screen and Table 8.3a describes the configurable<br \/>\noptions.<br \/>\nFreeNAS\u2122 8.0.3 Guide Page 110 of 164<br \/>\nFigure 8.3a: Configuring Active Directory<br \/>\nTable 8.3a: Active Directory Configuration Options<br \/>\nSetting Value Description<br \/>\nDomain Controller<br \/>\nName string IP address or hostname of Windows PDC<br \/>\nDomain Name string name of Windows server&#8217;s DNS realm<br \/>\nHost Name string hostname of FreeNAS\u2122 system<br \/>\nWorkgroup Name string name of Windows server&#8217;s workgroup (for older Microsoft<br \/>\nclients)<br \/>\nAdministrator Name string name of the Active Directory Administrator account<br \/>\nAdministrator Password string password for the Active Directory Administrator account<br \/>\nYou can verify which Active Directory users and groups have been imported to the FreeNAS\u2122 system<br \/>\nat the FreeNAS\u2122 command line:<br \/>\nwbinfo -u (to view users)<br \/>\nwbinfo -g(to view groups)<br \/>\nIf no users or groups are listed in the output of those commands, these commands will provide more<br \/>\ntroubleshooting information:<br \/>\ngetent passwd<br \/>\nFreeNAS\u2122 8.0.3 Guide Page 111 of 164<br \/>\ngetent group<br \/>\n8.3.1 Troubleshooting Tips<br \/>\nIf you are running AD in a 2003\/2008 mixed domain, see this forum post for instructions on how to<br \/>\nprevent the secure channel key from becoming corrupted.<br \/>\nIn some large domains, caching user data appears to stall the FreeNAS\u2122 GUI or fails to populate the<br \/>\nuser cache on the PDC. If this occurs in a multi-tiered forest, specify allow trusted domains = no in the<br \/>\nauxiliary parameters field of Sharing -&gt; CIFS Shares.<br \/>\nThe LDAP code uses DNS to determine the location of the domain controllers and global catalog<br \/>\nservers in the network. Use the host -t srv _ldap._tcp.domainname.com command to determine the<br \/>\nnetwork&#8217;s SRV records and, if necessary, change the weight and\/or priority of the SRV record to reflect<br \/>\nthe fastest server. More information about SRV records can be found in the Technet article How DNS<br \/>\nSupport for Active Directory Works.<br \/>\nIf the cache becomes out of sync due to an AD server being taken off and back online, resync the cache<br \/>\nusing System -&gt; Settings -&gt; Advanced -&gt; Rebuild LDAP\/AD Cache.<br \/>\n8.4 CIFS<br \/>\nThe Common Internet File System (CIFS) is a network protocol that offers file services for (typically)<br \/>\nWindows computers. FreeNAS\u2122 uses Samba to provide CIFS capability without the need for a<br \/>\nWindows server in the network. UNIX-like systems that provide a CIFS client can also connect to<br \/>\nCIFS shares. Before configuring this service, you should first create your CIFS Shares in Sharing -&gt;<br \/>\nCIFS Shares -&gt; Add CIFS Share. After configuring this service, go to Services -&gt; Control Panel to start<br \/>\nthe service.<br \/>\nNOTE: after starting the CIFS service, it may take several minutes for the master browser election to<br \/>\noccur and for the FreeNAS\u2122 system to become available in Windows Explorer.<br \/>\nStarting this service will open the following ports on the FreeNAS\u2122 system:<br \/>\n\u2022 TCP 139 (smbd)<br \/>\n\u2022 TCP 445 (smbd)<br \/>\n\u2022 UDP 137 (nmbd)<br \/>\n\u2022 UDP 138 (nmbd)<br \/>\nFigure 8.4a shows the configuration options which are described in Table 8.4a. This configuration<br \/>\nscreen is really a front-end to smb.conf.<br \/>\nFreeNAS\u2122 8.0.3 Guide Page 112 of 164<br \/>\nFigure 8.4a: Configuring CIFS<br \/>\nTable 8.4a: CIFS Configuration Options<br \/>\nSetting Value Description<br \/>\nAuthentication<br \/>\nModel<br \/>\ndrop-down<br \/>\nmenu<br \/>\nanonymous or local user; if select local user, user accounts must<br \/>\nexist on FreeNAS\u2122 system and should match the<br \/>\nusername\/password of Windows accounts needing access to the<br \/>\nshare as the user will be required to authenticate before accessing<br \/>\nthe share<br \/>\nNetBIOS Name string must be lowercase and should be same as hostname<br \/>\nWorkgroup string must match Windows workgroup name; default is WORKGROUP<br \/>\nDescription string optional<br \/>\nDOS Charset drop-down<br \/>\nmenu<br \/>\nthe character set Samba uses when communicating with DOS and<br \/>\nWindows 9x\/Me clients; default is CP437<br \/>\nUNIX Charset drop-down<br \/>\nmenu<br \/>\ndefault is UTF-8, which is fine for most systems and covers all<br \/>\ncharacters in all languages<br \/>\nLog Level drop-down<br \/>\nmenu choices are minimum, normal, full, or debug<br \/>\nFreeNAS\u2122 8.0.3 Guide Page 113 of 164<br \/>\nSetting Value Description<br \/>\nLocal Master checkbox<br \/>\ndetermines whether or not the FreeNAS\u2122 system participates in a<br \/>\nbrowser election; should be disabled when network contains an AD<br \/>\nor LDAP server and is not necessary if Windows Vista\/7 machines<br \/>\nare present<br \/>\nTime Server checkbox determines whether or not the FreeNAS\u2122 system advertises itself<br \/>\nas a time server to Windows clients<br \/>\nGuest Account drop-down<br \/>\nmenu account to be used for guest access<br \/>\nAllow guest access checkbox if checked, the guest account is not prompted to authenticate in<br \/>\norder to access the CIFS share<br \/>\nOnly allow guest<br \/>\naccess checkbox if checked, all access is through the guest account and subject to its<br \/>\npermissions<br \/>\nFile mask integer overrides default file creation mask of 0666 which creates files<br \/>\nwith read and write access for everybody<br \/>\nDirectory mask integer overrides default directory creation mask of 0777 which grants<br \/>\ndirectory read, write and execute access for everybody<br \/>\nLarge RW support checkbox<br \/>\ndetermines whether or not the FreeNAS\u2122 system supports 64k<br \/>\nstreaming read\/write requests introduced with Windows 2000 and<br \/>\nwhich can improve performance by 10% with Windows 2000<br \/>\nclients<br \/>\nSend files with<br \/>\nsendfile(2) checkbox newer Windows versions support the more efficient sendfile system<br \/>\ncall which makes Samba faster<br \/>\nEA Support checkbox enables extended attributes<br \/>\nSupport DOS File<br \/>\nAttributes checkbox allows a user who has write access to a file to modify the<br \/>\npermissions, even if not the owner of the file<br \/>\nAllow Empty<br \/>\nPassword checkbox<br \/>\nif checked, users can just press enter when prompted for a<br \/>\npassword; requires that the username\/password be the same for the<br \/>\nFreeNAS\u2122 user account and the Windows user account<br \/>\nAuxiliary<br \/>\nparameters string smb.conf options not covered elsewhere in this screen; see the<br \/>\nSamba Guide for additional settings<br \/>\nEnable home<br \/>\ndirectories checkbox if checked, a folder with the same name as the user account will be<br \/>\ncreated for each user<br \/>\nEnable home<br \/>\ndirectories browsing checkbox users can browse (but not write to) other users&#8217; home directories<br \/>\nHome directories browse<br \/>\nbutton select volume\/dataset where the home directories will be created<br \/>\nEnable AIO checkbox<br \/>\nenables asynchronous I\/O in FreeNAS\u2122 versions 8.0.3-RELEASE<br \/>\nand higher; if CIFS seems slow, try disabling this setting and\/or<br \/>\ntweaking the minimum AIO read and write sizes<br \/>\nMinimum AIO read integer if set to non-zero value, Samba will read from file asynchronously<br \/>\nFreeNAS\u2122 8.0.3 Guide Page 114 of 164<br \/>\nSetting Value Description<br \/>\nsize when size of request is bigger than this value in bytes<br \/>\nMinimum AIO write<br \/>\nsize integer if set to non-zero value, Samba will write from file asynchronously<br \/>\nwhen size of request is bigger than this value in bytes<br \/>\nZeroconf share<br \/>\ndiscovery checkbox enable if Mac clients will be connecting to the CIFS share<br \/>\nNOTE: beginning with FreeNAS\u2122 versions 8.0.3-RELEASE, changes to CIFS settings and CIFS<br \/>\nshares take effect immediately. For previous versions, changes will not take effect until you manually<br \/>\nstop and start the CIFS service.<br \/>\n8.4.1 Troubleshooting Tips<br \/>\nCompared to other networking protocols, CIFS is not fast. Enabling the following checkboxes may<br \/>\nhelp to increase network throughput: &#8220;Large RW support&#8221;, &#8220;Send files with sendfile(2)&#8221;, and &#8220;Enable<br \/>\nAIO&#8221;. Adjusting the AIO minimum and maximum size settings to better fit your networking<br \/>\ninfrastructure may improve or degrade performance.<br \/>\nSamba&#8217;s &#8220;write cache&#8221; parameter has been reported to improve write performance in some<br \/>\nconfigurations and can be added to the Auxiliary Parameters field. Use an integer value which is a<br \/>\nmultiple of _SC_PAGESIZE (typically 4096) to avoid memory fragmentation. This will increase<br \/>\nSamba&#8217;s memory requirements and should not be used on systems with limited RAM.<br \/>\nIf you wish to increase network performance, read the Samba section on socket options. It indicates<br \/>\nwhich options are available and recommends that you experiment to see which are supported by your<br \/>\nclients and improve your network&#8217;s performance.<br \/>\nWindows automatically caches file sharing information. If you make changes to a CIFS share or to the<br \/>\npermissions of a volume\/dataset being shared by CIFS and are no longer able to access the share, try<br \/>\nlogging out and back into the Windows system.<br \/>\nWhere possible, avoid using a mix of case in filenames as this may cause confusion for Windows users.<br \/>\nRepresenting and resolving filenames with Samba explains this in more detail.<br \/>\n8.5 Dynamic DNS<br \/>\nDynamic DNS (DDNS) is useful if your FreeNAS\u2122 system is connected to an ISP that periodically<br \/>\nchanges the IP address of the system. With dynamic DNS, the system can automatically associate its<br \/>\ncurrent IP address with a domain name, allowing you to access the FreeNAS\u2122 system even if the IP<br \/>\naddress changes. DDNS requires you to register with a DDNS service such as DynDNS.<br \/>\nFigure 8.5a shows the DDNS configuration screen and Table 8.5a summarizes the configuration<br \/>\noptions. The values you need to input will be given to you by the DDNS provider. After configuring<br \/>\nDDNS, don&#8217;t forget to start the DDNS service in Services -&gt; Control Services.<br \/>\nFreeNAS\u2122 8.0.3 Guide Page 115 of 164<br \/>\nFigure 8.5a: Configuring DDNS<br \/>\nTable 8.5a: DDNS Configuration Options<br \/>\nSetting Value Description<br \/>\nProvider drop-down<br \/>\nmenu several providers are supported<br \/>\nDomain name string fully qualified domain name (e.g. yourname.dyndns.org)<br \/>\nUsername string username to logon to the provider and update the record<br \/>\nPassword string password used to logon to the provider and update the record<br \/>\nUpdate period integer in milliseconds; be careful with this setting as the provider may block<br \/>\nyou for abuse if this setting occurs more often than the IP changes<br \/>\nForced update<br \/>\nperiod integer<br \/>\nin seconds so be careful with this setting as the provider may block you<br \/>\nfor abuse; issues a DDNS update request even when the address has not<br \/>\nchanged, so that the service provider knows that the account is still<br \/>\nactive<br \/>\nAuxiliary<br \/>\nparameters string additional parameters passed to the provider during record update<br \/>\nFreeNAS\u2122 8.0.3 Guide Page 116 of 164<br \/>\n8.6 FTP<br \/>\nFreeNAS\u2122 allows you to configure the proftpd FTP server so that users can browse and download data<br \/>\nusing their web browser or FTP client software. The advantage of FTP is that easy-to-use crossplatform<br \/>\nutilities are available to manage uploads to and downloads from the FreeNAS\u2122 system. The<br \/>\ndisadvantage of FTP is that it is considered to be an insecure protocol, meaning that it should not be<br \/>\nused to transfer sensitive files. If you are concerned about sensitive data, see section 8.6.4 Encrypting<br \/>\nFTP.<br \/>\nIn order for FTP to work, you will need to set appropriate permissions on the storage volume, and<br \/>\ndepending upon your configuration needs, you may also need to create users and groups. This section<br \/>\nincludes configuration examples demonstrating some common scenarios.<br \/>\nFigure 8.6a shows the configuration screen for the FTP service:<br \/>\nFigure 8.6a: Configuring FTP<br \/>\nTable 8.6a summarizes the available options when configuring the FTP server:<br \/>\nTable 8.6a: FTP Configuration Options<br \/>\nSetting Value Description<br \/>\nPort integer port to use for connection requests<br \/>\nClients integer maximum number of simultaneous clients<br \/>\nFreeNAS\u2122 8.0.3 Guide Page 117 of 164<br \/>\nSetting Value Description<br \/>\nConnections integer maximum number of connections per IP address where 0<br \/>\nmeans unlimited<br \/>\nLogin Attempts integer maximum number of attempts before client is<br \/>\ndisconnected; ; increase this if users are prone to typos<br \/>\nTimeout integer maximum client idle time in seconds before client is<br \/>\ndisconnected<br \/>\nAllow Root Login checkbox discouraged as increases security risk<br \/>\nAllow Anonymous Login checkbox allows anyone to browse the data<br \/>\nPath browse button root directory of FTP server; must point to the<br \/>\nvolume\/dataset or connections will fail<br \/>\nAllow Local User Login checkbox required if anonymous is disabled<br \/>\nBanner string message users see when access FTP server, if left empty<br \/>\nit will show the version of FTP<br \/>\nFile Permission checkboxes sets umask for newly created files<br \/>\nDirectory Permission checkboxes sets umask for newly created directories<br \/>\nEnable FXP checkbox discouraged as vulnerable to FTP bounce attacks<br \/>\nAllow Transfer Resumption checkbox if transfer is interrupted, server will resume transfer at<br \/>\nlast known point<br \/>\nAlways Chroot checkbox forces users to stay in their home directory (always true<br \/>\nfor anonymous)<br \/>\nRequire IDENT<br \/>\nAuthentication checkbox will result in timeouts if identd is not running on the<br \/>\nclient<br \/>\nRequire Reverse DNS for IP checkbox will result in timeouts if there isn&#8217;t a DNS record for the<br \/>\nclient&#8217;s hostname<br \/>\nMasquerade address string IP address or hostname; use if FTP clients can not<br \/>\nconnect through a NAT device<br \/>\nMinimum passive port integer to be used by clients in PASV mode, default of 0 means<br \/>\nany port above 1023<br \/>\nMaximum passive port integer to be used by clients in PASV mode, default of 0 means<br \/>\nany port above 1023<br \/>\nLocal user upload<br \/>\nbandwidth integer in KB\/s, default of 0 means unlimited<br \/>\nLocal user download<br \/>\nbandwidth integer in KB\/s, default of 0 means unlimited<br \/>\nAnonymous user upload<br \/>\nbandwidth integer in KB\/s, default of 0 means unlimited<br \/>\nAnonymous user download<br \/>\nbandwidth integer in KB\/s, default of 0 means unlimited<br \/>\nEnable SSL\/TLS checkbox enables encrypted connections; you will need to<br \/>\nFreeNAS\u2122 8.0.3 Guide Page 118 of 164<br \/>\nSetting Value Description<br \/>\nconfigure the certificate in System -&gt; Settings \u2192 SSL<br \/>\nAuxiliary parameters string include proftpd(8) parameters not covered elsewhere in<br \/>\nthis screen<br \/>\nThe following example demonstrates the auxiliary parameters that will prevent all users from<br \/>\nperforming the FTP DELETE command:<br \/>\n&lt;Limit DELE&gt;<br \/>\nDenyAll<br \/>\n&lt;\/Limit&gt;<br \/>\n8.6.1 Anonymous FTP<br \/>\nAnonymous FTP may be appropriate for a small network where the FreeNAS\u2122 system is not<br \/>\naccessible from the Internet and everyone in your internal network needs easy access to the stored data.<br \/>\nAnonymous FTP does not require you to create a user account for every user. In addition, passwords<br \/>\nare not required so you don&#8217;t have to manage changed passwords on the FreeNAS\u2122 system.<br \/>\nTo configure anonymous FTP:<br \/>\n1. Give the built-in ftp user account permissions to the volume\/dataset in Storage -&gt; Volume -&gt; View<br \/>\nAll Volumes. Click the Change Permissions button for the volume\/dataset that you wish to share using<br \/>\nFTP. In the screen shown in Figure 8.6b, select the ftp user in the drop-down menu for Owner(user),<br \/>\nselect the ftp group for Owner(group), review that the permissions are appropriate for your network,<br \/>\nkeep the type of ACL as Unix, check the box Set permission recursively, and click the Change button.<br \/>\nNOTE: for FTP, the type of client does not matter when it comes to the type of ACL. This means that<br \/>\nyou always use Unix ACLs, even if Windows clients will be accessing FreeNAS\u2122 via FTP.<br \/>\n2. Configure anonymous FTP in Services -&gt; FTP. In the screen shown in Figure 8.6a:<br \/>\n\u2022 check the box Allow Anonymous Login<br \/>\n\u2022 change the path to the name of the volume\/dataset<br \/>\n3. Start the FTP service in Control Services. Click the red OFF button next to FTP. After a second or<br \/>\nso, it will change to a blue ON , indicating that the service has been enabled.<br \/>\n4. Test the connection from a client using a utility such as Filezilla. In the example shown in Figure<br \/>\n8.6c, the IP address of the FreeNAS\u2122 server is 192.168.1.113, the Username is anonymous, and the<br \/>\nPassword is the email address of the user.<br \/>\nFreeNAS\u2122 8.0.3 Guide Page 119 of 164<br \/>\nFigure 8.6b: Assign ftp User Account Permissions to the Volume<br \/>\nFigure 8.6c: Connecting Using Filezilla<br \/>\n8.6.2 Specified User Access in chroot<br \/>\nIf you require your users to authenticate before accessing the data on the FreeNAS\u2122 system, you will<br \/>\nneed to create a user account for each user. If you create a ZFS dataset for each user, you can chroot<br \/>\neach user so that they are limited to the contents of their own home directory and you can also restrict<br \/>\nthe size of that home directory using a ZFS quota. To configure this scenario:<br \/>\n1. Create a ZFS dataset for each user in Storage -&gt; Create ZFS Dataset. In the example shown in<br \/>\nFigure 8.6d, a ZFS dataset named user1 has been created with a ZFS quota of 20GB. In later steps, we<br \/>\nwill create a user named user1 to associate with the dataset. Repeat this process to create a dataset for<br \/>\nFreeNAS\u2122 8.0.3 Guide Page 120 of 164<br \/>\nevery user that will need access to the FTP service.<br \/>\nFigure 8.6d: Create a ZFS Dataset with a Quota<br \/>\n2. Create a user account for each user in Account -&gt; Users -&gt; Add User. In the screen shown in<br \/>\nFigure 8.6e, input a Username for the user (in this example, user1), change the Home Directory to the<br \/>\nname of an existing dataset (in our example, the dataset named \/mnt\/test1\/user1), input a description<br \/>\nunder Full Name, input the user&#8217;s email address, input and confirm the user&#8217;s password, and click the<br \/>\nOK button. Repeat this process to create a user account for every user that will need access to the FTP<br \/>\nservice, making sure to assign each user their own dataset.<br \/>\n3. Set the permissions for each dataset in Storage -&gt; Volume -&gt; View All Volumes. This is how you<br \/>\nassociate a user account with a dataset and set the desired permissions for that user. Click the Change<br \/>\nPermissions button for a dataset that you specified as the Home Directory when you created a user<br \/>\naccount. In the screen shown in Figure 8.6f, select the user in the drop-down menu for Owner(user) and<br \/>\nOwner(group) (in this example, user1), keep the type of ACL as Unix, review the read and write<br \/>\npermissions to see if they are appropriate to that user, check the box Set permission recursively, and<br \/>\nclick the Change button.<br \/>\nNOTE: for FTP, the type of client does not matter when it comes to the type of ACL. This means that<br \/>\nyou always use Unix ACLs, even if Windows clients will be accessing FreeNAS\u2122 via FTP.<br \/>\nFreeNAS\u2122 8.0.3 Guide Page 121 of 164<br \/>\nFigure 8.6e: Creating a User Account<br \/>\nFigure 8.6f: Setting the Dataset&#8217;s Permissions<br \/>\nFreeNAS\u2122 8.0.3 Guide Page 122 of 164<br \/>\n4. Configure FTP in Services -&gt; FTP. In the screen shown in Figure 8.6a:<br \/>\n\u2022 make sure the boxes for Allow Anonymous Login and Allow Root Login are unchecked<br \/>\n\u2022 check the box Allow Local User Login<br \/>\n\u2022 check the box Always Chroot<br \/>\n5. Start the FTP service in Control Services. Click the red OFF button next to FTP. After a second or<br \/>\nso, it will change to a blue ON , indicating that the service has been enabled.<br \/>\n6. Test the connection from a client using a utility such as Filezilla. This time in the example shown<br \/>\nin Figure 8.6d, use the IP address of the FreeNAS\u2122 system, the Username of a user that has been<br \/>\nassociated with a dataset, and the Password for that user.<br \/>\n8.6.3 Encrypting FTP<br \/>\nDuring installation, an RSA certificate and key are auto-generated for you. You can view these or<br \/>\ncut\/paste your own signed certificate and key in System -&gt; Settings -&gt; SSL. To configure any FTP<br \/>\nscenario to use encrypted connections:<br \/>\n1. Enable SSL\/TLS in Services -&gt; FTP. Check the box Enable SSL\/TLS. Once you press OK, proftpd<br \/>\nwill automatically restart and be configured to use the certificate stored in the SSL tab.<br \/>\n2. Specify secure FTP when accessing the FreeNAS\u2122 system. For example, in Filezilla input<br \/>\nftps:\/\/IP_address (for an implicit connection) or ftpes:\/\/IP_address (for an explicit connection) as the<br \/>\nHost when connecting. The first time you connect, you should be presented with the certificate of the<br \/>\nFreeNAS\u2122 system. Click OK to accept the certificate and negotiate an encrypted connection.<br \/>\n8.6.4 Troubleshooting<br \/>\nA very common issue is that proftpd won&#8217;t start if it can&#8217;t resolve the system&#8217;s hostname to an IP via<br \/>\nDNS. To see if the FTP service is running, go to the console shell (or a command prompt in an SSH<br \/>\nsession) and issue the command:<br \/>\nsockstat -4p 21<br \/>\nIf there is nothing listening on port 21, proftpd isn&#8217;t running. To see the error message that occurs when<br \/>\nFreeNAS\u2122 tries to start the FTP service, go to System -&gt; Settings -&gt; Advanced and check the box<br \/>\n&#8220;Show console messages in the footer (Requires UI reload)&#8221;. Refresh your browser and the console<br \/>\nmessages should display at the bottom of your screen.<br \/>\nNext, go to Services -&gt; Control Services and switch the FTP service off then back on in the GUI. Watch<br \/>\nthe console messages for errors.<br \/>\nIf the error refers to DNS, either create an entry in your local DNS server with the FreeNAS\u2122 system&#8217;s<br \/>\nhostname and IP address, or make an entry containing that information in \/etc\/hosts on the FreeNAS\u2122<br \/>\nserver.<br \/>\nFreeNAS\u2122 8.0.3 Guide Page 123 of 164<br \/>\n8.7 LDAP<br \/>\nFreeNAS\u2122 includes an OpenLDAP client for accessing information from an LDAP server. An LDAP<br \/>\nserver provides directory services for finding network resources such as users and their associated<br \/>\npermissions. Examples of LDAP servers include Microsoft Server (2000 and newer), Mac OS X<br \/>\nServer, Novell eDirectory, and OpenLDAP running on a BSD or Linux system. If an LDAP server is<br \/>\nrunning on your network, you should configure the FreeNAS\u2122 LDAP service so that the network&#8217;s<br \/>\nusers can authenticate to the LDAP server and thus be provided authorized access to the data stored on<br \/>\nthe FreeNAS\u2122 system.<br \/>\nFigure 8.7a shows the LDAP Configuration screen that is seen when you click Services -&gt; LDAP.<br \/>\nFigure 8.7a: Configuring LDAP<br \/>\nTable 8.7a summarizes the available configuration options:<br \/>\nTable 8.7a: LDAP Configuration Options<br \/>\nSetting Value Description<br \/>\nHostname hostname or IP<br \/>\naddress of LDAP server<br \/>\nBase DN integer top level of the LDAP directory tree to be used when searching for<br \/>\nresources<br \/>\nFreeNAS\u2122 8.0.3 Guide Page 124 of 164<br \/>\nSetting Value Description<br \/>\nAllow<br \/>\nAnonymous<br \/>\nBinding<br \/>\ncheckbox instructs LDAP server to not provide authentication and to allow<br \/>\nread\/write access to any client<br \/>\nRoot bind DN string<br \/>\nused to bind with the LDAP server for administrative write access<br \/>\nto the LDAP directory to change some attributes of an LDAP entry,<br \/>\nsuch as a user&#8217;s password<br \/>\nRoot bind<br \/>\npassword string used for administrative write access on the LDAP server<br \/>\nPassword<br \/>\nEncryption<br \/>\ndrop-down<br \/>\nmenu<br \/>\nselect a type supported by the LDAP server, choices are: clear<br \/>\n(unencrypted), crypt, md5, nds, racf, ad, exop<br \/>\nUser Suffix string optional, can be added to name when user account added to LDAP<br \/>\ndirectory (e.g. dept. or company name)<br \/>\nGroup Suffix string optional, can be added to name when group added to LDAP<br \/>\ndirectory (e.g. dept. or company name)<br \/>\nPassword Suffix string optional, can be added to password when password added to LDAP<br \/>\ndirectory<br \/>\nMachine Suffix optional can be added to name when system added to LDAP directory (e.g.<br \/>\nserver, accounting)<br \/>\nEncryption Mode drop-down<br \/>\nmenu choices are Off, SSL, or TLS<br \/>\nSelf signed<br \/>\ncertificate string<br \/>\nused to verify the certificate of the LDAP server if SSL<br \/>\nconnections are used; paste the output of the command openssl<br \/>\ns_client -connect server:port -showcerts<br \/>\nAuxiliary<br \/>\nParameters string Ldap.conf(5) options, one per line, not covered by other options in<br \/>\nthis screen<br \/>\nNOTE: FreeNAS\u2122 automatically appends the root DN. This means that you should not include the<br \/>\nscope and root DN when inputting the user, group, password, and machine suffixes.<br \/>\n8.8 NFS<br \/>\nNetwork File System (NFS) is a protocol for sharing files on a network. Before configuring this<br \/>\nservice, you should first create your NFS Shares in Sharing -&gt; NFS Shares -&gt; Add NFS Share. After<br \/>\nconfiguring this service, go to Services -&gt; Control Panel to start the service.<br \/>\nStarting this service will open the following ports on the FreeNAS\u2122 system:<br \/>\n\u2022 TCP and UDP 111 (rpcbind)<br \/>\n\u2022 TCP 2049 (nfsd)<br \/>\nAdditionally, mountd and rpcbind will each bind to a randomly available UDP port. Figure 8.8a shows<br \/>\nthe configuration screen and Table 8.8a summarizes the configuration options for the NFS service.<br \/>\nFreeNAS\u2122 8.0.3 Guide Page 125 of 164<br \/>\nFigure 8.8a: Configuring NFS<br \/>\nTable 8.8a: NFS Configuration Options<br \/>\nSetting Value Description<br \/>\nNumber of servers integer<br \/>\ncan not exceed number of CPUs (run sysctl -n kern.smp.cpus at the<br \/>\nFreeNAS\u2122 console shell to determine the maximum number for that<br \/>\nsystem)<br \/>\nAsynchronous mode checkbox speeds up data access but may result in corruption if a transfer is<br \/>\ninterrupted<br \/>\n8.9 S.M.A.R.T<br \/>\nFreeNAS\u2122 uses the smartd(8) service to monitor disk S.M.A.R.T. data for signs of problems. To fully<br \/>\nconfigure S.M.A.R.T. you need to:<br \/>\n\u2022 configure when to run the S.M.A.R.T tests in System -&gt; S.M.A.R.T Tests -&gt; Add S.M.A.R.T.<br \/>\nTest<br \/>\n\u2022 enable S.M.A.R.T. for each disk member of a volume in Volumes -&gt; View All Volumes<br \/>\n\u2022 check the configuration of the S.M.A.R.T service in Services -&gt; S.M.A.R.T.<br \/>\n\u2022 start the S.M.A.R.T. service in Services -&gt; Control Services<br \/>\nFigure 8.9a shows the configuration screen that appears when you click Services -&gt; S.M.A.R.T.<br \/>\nNOTE: smartd will wake up at every Check Interval you configure in Figure 8.9a. It will check the<br \/>\ntimes you configured in your tests (described in Figure 4.6a) to see if any tests should be run. Since the<br \/>\nsmallest time increment for a test is an hour (60 minutes), it usually does not make sense to set a check<br \/>\ninterval value higher than 60 minutes. For example, if you set the check interval for 120 minutes and<br \/>\nthe smart test to every hour, the test will only be run every 2 hours since the daemon only wakes up<br \/>\nevery 2 hours.<br \/>\nTable 8.9a summarizes the options in the S.M.A.R.T Configuration screen.<br \/>\nFreeNAS\u2122 8.0.3 Guide Page 126 of 164<br \/>\nFigure 8.9a: S.M.A.R.T Configuration Options<br \/>\nTable 8.9a: S.M.A.R.T Configuration Options<br \/>\nSetting Value Description<br \/>\nCheck interval integer in minutes, how often to wake up smartd to check to see if any<br \/>\ntests have been configured to run<br \/>\nPower mode drop-down menu can override that the configured test is not performed depending<br \/>\nupon the power mode; choices are: never, sleep, standby, or idle<br \/>\nDifference integer in degrees<br \/>\nCelsius<br \/>\ndefault of 0 disables this check, otherwise reports if the<br \/>\ntemperature of a driver has changed by N degrees Celsius since<br \/>\nlast report<br \/>\nInformal integer in degrees<br \/>\nCelsius<br \/>\ndefault of 0 disables this check, otherwise will message with a log<br \/>\nlevel of LOG_INFO if the temperature is higher than N degrees<br \/>\nCelsius<br \/>\nCritical integer in degrees<br \/>\nCelsius<br \/>\ndefault of 0 disables this check, otherwise will message with a log<br \/>\nlevel of LOG_CRIT and send an email if the temperature is<br \/>\nhigher than N degrees Celsius<br \/>\nEmail to report string email address of person to receive S.M.A.R.T alert; separate<br \/>\nmultiple email recipients with a comma and no space<br \/>\n8.10 SNMP<br \/>\nSNMP (Simple Network Management Protocol) is a protocol used to monitor network-attached devices<br \/>\nfor conditions that warrant administrative attention. FreeNAS\u2122 can be configured as a bsnmpd(8)<br \/>\nserver where bsnmp is FreeBSD&#8217;s simple and extensible SNMP daemon. If you enable SNMP, the<br \/>\nfollowing port will be enabled on the FreeNAS\u2122 system:<br \/>\nFreeNAS\u2122 8.0.3 Guide Page 127 of 164<br \/>\n\u2022 UDP 161 (bsnmpd listens here for SNMP requests)<br \/>\nFigure 8.10a shows the SNMP configuration screen and Table 8.10a summarizes the configuration<br \/>\noptions:<br \/>\nFigure 8.10a: Configuring SNMP<br \/>\nTable 8.10a: SNMP Configuration Options<br \/>\nSetting Value Description<br \/>\nLocation string optional description of FreeNAS\u2122 system&#8217;s location<br \/>\nContact string optional e.g. email address of FreeNAS\u2122 administrator<br \/>\nCommunity string password used on the SNMP network, default is public and should<br \/>\nbe changed for security reasons<br \/>\nSend SNMP Traps checkbox a trap is an event notification message<br \/>\nAuxiliary Parameters string additional bsnmpd(8) options not covered in this screen, one per line<br \/>\n8.11 SSH<br \/>\nSecure Shell (SSH) allows for files to be transferred securely over an encrypted network. If you<br \/>\nconfigure your FreeNAS\u2122 system as an SSH server, the users in your network will need to use SSH<br \/>\nclient software in order to transfer files using SSH. You will also need to create a user account for every<br \/>\nuser requiring SSH access in Account -&gt; Users -&gt; Add User. When creating your users, set their home<br \/>\ndirectory to the volume\/dataset that you wish them to have access to. This section shows the<br \/>\nFreeNAS\u2122 SSH configuration options, demonstrates an example configuration that restricts users to<br \/>\ntheir home directory, and provides some troubleshooting tips.<br \/>\nFreeNAS\u2122 8.0.3 Guide Page 128 of 164<br \/>\nFigure 8.11a shows the Services -&gt; SSH configuration screen and Table 8.11a summarizes the<br \/>\nconfiguration options:<br \/>\nFigure 8.11a: SSH Configuration<br \/>\nTable 8.11a: SSH Configuration Options<br \/>\nSetting Value Description<br \/>\nTCP Port integer port to open for SSH connection requests, 22 by default<br \/>\nLogin as Root with<br \/>\npassword checkbox for security reasons, root logins are discouraged and disabled by<br \/>\ndefault<br \/>\nAllow Password<br \/>\nAuthentication checkbox<br \/>\nif unchecked, only accepts key based authentication which is more<br \/>\nsecure but requires additional setup on both the SSH client and<br \/>\nserver<br \/>\nAllow TCP Port<br \/>\nForwarding checkbox allows users to bypass firewall restrictions using SSH&#8217;s port<br \/>\nforwarding feature<br \/>\nCompress<br \/>\nConnections checkbox may reduce latency over slow networks<br \/>\nHost Private Key string allows you to paste a specific host key as the default key is changed<br \/>\nwith every installation<br \/>\nExtra Options string additional sshd_config(5) options not covered in this screen, one per<br \/>\nline<br \/>\nFreeNAS\u2122 8.0.3 Guide Page 129 of 164<br \/>\nA few sshd_config(5) options that are useful to input in the Extra Options field include:<br \/>\n\u2022 ClientAliveInterval: increase this number if ssh connections tend to drop<br \/>\n\u2022 ClientMaxStartup: defaults to 10; increase if you have more users<br \/>\n8.11.1 Chrooting SFTP users<br \/>\nBy default when you configure SSH, users can use the ssh command to login to the FreeNAS\u2122 system<br \/>\nand the scp and sftp commands to transfer files. While these commands will default to the user&#8217;s home<br \/>\ndirectory, users are able to navigate outside of their home directory which can pose a security risk. SSH<br \/>\nsupports using a chroot to confine users to only the sftp command and to be limited to the contents of<br \/>\ntheir own home directory. To configure this scenario on FreeNAS\u2122, perform the following steps.<br \/>\n1. Create a ZFS dataset for each user requiring sftp access in Storage -&gt; Create ZFS Dataset. In the<br \/>\nexample shown in Figure 8.11b, a ZFS dataset named user1 has been created on volume \/mnt\/test1 with<br \/>\na ZFS quota of 20GB. In the next step, we will create a user named user1 to associate with this dataset.<br \/>\nRepeat this process to create a dataset for every user that will need access to the SSH service.<br \/>\nFigure 8.11b: Create a ZFS Dataset with a Quota<br \/>\n2. Create a user account for each user in Account -&gt; Users -&gt; Add User. In the screen shown in Figure<br \/>\n8.11c, input a Username for the user (in this example, user1), change the Home Directory to the name<br \/>\nof an existing dataset (in our example, the dataset named \/mnt\/test1\/user1), input a description under<br \/>\nFull Name, input the user&#8217;s email address, input and confirm the user&#8217;s password, and click the OK<br \/>\nFreeNAS\u2122 8.0.3 Guide Page 130 of 164<br \/>\nbutton. Repeat this process to create a user account for every user that will need access to the SSH<br \/>\nservice.<br \/>\nFigure 8.11c: Creating a User Account<br \/>\n3. Set permissions in Storage -&gt; Volume -&gt; View All Volumes. SSH chroot is very specific in what<br \/>\npermissions it allows (see the ChrootDirectory keyword in sshd_config(5) for details). Your<br \/>\nconfiguration will not work if the permissions on the datasets used by SSH chroot users differ from<br \/>\nthose shown in Figure 8.11d.<br \/>\nFigure 8.11d: Permissions Required by SSH Chroot<br \/>\nFreeNAS\u2122 8.0.3 Guide Page 131 of 164<br \/>\n4. Create a home directory within each dataset. Due to the permissions required by SSH chroot, the<br \/>\nuser will not have permissions to write to the root of their dataset. Since your intention is to limit them<br \/>\nto the contents of their home directory, you can manually create a home directory for the user within<br \/>\ntheir dataset. To do so, you will need to access the FreeNAS\u2122 system&#8217;s shell using the instructions in<br \/>\nsection 10 . 8 . 7 FAQ: How do I get to the Command Line \/ CLI \/ shell .<br \/>\nOnce you have access to the FreeNAS\u2122 console, create a home directory for each user within their<br \/>\nown dataset and change the ownership of the directory to the user. Example 8.11a demonstrates the<br \/>\ncommands used to create a home directory called user1 for the user account user1 on dataset<br \/>\n\/mnt\/test1\/user1:<br \/>\nExample 8.11a: Creating a User&#8217;s Home Directory<br \/>\nmkdir \/mnt\/test1\/user1\/user1<br \/>\nchown user1:user1 \/mnt\/test1\/user1\/user1<br \/>\n5. Configure SSH in Services -&gt; SSH. Add these lines to the Extra Options section as shown in Figure<br \/>\n8.11e.<br \/>\nFigure 8.11e: Configure SSH for chroot<br \/>\n6. Start the SSH service in Control Services. Click the red OFF button next to SSH. After a second or<br \/>\nso, it will change to a blue ON , indicating that the service has been enabled.<br \/>\n7. Test the connection from a client using a utility such as WinSCP. In the example shown in Figure<br \/>\n8.11f, user1 is connecting to a FreeNAS\u2122 server with an IP address of 192.168.2.9.<br \/>\nOnce connected, the user can see the files on their Windows system in the left frame and the files on<br \/>\nthe FreeNAS\u2122 system in the right frame, as shown in Figure 8.11g.<br \/>\nFreeNAS\u2122 8.0.3 Guide Page 132 of 164<br \/>\nFigure 8.11f: Connecting to the SSH chroot from WinSCP<br \/>\nFigure 8.11g: Using WinSCP Within a chroot<br \/>\nFreeNAS\u2122 8.0.3 Guide Page 133 of 164<br \/>\nNotice that the directory structure on the FreeNAS\u2122 system starts at &lt;root&gt;. If the user clicks on<br \/>\n&lt;root&gt;, they can not navigate to a higher folder. If the user tries to copy a file from the Windows<br \/>\nsystem to &lt;root&gt;, the operation will fail. However, if the user clicks on their home folder (in this<br \/>\nexample, user1), they will enter that folder and can copy files to\/from the Windows system within that<br \/>\nfolder.<br \/>\n8.11.2 Troubleshooting SSH Connections<br \/>\nIf you add any Extra Options in the SSH configuration screen, be aware that the keywords listed in<br \/>\nsshd_config(5) are case sensitive. This means that your configuration will fail to do what you intended<br \/>\nif you don&#8217;t match the upper and lowercase letters of the keyword.<br \/>\nWhen configuring SSH, you should always test your configuration as an SSH user account to ensure<br \/>\nthat the user is limited to what you have configured and does have permission to do what you want<br \/>\nthem to do. If the user account is experiencing problems, the SSH error messages are usually pretty<br \/>\nspecific to what the problem is. You will need to access the console to read these messages with the<br \/>\nfollowing command:<br \/>\ntail -f \/var\/log\/messages<br \/>\n8.12 TFTP<br \/>\nTrivial File Transfer Protocol (TFTP) is a light-weight version of FTP usually used to transfer<br \/>\nconfiguration or boot files between machines, such as routers, in a local environment. TFTP is<br \/>\nextremely limited, providing no authentication, and is rarely used interactively by a user. If you enable<br \/>\nTFTP on your FreeNAS\u2122 server, it will open UDP port 69. An example where this is useful is when<br \/>\nyou wish to store all of the images and configuration files for your network&#8217;s devices on the<br \/>\nFreeNAS\u2122 system. Figure 8.12a shows the TFTP configuration screen and Table 8.12a summarizes<br \/>\nthe available options:<br \/>\nFigure 8.12a: TFTP Configuration<br \/>\nFreeNAS\u2122 8.0.3 Guide Page 134 of 164<br \/>\nTable 8.12a: TFTP Configuration Options<br \/>\nSetting Value Description<br \/>\nDirectory string most devices expect a path of \/tftpboot<br \/>\nAllow New<br \/>\nFiles checkbox enable if network devices need to send files to the FreeNAS\u2122 system<br \/>\n(e.g. backup their config)<br \/>\nPort integer port to listen for TFTP requests, 69 by default<br \/>\nUsername drop-down<br \/>\nmenu account used for tftp requests<br \/>\nUmask integer umask for newly created files, default is 022<br \/>\nExtra options string additional tftpd(8) options not shown in this screen, one per line<br \/>\n8.13 UPS<br \/>\nFreeNAS\u2122 uses NUT (Network UPS Tools) to provide UPS support.<br \/>\nFigure 8.13a shows the UPS configuration screen:<br \/>\nFigure 8.13a: UPS Configuration Screen<br \/>\nFreeNAS\u2122 8.0.3 Guide Page 135 of 164<br \/>\nTable 8.13a summarizes the options in the UPS Configuration screen.<br \/>\nTable 8.13a: UPS Configuration Options<br \/>\nSetting Value Description<br \/>\nIdentifier string input a descriptive name, default is ups<br \/>\nDriver drop-down<br \/>\nmenu<br \/>\nsupported UPS devices are listed at<br \/>\nhttp:\/\/www.networkupstools.org\/stable-hcl.html<br \/>\nPort drop-down<br \/>\nmenu<br \/>\nlist of available serial (e.g. \/dev\/cuau#) or USB ports (e.g.<br \/>\n\/dev\/ugen.X.X) UPS is plugged into (see NOTE below)<br \/>\nAuxiliary Parameters string additional options from ups.conf(5)<br \/>\nDescription string optional<br \/>\nShutdown mode drop-down<br \/>\nmenu<br \/>\nchoices are UPS goes on battery and UPS reaches low<br \/>\nbattery<br \/>\nShutdown timer integer in seconds<br \/>\nUPS Master User Password string default is fixmepass<br \/>\nExtra users string see upsd.users(5) for examples<br \/>\nRemote monitor checkbox defaults to listen to everything and uses the user<br \/>\n&#8220;upsmon&#8221; and password &#8220;fixmepass&#8221;<br \/>\nSend Email Status Updates checkbox if checked, configure the To email<br \/>\nTo email email address if Send Email box checked, email address of person to<br \/>\nreceive update<br \/>\nEmail subject string if send Email Box checked, subject of email updates<br \/>\nNOTE: for USB devices, the easiest way to determine the correct device name is to enable console<br \/>\nlogging in System -&gt; Settings -&gt; Advanced -&gt; check the box for &#8220;Show console messages&#8221;. Refresh<br \/>\nyour browser and plug in the USB device. The messages will give the name of the \/dev\/ugenX.X<br \/>\ndevice; replace the X&#8217;s in your configuration with the actual numbers that show on the console.<br \/>\n8.14 iSCSI<br \/>\niSCSI is a protocol standard that allows the consolidation of storage data. iSCSI allows FreeNAS\u2122 to<br \/>\nact like a storage area network (SAN) over an existing Ethernet network. Specifically, it exports disk<br \/>\ndevices over an Ethernet network that iSCSI clients (called initiators) can attach to and mount.<br \/>\nTraditional SANs operate over fibre channel networks which require a fibre channel infrastructure such<br \/>\nas fibre channel HBAs, fibre channel switches, and discreet cabling. iSCSI can be used over an existing<br \/>\nEthernet network, although dedicated networks can be built for iSCSI traffic in an effort to boost<br \/>\nperformance. iSCSI also provides an advantage in an environment that uses Windows shell programs;<br \/>\nthese programs tend to filter \u201cNetwork Location\u201d but iSCSI mounts are not filtered.<br \/>\nBefore configuring iSCSI on your FreeNAS\u2122 device, you should be familiar with the following iSCSI<br \/>\nterminology:<br \/>\nFreeNAS\u2122 8.0.3 Guide Page 136 of 164<br \/>\nCHAP: a protocol used for authenticating initiators (clients) by a target (server). CHAP uses a shared<br \/>\nsecret and three-way authentication to determine if a system is authorized to access the storage device<br \/>\nand to periodically confirm that the session has not been hijacked by another system.<br \/>\nMutual CHAP: a superset of CHAP. The target authenticates the initiator as in CHAP, and additionally<br \/>\nthe initiator uses CHAP to authenticate the target.<br \/>\nInitiator: the remote system (client) which has authorized access to the storage data on the FreeNAS\u2122<br \/>\nsystem.<br \/>\nTarget: a storage resource on the FreeNAS\u2122 system (server).<br \/>\nExtent: the storage unit to be shared. It can either be a file or a device.<br \/>\nIn order to configure iSCSI, you need to:<br \/>\n\u2022 review the Target Global Configuration parameters<br \/>\n\u2022 decide if you will use CHAP or mutual CHAP for authentication; if so, create an authorized<br \/>\naccess<br \/>\n\u2022 create either a device extent or a file extent<br \/>\n\u2022 determine which hosts are allowed to connect using iSCSI and create an initiator<br \/>\n\u2022 determine if you need to create a portal (only required when the FreeNAS\u2122 system has<br \/>\nmultiple IP addresses or network interfaces that will be used for iSCSI connections<br \/>\n\u2022 create a target<br \/>\n\u2022 associate a target with an extent<br \/>\n\u2022 start the iSCSI service in Services -&gt; Control Services<br \/>\nNOTE: FreeNAS\u2122 uses istgt to provide iSCSI. At this time, istgt does not support SIGHUP-style<br \/>\nconfiguration reloading, meaning that FreeNAS\u2122 has to restart istgt to make configuration changes<br \/>\ntake effect. This means that any changes to existing iSCSI shares will cause any client that happens to<br \/>\nbe writing at the time to be thrown into read-only mode. Future versions of istgt will fix this known<br \/>\nissue. Many iSCSI initiators handle the iSCSI service dropping off fairly gracefully. VMware ESXi<br \/>\npauses its VMs while it tries to reconnect, offering a fairly large grace period where things will recover<br \/>\nautomatically.<br \/>\n8.14.1 Target Global Configuration<br \/>\nThe Target Global Configuration screen, shown in Figures 8.14a, contains settings that apply to all<br \/>\niSCSI shares. Table 8.14a summarizes the settings that can be configured in the Target Global<br \/>\nConfiguration screen. The integer values in the table are used to tune network performance; most of<br \/>\nthese values are described in RFC 3720. LUC (Logical Unit Controller) is an API provided by istgt to<br \/>\ncontrol removable media by providing functions to list targets, un\/load a media to a unit, change media<br \/>\nfile, or reset a LUN.<br \/>\nFreeNAS\u2122 8.0.3 Guide Page 137 of 164<br \/>\nFigure 8.14a: iSCSI Target Global Configuration Variables<br \/>\nTable 8.14a: Target Global Configuration Settings<br \/>\nSetting Value Description<br \/>\nBase Name string see the \u201cConstructing iSCSI names using the iqn. format\u201d<br \/>\nsection of RFC 3721 for details.<br \/>\nDiscovery Auth<br \/>\nMethod<br \/>\ndrop-down<br \/>\nmenu<br \/>\nChoices are: None, Auto, CHAP, or Mutual CHAP. Configures<br \/>\nthe authentication level required by the target for discovery of<br \/>\nvalid devices. None will allow anonymous discovery. CHAP and<br \/>\nMutual CHAP require authentication. Auto lets the initiator<br \/>\ndecide the authentication scheme.<br \/>\nDiscovery Auth<br \/>\nGroup<br \/>\ndrop-down<br \/>\nmenu<br \/>\nRequired if Discovery Auth Method is set to CHAP or Mutual<br \/>\nCHAP, optional if Discovery Auth Method is set to Auto, and not<br \/>\nneeded if Discovery Auth Method is set to None. In the latter two<br \/>\ncases the config generated in the [Global] section of istgt.conf<br \/>\nwill be DiscoveryAuthGroup None, otherwise it will be a number<br \/>\nlike DiscoveryAuthGroup 1.<br \/>\nI\/O Timeout<br \/>\ninteger<br \/>\nrepresenting<br \/>\nseconds<br \/>\nSets the limit on how long an I\/O can be outstanding before an<br \/>\nerror condition is returned. Possible values range from 0 -300<br \/>\nwith a default value of 30.<br \/>\nNOPIN Interval<br \/>\ninteger<br \/>\nrepresenting<br \/>\nseconds<br \/>\nHow often target sends a NOP-IN packet to keep a discovered<br \/>\nsession alive. Possible values range from 0 -300 with a default<br \/>\nvalue of 20.<br \/>\nFreeNAS\u2122 8.0.3 Guide Page 138 of 164<br \/>\nSetting Value Description<br \/>\nMax. Sessions integer<br \/>\nAll connections between an iSCSI initiator portal and a target<br \/>\nportal are associated with a specific session. This option limits<br \/>\nthe number of sessions the target will create\/accept. Possible<br \/>\nvalues range from 1 &#8211; 64 with a default value of 16.<br \/>\nMax. Connections integer<br \/>\nRefers to the number of connections a single initiator can make<br \/>\nwith respect to a single target. Possible values range from 1 &#8211; 64<br \/>\nwith a default value of 8.<br \/>\nMax. pre-send R2T integer Possible values range from 1 &#8211; 255 with a default value of 32.<br \/>\nMaxOutstandingR2T integer<br \/>\nDuring writes, the target pulls data from the initiator by sending<br \/>\nR2T (ready to receive) packets. This option sets the maximum<br \/>\nnumber of R2Ts the target can have outstanding for a single<br \/>\niSCSI command. Larger values should yield performance<br \/>\nincreases until MaxOutstandingR2T exceeds the size of the<br \/>\nlargest Write I\/O divided by MaxBurstLength. Possible values<br \/>\nrange from 1 &#8211; 255 with a default value of 16.<br \/>\nFirst burst length integer<br \/>\nThe maximum amount in bytes of unsolicited data an iSCSI<br \/>\ninitiator may send to the target during the execution of a single<br \/>\nSCSI command. Possible values range from 1 &#8211; 2^32 with a<br \/>\ndefault value of 65536.<br \/>\nMax burst length integer<br \/>\nMaximum write size in bytes the target is willing to receive per<br \/>\nburst of packets (i.e. between R2Ts). Possible values range from<br \/>\n1 &#8211; 2^32 with a default value of 262144.<br \/>\nMax receive data<br \/>\nsegment length integer In bytes. Possible values range from 1 &#8211; 2^32 with a default value<br \/>\nof 262144.<br \/>\nDefaultTime2Wait integer<br \/>\nThe minimum time in seconds to wait before attempting a logout<br \/>\nor an active task reassignment after an unexpected connection<br \/>\ntermination or reset. Possible values range from 1 &#8211; 300 with a<br \/>\ndefault value of 2.<br \/>\nDefaultTime2Retain integer<br \/>\nThe maximum time in seconds after Time2Wait before which an<br \/>\nactive task reassignment is still possible after an unexpected<br \/>\nconnection termination or reset. Possible values range from 1 &#8211;<br \/>\n300 with a default value of 60.<br \/>\nEnable LUC checkbox Only works with removable media. If checked, the rest of the<br \/>\nfields are required.<br \/>\nController IP address IP address Must be an IP address that is assigned to an interface or the<br \/>\ndaemon won&#8217;t start. Generally set to 127.0.0.1.<br \/>\nController TCP port integer Possible values range from 1024-65535 with a default value of<br \/>\n3261.<br \/>\nController<br \/>\nAuthorized netmask subnet mask Typically set to 255.0.0.0.<br \/>\nController Auth drop-down Choices are None, Auto, CHAP, or mutual CHAP.<br \/>\nFreeNAS\u2122 8.0.3 Guide Page 139 of 164<br \/>\nSetting Value Description<br \/>\nMethod menu<br \/>\nController Auth<br \/>\nGroup<br \/>\ndrop-down<br \/>\nmenu<br \/>\nRequired if Controller Auth Method is set to CHAP or Mutual<br \/>\nCHAP, optional if Controller Auth Method is set to Auto, and not<br \/>\nneeded if Controller Auth Method is set to None. In the latter two<br \/>\ncases the config generated in the [Global] section of istgt.conf<br \/>\nwill be ControllerAuthGroup None, otherwise it will be a number<br \/>\nlike ControllerAuthGroup 1. If you wish to use authenticated<br \/>\ndiscover the users must be configured prior to this step.<br \/>\n8.14.2 Authorized Accesses<br \/>\nIf you will be using CHAP or mutual CHAP to provide authentication, you must create an authorized<br \/>\naccess. Go to Services \u2192 ISCSI \u2192 Authorized Accesses \u2192 Add Authorized Access which will open<br \/>\nthe screen seen in Figure 8.14b.<br \/>\nNOTE: CHAP does not work with GlobalSAN initiators on Mac OS X.<br \/>\nFigure 8.14b: Adding Authorized Access for iSCSI<br \/>\nTable 8.14b summarizes the settings that can be configured when adding an authorized access:<br \/>\nFreeNAS\u2122 8.0.3 Guide Page 140 of 164<br \/>\nTable 8.14b: Authorized Access Configuration Settings<br \/>\nSetting Value Description<br \/>\nGroup ID integer<br \/>\nThe Group ID is used to build the authentication groups used by the iSCSI target<br \/>\nsoftware, allowing different groups to be configured with different authentication<br \/>\nprofiles. For instance, all users with a Group ID of 1 will be members of \u201cGroup 1\u201d<br \/>\nand will inherit the authentication profile associated with that group.<br \/>\nUser string<br \/>\nName of user account that will be created on the FreeNAS\u2122 device in order to<br \/>\nCHAP authenticate with the user on the remote system. Many initiators default to<br \/>\nusing the initiator name as the user.<br \/>\nSecret string Needs to be confirmed. Password to be associated with the created user account.<br \/>\nPeer User string If this is entered it will cause the user to be a Mutual CHAP user. In most cases it<br \/>\nwill need to be the same as the User.<br \/>\nInitiator<br \/>\nSecret string Needs to be confirmed. The mutual secret password. Must be different than the<br \/>\nSecret. This is required if the Peer User field is set.<br \/>\nAs users are added, they will be listed under Authorized Accesses. In the example shown in Figure<br \/>\n8.14c, three users (test1, test2, and test3) have been configured and there are two groups created, with<br \/>\ngroup 1 consisting of a single CHAP user and group 2 consisting of a mutual CHAP user and a CHAP<br \/>\nuser.<br \/>\nFigure 8.14c: Viewing Authorized iSCSI Users<br \/>\n8.14.3 Device Extents<br \/>\nThe next step is to configure the share. In iSCSI terminology, you don&#8217;t share a volume; instead you<br \/>\nshare either a device extent or a file extent:<br \/>\nFreeNAS\u2122 8.0.3 Guide Page 141 of 164<br \/>\nDevice extent: allows an unformatted disk, a zvol, or an existing HAST device to be exported via<br \/>\niSCSI. The advantage of a device extent is that it is faster than a file extent. The disadvantage is that the<br \/>\nentire volume is exported. If you only want to share a portion of a volume using iSCSI, either create a<br \/>\nzvol (if it is a ZFS volume) or use a file extent. You can create a zvol by clicking Storage -&gt; Create<br \/>\nZFS Volume.<br \/>\nFile extent: allows you to export a portion of a volume. When creating a file extent, you can specify<br \/>\neither a non-existing file name or an existing ZFS dataset. The advantage of file extents is that you can<br \/>\ncreate multiple exports per volume. The disadvantage is that they are slower than device extents.<br \/>\nTo add a device extent, go to Services \u2192 ISCSI \u2192 Device Extents \u2192 Add Device Extent. In the<br \/>\nexample shown in Figure 8.14d, a device extent is being created using a raw (unformatted) disk.<br \/>\nFigure 8.14d: Adding an iSCSI Device Extent<br \/>\nTable 8.14c summarizes the settings that can be configured when creating a device extent:<br \/>\nTable 8.14c: Device Extent Configuration Settings<br \/>\nSetting Value Description<br \/>\nExtent Name string required<br \/>\nComment string optional<br \/>\nDisk device drop-down menu select the unformatted disk, previously created zvol, or existing<br \/>\nHAST device<br \/>\nFreeNAS\u2122 8.0.3 Guide Page 142 of 164<br \/>\n8.14.4 Extents<br \/>\nTo add a file extent, go to Services \u2192 ISCSI \u2192 Extents \u2192 Add Extent. In the example shown in Figure<br \/>\n8.14e, a file extent named data with a maximum size of 20 GB will be created on the ZFS dataset<br \/>\n\/mnt\/tank\/iscsi. Note that the file extent creation will fail if you do not append the name of the file to be<br \/>\ncreated to the volume\/dataset name.<br \/>\nFigure 8.14e: Adding an iSCSI File Extent<br \/>\nTable 8.14d summarizes the settings that can be configured when creating an File Extent:<br \/>\nTable 8.14d: File Extent Configuration Settings<br \/>\nSetting Value Description<br \/>\nExtent Name string name of file extent, can not be an existing file within the dataset<br \/>\nPath to the<br \/>\nextent<br \/>\nbrowse<br \/>\nbutton browse to the path where the file will be created or to an existing dataset<br \/>\nExtent size integer if the size is specified as 0 then the actual file size will be used and the<br \/>\nfile must be created manually in the CLI<br \/>\nComment string optional<br \/>\n8.14.5 Initiators<br \/>\nThe next step is to configure authorized initiators, or the systems which are allowed to connect to the<br \/>\nstored data. Going to Services \u2192 ISCSI \u2192 Initiators \u2192 Add Initiator will bring up the screen shown in<br \/>\nFigure 8.14f. Table 8.14e summarizes the settings that can be configured when adding an initiator.<br \/>\nNOTE: at this time, the FreeNAS\u2122 system itself can not be configured as an initiator.<br \/>\nFreeNAS\u2122 8.0.3 Guide Page 143 of 164<br \/>\nFigure 8.14f: Adding an iSCSI Initiator<br \/>\nTable 8.14e: Initiator Configuration Settings<br \/>\nSetting Value Description<br \/>\nInitiators string can use ALL keyword or a list of initiator hostnames separated by commas<br \/>\nwith no space<br \/>\nAuthorized<br \/>\nnetwork string can use ALL keyword or a network address with CIDR mask such as<br \/>\n192.168.2.0\/24<br \/>\nComment string optional description<br \/>\nIn the example shown in Figure 8.14g, two groups have been created. Group 1 allows connections from<br \/>\nany initiator on any network; Group 2 only allows connections from any initiator on the 10.10.1.0\/24<br \/>\nnetwork.<br \/>\nFigure 8.14g: Sample iSCSI Initiator Configuration<br \/>\nFreeNAS\u2122 8.0.3 Guide Page 144 of 164<br \/>\n8.14.6 Portals<br \/>\nA portal allows FreeNAS\u2122 systems with multiple IP addresses or interfaces to provide services on<br \/>\ndifferent interfaces or subnets. Going to Services \u2192 ISCSI \u2192 Portals \u2192 Add Portal will bring up the<br \/>\nscreen shown in Figure 8.14h:<br \/>\nFigure 8.14h: Adding an iSCSI Portal<br \/>\nIn this example, 0.0.0.0:3260 is a wildcard that will cause the system to bind to every IP address and<br \/>\ninterface. This allows you to use multi-path I\/O (MPIO).<br \/>\nTable 8.12f summarizes the settings that can be configured when adding a portal:<br \/>\nTable 8.14f: Portal Configuration Settings<br \/>\nSetting Value Description<br \/>\nPortal string interface or subnet IP address followed by a colon and the TCP port used by<br \/>\niSCSI (3260 by default)<br \/>\nComment string optional description<br \/>\n8.14.7 Targets<br \/>\nNext you should add a Target using Services \u2192 ISCSI \u2192 Targets \u2192 Add Target, as shown in Figure<br \/>\n8.14i. A target combines a portal ID, allowed initiator ID, and an authentication method.<br \/>\nTable 8.14g summarizes the settings that can be configured when creating a Target.<br \/>\nNOTE: multiple computers can not connect to the same iSCSI target as iSCSI acts like a physical disk<br \/>\nrather than a share. If you need to support multiple clients to the same data, use CIFS or NFS instead of<br \/>\niSCSI or create multiple iSCSI targets (one per client).<br \/>\nFreeNAS\u2122 8.0.3 Guide Page 145 of 164<br \/>\nFigure 8.14i: Adding an iSCSI Target<br \/>\nTable 8.14g: Target Settings<br \/>\nSetting Value Description<br \/>\nTarget Name string required value; base name will be appended<br \/>\nautomatically if it does not start with iqn<br \/>\nTarget Alias string optional user-friendly name<br \/>\nSerial string unique ID for target to allow for multiple LUNs; the<br \/>\ndefault is generated from the system&#8217;s MAC address<br \/>\nType drop-down menu type of device: choices are disk, DVD, tape, or pass<br \/>\n(choose pass in a virtual environment)<br \/>\nTarget Flags drop-down menu choices are read-write or read-only<br \/>\nPortal Group ID drop-down menu leave empty or select number of existing portal to use<br \/>\nInitiator Group ID drop-down menu select which existing initiator group has access to the<br \/>\ntarget<br \/>\nAuth Method drop-down menu choices are None, Auto, CHAP, or mutual CHAP<br \/>\nAuthentication Group<br \/>\nnumber drop-down menu none or integer representing number of existing<br \/>\nauthorized access<br \/>\nQueue Depth integer see this post for an explanation of the math involved<br \/>\nFreeNAS\u2122 8.0.3 Guide Page 146 of 164<br \/>\nSetting Value Description<br \/>\nLogical Block Size integer<br \/>\nshould only be changed if you need to emulate a physical<br \/>\ndisk&#8217;s size or you need to increase the block size to allow<br \/>\nfor larger filesystems on operating systems limited by<br \/>\nblock count<br \/>\n8.14.8 Target\/Extents<br \/>\nThe last step is associating extents to targets within Services \u2192 ISCSI \u2192 Target\/Extents \u2192 Add<br \/>\nTarget\/Extent. This screen is shown in Figure 8.14j. Use the drop-down menus to select the desired<br \/>\ntarget and extent.<br \/>\nFigure 8.14j: Associating iSCSI Targets\/Extents<br \/>\nTable 8.14h summarizes the settings that can be configured when associating targets and extents:<br \/>\nTable 8.14h: Target\/Extents Configuration Settings<br \/>\nSetting Value Description<br \/>\nTarget drop-down menu select the pre-created target<br \/>\nExtent drop-down menu select the pre-created extent<br \/>\nIt is best practice to associate extents to targets in a 1:1 manner, although the software will allow<br \/>\nmultiple extents to be associated to a target.<br \/>\nOnce iSCSI has been configured, click the Services -&gt; Control Services icon. Click the iSCSI button to<br \/>\nchange it from Off to On and thus start the iSCSI service.<br \/>\n8.14.9 Connecting to iSCSI Share<br \/>\nIn order to access the data on the iSCSI share, clients will need to use iSCSI initiator software.<br \/>\nAn iSCSI Initiator client is pre-installed with Windows 7. A detailed how-to for this client can be found<br \/>\nhere.<br \/>\nMac OS X does not include an initiator. This how-to demonstrates how to use globalSAN, a free and<br \/>\neasy-to-use Mac initiator.<br \/>\nBSD systems provide command line initiators: iscontrol(8) comes with FreeBSD, iscsi-initiator(8)<br \/>\nFreeNAS\u2122 8.0.3 Guide Page 147 of 164<br \/>\ncomes with NetBSD, and iscsid(8) comes with OpenBSD.<br \/>\nSome Linux distros provide the command line utility iscsiadm from Open-iSCSI. Google to see if a<br \/>\npackage exists for your distribution should the command not exist on your Linux system.<br \/>\nInstructions for connecting from a VMware ESXi Server can be found at How to configure FreeNAS 8<br \/>\nfor iSCSI and connect to ESX(i). Note that the requirements for booting vSphere 4.x off iSCSI differ<br \/>\nbetween ESX and ESXi. ESX requires a hardware iSCSI adapter while ESXi requires specific iSCSI<br \/>\nboot firmware support. The magic is on the booting host side, meaning that there is no difference to the<br \/>\nFreeNAS\u2122 configuration. See the iSCSI SAN Configuration Guide for details.<br \/>\n8.15 Rsync<br \/>\nThe Rsync section of Services is used to configure an rsync server. See section 4 . 6 Rsync Tasks for<br \/>\ninstructions on how to configure an rsync client and an example of configuring both ends of an rsync<br \/>\nconnection.<br \/>\nThis section describes the configurable options for the rsyncd service and rsync modules.<br \/>\nFigure 8.15a shows the rsyncd configuration screen which is accessed from Services -&gt; Rsync -&gt;<br \/>\nConfigure Rsyncd.<br \/>\nFigure 8.15a: Rsyncd Configuration<br \/>\nTable 8.15a summarizes the options that can be configured for the rsync daemon:<br \/>\nTable 8.15a: Rsync Configuration Options<br \/>\nSetting Value Description<br \/>\nTCP Port integer port for rsyncd to listen on, default is 873<br \/>\nAuxiliary parameters string additional parameters from rsync(1)<br \/>\n8.15.1 Rsync Modules<br \/>\nFigure 8.15b shows the configuration screen that appears when you click Services -&gt; Rsync -&gt; Rsync<br \/>\nModules -&gt; Add Rsync Module.<br \/>\nFreeNAS\u2122 8.0.3 Guide Page 148 of 164<br \/>\nFigure 8.15b: Adding an Rsync Module<br \/>\nTable 8.15b summarizes the options that can be configured when creating a rsync module:<br \/>\nTable 8.15b: Rsync Module Configuration Options<br \/>\nSetting Value Description<br \/>\nModule name string mandatory; also needs to be configured on rsync client<br \/>\nComment string mandatory<br \/>\nPath browse button of volume\/dataset to hold received data<br \/>\nAccess Mode drop-down<br \/>\nmenu choices are read and write, read-only, or write-only<br \/>\nMaximum<br \/>\nconnections integer 0 is unlimited<br \/>\nUser drop-down<br \/>\nmenu<br \/>\nselect user that file transfers to and from that module should<br \/>\ntake place as<br \/>\nGroup drop-down<br \/>\nmenu<br \/>\nselect group that file transfers to and from that module should<br \/>\ntake place as<br \/>\nHosts allow string see rsyncd.conf(5) for allowed formats<br \/>\nHosts deny string see rsyncd.conf(5) for allowed formats<br \/>\nAuxiliary parameters string additional parameters from rsyncd.conf(5)<br \/>\nFreeNAS\u2122 8.0.3 Guide Page 149 of 164<br \/>\nNOTE: one of the things that isn&#8217;t apparent from the documentation for some versions of<br \/>\nrsyncd.conf(5) is that * is an alias for all.<br \/>\n9 Additional Options<br \/>\nThis section covers the remaining miscellaneous options available from the FreeNAS\u2122 web interface.<br \/>\n9.1 Display System Processes<br \/>\nIf you click Display System Processes, a screen will open showing the output of top(1). An example is<br \/>\nshown in Figure 9.1a.<br \/>\nFigure 9.1a: System Processes Running on FreeNAS\u2122<br \/>\nThe display will automatically refresh itself. Simply click the X in the upper right corner to close the<br \/>\ndisplay when you are finished. Note that the display is read-only, meaning that you won&#8217;t be able to<br \/>\nissue a kill command within it.<br \/>\n9.2 Reboot<br \/>\nIf you click Reboot, you will receive the warning message shown in Figure 9.2a.<br \/>\nFreeNAS\u2122 8.0.3 Guide Page 150 of 164<br \/>\nFigure 9.2a: Reboot Warning Message<br \/>\nClick the Cancel button if you wish to cancel the reboot request. Otherwise, click the Reboot button to<br \/>\nreboot the system. Rebooting the system will disconnect all clients, including the web administration<br \/>\nGUI. The URL in your web browser will change to add \/system\/reboot\/ to the end of the IP address.<br \/>\nWait a few minutes for the system to boot, then use your browser&#8217;s back button to return to the<br \/>\nFreeNAS\u2122 system&#8217;s IP address. If all went well, you should receive the GUI login menu. However, if<br \/>\nsomething went wrong, you will need physical access to the FreeNAS\u2122 system&#8217;s monitor and<br \/>\nkeyboard so that you can determine what problem is preventing the system from resuming normal<br \/>\noperation.<br \/>\n9.3 Shutdown<br \/>\nIf you click Shutdown, you will receive the warning message shown in Figure 9.3a and your browser<br \/>\ncolour will change to red to indicate that you have selected an option that will negatively impact users<br \/>\nof the FreeNAS\u2122 system.<br \/>\nFigure 9.3a: Shutdown Warning Message<br \/>\nClick the Cancel button if you wish to cancel the shutdown request. Otherwise, click the Shutdown<br \/>\nbutton to reboot the system. Shutting down the system will disconnect all clients, including the web<br \/>\nadministration GUI, and will power off the FreeNAS\u2122 system. You will need physical access to the<br \/>\nFreeNAS\u2122 system in order to turn it back on.<br \/>\n9.4 Log Out<br \/>\nTo log out of the FreeNAS\u2122 GUI, simply click the Log Out button in the upper right corner. You will<br \/>\nimmediately be logged out. An informational message will indicate that you are logged out and will<br \/>\nprovide a hyperlink which you can click on to log back in.<br \/>\nFreeNAS\u2122 8.0.3 Guide Page 151 of 164<br \/>\n9.5 Help<br \/>\nThe Help button in the upper right corner provides hyperlinks to the various FreeNAS\u2122 resources,<br \/>\nincluding: forums, mailing lists, IRC channel, bug tracker, and this documentation. Each of these<br \/>\nresources is discussed in more detail in the next section.<br \/>\nIt also displays the currently installed FreeNAS\u2122 version.<br \/>\n9.6 Alert<br \/>\nFreeNAS\u2122 provides an alert system to provide a visual warning of any conditions that require<br \/>\nadministrative attention. The Alert button in the far right corner will flash red when there is an<br \/>\noutstanding alert. For example, the first time you access the administrative GUI, the alert button will be<br \/>\nflashing. If you click the icon, you will see the screen shown in Figure 9.6a:<br \/>\nFigure 9.6a: Example Alert Message<br \/>\nBehind the scenes, an alert script checks for various alert conditions, such as volume status, and writes<br \/>\nthese to \/var\/tmp\/alert. A javascript retrieves the current alert status every 5 minutes and will change<br \/>\nthe solid green alert icon (if there are no current alert conditions) to flashing red (if a new alert is<br \/>\ndetected).<br \/>\nSection 3: Getting Help<br \/>\n10 FreeNAS\u2122 Support Resources<br \/>\nFreeNAS\u2122 has a large installation base and an active user community. This means that many usage<br \/>\nquestions have already been answered and the details are available on the Internet. If you get stuck<br \/>\nusing FreeNAS\u2122, spend a few moments searching the Internet for the word FreeNAS\u2122 with some<br \/>\nkey words that describe your error message or the function that you are trying to implement.<br \/>\nFreeNAS\u2122 8.0 was released in May of 2011 while the original version of FreeNAS\u2122 (now at<br \/>\nversion .7) has been around since 2005. Accordingly, much of the of information available on the<br \/>\nInternet was written for FreeNAS\u2122 .7.x and may or may not apply to FreeNAS\u2122 8.x.<br \/>\nThe rest of this section discusses the additional resources available to FreeNAS\u2122 8.x users:<br \/>\n\u2022 Website and Social Media<br \/>\n\u2022 Trac Database<br \/>\n\u2022 IRC<br \/>\n\u2022 Mailing Lists<br \/>\nFreeNAS\u2122 8.0.3 Guide Page 152 of 164<br \/>\n\u2022 Forums<br \/>\n\u2022 Instructional Videos<br \/>\n\u2022 Professional Support<br \/>\n\u2022 FAQs<br \/>\n10.1 Website and Social Media<br \/>\nThe FreeNAS\u2122 website contains links to all of the available documentation, support, and social media<br \/>\nresources. Major announcements are also posted to the main page.<br \/>\nUsers are welcome to network on the FreeNAS\u2122 social media sites:<br \/>\n\u2022 LinkedIn<br \/>\n\u2022 Google+<br \/>\n\u2022 Facebook<br \/>\nA twitter feed is also available.<br \/>\n10.2 Trac Database<br \/>\nFreeNAS\u2122 8 uses a trac database where you can view existing support tickets to see if your issue has<br \/>\nalready been reported or create new tickets for unreported issues. You do not need to create a login<br \/>\naccount in order to view existing tickets, but you will need to use the Register link if you wish to create<br \/>\na ticket. See section 11.2 Submit Bug Reports if you wish to create a support ticket.<br \/>\n10.3 IRC<br \/>\nIf you wish to ask a question in \u201creal time\u201d, you can try the #freenas channel on IRC Freenode.<br \/>\nDepending upon the time of day (and your time zone), a FreeNAS\u2122 developer or other FreeNAS\u2122<br \/>\nusers may be available to assist you. If you don&#8217;t get an answer right away, remain on the channel as<br \/>\nother users tend to read the channel history in order to answer questions as they are able to.<br \/>\nIf you don&#8217;t have an IRC chat client, you can use the FreeNAS\u2122 browser-based client.<br \/>\nTo get the most out of the IRC channel, keep the following points in mind:<br \/>\n\u2022 don&#8217;t ask &#8220;can anyone help me?&#8221;; instead, just ask your question. If someone knows the answer,<br \/>\nthey will try to assist you.<br \/>\n\u2022 don&#8217;t ask a question and then leave. Users who know the answer can&#8217;t help you if you disappear.<br \/>\n\u2022 don&#8217;t take it personally if no one answers or demand that someone answers your question.<br \/>\nMaybe no one who knows the answer is available, maybe your question is really hard, or maybe<br \/>\nit is a question that has already been answered many times in the other support resources. Try<br \/>\nasking again in a few hours or research the other resources to see if you&#8217;ve missed anything.<br \/>\n\u2022 Don&#8217;t post error messages in the channel as the IRC software will probably kick you out.<br \/>\nInstead, use a pasting service such as pastebin and refer to the URL on channel. If you prefer to<br \/>\npaste an image of your error, you can upload it to a temporary screenshot hosting service such<br \/>\nFreeNAS\u2122 8.0.3 Guide Page 153 of 164<br \/>\nas Upload Screenshot and post the URL to your uploaded image.<br \/>\n10.4 Mailing Lists<br \/>\nSeveral FreeNAS\u2122 mailing lists are available which allow users and developers to ask and answer<br \/>\nquestions related to the topic of the mailing list. To post an email to a list, you will need to subscribe to<br \/>\nit first. Each mailing list is archived, allowing you to browse for information by date, thread name, or<br \/>\nauthor.<br \/>\nThe following mailing lists are available:<br \/>\n\u2022 freenas-announce : This is a low-volume, read-only list where major milestones, such as new<br \/>\nreleases, are announced.<br \/>\n\u2022 freenas-commit : This is a read-only list. As code changes in the FreeNAS\u2122 repository, the<br \/>\ncommit message is automatically sent to this list.<br \/>\n\u2022 freenas-devel : FreeNAS\u2122 developers are subscribed to this list. Technical questions about the<br \/>\ncurrent FreeNAS\u2122 release can be posted here.<br \/>\n\u2022 freenas-docs : This list is for discussion regarding FreeNAS\u2122 documentation.<br \/>\n\u2022 freenas-testing : FreeNAS\u2122 developers are subscribed to this list. Technical questions about the<br \/>\nupcoming FreeNAS\u2122 release and feedback on testing snapshots can be posted here.<br \/>\n\u2022 freenas-translations : This list is for discussion regarding FreeNAS\u2122 localization and translating<br \/>\nFreeNAS\u2122 documentation.<br \/>\nArchives of the mailing lists are available from Gmane which allows you to read the archives in<br \/>\nvarious formats (blog style, news reader style) and to subscribe to RSS feeds for the lists.<br \/>\n10.5 Forums<br \/>\nAnother information source for FreeNAS\u2122 is the Forums. Forums contain user-contributed tips and<br \/>\nguides which have been categorized, making it an ideal resource if you wish to learn more about a<br \/>\ncertain aspect of FreeNAS\u2122. A searchbar is included should you wish to search by keyword;<br \/>\nalternately, you can click a category to browse through the threads that exist for that topic.<br \/>\nThe following categories are available under Help and Support:<br \/>\n\u2022 FreeNAS\u2122 4 N00bs : post here if you are new to FreeNAS\u2122 and are unsure which category<br \/>\nbest matches your question.<br \/>\n\u2022 Feature Requests : for the discussion of upcoming features and to request features not listed on<br \/>\nthe Roadmap.<br \/>\n\u2022 Bug Reporting : do you think you have found a bug in FreeNAS\u2122 and want to discuss it before<br \/>\ncreating a support ticket?<br \/>\n\u2022 Hardware : for the discussion of hardware and tips for getting the most out of your hardware.<br \/>\n\u2022 User Authentication : LDAP and Active Directory.<br \/>\n\u2022 Sharing : AFP, CIFS, NFS, and iSCSI.<br \/>\nFreeNAS\u2122 8.0.3 Guide Page 154 of 164<br \/>\n\u2022 Storage : replication, snapshots, volumes, and ZFS.<br \/>\n\u2022 Networking : networking hardware, performance, link aggregation, VLANs, DDNS, FTP,<br \/>\nSNMP, SSH, and TFTP.<br \/>\n\u2022 Installation : installing help or advice before performing the installation.<br \/>\nThe following categories are available under Development:<br \/>\n\u2022 FreeNAS\u2122 : general development discussion.<br \/>\n\u2022 nanobsd : the embedded operating system FreeNAS\u2122 is based upon.<br \/>\n\u2022 Django : the web framework used by the FreeNAS\u2122 graphical administrative interface.<br \/>\n\u2022 Dojo Toolkit : the javascript toolkit used to create widgets and handle client side processing.<br \/>\nThe following categories are available under How-To Guides:<br \/>\n\u2022 Hacking : undocumented tricks for getting the most out of your FreeNAS\u2122 system.<br \/>\n\u2022 Installation : specific installation scenarios (hardware and\/or software).<br \/>\n\u2022 Configuration : specific configuration scenarios (e.g. software or client configuration).<br \/>\n\u2022 Hardware : instructions for setting up specific hardware.<br \/>\nThe following categories are available under Community Forum:<br \/>\n\u2022 Off-topic : want to discuss something of interest to FreeNAS\u2122 users but which is not<br \/>\nnecessarily related to FreeNAS\u2122? This is your place.<br \/>\n\u2022 Resources : blogs, reviews, and other sources of FreeNAS\u2122 information not listed at<br \/>\nfreenas.org.<br \/>\n\u2022 Introductions : FreeNAS\u2122 Community meet &#8216;n greet &#8211; introduce yourself and let us know who<br \/>\nwe are chatting with.<br \/>\nThe following language-specific categories are available under International, allowing FreeNAS\u2122<br \/>\nusers to interact with each other in their native language:<br \/>\n\u2022 German &#8211; Deutsch<br \/>\n\u2022 French &#8211; Francais<br \/>\n\u2022 Italian &#8211; Italiano<br \/>\n\u2022 Spanish &#8211; Espanol<br \/>\nIf you wish to ask a question on the forum, you will need to click the Register link to create an account<br \/>\nand login using that account. When asking a question on the forum, it is important that you:<br \/>\n\u2022 first check to see if the question has already been asked. If you find a similar question, don&#8217;t<br \/>\ncreate a new thread. Instead use the &#8220;Reply to Thread&#8221; button to add your comments to the<br \/>\nexisting thread.<br \/>\n\u2022 review the available categories to see which one is most closely related to your question. Click<br \/>\non that category and use the &#8220;Post New Thread&#8221; button to open the editor. After typing your post<br \/>\nand before you click the &#8220;Submit New Thread&#8221; button, make sure the &#8220;Subscribe to this thread<br \/>\nFreeNAS\u2122 8.0.3 Guide Page 155 of 164<br \/>\nand notify me of changes&#8221; box is checked. That way you will be notified whenever anyone<br \/>\nanswers your question.<br \/>\n10.6 Instructional Videos<br \/>\nA series of instructional videos is being created for FreeNAS\u2122 8.x. The videos that are available so far<br \/>\nare:<br \/>\n\u2022 How to Install FreeNAS\u2122 8<br \/>\n\u2022 FreeNAS\u2122 System Configuration Overview<br \/>\n\u2022 FreeNAS\u2122 8: Volumes Overview<br \/>\n\u2022 FreeNAS\u2122 8: Shares Overview<br \/>\n\u2022 FreeNAS\u2122: Network Configuration Overview<br \/>\n\u2022 FreeNAS\u2122: Active Directory<br \/>\n\u2022 FreeNAS\u2122 8: iSCSI In-depth<br \/>\n\u2022 FreeNAS\u2122 8: All in One<br \/>\n\u2022 FreeNAS\u2122 8: LAGG and VLAN<br \/>\nThe Too Smart Guys show also has a series of videos:<br \/>\n\u2022 Building a FreeNAS 8 Box &#8211; Part 1 Hardware<br \/>\n\u2022 FreeNAS 8 &#8211; Build and Install<br \/>\n\u2022 FreeNAS 8 EP3 Configuration<br \/>\n10.7 Professional Support<br \/>\nIn addition to the freely available community resources, iXsystems offers professional support<br \/>\npackages. iXsystems&#8217; development team works hard to improve new and current versions of<br \/>\nFreeNAS\u2122, providing them with the insight to provide expert FreeNAS\u2122 support and consultation<br \/>\nservices. Their Professional Services team can also configure your FreeNAS\u2122 hardware and software<br \/>\nto deliver the highest levels of performance, stability, and security. See the FreeNAS\u2122 Professional<br \/>\nSupport page to request a quote.<br \/>\n10.8 FAQs<br \/>\nThis section contains some of the questions which are asked most often on the FreeNAS\u2122 IRC<br \/>\nchannel. Additional FAQs can be found in this forum post.<br \/>\n10.8.1 Can a RAID-Z array be expanded? For example, if I start off with a 8x2TB RAID-Z2<br \/>\narray can I add more drives to it in the future?<br \/>\nA. You can add drives to a volume, but not to a RAIDZ group. For example, if your volume is a 3 drive<br \/>\nRAIDZ, you can add another 3 drive RAIDZ in the future, giving you a RAIDZ+0. But you can&#8217;t<br \/>\nchange it to a 4 drive RAIDZ. This a limitation\/feature of ZFS.<br \/>\nFreeNAS\u2122 8.0.3 Guide Page 156 of 164<br \/>\n10.8.2 Is there a command to force FreeBSD to scan for new disks? I&#8217;m trying to add some<br \/>\ndisks to my array using the hot-swappable bays and a 3ware SATA card. The drives go<br \/>\nin fine and light up, but the operating system can&#8217;t see them.<br \/>\nA. Use the command:<br \/>\ntw_cli \/c0 rescan<br \/>\nThen you use the drives to create units and export them to the operating system. When finished, run<br \/>\ncamcontrol rescan all and they will show up in the GUI.<br \/>\n10.8.3 If my hardware\/motherboard dies, can I rebuild with new\/different hardware and still<br \/>\nimport\/read the data from my disks? What about my datasets?<br \/>\nA. Yes, as long as you aren&#8217;t using hardware RAID and let ZFS handle the RAID, A dataset is basically<br \/>\na folder\/directory that lives on your volume with your other files, but which has a separate mount point,<br \/>\nsuch as \/mnt\/your-pool\/dataset_1.<br \/>\n10.8.4 How do I replace a bad drive?<br \/>\nA. It is recommended that you first upgrade to latest version of 8.0 . 3 to make sure that your system is<br \/>\nnot effected by previously known bugs. You will also need access to the FreeNAS\u2122 system to replace<br \/>\nthe hard drive and to run some commands from the FreeNAS\u2122 console.<br \/>\nIf you are replacing a disk that is a member of a RAIDZ1 or RAIDZ2:<br \/>\n1. Determine the device name and UUID of the disk that needs to be replaced in Storage -&gt;<br \/>\nVolumes -&gt; View all Volumes -&gt; View Disks icon for effected volume.<br \/>\n2. Shut down the system, pull out the failed drive, and replace it with a new disk of the same size<br \/>\nor larger into the same port.<br \/>\n3. Power-on the system. At this point the RAIDZ will be in a DEGRADED state and the disk will<br \/>\nbe listed as Unavailable.<br \/>\n4. From the command line type zpool replace tank ada7 where tank represents the pool name<br \/>\nand ada7 represents the device name.<br \/>\n5. The pool will begin re-silvering. This can take a long time (many hours); be patient and let it<br \/>\nfinish. You can check the status of the resilvering with zpool status -v. Once the resilvering<br \/>\nfinishes, zpool status -v will still say DEGRADED.<br \/>\n6. Type the command zpool detach tank \/dev\/ada7\/old, replacing tank and ada7 with your pool<br \/>\nname and device name. Check the status again and the DEGRADED and \/dev\/ada7\/old should<br \/>\nbe gone and the pool state should be ONLINE.<br \/>\n7. Type the command zpool export tank. This will prepare the specified pool for an auto-import<br \/>\nof the disk.<br \/>\n8. From the GUI go to: Storage -&gt; Volumes -&gt; Auto Import. Your disk should now show in the<br \/>\ndrop-down menu.<br \/>\n9. Should the disk not appear in the drop-down menu, make sure that you are running the latest<br \/>\nversion of FreeNAS\u2122 upgrade if you are not. If you are running the latest FreeNAS\u2122, try<br \/>\nFreeNAS\u2122 8.0.3 Guide Page 157 of 164<br \/>\nbacking up your configuration from System -&gt; Settings -&gt; Config -&gt; Save Config. Then, reset<br \/>\nthe configuration to the factory defaults using the Factory Restore button, and try the autoimport<br \/>\nagain. Once your disk is imported, you can return to your saved configuration using the<br \/>\nUpload Config button.<br \/>\n10.8.5 Can I share files from my external USB drive?<br \/>\nA. No, at this time the GUI does not support this. This should be fixed in a later version.<br \/>\n10.8.6 Can I mount my MAC formatted drive?<br \/>\nA. No, at this time FreeNAS\u2122 and FreeBSD do not support mounting HFS\/HFS+ filesystems.<br \/>\n10.8.7 How do I get to the command line \/CLI\/shell?<br \/>\nA. There are 2 ways: from the console (the screen you see when you boot), and using SSH.<br \/>\nTo use the console, you will need access to the keyboard connected to FreeNAS\u2122. Select option &#8220;9)<br \/>\nShell&#8221; from the menu shown in Figure 2.4a in section 2.4 Initial Setup. To return to the console menu<br \/>\nfrom the shell, type exit.<br \/>\nTo access the FreeNAS\u2122 system using SSH, you will need to enable the SSH service in Control<br \/>\nServices. You will also need a client program to make the connection. When connecting, use the IP<br \/>\naddress of the FreeNAS\u2122 system and the username admin. If you need to gain root privileges during<br \/>\nthe session type su.<br \/>\n10.8.8 Does FreeNAS support 4k sector drives? How do I check if it is configured?<br \/>\nA. Yes. FreeNAS detects and uses 4K sectors automatically.<br \/>\nFrom the command line, type these command to check if you have 512 or 4k sectors configured:<br \/>\nzpool set cachefile=\/data\/zfs\/zpool.cache tank (change tank to your pool<br \/>\nname)<br \/>\nzdb -U \/data\/zfs\/zpool.cache | grep ashift<br \/>\nIf the answer = 9, you have 512 byte sectors. If the answer = 12, you have 4k byte sectors.<br \/>\nAny hard drive produced after January 1, 2011 should be a 4K Advanced Format drive, though some<br \/>\ndrives retain backwards compatibility by performing 512 byte emulation. FreeNAS\u2122 always uses 4K<br \/>\nsector for ZFS if the underlying hard drive is advanced format in order to get maximum performance.<br \/>\nFor UFS, the format always uses 4K sectors.<br \/>\nWhen you create your volumes, you can optionally check the box to &#8220;Force 4096 bytes sector size&#8221;.<br \/>\nThis will not improve performance on 512-byte sector hard drives but could be helpful in a RAIDZ that<br \/>\nalso contains advanced format drives.<br \/>\n10.8.9 My network transfer speeds are very slow, what is wrong?<br \/>\nA. You need to determine whether the bottleneck is your LAN, your disks\/array\/controller, not enough<br \/>\nRAM, your CPU load, a misconfiguration, the type of share in use, or that some tuning is required.<br \/>\nFreeNAS\u2122 8.0.3 Guide Page 158 of 164<br \/>\n\u2022 if you&#8217;re using a 10-100Mb\/s wired router\/switch you should get somewhere around 11-12MB\/s<br \/>\n\u2022 if you&#8217;re transferring across the Internet, your speed will only be as fast as your slowest link<br \/>\n\u2022 if you&#8217;re using a Gig interface, check that it is properly enabled on both the switch and the<br \/>\nFreeNAS\u2122 system. To check the FreeNAS\u2122 system, run this command at the console:<br \/>\nifconfig -a grep media<br \/>\nIf it is not showing at 1000Mb\/s, add the following line to the Options field of the interface&#8217;s settings:<br \/>\nmedia 1000baseTX mediaopt full-duplex<br \/>\n10.8.10 Why do changes I make at the command line to config files or settings disappear after a<br \/>\nreboot?<br \/>\nA. FreeNAS\u2122is booted from a compressed filesystem and the configuration that is stored in a database<br \/>\nis loaded into RAM. Any changes made at the command line do not get added to the configuration<br \/>\ndatabase. While you can make changes persist using the tips in this forum post, those changes won&#8217;t<br \/>\nsurvive an upgrade and it is not recommended to manually add command line edits to the database.<br \/>\nInstead, if the functionality you desire is not possible through the GUI, go to support.freenas.org and<br \/>\nsearch to see if a feature request to add that functionality already exists. If there is no existing ticket,<br \/>\ncreate a ticket describing the needed functionality.<br \/>\nSection 4: Contributing to FreeNAS\u2122<br \/>\n11 How to Get Involved<br \/>\nAs an open source community, FreeNAS\u2122 relies on the input and expertise of its users to help improve<br \/>\nFreeNAS\u2122. When you take some time to assist the community, your contributions benefit everyone<br \/>\nwho uses FreeNAS\u2122.<br \/>\nThis section describes some areas of participation to get you started. It is by no means an exhaustive<br \/>\nlist. If you have an idea that you think would benefit the FreeNAS\u2122 community, bring it up on one of<br \/>\nthe resources mentioned in section 10 FreeNAS\u2122 Support Resources .<br \/>\nThis section demonstrates how you can:<br \/>\n\u2022 Assist with Localization<br \/>\n\u2022 Submit Bug Reports<br \/>\n\u2022 Test Upcoming Versions<br \/>\n11.1 Assist with Localization<br \/>\nFreeNAS\u2122 uses Pootle, an open source application, for managing the localization of the menu screens<br \/>\nused by the FreeNAS\u2122 graphical administrative interface. Pootle makes it easy to find out the<br \/>\nlocalization status of your native language and to translate the text for any menus that have not been<br \/>\nlocalized yet. By providing a web editor and commenting system, Pootle allows translators to spend<br \/>\ntheir time making and reviewing translations rather than learning how to use a translation submission<br \/>\nFreeNAS\u2122 8.0.3 Guide Page 159 of 164<br \/>\ntool.<br \/>\nTo see the status of a localization, open up the FreeNAS\u2122 Translation System in your browser, as seen<br \/>\nin Figure 11.1a:<br \/>\nFigure 11.1a: FreeNAS\u2122 Localization System<br \/>\nThe localizations FreeNAS\u2122 users have requested are listed alphabetically on the left. If your language<br \/>\nis missing and you would like to help in its translation, send an email to the translations mailing list so<br \/>\nit can be added.<br \/>\nThe green bar in the Overall Completion column indicates the percentage of FreeNAS\u2122 menus that<br \/>\nhave been localized. If a language is not at 100%, it means that the menus that currently aren&#8217;t<br \/>\ntranslated will appear in English instead of in that language.<br \/>\nIf you wish to help localize your language, you should first join the translations mailing list and<br \/>\nintroduce yourself and which language(s) you can assist with. This will allow you to meet other<br \/>\nvolunteers as well as keep abreast of any notices or updates that may effect the translations. You will<br \/>\nalso need to click on the Register link in order to create a Pootle login account.<br \/>\nThe first time you log into the FreeNAS\u2122 Pootle interface, you&#8217;ll be prompted to select your language<br \/>\nso that you can access that language&#8217;s translation whenever you login. Alternately, you can click the<br \/>\nHome link to see the status of all of the languages. To work on a translation, click the link for the<br \/>\nlanguage -&gt; click the FreeNAS\u2122 link for the project -&gt; click the link for LC_MESSAGES -&gt; and click<br \/>\nthe link for django.po. Every text line available in the GUI menu screens has been assigned a string<br \/>\nnumber. If you click the number, an editor will open where you can translate the text. In the example<br \/>\nshown in Figure 11.1b, a user has selected string number 46 in the German translation; the other strings<br \/>\nin the screenshot have already been translated:<br \/>\nFreeNAS\u2122 8.0.3 Guide Page 160 of 164<br \/>\nFigure 11.1b: Using the Pootle Interface to Edit a Translation String<br \/>\nSimply type in the translated text and click the Submit button to save your change.<br \/>\n11.2 Submit Bug Reports<br \/>\nFreeNAS\u2122 uses Trac, an open source bug reporting system, to manage bug reports and feature<br \/>\nrequests submitted by users. You can search for existing bugs and submit a bug report at<br \/>\nsupport.freenas.org.<br \/>\nIf you find a bug while using FreeNAS\u2122 or if you would like to request a feature in an upcoming<br \/>\nversion, take the time to research your bug\/feature first, before submitting your bug report. This is so<br \/>\nthat you don&#8217;t end up duplicating an existing report and to ensure that your report contains the<br \/>\ninformation that the developers need in order to implement the fix or the feature.<br \/>\nBefore submitting a bug report, perform the following steps:<br \/>\n\u2022 determine if you are running the latest version of FreeNAS\u2122 8.x. FreeNAS\u2122 developers tend<br \/>\nto fix bugs rapidly and new features are being implemented as 8.x matures. If you are not<br \/>\nrunning the latest version, it is quite likely that the bug has already been fixed or the missing<br \/>\nfeature has been implemented. If this is the case, your best course of action is to backup your<br \/>\ndata and configuration and perform an upgrade to the latest version. Note that FreeNAS\u2122 will<br \/>\nstabilize at version 8.2 and that the most recent version may be labelled as a beta or an RC; it<br \/>\nwill still be considered more stable than the release before it.<br \/>\n\u2022 if you are running the latest version, use the search feature at support.freenas.org to see if a<br \/>\nsimilar report\/request already exists. If one does, do not create another ticket. Instead, add a<br \/>\ncomment to the existing ticket if you have additional information to add.<br \/>\nIf a similar report does not already exist, keep the following points in mind when you create your bug<br \/>\nreport or feature request:<br \/>\nFreeNAS\u2122 8.0.3 Guide Page 161 of 164<br \/>\n\u2022 you will need to register for an account, confirm you registration email address, and be logged<br \/>\nin before you can create a new ticket.<br \/>\n\u2022 in the Summary section shown in Figure 11.2a, include descriptive keywords that describe your<br \/>\nproblem or feature request. This is useful for other users who search for a similar problem. You<br \/>\ncan also include a comma separated list of keywords in the Keywords section.<br \/>\n\u2022 in the Description section, describe the problem, how to recreate it, and include the text of any<br \/>\nerror messages. If you are requesting a feature, describe the benefit provided by the feature and,<br \/>\nif applicable, provide examples of other products that use that feature or the URL of the<br \/>\nhomepage for the software. If you would like to include a screenshot of your configuration or<br \/>\nerror, check the &#8220;I have files to attach to this ticket&#8221; box.<br \/>\n\u2022 under Type, select defect if it is a bug report or enhancement if it is a feature request.<br \/>\n\u2022 for bug reports, be sure to select the version of FreeNAS\u2122 that you are using.<br \/>\n\u2022 press the Preview button to read through your ticket before submitting it. Make sure it includes<br \/>\nall of the information that someone else would need to understand your problem or request.<br \/>\nOnce you are satisfied with your ticket, click the Create Ticket button to submit it.<br \/>\n\u2022 if you get stuck in how to fill out a field in the ticket, the TracTickets link at the bottom of the<br \/>\nticket creation page has several examples.<br \/>\nFigure 11.2a: Creating a New Ticket<br \/>\nFreeNAS\u2122 8.0.3 Guide Page 162 of 164<br \/>\n11.3 Test Upcoming Versions<br \/>\n11.3.1 Upcoming Version 8.2<br \/>\nA release date has not been set yet for 8.2, though it is expected to be released by the end of Q1, 2012.<br \/>\nPrior to 8.2 release, there will be a beta period where testing snapshots will be announced on the<br \/>\nFreeNAS\u2122 website, blog, and social media sites every week or so. This beta period is meant to<br \/>\nprovide users an opportunity to test the upcoming release and to provide feedback on bugs and errors<br \/>\nso that they can be fixed prior to release. Feedback can be sent to the Freenas-testing mailing list.<br \/>\n11.3.2 Testing a Nightly Snapshot<br \/>\nChanges to FreeNAS\u2122 occur daily as developers address the bugs and enhancement requests reported<br \/>\nby FreeNAS\u2122 users. A testing version that incorporates these changes is automatically built daily and<br \/>\nis available for download as a nightly release.<br \/>\nIf you wish to install or upgrade to the testing version of FreeNAS\u2122 (i.e. the version that addresses all<br \/>\nfixed bugs up to today&#8217;s date) or you need to upgrade to a version that incorporates a fix you are<br \/>\nwaiting for, you can download the latest nightly version.<br \/>\nNOTE: it is possible that a recently implemented change will not work as expected or will break<br \/>\nsomething else. If you experience this, take the time to add a comment to the applicable support ticket<br \/>\nso that the developers can address the problem.<br \/>\nDANGER! upgrading from a nightly snapshot to an RC or a RELEASE is not supported! . Be wary of<br \/>\ninstalling a nightly in a production environment and be sure to backup your configuration before<br \/>\nattempting a full install of a later RC or RELEASE.<br \/>\nNightly builds are available as ISO, GUI upgrade, or Full install images. If you are upgrading to a<br \/>\nnightly from an earlier version of FreeNAS\u2122 8.x, see the section on Upgrading FreeNAS\u2122 for<br \/>\ninstructions on how to upgrade.<br \/>\n11.3.3 Rolling Your Own Testing Snapshot<br \/>\nUsers who wish to test 8.2 prior to the testing period can download the latest source from the svn<br \/>\nrepository and generate their own ISO for testing purposes.<br \/>\nNOTE: 8.2 is currently in alpha phase and some of its new features are still broken or not fully<br \/>\nimplemented. Expect to find bugs. Do not use in a production environment! It is recommended that you<br \/>\nread the README first so that you are aware of any gotchas and currently known limitations.<br \/>\nIf you wish to build your own testing snapshot, you will need to install FreeBSD 8.2 in a virtual<br \/>\nenvironment or on a test system. If you are using a virtual environment, a 64-bit system with at least 4<br \/>\nGB of RAM is recommended. Download the FreeBSD version (i386 or amd64) that matches the<br \/>\narchitecture that you wish to build and when prompted to choose your distribution set during the<br \/>\ninstallation, select the Minimal install option.<br \/>\nAfter booting into the newly installed FreeBSD system, become the superuser and run the following<br \/>\ncommands. First, install the software you&#8217;ll need and refresh your path so it is aware of the new<br \/>\nbinaries:<br \/>\nFreeNAS\u2122 8.0.3 Guide Page 163 of 164<br \/>\npkg_add -r subversion<br \/>\npkg_add -r nano<br \/>\npkg_add -r cdrtools<br \/>\nrehash<br \/>\nYou&#8217;re now ready to download FreeNAS\u2122 source:<br \/>\ncd \/usr\/local<br \/>\nsvn co https:\/\/freenas.svn.sourceforge.net\/svnroot\/freenas\/trunk<br \/>\ncd trunk<br \/>\nsetenv FREEBSD_CVSUP_HOST cvsup10.freebsd.org<br \/>\nIf you wish to install extra software in your snapshot, you will need to increase the size of the<br \/>\nNanoBSD image by editing freenas-common. The size of the image should be double the space that it<br \/>\nneeds as the image will be formatted with two same-size partitions. This is to allow for upgrades as one<br \/>\npartition contains the new running image and the other partition contains a copy of the backup image.<br \/>\nWhen editing freenas-common, search for this line:<br \/>\nFlashDevice generic 1g<br \/>\nand edit it to the size you&#8217;ll need. Make sure that you have a memory stick that can hold the specified<br \/>\nsize. You&#8217;re now ready to build the image:<br \/>\nsh build\/do_build.sh<br \/>\nsh build\/create_iso.sh<br \/>\nOnce these commands complete, you will have an image in obj.yyyy\/FreeNAS\u2014VVVV-XXXXyyyy.<br \/>\nfull.xz where:<br \/>\n\u2022 VVVV is the release branch version<br \/>\n\u2022 XXXX is the svn revision from the FreeNAS\u2122 repo<br \/>\n\u2022 yyyy is either i386 or amd64 depending on your platform and what was provided via<br \/>\n$FREENAS_ARCH on the command line or in an environment setting<br \/>\nThis is a compressed raw disk image which needs to be decompressed and converted to your favorite<br \/>\nvirtual machine container format before use. There will also be a CD image called obj.yyy\/FreeNASVVVV-<br \/>\nXXXX-yyyy.full.iso that you can burn to disk and use to install or upgrade FreeNAS\u2122.<br \/>\nPlease see the README file for common workflows and tips.<br \/>\nFreeNAS\u2122 8.0.3 Guide Page 164 of 164<\/p>\n","protected":false},"excerpt":{"rendered":"<p>FreeNAS\u2122 8.0.3 Guide Page 1 of 164 FreeNAS\u2122 8.0.3 Guide Page 2 of 164 FreeNAS\u2122 is \u00a9 2011, 2012 iXsystems FreeNAS\u2122 is a trademark of iXsystems FreeBSD is a registered trademark of the FreeBSD Foundation Cover art by Jenny Rosenberg FreeNAS\u2122 8.0.3 Guide Page 3 of 164 Table of Contents Section 1: Introduction and Installation<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[1,127],"tags":[145,31,144],"class_list":["post-298","post","type-post","status-publish","format-standard","hentry","category-viazap","category-sistemas-de-armazenamento","tag-armazenamento","tag-cluster","tag-storge"],"_links":{"self":[{"href":"https:\/\/blog.clusterweb.com.br\/index.php?rest_route=\/wp\/v2\/posts\/298","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.clusterweb.com.br\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.clusterweb.com.br\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.clusterweb.com.br\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.clusterweb.com.br\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=298"}],"version-history":[{"count":6,"href":"https:\/\/blog.clusterweb.com.br\/index.php?rest_route=\/wp\/v2\/posts\/298\/revisions"}],"predecessor-version":[{"id":4364,"href":"https:\/\/blog.clusterweb.com.br\/index.php?rest_route=\/wp\/v2\/posts\/298\/revisions\/4364"}],"wp:attachment":[{"href":"https:\/\/blog.clusterweb.com.br\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=298"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.clusterweb.com.br\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=298"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.clusterweb.com.br\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=298"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}