Bug 1309729

Summary: [RFE] Better identify physical and multi path devices in sms output
Product: Red Hat Enterprise Linux 7 Reporter: Marko Myllynen <myllynen>
Component: system-storage-managerAssignee: Lukáš Czerner <lczerner>
Status: CLOSED WONTFIX QA Contact: Boyang Xue <bxue>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 7.2CC: agk, bxue, esandeen, lczerner, nobody, prajnoha, pvlasin, rhandlin, swhiteho, xzhou, zkabelac
Target Milestone: rcKeywords: FutureFeature
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-05-06 19:13:33 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 Marko Myllynen 2016-02-18 14:56:28 UTC
Description of problem:
# ssm list dev
------------------------------------------------------------
Device           Free       Used       Total  Pool
------------------------------------------------------------
/dev/dm-10  448.98 GB  551.00 GB  1000.00 GB  cinder-volumes
/dev/dm-3     0.00 KB  149.28 GB   149.28 GB  rhel
/dev/dm-6   999.98 GB    0.00 KB  1000.00 GB  cinder-volumes
/dev/dm-7   749.98 GB  250.00 GB  1000.00 GB  cinder-volumes
/dev/dm-8    30.98 GB  969.00 GB  1000.00 GB  cinder-volumes
/dev/dm-9   999.98 GB    0.00 KB  1000.00 GB  cinder-volumes
/dev/loop0                          20.60 GB
/dev/sda                           150.00 GB
/dev/sdb                          1000.00 GB
/dev/sdc                          1000.00 GB
/dev/sdd                          1000.00 GB
/dev/sde                          1000.00 GB
/dev/sdf                          1000.00 GB
/dev/sdg                           150.00 GB
/dev/sdh                          1000.00 GB
/dev/sdi                          1000.00 GB
/dev/sdj                          1000.00 GB
/dev/sdk                          1000.00 GB
/dev/sdl                          1000.00 GB
/dev/sdm                           150.00 GB
/dev/sdn                          1000.00 GB
/dev/sdo                          1000.00 GB
/dev/sdp                          1000.00 GB
/dev/sdq                          1000.00 GB
/dev/sdr                          1000.00 GB
/dev/sds                           150.00 GB
/dev/sdt                          1000.00 GB
/dev/sdu                          1000.00 GB
/dev/sdv                          1000.00 GB
/dev/sdw                          1000.00 GB
/dev/sdx                          1000.00 GB
------------------------------------------------------------
# ssm list pool
------------------------------------------------------------
Pool            Type  Devices     Free       Used      Total
------------------------------------------------------------
cinder-volumes  lvm   5        3.15 TB    1.73 TB    4.88 TB
rhel            lvm   1        0.00 KB  149.28 GB  149.28 GB
------------------------------------------------------------
# ssm list fs
---------------------------------------------------------------------------------
Volume          Pool  Volume size  FS      FS size      Free  Type    Mount point
---------------------------------------------------------------------------------
/dev/rhel/root  rhel    147.00 GB  ext4  147.00 GB  42.55 GB  linear  /
---------------------------------------------------------------------------------
# 

So we're able to see pretty well here everything needed except for the relationship of dm-N devices with physical and multipath devices. Something like below would probably be somewhat more helpful:

# ssm list dev
------------------------------------------------------------
Device           Free       Used       Total  Pool
------------------------------------------------------------
/dev/dm-3     0.00 KB  149.28 GB   149.28 GB  rhel
  /dev/sda                         150.00 GB
  /dev/sdg                         150.00 GB
  /dev/sdm                         150.00 GB
  /dev/sds                         150.00 GB
/dev/dm-6   999.98 GB    0.00 KB  1000.00 GB  cinder-volumes
  /dev/sdb                        1000.00 GB
  /dev/sdc                        1000.00 GB
  /dev/sdd                        1000.00 GB
  /dev/sde                        1000.00 GB
/dev/dm-7   749.98 GB  250.00 GB  1000.00 GB  cinder-volumes
  /dev/sdf                        1000.00 GB
  /dev/sdh                        1000.00 GB
  /dev/sdi                        1000.00 GB
  /dev/sdj                        1000.00 GB
/dev/dm-8    30.98 GB  969.00 GB  1000.00 GB  cinder-volumes
  /dev/sdk                        1000.00 GB
  /dev/sdl                        1000.00 GB
  /dev/sdn                        1000.00 GB
  /dev/sdo                        1000.00 GB
/dev/dm-9   999.98 GB    0.00 KB  1000.00 GB  cinder-volumes
  /dev/sdp                        1000.00 GB
  /dev/sdq                        1000.00 GB
  /dev/sdr                        1000.00 GB
  /dev/sdt                        1000.00 GB
/dev/dm-10  448.98 GB  551.00 GB  1000.00 GB  cinder-volumes
  /dev/sdu                        1000.00 GB
  /dev/sdv                        1000.00 GB
  /dev/sdw                        1000.00 GB
  /dev/sdx                        1000.00 GB
/dev/loop0                          20.60 GB
------------------------------------------------------------
# 

Version-Release number of selected component (if applicable):
system-storage-manager-0.4-5

Comment 14 Eric Sandeen 2019-06-24 16:31:51 UTC
Pushing this out to rhel7.8 for now, but if this RFE won't be completed please close.
Thanks,
-Eric

Comment 19 Steve Whitehouse 2020-05-06 16:21:39 UTC
Lukas, what should we do here? Since this is tagged future feature, it is not suitable for rhel7, so should we move it to rhel8? If not then please close it, if it is not going to be done at all, or is already fixed in rhel8. In the mean time I'm clearing the blocker flag.

Comment 20 Lukáš Czerner 2020-05-06 19:13:33 UTC
Hi Steve,

Jan did some work on this before he left, but I don't have confidence in the code to push it into rhel7. Let's close it.

-Lukas