'virsh vol-create-as' command shows error: Storage volume not found
Issue
-
We are trying to use the steps in 16.2. Creating volumes to create a disk based storage pool, and volume, but
virsh vol-create-ascommand fails with below error:[root@host1 xml]# virsh vol-create-as satellite-disk satellite-vol 500G error: Failed to create vol satellite-vol error: Storage volume not found: no storage vol with matching path '/dev/mapper/mpathap1'It looks that multipath had created a partition with name
/dev/mapper/mpatha1, instead of/dev/mapper/mpathap1which caused this failure:[root@host1 xml]# ls -l /dev/mapper/mpatha* lrwxrwxrwx 1 root root 7 Sep 10 17:39 /dev/mapper/mpatha -> ../dm-3 lrwxrwxrwx 1 root root 7 Sep 10 17:39 /dev/mapper/mpatha1 -> ../dm-8 -
libvirt not naming new volumes correctly
Environment
- Red Hat Enterprise Linux 7.1
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
