[LUNI] Mouning Xen Disk Images
Jeff Gutierrez
jeffgoot at yahoo.com
Fri Aug 31 05:28:53 CDT 2007
Hey guys,
I'm trying to mount the partitions in a disk image primarily used by a
Xen VM. The disk image was created by virt-install under CentOS 5.0.
The issue is that the disk image has 2 partitions one boot and another
an LVM. The partitions I need to access are in the LVM. This is where I
hit a brick wall.
# /sbin/fdisk -lu luna.img
last_lba(): I don't know how to handle files with mode 81ed
You must set cylinders.
You can do this from the extra functions menu.
Disk luna.img: 0 MB, 0 bytes
255 heads, 63 sectors/track, 0 cylinders, total 0 sectors
Units = sectors of 1 * 512 = 512 bytes
Device Boot Start End Blocks Id System
luna.img1 * 63 208844 104391 83 Linux
luna.img2 208845 16771859 8281507+ 8e Linux LVM
Partition 2 has different physical/logical endings:
phys=(1023, 254, 63) logical=(1043, 254, 63)
I can easily mount the first partition using `mount` and passing it the
offset. But I'm unable to do so for the partitions in the LVM. (The LVM
volume has a swap partition and a root partition.)
1. Does anybody know how I can access the partitions in the LVM?
2. Is it advisable to use LVM in a disk image used by Xen? Would I be better of if I didn't use LVM?
I'd appreciate any information.
Regards,
Jeff
More information about the luni
mailing list