Linux vserver on Debian woody
The last days I spent a lot of time for configuring a virtual Linux server. After some playing I decided to setup a woody server with Software RAID and the Linux vserver kernel patch. This time I tried to use mdadm for creating the degraded array. This should work with a command line, like this:
“mdadm -C /dev/md0 –level raid1 –raid-disks 2 missing /dev/hdc1″ (It is written this way in almost every HowTo that I found). But missing is not a switch to tell mdadm that /dev/hdc1 is missing… missing is a replacement for the missing device, so the command line reads: “Create array with /dev/hdc, the other device is missing”. I found that hint on a page about SATA-RAID and I was very happy that I was not the only one, who was confused
Now my system was ready to be configured. First, I wanted to apply the kernel patch for linux-vserver but 2.4.19 is too old. I installed the source for 2.4.27 from backports.org and the debian package “kernel-patch-vs”. The patch applied cleanly and after a few minutes of compile time I had a package for my new kernel. There are also debian packages for the userland tools “vr-tools” and “util-vserver”. For woody you have to download backports and unofficial packages, here you will find them all listed.
I had a few problems to create the first virtual server with the vserver tool. I decided to skip this step and downloaded a nice script, called debian-newvserver. It automatically creates a new vserver and downloads all necessary debian packages. It worked perfectly and the vserver was running