Bug 846564
| Summary: | failed to create volumes with virsh vol-create-as command on 6.1 rhel | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | Red Hat Enterprise Linux 6 | Reporter: | Otis Henry <othenry> | ||||||
| Component: | parted | Assignee: | Brian Lane <bcl> | ||||||
| Status: | CLOSED INSUFFICIENT_DATA | QA Contact: | Release Test Team <release-test-team-automation> | ||||||
| Severity: | urgent | Docs Contact: | |||||||
| Priority: | unspecified | ||||||||
| Version: | 6.1 | CC: | acathrow, cwei, dallan, dyuan, jdenemar, jwu, mjenner, mzhan, shyu, zpeng | ||||||
| Target Milestone: | rc | ||||||||
| Target Release: | --- | ||||||||
| Hardware: | x86_64 | ||||||||
| OS: | Linux | ||||||||
| Whiteboard: | |||||||||
| Fixed In Version: | Doc Type: | Bug Fix | |||||||
| Doc Text: | Story Points: | --- | |||||||
| Clone Of: | Environment: | ||||||||
| Last Closed: | 2014-06-11 22:59:41 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: | |||||||||
| Attachments: |
|
||||||||
|
Description
Otis Henry
2012-08-08 07:00:14 UTC
I think it is libvirt bug.And please try this issue with RHEL 6.3. I think it should be okay. Created attachment 604112 [details]
SOS Report #1
SOS Report #1, due to multiple inconsistent behaviours multiple SOS fils have been attached.
YuPing,
We have performed the requestd on RHEL 6.3 and run into the same issue. I've attached two SOS reports as the result behaviour detailed below were inconsistant.
>>snip!!_BEGIN
<internal log location removed> ...There are two. That's because the behavior is not consistent.
This is the first sosreport.
[root@feni-ls13-rhel63ga-san mapper]# virsh vol-list SAN_LUN_500G
Name Path
-----------------------------------------
SAN_LUN_500Gp1 /dev/mapper/SAN_LUN_500Gp1
SAN_LUN_500Gp10 /dev/mapper/SAN_LUN_500Gp10
SAN_LUN_500Gp11 /dev/mapper/SAN_LUN_500Gp11
SAN_LUN_500Gp2 /dev/mapper/SAN_LUN_500Gp2
SAN_LUN_500Gp3 /dev/mapper/SAN_LUN_500Gp3
SAN_LUN_500Gp4 /dev/mapper/SAN_LUN_500Gp4
SAN_LUN_500Gp5 /dev/mapper/SAN_LUN_500Gp5
SAN_LUN_500Gp6 /dev/mapper/SAN_LUN_500Gp6
SAN_LUN_500Gp7 /dev/mapper/SAN_LUN_500Gp7
SAN_LUN_500Gp8 /dev/mapper/SAN_LUN_500Gp8
SAN_LUN_500Gp9 /dev/mapper/SAN_LUN_500Gp9
[root@feni-ls13-rhel63ga-san mapper]#
[root@feni-ls13-rhel63ga-san mapper]#
[root@feni-ls13-rhel63ga-san mapper]#
[root@feni-ls13-rhel63ga-san mapper]# virsh vol-create-as SAN_LUN_500G vol12 10G
error: Failed to create vol vol12
error: internal error Child process (/sbin/parted /dev/mapper/SAN_LUN_500G mkpart --script primary 150323872768B 161061291007B) status unexpected: exit status 1
I tried to created a new volume manually using mkpart, but got error too.
[root@feni-ls13-rhel63ga-san mapper]# /sbin/parted /dev/mapper/SAN_LUN_500G mkpart --script primary 161061291007B 171798709246B
Error: You requested a partition from 161GB to 172GB.
The closest location we can manage is 161GB to 172GB.
However seems the volume is created.
[root@feni-ls13-rhel63ga-san mapper]# ls -latr
total 0
crw-rw---- 1 root root 10, 58 Aug 13 12:12 control
lrwxrwxrwx 1 root root 7 Aug 13 12:12 Boot_LUN -> ../dm-0
lrwxrwxrwx 1 root root 7 Aug 13 12:12 Boot_LUNp3 -> ../dm-3
lrwxrwxrwx 1 root root 7 Aug 13 12:12 SAN_LUN_500G -> ../dm-7
lrwxrwxrwx 1 root root 7 Aug 13 12:12 mpathb -> ../dm-4
lrwxrwxrwx 1 root root 7 Aug 13 12:12 mpathc -> ../dm-5
lrwxrwxrwx 1 root root 7 Aug 13 12:12 mpathd -> ../dm-6
lrwxrwxrwx 1 root root 7 Aug 13 12:12 Boot_LUNp2 -> ../dm-2
lrwxrwxrwx 1 root root 7 Aug 13 12:12 Boot_LUNp1 -> ../dm-1
lrwxrwxrwx 1 root root 7 Aug 13 12:12 SAN_LUN_500Gp1 -> ../dm-8
lrwxrwxrwx 1 root root 8 Aug 13 12:12 SAN_LUN_500Gp9 -> ../dm-16
lrwxrwxrwx 1 root root 7 Aug 13 14:36 SAN_LUN_500Gp2 -> ../dm-9
lrwxrwxrwx 1 root root 8 Aug 13 14:36 SAN_LUN_500Gp3 -> ../dm-10
lrwxrwxrwx 1 root root 8 Aug 13 14:36 SAN_LUN_500Gp4 -> ../dm-11
lrwxrwxrwx 1 root root 8 Aug 13 14:36 SAN_LUN_500Gp5 -> ../dm-12
lrwxrwxrwx 1 root root 8 Aug 13 14:36 SAN_LUN_500Gp6 -> ../dm-13
lrwxrwxrwx 1 root root 8 Aug 13 14:36 SAN_LUN_500Gp7 -> ../dm-14
lrwxrwxrwx 1 root root 8 Aug 13 14:36 SAN_LUN_500Gp8 -> ../dm-15
lrwxrwxrwx 1 root root 8 Aug 13 14:36 SAN_LUN_500Gp10 -> ../dm-17
lrwxrwxrwx 1 root root 8 Aug 13 14:36 SAN_LUN_500Gp11 -> ../dm-18
drwxr-xr-x 17 root root 4580 Aug 13 14:36 ..
lrwxrwxrwx 1 root root 8 Aug 13 14:36 SAN_LUN_500Gp12 -> ../dm-19
Then I tried to create another volume again. Got same error this time, but volume is not created. This is the second sos report.
[root@feni-ls13-rhel63ga-san mapper]# virsh vol-create-as SAN_LUN_500G vol13 20G
error: Failed to create vol vol13
error: internal error Child process (/sbin/parted /dev/mapper/SAN_LUN_500G mkpart --script primary 161061291008B 182536127487B) status unexpected: exit status 1
[root@feni-ls13-rhel63ga-san mapper]#
[root@feni-ls13-rhel63ga-san mapper]# ls -latr
total 0
crw-rw---- 1 root root 10, 58 Aug 13 15:37 control
lrwxrwxrwx 1 root root 7 Aug 13 15:37 Boot_LUN -> ../dm-0
lrwxrwxrwx 1 root root 7 Aug 13 15:37 Boot_LUNp3 -> ../dm-3
lrwxrwxrwx 1 root root 7 Aug 13 15:37 mpathc -> ../dm-4
lrwxrwxrwx 1 root root 7 Aug 13 15:37 SAN_LUN_500G -> ../dm-6
lrwxrwxrwx 1 root root 7 Aug 13 15:37 mpathb -> ../dm-5
lrwxrwxrwx 1 root root 7 Aug 13 15:37 mpathd -> ../dm-7
lrwxrwxrwx 1 root root 8 Aug 13 15:37 SAN_LUN_500Gp9 -> ../dm-16
lrwxrwxrwx 1 root root 7 Aug 13 15:37 SAN_LUN_500Gp1 -> ../dm-8
lrwxrwxrwx 1 root root 7 Aug 13 15:37 Boot_LUNp2 -> ../dm-2
lrwxrwxrwx 1 root root 7 Aug 13 15:37 Boot_LUNp1 -> ../dm-1
lrwxrwxrwx 1 root root 7 Aug 13 16:24 SAN_LUN_500Gp2 -> ../dm-9
lrwxrwxrwx 1 root root 8 Aug 13 16:24 SAN_LUN_500Gp3 -> ../dm-10
lrwxrwxrwx 1 root root 8 Aug 13 16:24 SAN_LUN_500Gp4 -> ../dm-11
lrwxrwxrwx 1 root root 8 Aug 13 16:24 SAN_LUN_500Gp5 -> ../dm-12
lrwxrwxrwx 1 root root 8 Aug 13 16:24 SAN_LUN_500Gp6 -> ../dm-13
lrwxrwxrwx 1 root root 8 Aug 13 16:24 SAN_LUN_500Gp7 -> ../dm-14
lrwxrwxrwx 1 root root 8 Aug 13 16:24 SAN_LUN_500Gp8 -> ../dm-15
lrwxrwxrwx 1 root root 8 Aug 13 16:24 SAN_LUN_500Gp10 -> ../dm-17
lrwxrwxrwx 1 root root 8 Aug 13 16:24 SAN_LUN_500Gp11 -> ../dm-18
drwxr-xr-x 17 root root 4580 Aug 13 16:24 ..
lrwxrwxrwx 1 root root 8 Aug 13 16:24 SAN_LUN_500Gp12 -> ../dm-19
drwxr-xr-x 2 root root 460 Aug 13 16:24 .
[root@feni-ls13-rhel63ga-san mapper]# virsh vol-list SAN_LUN_500G
Name Path
-----------------------------------------
SAN_LUN_500Gp1 /dev/mapper/SAN_LUN_500Gp1
SAN_LUN_500Gp10 /dev/mapper/SAN_LUN_500Gp10
SAN_LUN_500Gp11 /dev/mapper/SAN_LUN_500Gp11
SAN_LUN_500Gp12 /dev/mapper/SAN_LUN_500Gp12
SAN_LUN_500Gp2 /dev/mapper/SAN_LUN_500Gp2
SAN_LUN_500Gp3 /dev/mapper/SAN_LUN_500Gp3
SAN_LUN_500Gp4 /dev/mapper/SAN_LUN_500Gp4
SAN_LUN_500Gp5 /dev/mapper/SAN_LUN_500Gp5
SAN_LUN_500Gp6 /dev/mapper/SAN_LUN_500Gp6
SAN_LUN_500Gp7 /dev/mapper/SAN_LUN_500Gp7
SAN_LUN_500Gp8 /dev/mapper/SAN_LUN_500Gp8
SAN_LUN_500Gp9 /dev/mapper/SAN_LUN_500Gp9
[root@feni-ls13-rhel63ga-san mapper]# /sbin/parted /dev/mapper/SAN_LUN_500G mkpart --script primary 161061291008B 182536127487B
Error: You requested a partition from 161GB to 183GB.
The closest location we can manage is 161GB to 161GB.
This is a 500G LUN, there are plenty of space.
<<snip!!_END
Created attachment 604113 [details]
SOS Report #2
SOSReport #2
Unless the above usage of parted is wrong, this looks like an issue in parted to me. Please retest with the latest, parted-2.1-21, there have been a number of improvements in device-mapper handling since 6.1 Also, please attach the output from 'parted -s /dev/mapper/SAN_LUN_500G u b p' |