More Fun with OpenSolaris

Partly due to laziness, and partly due to me still working out the kinks, I never included this stuff in my original post on setting up an OpenSolaris fileserver.

VNC

In order to save physical space and make your server more accessible, it can be a good idea to setup a VNC server so you can control it remotely without having to have a monitor, keyboard and mouse plugged in.  This is a fairly straight forward procedure and I hope to outline it for you now.

First of all, you’re going to need the software.  This can be obtained from sunfreeware.com.  Simply search for x11vnc and download the binary package, which at the time of writing is x11vnc-0.7-sol10-intel-local.gz.  There is a note there on the dependencies that must be installed for this to work, however I believe these were already installed for me, but your mileage may vary.  Once you’ve downloaded the gzip file, you should be able to extract the contents by simply double clicking the downloaded file and then dragging the contents somewhere (e.g. the desktop).  Now, RTFM.  It’s only two lines, so I’ll repeat it here for you =P
Continue reading

How to Build a 2TB ZFS Fileserver for AUD800

My aspirations to build a Solaris fileserver have finally been realised and I now have 2TB of networked storage sitting beneath my desk as I type this. Now that the server is built and working, I figured it was time to share my experiences with the world.

The Requirements

Put simply, I wanted a fileserver to host all of my music, movies and other files in a central location that was networked with the rest of my house. Not only did I want to store my files, but I wanted around 2TB of actual storage so that it would last me a while, as well as some sort of protection against an inevitable drive failure. Unless you want to run some sort of backup software, which I don’t, then RAID is generally how you protect against drive failures. So RAID it was.

After some research, I decided that a dedicated box with RAID was definitely going to meet my needs the best. I also decided that RAID 1 (a simple mirror) was inefficient as it sacrifices too much drive space. As cheap as storage is these days, I’m still a poor uni student. So, something like RAID 5 is what I wanted. Once this was decided, it was time to look at filesystems. It didn’t take long to see that Sun’s ZFS with raidz was probably the way to go. This made the choice of operating system simple, as ZFS means Solaris unless you want to run your filesystem in userspace. To be honest, I’m not sure how much this would impact performance, but a chance to get acquainted with a new OS was too good to pass up, so Solaris it was.
Continue reading