Jonathan Wiltshire: Reinstalling at arm s length
Recently I had need to re-purpose a server and for convenience, I decided to do a complete wipe and reinstall since it had previously been used for all sorts of package testing, experiments,
http://www.michael-hammer.at/server_config/debootstrap/
http://d-i.alioth.debian.org/tmp/en.i386/apds03.html
http://www.debian.org/releases/stable/amd64/apds03.html.en
https://wiki.archlinux.org/index.php/Convert_a_single_drive_system_to_RAID
http://ariekanarie.nl/archives/211/remote-kernel-upgrade-with-debianubuntu-and-grub2

Reinstalling at arm s length is a post from: jwiltshire.org.uk Flattr
dak debugging, the list goes on. I took a careful backup and then cooked up some USB installation media, but it took so long to boot (USB1.1, yay) I ran out of time before the building was locked.
Since this box has two hard disks, and not being one to back down from a challenge, I eventually reinstalled it over the weekend with nothing no install media, no reinstall robot or intelligent hands just a reliable internet connection and a healthy dose of courage. Here s how.
Target: reinstalled machine with the same network settings, ssh host keys, and other minor configuration ported. The disk layout is to be RAID-1 containing LVM, with separate /var volume and separate /boot partition, also RAID-1.
- One disk in the box contained old data, so I cleared that out and wiped it (including the MBR for good measure) and partitioned it.
- I set up a degraded RAID-1 array for a small /boot partition, a large RAID-1 array for the LVM and a swap partition.
- I mounted the new partitions in the correct layout in /mnt and used
debootstrap(8) to get a very basic root set up. I also bind-mounted /sys, /proc, /dev and /dev/pts for now, they can be done properly when the root is a bit more mature. - Next, I copied into the new root
/etc/apt/sources.listandchroot(8)ed into it. Now I couldapt-get updateandtasksel install standardto get an almost fully-functional base system. At this point it is also sensible to installlocales,tzdataandconsole-dataanddpkg-reconfigurethem, followed bymdadmandlvm2if required andopenssh-serverso you can get back in after rebooting. Some or all of these may already be installed bytasksel. - Time to install a kernel before leaving the chroot:
apt-get install linux-image-2.6, followed bygrub-pcwhich should detect both installations and set up menu entries for them. - Back in the old system, I copied in the network, hosts, resolv and hostname configuration files, and set up
/etc/fstabto my liking. - Install
grubto both hard disks if it isn t already so (dpkg-reconfigure grub-pc) and again check that it detects both installations and creates the right menu entries. At this stage, booting from either hard disk will allow the loading of either the new or old installations, which is exactly what we want. It s now time toumountthe new installation. - Now I followed the excellent guide for remote kernel upgrades at http://ariekanarie.nl, except in this case we are using the same method to try booting the new system and fall back to the old one if it s a disaster.
- Reboot and hope!
/dev at boot time, and udev doesn t start early enough to populate it before panic. That s easily solved by mounting the installation again and using MAKEDEV as a seed.
- With a bit of luck, you re now in the new installation and can
dpkg-reconfigure grub-pcagain to installgrubto both hard disks again. This isn t strictly necessary, but it records this choice in debconf so future upgrades will automatically upgrade the bootloader everywhere it s needed. - Now I could do some tidying up, mount the old installation and copy over all the data I wanted, and after careful checking wipe the first disk clean ready to be added into the RAID arrays.
- Finally, add the old disk to the RAID arrays so they are fully redundant.
http://www.michael-hammer.at/server_config/debootstrap/
http://d-i.alioth.debian.org/tmp/en.i386/apds03.html
http://www.debian.org/releases/stable/amd64/apds03.html.en
https://wiki.archlinux.org/index.php/Convert_a_single_drive_system_to_RAID
http://ariekanarie.nl/archives/211/remote-kernel-upgrade-with-debianubuntu-and-grub2
Reinstalling at arm s length is a post from: jwiltshire.org.uk Flattr
ZFS v28 (finally, with deduplication) is available in latest D-I
I'm happy to announce the release of 
I've released version 0.24 of
Damn those
Like I already wrote here last week, I've been heavily working on
This is not about any real or alleged might of (private) rating
agencies you know, the ones roughening up the financial markets
these days.
Given the recent influx of news about downgrades of banks and
nations, I simply start to wonder what will happen when the
triple-A category empties out (which it will the last few nations
will be ejected as a consequence of currency explosions (CHF) and
forced bailouts of others (EU).
Will the whole circus start anew? And if so, why do we even pay
any attention??
Gosh do I wish that people started to form their own opinions
again.
NP:
I'd almost forget...
Before:

After:

Last night, the text below went out to
After some fight with qmake and lrelease/lupdate, I've finally managed to allow translations in
The route cache is a Linux kernel component enabling route lookups to
be faster by caching the results in some table and checking it before
issuing a regular lookup in the route tables. When using Linux as a
router, the inefficiency of the route cache can hinder the
performances of your box.
The documentation on this component is scarce and it is difficult to
find up-to-date bits on how the route cache works and how to tune
it. The book
Once an entry has been added to the route cache, there are several
ways to remove it. Most entries are removed by the
The first plot shows what would happen if about 2000 routes are added
per second with