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 - Add lsblk (list block devices) utility
Summary: Add lsblk (list block devices) utility
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: util-linux-ng
Version: 6.0
Hardware: Unspecified
OS: Unspecified
low
medium
Target Milestone: rc
: ---
Assignee: Karel Zak
QA Contact: Marek Polacek
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-11-24 20:53 UTC by Milan Broz
Modified: 2016-10-19 06:53 UTC (History)
6 users (show)

Fixed In Version: util-linux-ng-2.17.2-9.el6
Doc Type: Enhancement
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-05-19 14:06:41 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2011:0699 0 normal SHIPPED_LIVE util-linux-ng bug fix and enhancement update 2011-05-18 18:10:13 UTC

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


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