[fedora-virt] Error creating a vol on a disk type storage pool with multipath'ed backend

Shergill, Gurinder gurinder.shergill at hp.com
Thu Jul 18 23:26:36 UTC 2013


Hello,

When I use a disk type storage pool that uses a multipath'ed backend, I am getting the following failure as I try to create the vol (or when I try to start the pool with existing partitions on the backend).

$ virsh vol-create-as poolname vol1 10G
error: Failed to create vol vol1
error: cannot stat file '/dev/mapper/mpathap1': No such file or directory

The partition is created successfully and the DSF for it is /dev/mapper/mpatha1 (has no "p").

Here is the pool definition:

<pool type="disk">
	<name>poolname</name>
	<source>
		<device path="/dev/mapper/mpatha"/>
		<format type="gpt"/>
	</source>
	<target>
		<path>/dev</path>
	</target>
</pool>

I also tried passing /dev/mapper as the target path but got the same failure. Interestingly, things work fine when I take multipath/dm out of the picture. This is happening on F19 with the latest set of packages.

I enabled debug logging to collect more information. Here are some debug messages that seemed interesting (let me know if you need the full log and I can send it as well).

...
2013-07-18 22:43:44.264+0000: 11672: debug : virStorageBackendDiskPartBoundries:560 : find free area: allocation 12884901888, cyl size 8225280
2013-07-18 22:43:44.264+0000: 11672: debug : virStorageBackendDiskPartBoundries:613 : aligned alloc 12884901888
2013-07-18 22:43:44.264+0000: 11672: debug : virStorageBackendDiskPartBoundries:629 : final aligned start 17408, end 12884919295
2013-07-18 22:43:44.264+0000: 11672: debug : virCommandRunAsync:2243 : About to run /usr/sbin/parted /dev/mapper/mpatha mkpart --script primary 17408B 12884919295B
2013-07-18 22:43:44.264+0000: 11672: debug : virFileClose:72 : Closed fd 23
2013-07-18 22:43:44.264+0000: 11672: debug : virFileClose:72 : Closed fd 25
2013-07-18 22:43:44.264+0000: 11672: debug : virFileClose:72 : Closed fd 27
2013-07-18 22:43:44.265+0000: 11672: debug : virCommandRunAsync:2248 : Command result 0, with PID 11774

... <<<following set of debug messages repeats a few times>>>

2013-07-18 22:43:44.295+0000: 11669: debug : udevEventHandleCallback:1513 : udev action: 'add'
2013-07-18 22:43:44.295+0000: 11669: debug : udevGetDeviceProperty:121 : udev reports device 'dm-1' does not have property 'DRIVER'
2013-07-18 22:43:44.295+0000: 11669: debug : udevGetDeviceType:1139 : Found device type 'disk' for device 'dm-1'
2013-07-18 22:43:44.295+0000: 11669: debug : udevGetDeviceProperty:121 : udev reports device 'dm-1' does not have property 'ID_BUS'
2013-07-18 22:43:44.295+0000: 11669: debug : udevGetDeviceProperty:121 : udev reports device 'dm-1' does not have property 'ID_SERIAL'
2013-07-18 22:43:44.295+0000: 11669: debug : udevGetDeviceSysfsAttr:210 : udev reports device 'dm-1' does not have sysfs attr 'device/vendor'
2013-07-18 22:43:44.295+0000: 11669: debug : udevGetDeviceSysfsAttr:210 : udev reports device 'dm-1' does not have sysfs attr 'device/model'
2013-07-18 22:43:44.295+0000: 11669: debug : udevGetDeviceProperty:121 : udev reports device 'dm-1' does not have property 'ID_TYPE'
2013-07-18 22:43:44.295+0000: 11669: debug : udevGetDeviceProperty:121 : udev reports device 'dm-1' does not have property 'ID_DRIVE_FLOPPY'
2013-07-18 22:43:44.295+0000: 11669: debug : udevGetDeviceProperty:121 : udev reports device 'dm-1' does not have property 'ID_DRIVE_FLASH_SD'
2013-07-18 22:43:44.295+0000: 11669: debug : udevKludgeStorageType:995 : Could not find definitive storage type for device with sysfs path '/sys/devices/virtual/block/dm-1', trying to guess it
2013-07-18 22:43:44.295+0000: 11669: debug : udevKludgeStorageType:1007 : Could not determine storage type for device with sysfs path '/sys/devices/virtual/block/dm-1'
2013-07-18 22:43:44.295+0000: 11669: debug : udevProcessStorage:1124 : Storage ret=-1
2013-07-18 22:43:44.295+0000: 11669: debug : udevAddOneDevice:1382 : Discarding device -1 0x7f3f187f7f60 /sys/devices/virtual/block/dm-1

...

2013-07-18 22:43:54.288+0000: 11672: error : virStorageBackendVolOpenCheckMode:1047 : cannot stat file '/dev/mapper/mpathap1': No such file or directory


Sunny



More information about the virt mailing list