About my project “Belldandy”

Sunday, 11. April 2010

I’ve written a lot since I moved to Posterous about OpenSolaris and ZFS. What I haven’t done was giving you a complete overview about the project. With this post, I want to do it. I’m using an interview style to give this a structure.

What is Belldandy?

Belldandy is a name of a fictional person, used in the MangaOh! My goddess“, one of my favorite comics. Reading this post, you will see that I use more japanese comic names for virtual machines.

But what is YOUR Belldandy?

Well, Belldandy is the name of my newest server. I write “newest”, because over the years I tried so much different systems and types of servers, that I’m really happy to announce a very stable server here.

What kind of server is it?

It’s a self-build one, but I used hardware parts that where recommended from Constantin Gonzalez from Sun. I’m using my old but very reliable TAGAN 450W power supply, an ASUS M4A78LT-M AMD mainboard which supports ECC memory and 6GB of ECC RAM. The OS harddisk is a new 160GB IDE HD. It’s not a 19″ server – it’s a regular Midi tower (MESH series by Chieftec).

Why IDE? Isn’t this a rather old standard? What about SATA?

I’m using all 6 onboard SATA ports for the zpool. IDE may be an old standard, but it works fine for the OS itself. With 6GB of RAM I don’t think too much about HD IOs on this HD. It’s more important, that the zpools are bound to a fast bus. I simply found it a waste of an port using a SATA HD for the system.

So you’ve 6 HDs inside the server?

Yes! I’ve installed 6x 1TB WD “Green” HDs into the server. Those are connected to the zpool “storage” which is the main storage of the server.

What is that “zpool”?

zpool is pool of HDs you’ve virtually stacked into one large virtual HD. It’s widely comparable to RAID, but it offers a lot advantages compared to a traditional RAID. I’m using 3x Mirror drives. Each mirror contains 2 HDs with the capacity of 1TB each. Together, because they are internally mirrored, I’ve 50% of the capacity. If you want to learn more about zpool and ZFS, I could highly recommend googling for it – there are tons of interesting and funny material out there.

Why do you mirror? Are your HDs so bad?

No ;) It’s a thing of security for my data. Harddisks are not made forever and the fail. The question is just: When. Having a mirror protects my data from getting lost when one or more HDs are crashing the same time. Of course, if it’s a series issue, maybe I’m also not secured against this – 3 HDs where bought at the same day, but I think it’s a very way which let’s me sleep deep.

Which OS is that? Linux?

No, I’m running OpenSolaris which is something between Linux and UNIX, I would think it contains the best of both worlds. It’s mainly based on Sun’s Solaris but with a GNome environment. It’s a great system, but I’m also rather new to it, so I need to learn a lot about it. It’s amazingly pretty easy to create storages and zpools.

How do you connect to your server from your clients?

I’ve installed netatalk on the OpenSolaris machine to be able to use it with our Macs. It’s pretty much forward. A bad idea is to use SMB and Macs, there seems to be a bug inside the Finder’s SMB implementation. Anyway – it’s cool to have AFP running (netatalk).

Of course, I could always use the SCP protocol to connect to the server if I need to, but that’s more useful for the administration than for normal usage.

Isn’t it loud? Have you stored it in your office?

It’s really too loud as I’ve installed 4 very efficient fans into the server. I had it for a couple of days in our office and it was not very comfortable, so we decided to putit into the basement. I honestly prefer a quiet office (even music sometimes annoys me and I’m working mostly in silence).

You have some external boxes on that desk – what are they for?

The bigger box is a great box – it is my Onnto DataTale. It allows me to put 4 HDs into and comes with a hardware RAID. I’ve currently installed 4x 640GB WD Blue HDs and connected it via eSATA to the server to store temporary data onto. It gives me 1.8TB of usable storage.

What are these other 4 boxes for?

That’s (from left to right) a Seagate Desktop drive, a MacPower enclosure with another 1TB Seagate HD inside and 2 Hitachi external HDs. They are all connected via a USB2-Hub to the server and are set up as an RAIDz1 backup zpool. It gives me 2.7TB of available storage for backing up our data. RAIDz1 is more or less comparable with RAID5.

How do you connect the server to the internet, or is it an offline server for local use only?

It’s connected directly to the internet and out 2 DSL lines. OpenSolaris itself is connected to the Vodafone line which offers a fix IP and NO disconnect every 24h’s, so it’s a real and cheap dedicated line. It gives me 6MBit/s download and 640KBit/s upload. So or so, I don’t run any services on the host system itself for protection. The other line is from the Deutsche Telekom and allows us to surf with 16MBit/s (1MBit/s upstream). This is mostly used for the clients only.

Do you run any virtual machine on the server?

Yes, indeed. I run 2x Debian (“Urd” & “Mila”) (one as development machine for my web design & development, the other as media streaming device (namely Firefly iTunes server or “mt-daapd)). I also run a Windows Server (“Miyuki”) on the server as mailserver. It’s a Windows Server 2008 r2 x64 with an Exchange 2010 installed on top of it. If Microsoft creates a great product, it’s in my mind Exchange. And I say that as Mac user ;)

Which software do you use to virtualize this stuff?

Sun gives away their virtualization software VirtualBox for free – and of course it runs fantastic on their own OpenSolaris. I’m very happy that it runs so well.

On my clients we run Parallels on my Mac Pro for Windows virtualization and my wife is running a VMWare Fusion on her MacBook for Windows 7.

Do you have a firewall installed in your rack?

Yes and no, I’ve a IBM NetVista mounted inside the rack. It’s a very small and slow machine – a Thin Client – but it’s fantastic to run IPCop on. Currently, because it was a long road to get to this very satisfying server, it’s switched off, but I will turn it on again soon, and even if it’s for local proxy, free DNS servers and local DNS (don’t you guys also hate to type IPs for LAN servers? ;) ).

How much HD capacity/usable capacity have you attached to Belldandy?

- 6x 1 TB internal
- 1x 160 GB internal
- 4x 640 GB external
- 4x 1 TB external

Makes around about 12 TB of storage, I can use up to 7,8 TB for real storage. There’s a lot of overhead for security, but I think it’s really worth it. ZFS as filesystem itself is very secure, but in this combination, it’s fantastic and I’m really looking forward to have a permanent server. In case I want to try something else, I will now simply create a new VM to play with instead of killing the server itself.

Do you run Linux anywhere?

I do! “Obelix” – my dedicated webserver runs Debian Lenny, the 2 virtual machines are also both Debian and IPCop is also based on Linux. I would say, I’m using a good mix of the different operating systems.

 

Many thanks for reading this post! Hope you enjoyed it as much as I enjoyed typing it ;)

Ciao
Dennis 



  1. Pali7x

    dude, i really like your naming scheme, and most of all, the picture you included ;pabout your server, why don’t you upgrade the stock cooler? cooler master hypertx3 selling cheap, and it offer better performance. since you’re running this machine 24/7, it should be on the list ;) and do some cable management, too ;pone more question – how many days you’ve put this system into test and what’s your method of testing? ;)



  2. Dennis Klein

    Hey Pali,well honestly, it seems that my testing method was not good enough. I’d configured the last things in Exchange with @web207 last nigth, when the system started behaving strange incl. 1 complete freeze of OpenSolaris right after changing the virtual memory for the VM from 2 to 3.5GB. Not sure if it was the best idea to use such a huge on a relatively small CPU and “poor” 6GB of RAM, so maybe, not sure yet, I’ll have to decide between keeping the OpenSolaris as file server (my fav, honestly) and no longer using the fresh installed Windows Server on this particular machine (and maybe get a 2nd one? no..) or kicking OpenSolaris and using VMWare ESXi or a single Windows Server.As mentioned before, I’m not really willing to remove OpenSolaris as it is a very stable systems and look – I’ve 3 kinds of RAIDs running here with only 1 “real” RAID controller and that’s the one in the DataTale. It’s simply too good not to use it :/ That kept me up last night.I’m right in this moment transfering some files from the server to an external HD on my Mac Pro here and I’ll get a lot of errors and some very slow data rates with a max. around 25MB/s. Not really what I’ve expected.Do you know that feeling to have wasted a lot time? I started this project before Eastern, that’s 1 1/2 weeks ago and as it seems it is not that ready and good as I just thought yesterday. That’s the moment when I’m just about to pull out the HDs from the server, put them back into the Onnto DataTale and put it simply back onto the Mac Pro and simply saying: “I don’t need an Exchange not I do really need an OpenSolaris server.”Dear… I’m so pissed at the moment and I’ve the feeling (with all those transfer issues seeing on my screen that something really went wrong).For the OpenSolaris knowning readers: zpool scrub <pools> say that there are no errors, but muCommander on the Mac is telling me that it can’t read some files. Maybe it’s the tool itself?But Pali, to come back to your questions – I think the stock cooler is fine, it’s a bit noisy but therefor it’s in the basement where noone can hear it but maybe a good idea when it really runs 24/7.Also, you’re right about cable management. In this moment I’ll miss the sold Corsair power supply with their really cool SATA power cords. It was so much easier to do a good cable management using it ;) Sorry for a maybe a bit annoyed kind of writing comment, but I’ve just got 4h’s sleep because of bitchy Belldandy ;) Or more – bitchy Miyuki in this case.CiaoDennis



  3. pali7x

    i was so happy to type this comment last night on my new keyboard (the zen z200) but i was too tired after all day dating ;p so i’m continue right now at my workplace using cheapo keyboard.first of all, i didn’t believe much on windows serving the server environment. before utilizing freenas, i installed windows 2k for data storing and torrent downloading, but my server are shared by my siblings, who will sometimes turn off the plug and spoil the system. crosslinked file system. so searched for alternative, i found freenas (built up from freebsd) serve me very well. its efficient, use less memory and took only 128MB to install. except for torrent downloading, its slower than windows counterpart. i virtualize on my main desktop, i use them a lot last year for compatibility checked up and test. that’s all. nowdays, i just use them sometimes for client support (as i’m running on os x). i didn’t virtualize freenas because my server are just pentium 4 powered with 1GB ram, and only has 250GB of storage space. it won’t change even if i get faster processor. i didn’t virtualize my server because i need native speed as much as i can. hell yeah, if something goes wrong, i can pull out the hardrive and plug in to retrieve my data. no need to mount the image.and dennis – i knew the feeling of wasting time. i really knew. hehehe. i can’t say much about exchange, because i only used it once when i was undergoing my industrial training as graphic designer in 07. i remember whenever i’m going to outstation, i need 2nd phone and charger. i use o2 atom which battery life are terribly bad.how about download memtest+ and run it on your server to check for stability stress? or prime95. run it for couple of hour. i’d recommend you let the memtest+ to finish up.anyway, post up but get enough sleep :) sometimes, lacked of sleep can affect your logical working brain. you’ll probably miss one or two error which can be fix easily, perhaps.

leave a reply