Setup a backup server with FreeNAS
Sunday, February 3rd, 2008
A few years ago my data added up to a few Gig and backups were a simple matter of adding another mirrored hard drive to my one trusty Dell 700XPS. However, as my home network has expanded with music, image and video data and several computers and laptops, I found the need for a dedicated backup box essential.
My requirements were simple. It needed to be free, easy to configure, scaleable, somewhat well documented and have miserly system requirements. There are many open source solutions out there but I decided to implement FreeNAS.
The box I used for this had the following specs:
- System: Dell PowerEdge 400SC
- Proc: Intel Pentium 4 Northwood 2.8Ghz
- Memory: 2Gb - 4 x 512Mb
- Video: Rage XL
- OS drive: 40Gb Seagate Barracuda 7200.7 UltraATA
- Data drive: 200Gb Western Digital WD2000JB
- Optical drive: LG Superdrive DVD/CD-RW
Just a quick note on the above system specs. While a 2.8Ghz Northwood and 2Gig of RAM is by no means bleeding edge performance, I also realize it’s not exactly miserly. However, it’s the only spare system I had and I’m not going out to buy a weak Celeron system with 256Megs of RAM to demonstrate how efficiently FreeNAS uses system resources. With that said, let’s go on to the installation.
INSTALLATION
- Download the lastest stable image from the FreeNAS site and burn image to CD
- Boot up your system with FreeNAS LiveCD (not the embedded *.img)
- Hit Enter when the FreeNAS splashpage appears.
- Select
9to install to your harddrive - Select
3to install full release - FreeNAS setup will list the detected CDROM. Mine was
acd0 - The next prompt was to enter the name of the CD-ROM drive, I entered
acd0that the install routine detected. - A list of detected drives will be listed and a prompt
Enter the name of the hard drive. This drive will be the FreeNAS installation drive not the data drive. - My listed drives were:
ad0: 38146MB
ad1: 190783MB
- I typed the following for my OS drive -
ad0 - At the next prompt, type in the size of your OS partition. I’m utilizing the entire disk so I typed the following:
38146 - The OS will install and then you are free to reboot the system
- The next step is to assign the LAN interfaces.
- After entering back into the setup menu, select
1 - Assign Interfaces. - My installation automatically detected the interface - in my case
em0and that is what I typed when prompted to enter my LAN interface. - I don’t want to configure additional (Optional) interfaces, so in the next screen I just hit the Enter key and in the next screen applied any changes by typing
y - In the main menu I selected
2 - Set LAN IP Address - I typed
nwhen asked if I wanted to use DHCP for IPv4 and then entered my preferred static IP address - My LAN subnet bit count was 24 and my IPv4 gateway was my router at 192.168.1.1
- I also added my DNS information, external Comcast but I’m not sure if I should have just pointed it to my internal Linksys router - not sure if it does forwarding automagically.
- I configured IPv6 to configure automatically and then sent a test ping to my router. Looks good so far.
- So you should get a message about the assigned address and that you can access the WebGUI there.
- I logged on to mine at 192.168.1.30 - w/username:
adminand passwordfreenas. - Once logged in, I went ahead and modified some of my network settings. I changed to reflect my network name suffix and also added a DNS server address. I also went ahead and changed the WebGUI password.
- Go to
Disks -> Managementand click on the + sign. - On the next page, select the disk you want to use as your Backup directory. In my case,
ad1as noted earlier in these instructions - In the Preformated FS drop down, we will leave the value as
Unformated, clickAddand in the next windowApply - Next we want to format the disks. I selected
ad1andUFS with soft updates - Now to mount the disk we use
Disks -> Mount Point, click the + sign and select the disk to mount. I used the following values:Partition: EFI GPT
File System: UFS
- Click
SaveandApply - Now we need to start a few daemons, specifically enabling CIFS/Samba
- Click the
Services -> CFS/SMBlink and check theEnablebox. - Leave all the default values and click the
Savebutton for now. We’ll go back and change things as needed. - Apparently as of version 0.685b we need to assign shares. So click the
Sharestab and enter the appropriate information. I used the browse button to select the right syntax for the file path and also unchecked theHosts denyoption. - At this point, in a Windows system I am able to type
\\192.168.1.30in the Run command and access the share. On Gutsy I can open Nautilus, clickGo -> Locationand type in the ip address and access the share as well. - Now that we’ve tested CFS/SMB access, we want to go ahead and allow our *nix systems native access with NFS. Locate and click
Services -> NFS - Check the enable check box. Enter the correct subnet that will have access, including the subnet mask which in my case was
192.168.1.0/24. Click Save and Restart and make sure that enable is checked. Let’s test now. - Well, I see it but it’s not listed in my normal network because I haven’t edited those network settings. It shows up in Workgroup and the only place i can see to change that is in CFS/SMB.
- Change the workgroup name to whatever you network name is - in my case it is
homenet.localClick Save and restart - Checked it again and there it is. Easy.
archives
technorata
gallery
music