[CentOS] Mount a Xen disk image file
Dirk H. Schulz
dirk.schulz at kinzesberg.de
Thu Aug 7 14:46:47 UTC 2008
--On 7. August 2008 16:22:36 +0200 Fabian Arrotin
<fabian.arrotin at arrfab.net> wrote:
> Dirk H. Schulz wrote:
> <snip>- I venture it is because the second partition is LVM (8e).
>> Did anybody out there succeed in mounting an LVM partition out of an
>> image file?
> That's why kpartx (for lvm) and lomount exist ;-)
> Don't forget after you've used kpartx -a to use lvscan to discover your
> lv and vgchange ...
- snip -
I had hoped for some other way because there is an open bug in kpartx on
recent CentOS which leads to
> failed to stat() /var/lib/xen/images/BaseCentos.img
Seems to work only with rather small img files.
Do you have any other idea?
More information about the CentOS