Bug 677231 - virsh vol-list only displays one of the multipath
Summary: virsh vol-list only displays one of the multipath
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: libvirt
Version: 6.1
Hardware: x86_64
OS: Linux
medium
medium
Target Milestone: rc
: ---
Assignee: Osier Yang
QA Contact: Virtualization Bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-02-14 07:01 UTC by zhanghaiyan
Modified: 2014-03-27 01:02 UTC (History)
9 users (show)

Fixed In Version: libvirt-0.8.7-7.el6
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-05-19 13:27:15 UTC
Target Upstream Version:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2011:0596 0 normal SHIPPED_LIVE libvirt bug fix and enhancement update 2011-05-18 17:56:36 UTC

Description zhanghaiyan 2011-02-14 07:01:53 UTC
Description of problem:
virsh vol-list only displays one of the multipath

Version-Release number of selected component (if applicable):
- libvirt-0.8.7-6.el6.x86_64
- qemu-kvm-0.12.1.2-2.144.el6.x86_64
- kernel-2.6.32-115.el6.x86_64
- device-mapper-multipath-0.4.9-31.el6.x86_64

How reproducible:
2/2

Steps to Reproduce:
1. # multipath -l3
mpathc (3600a0b80005adb0b0000ab2d4cae9254) dm-3 IBM,1726-4xx  FAStT
size=20G features='1 queue_if_no_path' hwhandler='1 rdac' wp=rw
|-+- policy='round-robin 0' prio=-1 status=active
| `- 9:0:2:0 sdd 8:48 active undef running
`-+- policy='round-robin 0' prio=-1 status=enabled
  `- 9:0:3:0 sde 8:64 active undef running
mpathb (3600a0b80005ad1d7000093604cae912f) dm-0 IBM,1726-4xx  FAStT
size=20G features='1 queue_if_no_path' hwhandler='1 rdac' wp=rw
|-+- policy='round-robin 0' prio=-1 status=active
| `- 8:0:1:0 sdb 8:16 active undef running
`-+- policy='round-robin 0' prio=-1 status=enabled
  `- 8:0:3:0 sdc 8:32 active undef running
2. # ll /dev/mapper/
total 0
crw-rw----. 1 root root 10, 58 Feb 14 08:58 control
lrwxrwxrwx. 1 root root      7 Feb 14 09:08 mpathb -> ../dm-0
lrwxrwxrwx. 1 root root      7 Feb 14 09:08 mpathbp1 -> ../dm-1
lrwxrwxrwx. 1 root root      7 Feb 14 09:08 mpathbp2 -> ../dm-2
lrwxrwxrwx. 1 root root      7 Feb 14 09:08 mpathc -> ../dm-3
lrwxrwxrwx. 1 root root      7 Feb 14 09:08 mpathcp1 -> ../dm-4
lrwxrwxrwx. 1 root root      7 Feb 14 09:08 mpathcp2 -> ../dm-5
3. # virsh pool-dumpxml mpath
<pool type='mpath'>
  <name>mpath</name>
  <uuid>f4b73e42-a253-8825-ed68-0843cc606d6c</uuid>
  <capacity>21481278464</capacity>
  <allocation>21481278464</allocation>
  <available>0</available>
  <source>
  </source>
  <target>
    <path>/dev/mapper</path>
    <permissions>
      <mode>0700</mode>
      <owner>-1</owner>
      <group>-1</group>
    </permissions>
  </target>
</pool>
4. # virsh vol-list mpath
Name                 Path                                    
-----------------------------------------
dm-3                 /dev/mapper/mpathc  
  
Actual results:
Only one storage is displayed

Expected results:
Display all storage connected like
Name                 Path                                    
-----------------------------------------
dm-3                 /dev/mapper/mpathc  
dm-0                 /dev/mapper/mpathc  

Additional info:

Comment 2 Osier Yang 2011-02-14 13:56:13 UTC
http://www.redhat.com/archives/libvir-list/2011-February/msg00442.html

patch posted to upstream in reviewing process.

Comment 3 Osier Yang 2011-02-15 02:32:25 UTC
patch got pushed upstream.

Comment 4 Osier Yang 2011-02-17 03:35:49 UTC
patch posted internally. move to POST

Comment 6 zhanghaiyan 2011-02-21 09:12:57 UTC
Verified this bug PASS with libvirt-0.8.7-7.el6.x86_64
- kernel-2.6.32-113.el6.x86_64
- qemu-kvm-0.12.1.2-2.147.el6.x86_64

On step4, could see the following
# virsh vol-list mpath
Name                 Path                                    
-----------------------------------------
dm-0                 /dev/mapper/mpathc                      
dm-1                 /dev/mapper/mpathb

Comment 9 errata-xmlrpc 2011-05-19 13:27:15 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHBA-2011-0596.html


Note You need to log in before you can comment on or make changes to this bug.