Red Hat Bugzilla – Bug 782167
libguestfs doesn't recognize Windows Dynamic disks in some configurations, eg. spanned
Last modified: 2012-12-11 11:28:30 EST
Created attachment 555562 [details]
Windows 7 disk management program showing disk layout
Description of problem:
I created a Win7 guest that has 3 block devices. The first (system
disk) is converted to a dynamic disk, and libguestfs can kind of
work out what's on it. The second two disks are arranged as a
spanned volume (like a VG across 2 PVs), and the kernel doesn't
understand it at all. [See attached PNG file]
virt-filesystems -d Win7x32Dynamic --all --long -h
Name Type VFS Label MBR Size Parent
/dev/sda1 filesystem unknown - - 992K -
/dev/sda2 filesystem ntfs System Reserved - 100M -
/dev/sda3 filesystem ntfs - - 16G -
/dev/sdb1 filesystem vfat - - 2.0G -
/dev/sdc1 filesystem unknown - - 2.0G -
/dev/sda1 partition - - 42 992K /dev/sda
/dev/sda2 partition - - 42 100M /dev/sda
/dev/sda3 partition - - 42 16G /dev/sda
/dev/sdb1 partition - - 42 2.0G /dev/sdb
/dev/sdc1 partition - - 42 2.0G /dev/sdc
/dev/sda device - - - 16G -
/dev/sdb device - - - 2.0G -
/dev/sdc device - - - 2.0G -
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Create Win7 guest with 3 block devices.
2. In Disk Management, convert all disks to Dynamic disks.
3. Create a spanned volume across the second and third disks.
System volume can be read, but spanned volume cannot be seen at all.
Should be able to recognize it as a spanned volume.
Matt has written a library to process these disks:
and at some point in the future we can include it in libguestfs.
Matt, do we need libldm to be incorporated into libguestfs
for RHEL 7 GA?
Fixed upstream with comprehensive new set of APIs.
The fix will appear in libguestfs 1.20.