Linux.com

Feature: Storage

FreeNAS makes it easy to add storage to home networks

By Joe Barr on January 22, 2007 (8:00:00 AM)

Share    Print    Comments   

FreeNAS is a small, powerful, full-featured implementation of FreeBSD as a network-attached storage device. (It also happens to be January's Project of the Month at SourceForge.net.) If you're a Linux user like me, the BSD-speak used for devices and such might give you pause, but other than that small caveat, installation and usage shouldn't be a problem. It's powerful enough to be used in the enterprise, but it's friendly enough so that even a typical home office user can take advantage of it. Here's how I created an easy-to-use NAS device for rsync backups and FTP server on my LAN.

First, you'll need a machine to serve as a dedicated NAS box. An old PC will work just fine. All it really needs to have is an Ethernet connection, wired or wireless, and a disk drive. Even a USB key drive or CompactFlash card can be used for storage, but I went with a standard IDE drive. I used my usual test box to house FreeNAS for this review, and it was more than sufficient.

The ISO for version 0.68 is only about 38MB -- nowhere near the size of a full Linux distro. I downloaded the file and burned a CD, then was ready to install FreeNAS. The first boot from the CD failed due to an argument between the BIOS and FreeNAS over power management, but after disabling that BIOS feature, I was off and running.

The second boot went quickly, and I was soon looking at the FreeNAS console -- all text, mind you, none of that sissy GUI stuff here. Well, not unless you count the webGUI, which serves as the primary interface between user and FreeNAS. More on that later.

The console told me the LAN IP address FreeNAS was using (192.168.1.250) and how it was connected. The connection was shown as "lan -> nve0", which is not the way you see Ethernet devices described in Linux. My guess is that in BSD-speak, the "nv" stands for an Nvidia driver for the network card, the e stands for Ethernet, and the 0 the device number. Not intuitive, perhaps, but not entirely cryptic, either.

The console offers a number of choices:

  1. Assign interfaces
  2. Set LAN IP address
  3. Reset webGUI password
  4. Reset to factory defaults
  5. Reboot
  6. Ping host
  7. Install on HD/CF/USB key
  8. Shell
  9. PowerOff system

I began by choosing to install FreeNAS on the hard drive. The installer then asked if I wanted to use a single UFS partition on the drive, or two partitions. If you select the first option, FreeNAS will take over the entire drive for itself, and you'll have to use another drive for storage. The second option, for two partitions, creates both a system partition and a storage partition on the drive. Those are the only choices.

The actual installation took no time at all. I then removed the CD and rebooted from the hard drive. Before proceeding past this point, I recommend that you download the 43-page FreeNAS Setup and User Guide and read it. It's filled with good things to know about FreeNAS. If you just don't read documentation, at least download it and have it ready for use when you're puzzled as to what to do next.

When the system booted, the console appeared, showing the same nine options as it had before. Following the instructions in the guide, I set the name of the Ethernet interface (nve0, as described above; yours will no doubt be different). FreeNAS wants a reboot after that change, so I complied and then continued by setting the IP address. I chose DHCP to handle the address, but it may be wiser to specify a static address so that you can add the FreeNAS box to your /etc/hosts files on the other systems on the LAN.

That done, FreeNAS said I could access the machine via the webGUI, so I turned my back on the console and went back to my regular desktop machine.

FreeNAS GUI Configuration
FreeNAS GUI config
Still following the installation instructions in the manual, the first order of business at the webGUI was disk management. The installation option I chose, to create two partitions on the drive, took care of the UFS formatting, but I still needed to add the drive and name the mount point.

As you can see in Figure 1, the webGUI is clean and easy to read. The only thing I found peculiar about it was its use of icons to indicate whether you want to add, edit, or delete something. Each icon is a small circle, containing a + sign, or an e, or an x. After first blink, I correlated each of those to the action desired.

To add a drive to be used for storage, I first clicked on Disks -> Management, then clicked on the icon with the plus sign in it. Only one drive was listed as a possibility, so I selected it and -- based on the manual -- chose UFS.

That done, I set a mount point by first clicking on Disks -> Mount Point, then adding a mount point on the previously added drive. If you chose the two-partition drive during installation, be sure to specify partition 2 on this screen, then give the mount point a name and description, and you're good to go. Note that when adding the drive and assigning the mount point, you need to click a second time to actually apply the change.

With the disk management a done deal, you need only to add a user and group, and enable the services you need. Click on Access -> Users and Groups, then on the Groups tab. Add a group by giving it a name and description, then add a user by providing a name, password, and group affiliation. I checked the box to enable full shell access as well, so I could more easily poke around on the FreeNAS box to see how things were organized.

Adding services follows the same scheme as adding drives, users, and groups. I selected only FTP, SSH, and rsync, but CIFS (Samba), NFS (Network File System), Unison (File Synchronization), and AFP (Apple Filing Protocol) are also available.

Actually using those three services is straightforward, with the only caveat being that you are not automatically delivered to the proper directory. There are no home directories associated with FreeNAS user accounts, so you need to specify the mount point you set up earlier.

I named my mount point FreeNAS-Data, for example. In order to use FTP to send or retrieve data, I first needed to change to the /mnt/FreeNAS-Data subdirectory. Ditto for rsync.

To try out FreeNAS, I backed up the home directory on my desktop machine. All I needed to do is enter the following at the command line:

rsync -avr /home/warthawg 192.168.1.109:/mnt/FreeNAS-Data

That's pretty much all it takes in order to use FreeNAS to keep your important data on the LAN safely backed up. It's easy to use and easy to set up, even for Linux users like me who are not familiar with BSD.

FreeNAS is capable of much more as a LAN backup and storage box than I've described here, and even more features are planned. The developers plan to work on a version that includes user authentication and system monitoring.

Share    Print    Comments   

Comments

on FreeNAS makes it easy to add storage to home networks

Note: Comments are owned by the poster. We are not responsible for their content.

Boolean Closure.

Posted by: Anonymous Coward on January 22, 2007 09:18 PM
"It's powerful enough to be used in the enterprise, but it's friendly enough so that even a typical home office user can take advantage of it."

For some abused definition of "enterprise".

#

Re:Boolean Closure.

Posted by: Anonymous Coward on January 23, 2007 12:34 AM
I don't agree !

The biggest problem with FreeNas is that a user can
only "be" in one user group.

That limits the access control so much that it's
not Enterprise Ready in my eyes.

(We use it at work anyway, but a lot of scenarios about access control are not possible with FreeNas !)

Anonymous Reader

#

FreeNAS Rocks!

Posted by: Anonymous Coward on January 24, 2007 11:56 PM
I have been using FreeNAS for quite some time and I am a really big fan. In fact, I have made FreeNAS one of the focuses of my blog Daily Cup of Tech (<a href="http://www.dailycupoftech.com/" title="dailycupoftech.com">http://www.DailyCupOfTech.com</a dailycupoftech.com>).


One of the things that really impresses me about FreeNAS is the fact that this free OS can be up and running in a matter of minutes, opening you up to the ability to store file on the system using Windows, FTP, RSYNC, and more! And it only takes up 32 MB on the disk!


I have written a number of articles about FreeNAS. A lot of it is about how to set up and configure the system to work with your Windows network. All of the articles can be found at <a href="http://www.dailycupoftech.com/category/freenas/" title="dailycupoftech.com">http://www.dailycupoftech.com/category/freenas/</a dailycupoftech.com>. I hope you find them to be useful.


Tim

#

Why guess Joe?

Posted by: Anonymous Coward on January 22, 2007 06:48 PM
It took me 30 seconds to find this:
<a href="http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/config-network-setup.html#AEN15668" title="freebsd.org">http://www.freebsd.org/doc/en_US.ISO8859-1/books/<nobr>h<wbr></nobr> andbook/config-network-setup.html#AEN15668</a freebsd.org>

FreeBSD uses the driver name followed by the order in which one the card is detected at the kernel boot to name the network card. For example sis2 would be the third network card on the system using the sis(4) driver.


I'm guessing you guys don't get paid to do this, but no need to be half-arsed about it.

#

Got it, Love it

Posted by: Anonymous Coward on January 22, 2007 10:01 PM
I've been using this for almost 3 months. Had to restart it only once. Love it. Wish it was just based on Linux.

JT

#

Re:Got it, Love it

Posted by: Anonymous Coward on January 22, 2007 10:50 PM
omg! its not linux... starts shaking. i just dont understand. need caffeine. its not linux. what do I do? why didnt they just use linux. chugs mountain dew, puts a big wad of chew. I understand unix. I'm a pro sysadmin. as long as unix means linux. sobs loudly. why didnt they use linux? why? why? slices? wtf? ufs? moans. if only they had just used linux..... if only...

#

Re:Got it, Love it

Posted by: Anonymous Coward on January 23, 2007 03:04 AM
This have the same base like Moonwall (which is also FreeBSD based). The developper have decide to create a small distro (38Mb), he started by modifying the code of Moonwall rather than to recreate small distro based on Linux. FreeNas support Ext2-3, UFS (BSD fs) and other. Unix isn't equal as Linux<nobr> <wbr></nobr>;), you are sysadmin so you should know this... FreeNAS work great, one sysadmin have an 4.1TB box in RAID5!

#

Re:Got it, Love it

Posted by: Anonymous Coward on January 23, 2007 11:37 PM
Wow, expressing a preference for linux sure leads to getting a lot of words put in your mouth, doesn't it?

If you think there are NO legitimate advantages of Linux a rational person might like, then you need to take stock.

#

OpenFiler: similar concept, based on Linux

Posted by: Anonymous Coward on January 22, 2007 11:16 PM
If you would be more comfortable with a Linux-based storage appliance, you should certainly consider <a href="http://www.openfiler.com/" title="openfiler.com">OpenFiler</a openfiler.com>.

#

Re:Got it, Love it

Posted by: Anonymous Coward on January 23, 2007 02:43 AM
It works just fine! Thanks God it is not using linux!

#

Re:Got it, Love it

Posted by: Anonymous Coward on January 23, 2007 03:07 AM
Full ack.

#

Re:Got it, Love it

Posted by: Anonymous Coward on January 24, 2007 08:05 AM
Lol!!! I couldn't agree more with you!!! hehehe
besides, the deamon is far more cooler than the penguin... (... is that bombs coming???...BURN ME! BURN ME!! I'M A WITCH!!) ok, now serious, I agree that Linux would also be interesting, since it supports a wide varieties of file systems, but UFS as already proven to be rock solid and very versatile when compared with most "enterprise" level fs's, this said, personally and don't see much more advantages in using Linux instead of FreeBSD...

#

Re(1):Got it, Love it

Posted by: Anonymous [ip: 116.68.97.33] on January 18, 2008 03:18 PM

Re:Got it, Love it

Posted by: Anonymous Coward on January 24, 2007 09:36 PM
I don't have a problem with FreeBSD. I'm just not familiar with it. I'm not a sysadmin/programmer anything like that. The fact that I could get it up and running is a testament to how good this beta software is, and how good FreeBSD is.

I looked at openfiller but didn't feel like trying to get my own rsync in it, or have the OS be that 'large.' The small size of FreeNAS has been a major selling point to me.

I've helped with the documentation, since I'm not a coder and can't contribute there.

But I'ld still like a Linux version, just for the warm fuzzy.

Good day!

JT

#

Wikipedia article

Posted by: Anonymous Coward on January 23, 2007 12:59 AM
<a href="http://en.wikipedia.org/wiki/FreeNAS" title="wikipedia.org">http://en.wikipedia.org/wiki/FreeNAS</a wikipedia.org>

By the way Joe, the link to your testbox goes 404.

#

Freenas should be renamed SLOW-Nas

Posted by: Anonymous Coward on January 23, 2007 06:36 PM
I really wish people doing articles on freenas would actually use and test it before saying how great it is, just getting it to run does not make it easy and great. Case in point, this particular article the author claims he seen $75K performance, what was he smoking, read on further when I get to the speed issue.

<a href="http://www.thestorageforum.com/blog/index.php/2006/06/01/freenas-short-review/" title="thestorageforum.com">http://www.thestorageforum.com/blog/index.php/200<nobr>6<wbr></nobr> /06/01/freenas-short-review/</a thestorageforum.com>

Besides it not being stable, (freebsd is stable you say?) well yes it is, but the freenas team has managed to make it unstable with poor php programming, it's been alpha quality code for over a year. All one needs to do is peruse thier bug tracker and forums and see the amount of problems.

Security? I've already found 3 different ways too compromise it (unix security 101), of course it does make it a little easier when the author keeps all the user/passwords in cleartext in a xml file.

Raid is nearly a joke in it, people can't rebuild, the system reboots randomly when the array degrades, it's plain sad.

Speed is another MAJOR issue, it's extremely slow, slower than hardware nas boxes like buffalo etc. It seems to handle 10/100 fine, but when you get to gigabit, forget it, the system can't keep up. Since a nas box spends 99% of it's time sending/receiving files, this is the deal breaker. Here's a couple links for speed discussions.

<a href="http://74.52.135.83/index.php?option=com_content&task=view&id=27962&Itemid=77" title="74.52.135.83">http://74.52.135.83/index.php?option=com_content&<nobr>t<wbr></nobr> ask=view&id=27962&Itemid=77</a 74.52.135.83>

<a href="http://www.serverelements.com/phpBB2/viewtopic.php?t=1224&sid=906fae81036b6bd0bfa9f15106943c69" title="serverelements.com">http://www.serverelements.com/phpBB2/viewtopic.ph<nobr>p<wbr></nobr> ?t=1224&sid=906fae81036b6bd0bfa9f15106943c69</a serverelements.com>

Bottom line, with all the time your gonna spend screwing with this thing, your better off putting that time into learning to configure a linux distro, it will be safer and faster and more reliable.

#

Re:Freenas should be renamed SLOW-Nas

Posted by: Anonymous Coward on January 23, 2007 09:03 PM
Don't blame any of that on FreeBSD. As a user of both FreeBSD and linux (mainly Ubuntu and Gentoo). I have to say FreeBSD is easier for me to use and configure and makes more sense. The system is extremely stable and raid is well implemented. And in terms of the speed issue, you have to enable polling to get gigabit to not suck. Not sure if FreeNas enables it by default. Yes if you know nothing of *BSD, stick to linux. But you're missing out on an operating system that many *nix enthusiasts would say is much better than any linux distro

#

Re:Freenas should be renamed SLOW-Nas

Posted by: Anonymous Coward on January 23, 2007 09:11 PM
Agreed. I've ran enough FreeBSD SAN and RAID systems to know for myself that BSD is rock solid. I'm not saying anything of linux.

#

People can also try NASLite

Posted by: Anonymous Coward on January 24, 2007 01:51 AM
I know not all the versions are free, but they're cheap.

<a href="http://www.serverelements.com/naslite-2-cdd.php" title="serverelements.com">http://www.serverelements.com/naslite-2-cdd.php</a serverelements.com>

But then again, why not just set up a Linux-based file server, and use a cheap RAID card from Newegg? That's how I'd go.

#

But it&#8217;s a Free NAS

Posted by: Anonymous Coward on January 23, 2007 11:21 PM
Has anyone had that hunk of crap FreeNAS under any kind of load? Or do people just install it to play with the web interface just to go wow, how cool? It's a piece of candy-coated garbage. It's not only slow but it craps out almost daily. I’ve wasted way too much time trying to get that thing to do its job. But, it’s free!

#

Re:But it&#8217;s a Free NAS

Posted by: Anonymous Coward on January 24, 2007 03:42 AM
Nice toy but not for enterprises at all

#

wrong version of FreeBSD

Posted by: Anonymous Coward on January 24, 2007 08:03 AM
If only they had based it on DragonFly BSD, their performance and stability would have been much better.

#

Re:wrong version of FreeBSD

Posted by: Anonymous Coward on January 26, 2007 08:18 PM
What a nonsense. Thanks god, DragonFlyBSD people do have more brain activity.

#

FreeNAS Awesome!

Posted by: Anonymous Coward on January 24, 2007 11:24 PM
I have been using FreeNAS for quite some time and I am a really big fan. In fact, I have made FreeNAS one of the focuses of my blog Daily Cup of Tech (<a href="http://www.dailycupoftech.com/" title="dailycupoftech.com">http://www.DailyCupOfTech.com</a dailycupoftech.com>).


One of the things that really impresses me about FreeNAS is the fact that this free OS can be up and running in a matter of minutes, opening you up to the ability to store file on the system using Windows, FTP, RSYNC, and more! And it only takes up 32 MB on the disk!


I have written a number of articles about FreeNAS. A lot of it is about how to set up and configure the system to work with your Windows network. All of the articles can be found at <a href="http://www.dailycupoftech.com/category/freenas/" title="dailycupoftech.com">http://www.dailycupoftech.com/category/freenas/</a dailycupoftech.com>. I hope you find them to be useful.


Tim

#

Re:FreeNAS Awesome!

Posted by: Anonymous Coward on January 25, 2007 05:48 PM
Nice Tim, why don't you add some benchmarks and show everyone how slow it is compared to other nas solutions.

#

Re:FreeNAS Awesome!

Posted by: Anonymous Coward on March 02, 2007 11:14 AM
Correction. I tested transfer to/from freenas drives again on wirelessG. Throughput is actually 3.3MB/s not 20MB/s.

Sorry for the misinformation.

#

Re:FreeNAS Awesome!

Posted by: Anonymous Coward on March 02, 2007 09:51 AM
Awesome is an understatement. Installed on an ancient P3 box with 3 hard drives. The P3 is on a wireless-G connection, which came up with no fiddling whatsoever.

Within minutes I'm sharing files from Windows and Linux. What is considered slow? I'm seeing transfers at 20+ MB/s.

#

Not much changed since 0.66 then?

Posted by: Administrator on April 14, 2007 08:22 PM
Nice article Joe, I wrote one about a year ago for NewsForge based on version 0.66. I guess not a lot has changed since then.

If you are interested in my article, you can find it here: <a href="http://www.newsforge.com/article.pl?sid=06/05/19/1349206" title="newsforge.com">http://www.newsforge.com/article.pl?sid=06/05/19/<nobr>1<wbr></nobr> 349206</a newsforge.com>

I also discuss setting up RAID 5 with FreeNAS.

THP

#

is it only for networking purposes?

Posted by: Anonymous [ip: 125.20.39.39] on September 10, 2007 02:16 AM
can we add PCLinuxOS apps and tools to NAS? If so, how?

#

FreeNAS makes it easy to add storage to home networks

Posted by: Anonymous [ip: 116.68.97.33] on January 18, 2008 03:20 PM

Accessing FreeNAS from Windows / SQL

Posted by: Anonymous [ip: 66.82.9.87] on February 11, 2008 05:28 AM
Newbie question

I'm very new to linux and no nothing of BSD but I've been around computers for a very long time and learn fairly quickly.

Is it going to be possible to have my SQL servers use FreeNAS as storage for SQL databases? [.MDF files] ?
As is SQL will not allow you to use space on another server, the drives must be attached.

So how does this work for something like MS SQL server? Is there a windows device driver that makes this possible or something?

#

FreeNAS makes it easy to add storage to home networks

Posted by: Supreme Dalek on February 17, 2008 06:16 PM
If you need to have the freenas providing storage that looks like an attached drive, have you considered iSCSI?

#

FreeNAS makes it easy to add storage to home networks

Posted by: Anonymous [ip: 70.109.149.239] on February 25, 2008 09:14 PM
I am testing FreeNAS in a very two ide disc setup. No RAID. I love FreeBSD. I love how easy FreeNAS is to setup but my box keeps rebooting itself. Had this
running for a week with no issues. Now it is like I have an invisible buddy press the reset button! Maybe it is the little FreeBSD devil. Get out of my NAS you little bastard!

#

This story has been archived. Comments can no longer be posted.



 
Tableless layout Validate XHTML 1.0 Strict Validate CSS Powered by Xaraya