Configuring Open Solaris 2008.05
This is my first blog item on this blog ever, and it’s not about Groovy, nor Grails, nor Java. This one is about installing OpenSolaris 2008.05, and some of my experiences while doing so.
First a small disclaimer: my current OpenSolaris knowledge is limited, and I have only started playing with it for around 20 hours or so.
My goal is to build a media server, which should serve my Squeezebox. For that, I’ve bought some hardware, including:
- 4 x 750gb Samsung HD’s
- ASUS Stuff
- 2 GB ram
Which should result into a Network Attached File Storage with 2 TB of HD. This is accomplished by using RAID Z on a ZFS filesystem, but more about that later. I thought about using Ubuntu + LVM + RAID 1, but I heard that it promotes datacorruption, since it doesn’t do checksum’s like ZFS does, so I skipped that idea and went straight to OpenSolaris. Well, almost straight anyway: I first tried Solaris 10, but since that one didn’t boot (Image doesn’t fit memory error or something) I decided to go for OpenSolaris. Never worked with it, and a nice learning experience, so I thought.
What I first wanted to do, is to format all the HD’s, partition them, mount them, and put them into a RAID something configuration. Well, it turned out I was quite wrong here.
1) Partitioning is something which is apperantly not done in Solaris
2) Formatting IDE disks is something from the past?
3) Mounting them….well, I don’t think so!
What I had to do was: type format, which resulted in this dialog:
Searching for disks…done
AVAILABLE DISK SELECTIONS:
and press CTRL+C after that. I needed that for a listing of all the available disks, which are identified after the number with the dot. In my case, c4d0, c4d1, c5d0, c5d1 and c6d0 are my disks, where the last one is my boot disk.
To make this a RAID Z ‘cluster’, I only had to type this:
After that was done, I needed some quotas. So I created some filesystems:
zfs create tank/applications
And the filesystems were created. Easy as that! Next, the quota could be set, since I don’t want my media to overrule my running applications. This could be done with the following command:
and can easily be checked with the following command:
NAME PROPERTY VALUE SOURCE
tank/media quota 1.95T local
The next thing I have to do, is to install some applications on it, but first disable the GDM/X graphical login window. This can be done like this: