Bug 1358748
Summary: | lshw does not report devices which have pv's created on them (on the entire device) | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 7 | Reporter: | nikhil kshirsagar <nkshirsa> |
Component: | lshw | Assignee: | Petr Oros <poros> |
Status: | CLOSED ERRATA | QA Contact: | Mike Gahagan <mgahagan> |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | 7.1 | CC: | poros, skozina |
Target Milestone: | rc | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | lshw-B.02.17-12.el7 | Doc Type: | If docs needed, set a value |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2016-11-04 03:47:08 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
nikhil kshirsagar
2016-07-21 12:08:37 UTC
After deep inspection i found reason why lshw drop device from list. [root@localhost]# lshw -c disk *-virtio2 description: Virtual I/O device physical id: 0 bus info: virtio@2 logical name: /dev/vdb size: 20GiB (21GB) configuration: driver=virtio_blk logicalsectorsize=512 sectorsize=512 [root@localhost]# [root@localhost]# pvcreate /dev/vdb Physical volume "/dev/vdb" successfully created [root@localhost]# lshw -c disk [root@localhost]# but: [root@localhost]# lshw -c volume *-virtio2 description: Virtual I/O device physical id: 0 bus info: virtio@2 logical name: /dev/vdb serial: 9Q74c8-Kc2D-0EHu-gBPe-Gowc-wytU-cIiczq size: 20GiB capacity: 20GiB capabilities: lvm2 configuration: driver=virtio_blk logicalsectorsize=512 sectorsize=512 This is caused by these lines in partitions.cc In function scan_partitions: if(!medium->isCapable("partitioned")) { if(scan_volume(*medium, s)) // whole disk volume? medium->setClass(hw::volume); } That means, when volume is whole disk, lshw classify device like volume, not like disk. Confirmed an empty PV encompassing an entire disk (in this case a USB key) will show up as a disk, not as a volume... the pv itself will show as a medium under the disk entry. Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://rhn.redhat.com/errata/RHEA-2016-2326.html |