Bug 1430597
Summary: | cannot create/start a disk pool without indicating disk's --source-format | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 7 | Reporter: | yisun |
Component: | libvirt | Assignee: | John Ferlan <jferlan> |
Status: | CLOSED NOTABUG | QA Contact: | yisun |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | 7.4 | CC: | dyuan, hhan, lmen, rbalakri, weizhan, xuzhang, ydu, yisun |
Target Milestone: | rc | Keywords: | Regression |
Target Release: | --- | ||
Hardware: | x86_64 | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | If docs needed, set a value | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2017-03-24 18:23:03 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
yisun
2017-03-09 04:29:28 UTC
There were patches added to the disk backend during libvirt 3.0.0 to "try harder" to check and ensure that there wasn't something on the disk before overwriting. So this is "expected behavior" now. In this case you specifically put a 'gpt' format on /dev/sdd, then you expected a pool-create-as to succeed "because it did before"; however, as you point out what happened before is that libvirt overwrite /dev/sde with it's default - if you had done a 'parted /dev/sdd print', then you would have seen the Partition Table had been changed to "msdos" - which is the libvirt default as described here http://libvirt.org/storage.html#StorageBackendDisk when a specific format it not requested. If the partition of the volume had been empty ... e.g. let's say after a: dd if=/dev/zero of=/dev/sdd bs=1M count=2 re-running your command would give: virsh pool-create-as --name virt-disk-pool --type disk --target /dev --source-dev /dev/sdd error: Failed to create pool virt-disk-pool error: Storage pool probe failed: Device '/dev/sdd' is unrecognized, requires build leading to the obvious: virsh pool-create-as --name virt-disk-pool --type disk --target /dev --source-dev /dev/sdd --build Pool virt-disk-pool created where the dumpxml : virsh pool-dumpxml virt-disk-pool would show: <source> ... <format type='dos'/> Similarly, going back to square 1: parted /dev/sdd mklabel gpt -s and using the --overwrite flag would provide the same result So, providing the '--source-format gpt' and having that work makes perfect sense to me since that's what libvirt finds in the disk partition table. Closing this as NOTABUG |