Xen recovery on CentOS

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
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.