Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 657082

Summary: Add lsblk (list block devices) utility
Product: Red Hat Enterprise Linux 6 Reporter: Milan Broz <mbroz>
Component: util-linux-ngAssignee: Karel Zak <kzak>
Status: CLOSED ERRATA QA Contact: Marek Polacek <mpolacek>
Severity: medium Docs Contact:
Priority: low    
Version: 6.0CC: agk, azelinka, jmarko, mpolacek, pvrabec, rvokal
Target Milestone: rcKeywords: FutureFeature
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: util-linux-ng-2.17.2-9.el6 Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-05-19 14:06:41 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Milan Broz 2010-11-24 20:53:44 UTC
Description of problem:

The upstream util-linux-ng has simple "lsblk" utility which is used to list block device attributes and display pseudo-tree dependence between devices.

Lsblk can be very useful when investigating more complex configurations
(like lvm over LUKS over partitions) or multipath.

It also allows to display simple attributes of block devices like topology info or selected io scheduler.

There is no similar tool which parses /sys/block info in user friendly way in distro yet.

An example output:

$ lsblk -t
NAME                    ALIGNMENT MIN-IO OPT-IO PHY-SEC LOG-SEC ROTA SCHED
sda                             0    512      0     512     512    1 cfq
├─sda1                          0    512      0     512     512    1 cfq
├─sda2                          0    512      0     512     512    1 cfq
│ └─sda2_luks (dm-0)            0    512      0     512     512    1 
│  ├─vg-data (dm-1)             0    512      0     512     512    1 
│  ├─vg-swap (dm-2)             0    512      0     512     512    1 
│  └─vg-root (dm-3)             0    512      0     512     512    1 
└─sda3                          0    512      0     512     512    1 cfq
sdb                             0    512      0     512     512    1 deadline
└─sdb1                          0    512      0     512     512    1 deadline


This tool contributes to user experience value with RHEL and simplifies administration of storage on RHEL6 and can also help with various storage system diagnostics by providing visual representation of device dependences.

Please backport this utility into RHEL6. It requires only libblkid library (already there) so backporting is straightforward and almost risk free here.

Version-Release number of selected component (if applicable):
util-linux-ng-2.17.2-6.el6.x86_64

Upstream commit
http://git.kernel.org/?p=utils/util-linux-ng/util-linux-ng.git;a=commit;h=2a4c734bee6d52c26b7bfa5312c02f4b22b22645

Comment 5 errata-xmlrpc 2011-05-19 14:06:41 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-0699.html