AlexEv1337
Member
I try to define volume to VM but failed. The same result I receive in GUI.
# virsh pool-list
Name State Autostart
-------------------------------------------
default active yes
dsk-b active yes
dsk-c active yes
# virsh pool-info dsk-b
Name: dsk-b
UUID: e58b5005-ef7b-43b9-a420-73779ccf74a3
State: running
Persistent: yes
Autostart: yes
Capacity: 447.13 GiB
Allocation: 0.00 B
Available: 447.13 GiB
# cat Vol226.xml
<volume>
<name>U226</name>
<source>
<device path='/dev/sdb'>
<extent start='2048' end='33554465'/>
</device>
</source>
<capacity>17179869184</capacity>
<allocation>17179869184</allocation>
</volume>
# virsh vol-create dsk-b Vol226.xml
error: Failed to create vol from Vol226.xml
error: internal error: Child process (/sbin/parted /dev/sdb mkpart --script primary 17408B 17179886591B) unexpected exit status 1: Error: You requested a partition from 17.4kB to 17.2GB (sectors 34..33554465).
The closest location we can manage is 1049kB to 17.2GB (sectors 2048..33554465).
# virsh pool-list
Name State Autostart
-------------------------------------------
default active yes
dsk-b active yes
dsk-c active yes
# virsh pool-info dsk-b
Name: dsk-b
UUID: e58b5005-ef7b-43b9-a420-73779ccf74a3
State: running
Persistent: yes
Autostart: yes
Capacity: 447.13 GiB
Allocation: 0.00 B
Available: 447.13 GiB
# cat Vol226.xml
<volume>
<name>U226</name>
<source>
<device path='/dev/sdb'>
<extent start='2048' end='33554465'/>
</device>
</source>
<capacity>17179869184</capacity>
<allocation>17179869184</allocation>
</volume>
# virsh vol-create dsk-b Vol226.xml
error: Failed to create vol from Vol226.xml
error: internal error: Child process (/sbin/parted /dev/sdb mkpart --script primary 17408B 17179886591B) unexpected exit status 1: Error: You requested a partition from 17.4kB to 17.2GB (sectors 34..33554465).
The closest location we can manage is 1049kB to 17.2GB (sectors 2048..33554465).