Good morning,
I’ve played with and tested different types of server OS in the last two weeks. You’ve noticed it; my very first installation (since switching away from Debian) was Windows Server 2008. It was nice and fast, but an evalution. Then we (yeah that’s me and my wife) had the idea that using an Exchange Server at home could be very nice. So I spend another few days with poking around with Windows Server 2003 SBS that we already had and next with Windows Server for Small Business 2008 (x64) as another evaluation copy. Not to mention that it was a horrible act to keep backup of our content. In the end, anything failed extremely and made a strike through the bill (not sure if I can really translate this saying into english, but in German it means, that the plan has failed).

The most important thing for the server should be file storage. Secure file storage! Well, using Windows Server allowed me to use the onboard RAID0/1 controller to create a mirror of 2x 1TB drives. Nice, but.. I wanted to go to RAID5 and there’s also the costs. Not just for a good RAID card which costs around 350 – 400 Euro (PCIexpress, 3ware), no it’s also the licence for a Windows Server which is pretty expensive. Too expensive for a server that serves just 7 computers in our and the neighbours house.
So, I turned to Google and typed “Good OS for a fileserver”, and guess what it said? FreeBSD. Sure, FreeBSD… I tried that years ago – as desktop and it was nice and easy (compared to Linux very easy and much better structured), but it was never an OS that I would recommend for a desktop. Yes – that depends on the kind of applications that I run: Photoshop, Illustrator and so on. Nothing to go on FreeBSD here (please, don’t start discussing about GIMP – I like GIMP, but it’s NO WAY a replacement for Photoshop in my mind!).
Then I turned to an IRC channel where I often stayed in the last few years from time to time. It’s the IRC channel of the BSDGroup.de. (The IRC channel is #bsdgroup.de on irc.freenode.org (6667) if you would like to join, but it’s mainly in German). I snapped some keywords on ZFS and RAIDz. Hm.. ZFS? Isn’t this the groundbreaking new filesystem from SUN Microsystems? Yes! And it was ported to FreeBSD. Wow! I like SUN, I like their hardware which is very structured build (ever installed hardware into a SUN? That’s very similar to the Mac Pro – just easy to do!) and of course I fight with Java on my Cisco’s notebook every day
. No, I like SUN – they have humor and do cool commercials which you can check out on YouTube.
So, looks like RAIDz is what I’m looking for. A superstable filesystem that allows me to creat a kind of RAID5 on software base without having to buy one of those superexpensive cards. And it’s secure – more secure than any other filesystem. Woah! Sounds way too good, doesn’t it? Sounds perfect for my server project.
Here we go!
First, I grabbed the AMD64 ISO of FreeBSD 7.1 from their server, of course the “Boot Only” disc, which is similar to the “netinstall” of Debian. Just put it in your drive, boot and install. I did the setup several times in the past, so I remeber easily how to install it and what to take care about. The system harddisk is still on the old format, XFS, it’s on my Samsung 250GB SATA-II disk. Fine so far. After installing, I had to reboot the machine and login as root afterwards. Hey! No nano? What the hell…?
Ha! Getting software on your FreeBSD machine is something kinda easy. If you’ve a well powered CPU inside your machine, I would recommend you to go with the Ports collection which downloads the sources of the tool you would like to install and compile it right for your machine which gives every tool the perfect addiction to your machine. So for example installing nano looks like…
carter# cd /usr/ports/editors/nano
carter# make install clean
...
carter# rehash
Let me explain it. You join the directory by testing out where something is, or – more easy, by using whereis.
carter# whereis nano
nano: /usr/ports/editors/nano
Oh – by the way: Carter is the name of the server. My wife wants it
You can go on and install different things on your server the same way. I also installed bash, because the shell that came with FreeBSD is not so nice in my eyes, also it requieres this “rehash” command after every installation. Bash not
Ok – time to go and add some more diskspace to the computer:
In the picture above, you can see the server with final installation. From top to bottom I’ve added:
- Seagate 200GB SATA-II (Part 1/2 of RAIDz “backup”) ZFS
- Seagate 200GB SATA-II (Part 2/2 of RAIDz “backup”) ZFS
- WD “Green” 1000GB SATA-II (Part 1/3 of RAIDz1 “storage”) ZFS
- WD “Green” 1000GB SATA-II (Part 2/3 of RAIDz1 “storage”) ZFS
- WD “Green” 1000GB SATA-II (Part 3/3 of RAIDz1 “storage”) ZFS
- Samsung 250GB SATA-II (System) XFS
The server had 4Gigs of RAM, which is badly needed. Running RAIDz requieres at least 1Gig of RAM!
So, I started with creating the “zpool” (RAID storage) with the help of those two nice sites. I was really impressed that it told me after less than 10 seconds, that my RAIDz1 (storage) was created.
Let me show you how it looks after filling it with our content:
carter# zpool list
NAME SIZE USED AVAIL CAP HEALTH ALTROOT
storage 2.72T 456G 2.27T 16% ONLINE -
pool: storage
state: ONLINE
scrub: none requested
config:
NAME STATE READ WRITE CKSUM
storage ONLINE 0 0 0
raidz1 ONLINE 0 0 0
ad4 ONLINE 0 0 0
ad8 ONLINE 0 0 0
ad0 ONLINE 0 0 0
errors: No known data errors
That looks good, doesn’t it? Here’s the overview by running the “df -h” command to display the free/used capacities in your system:
carter# df -h
Filesystem Size Used Avail Capacity Mounted on
/dev/ad10s1a 496M 245M 211M 54% /
devfs 1.0K 1.0K 0B 100% /dev
/dev/ad10s1e 496M 12K 456M 0% /tmp
/dev/ad10s1f 216G 15G 184G 7% /usr
/dev/ad10s1d 4.7G 21M 4.3G 0% /var
storage 1.8T 304G 1.5T 17% /storage
Maybe you notice the difference between the sizes. I think it has something to do with the size units (1000 or 1024MByte = 1GB / 1000 or 1024GB = 1TB). I was shocked yesterday morning when I say TOO MUCH free space on this array
But when I woke up (and this could take some time in the morning), I got it.
Next step was to create the other array. I used my 2x 200GB drives for a backup for the most important data. This is a kind of “RAID1″ array. Of course, I had to try to remove the data cable from one of those disks to see if it works. Perfect! I was able to copy all data with 1 missing drive on each array!
carter# zpool status
pool: backup
state: ONLINE
scrub: scrub completed with 0 errors on Wed Jan 28 17:45:12 2009
config:
NAME STATE READ WRITE CKSUM
backup ONLINE 0 0 0
raidz1 ONLINE 0 0 0
ad6 ONLINE 0 0 0
ad1 ONLINE 0 0 0
errors: No known data errors
What you see here is the “scrub”. Scrub means to check the disk after a dropout of one disk. That’s why it’s recorded here.
carter# zpool list
NAME SIZE USED AVAIL CAP HEALTH ALTROOT
backup 372G 27.8G 344G 7% ONLINE -
carter# df -h
Filesystem Size Used Avail Capacity Mounted on
/dev/ad10s1a 496M 245M 211M 54% /
devfs 1.0K 1.0K 0B 100% /dev
/dev/ad10s1e 496M 12K 456M 0% /tmp
/dev/ad10s1f 216G 15G 184G 7% /usr
/dev/ad10s1d 4.7G 21M 4.3G 0% /var
backup 183G 14G 169G 8% /backup
I’ve removed the “other” entry everytime here (backup/storage) to make clear which is the one I’ve just spoken about.
So – cool, but how to get the data onto those RAIDz pools? Well, NOT the same way I used when I ran Windows or Linux servers. A painpoint regarding FreeBSD is the damn slow connection while using Samba3. So I decided to do a double-life. Using FTP as main option for transfering large files to the server, but using Samba site by site with FTP for small documents or sharing stuff to a network player for TV for example. Yes, it’s slow but funnily, in a test we did yesterday with a borrowd box, I was able to stream FullHD content to our plasma withour drops
So – that about the server. Other equipment has been purchased for the home office since I last mentioned it here. First of all, here are some nice shots from the office at the attic (we moved upstairs before christmas because of different reasons, one was, that I used to use 2 desks and not just one, just too much equipment to place
).
You can see the new case where the server is now built in on the right side of the desktop. Oh! By the way, I used Vista for a few days, but now I’m back on OSX here, and honestly – good to be back home
. Vista is better than I thought, but – I played around too much with everything, so it became on overkill and a waste of time. I spend too much time on “trying” except get things done, for example blogging
.
This is a recent shot from last Tuesday. I was watching John Chambers keynote at the Cisco Networkers 2009 over the VPN connection to the Cisco network. Very nice! I also loved the session of Brian Cox, a particle physican of the CERN. I’m very interested in astrophysics and this combination of Cisco and astrophysics – very win/win for me! Unfortunaly, I don’t see a recording of those session on the site
. Need to ask around if they exist and if they are available for public viewing.
By the way equipment. I really hope noone of Cisco is now angry about me, but sorry, I couldn’t affored 400 Euros into an 8 Port SoHo switch from Cisco, so I bought this HP Procurve 1800-8G, as recommended by Stefan.
But, no worries, Cisco, I also bought a new Wireless router and this time, I bought a Linksys, which is part of Cisco
Stacked together and in operation mode, it looks like this (well, today all ports are used
)
Before I forget, I twittered about thinking about installing FreeBSD on my X41, hey – got this supersweet 12″ ThinkPad X41 Tablet a few days ago and I’m really happy with it
That’s it for today, it’s 7 minutes before 9 and I need to urgently boot the Cisco notebook, have a lot things to get done today.
Have it good!
Ciao
Dennis
Tweet This Post
Digg This
Facebook
Reddit