Saturday, March 10, 2012

Better LVM (Logical Volume Management) for KVM guests

This post has been moved to http://blog.gadi.cc/better-lvm-for-kvm/.

Useful sysrecuecd chroot stuff [WIP]

mkdir /mnt/tmp
mount /dev/vdb /mnt/tmp
mount /dev/vda1 /mnt/tmp/boot
mount -o bind /proc /mnt/tmp/proc
mount -o bind /dev /mnt/tmp/dev
mount -o bind /dev/pts /mnt/tmp/dev/pts
mount -o bind /dev/sys /mnt/tmp/sys/
chroot /mnt/tmp /bin/bash

Refs:
* http://www.sysresccd.org/forums/viewtopic.php?t=1684

On Debian/Ubuntu:

dpkg-divert --local --rename --add /sbin/initctl
ln -s /bin/true /sbin/initctl

Refs
* http://mrzard.posterous.com/failed-to-connect-to-socket-comubuntuupstart