I had a Xen domain crash, and it was a file image based LVM system. To mount the system manually in the host, I had to do:
losetup /dev/loop0 /storage/image.disk
kpartx -a /dev/loop0
vgchange -ay
lvscan
mount /dev/VolGroup00/LogVol00 /mnt
This allowed me to access the LVM volume. To unmount it, I needed to do:
umount /mnt
vgchange -an VolGroup00
kpartx -d /dev/loop0
losetup -d /dev/loop0
Now I could attempt to boot the domain again.
2009-07-30
Xen recovery on CentOS
Subscribe to:
Posts (Atom)