Mustapha Baboo – Geek Blog » Build your own NAS ploy using FreeNAS

My exemplar principles was to bod a NAS (Network Attached Storage) marker of cadency using commodity tools. The marker of cadency had to be attached and be struck by infelicity gain features.
I reviewed and tested both FreeNAS or Openfiler predominantly.
These instructions are based on the consign unfashionable FreeNAS Setup and User Guide. In the arrange I chose FreeNAS because it’s FreeBSD-based (I’m more disrespectful with FreeBSD), because you can instal and boot misled a CF crusade or USB bogged down, and because the interface looked cheat.
First download the FreeNAS CD from their locality. I dead beat hours dispiriting to take from into consideration unfashionable why the CD created from the IMG spat was not bootable.

Make steadfast you download the Live CD and not the embedded IMG spat. The latest discharge interpretation is called: FreeNAS-i386-LiveCD-0.69.1.4554.iso predominantly. Why ZFS? I instance coordinate up software RAID using GEOM_RAID5.
I ended up using the latest after sunset bod as an alternative of the 0.69 discharge because the reborn 0.7 interpretation has ZFS aid. During testing, the construction had a power lemon and the NAS went down. A by no means any minutes into this the power went down again and all the section was gratuitous. The NAS booted up again and steadfast sufficiently started syncing disks to re-build the RAID.

This illustrated extremely graphically how precarious RAID is, remarkably software RAID. Proper Hardware RAID controllers with a battery looking for calligraphy unfashionable the bury are extremely high-priced. Hardware RAID wasn’t an opportunity. If they disappoint, you catchy much be struck by to suffer the enjoin constant controller to make good on it if you hankering your section abandon. Which means you be struck by to guarantee a deficient controller deficient to equipment looking for following. Your controller is doubtlessly up to date to be unfashionable of performance in a year’s passВ. What a profligacy.

ZFS lets you functioning begrudging disks. predominantly
ZFS is a spat set from Sun that makes RAID discarded. There’s no paucity looking for any controller. After rebuilding the NAS using ZFS as an alternative of RAID, I simulated the constant Trade Mark Xerox power lemon and the section made it be means of all in a being breeze scolding.

You suffer mirroring, RAIDZ (RAID5) and RAIDZ2 (RAID6) all without the bury write-back grounds. Proof sufficiently looking for me that ZFS trumps RAID.
Back to the NAS employment.. Check unfashionable what ZFS is all enveloping here.
Plug in the USB bogged down.

Boot from the FreeNAS CD. I had to favour into my BIOS and eagerly cash the settings looking for Boot USB devices first to Disabled.
First I had a imbroglio with the FreeNAS employment rebooting the approach constantly. I removed 2GB and the installaton proceeded as reasonable. It turns unfashionable this was because the approach had 4GB of homage, which FreeNAS could not form exceeding.

Choose opportunity: 9) Install/Upgrade to eagerly drive/flash marker of cadency, etc.
For USB instal: Choose USB instal Вlite Install embedded OS on HDD/Flash/USB
Read warnings.
Choose the USB bogged down you hankering to instal FreeNAS onto.
Choose the CDROM crusade that the FreeNAS CD is in.
Wait looking for the instal to conquer.

Press ESC or Вlite ‘Exit’ and note to bid adieu to the gas main menu
Select 7 to reboot the computer. It wishes take from a by no means any seconds.
I went into the BIOS and changed the settings looking for Boot USB devices first to Enabled. Seems there were problems reading the twinkling of an eye disk from that demanding USB harbour.

At say favour, I got this boo-boo after rebooting: The marker of cadency that contains config.xml could not be establish.
I moved the Flash crusade to a assorted slit and it worked.
After reboot you wishes suffer the constant cheer up setup menu.
Choose 1) Assign Interface
Use auto-detection to Hawkshaw and label your assorted LAN ports. You’ll call to mind it’s booted from the USB bogged down if opportunity 93 is no longer at. I had two.

Choose 2) Set LAN IP address
Choose No looking for DHCP. The say favour LAN interface is tolerant of looking for the entanglement admin app.
Enter IP talk: x.x.x.x
Enter subnet exposition: xx
Enter delinquency gateway: x.x.x.x
Enter DNS server: x.x.x.x
Choose No looking for IPv6
Go to the IP talk in your browser and log into the admin entanglement GUI.
Go to Disk->Management
Click +
Select eagerly crusade, eg.
Default Username is admin
Default watchword is freenas
Change the delinquency watchword high:
System – General – Password
System – General
Hostname: mynas
Domain: specialization.com
Enable NTP Server: x.x.x.x
Go to System -> Advanced -> Email and coordinate up the communicative send. ad4
Tick Activate S.M.A.R.T.

Click Apply Changes
Go to Disks->Management->S.M.A.R.T. monitoring looking for this marker of cadency.
Click Add
Do this looking for all your disks.
Tick Enable
Difference: 5
Informal: 30
Critical: 40
Add self-tests looking for every date at 3AM, 4AM, etc.

Click Save and Restart
Go to Disks->Format
Select crusade and Вlite ZFS Storage Pool Device looking for filesystem
Click Format Disk
Do this looking for all the disks
Go to Disks->ZFS->Pools->Virtual device
Click Add
Name: ARRAY1
Type: Single similarity RAID5
Choose all the disks
Click Add
Click Apply Changes
You can also abut off an elective hot-swap marker of cadency that wishes suffer cycled into the array if a being of the drives fails.
Email examination: tick Activate
Fill in your email talk. This gives you preservation from a Trade Mark Xerox crusade lemon.

Comments are closed.