Device mapper single device display

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

 

I’m trying to use dmsetup to query specific devices rather than using `dmsetup ls --tree` and having to use some bash or scripting to pull out the specific device. Example below ;

 

# dmsetup ls --tree

root_vg-mqm_lv (253:7)

`-mpath4 (253:4)

    |- (65:48)

    |- (8:192)

    |- (8:80)

    `- (65:160)

root_vg-kdump (253:2)

`- (104:2)

root_vg-mqmerr_lv (253:8)

`-mpath4 (253:4)

    |- (65:48)

    |- (8:192)

    |- (8:80)

    `- (65:160)

root_vg-apps (253:5)

|-mpath4 (253:4)

|  |- (65:48)

|  |- (8:192)

|  |- (8:80)

|  `- (65:160)

`- (104:2)

root_vg-var (253:1)

`- (104:2)

root_vg-inf (253:3)

`- (104:2)

root_vg-tws (253:10)

`-mpath4 (253:4)

    |- (65:48)

    |- (8:192)

    |- (8:80)

    `- (65:160)

root_vg-swap (253:6)

|-mpath4 (253:4)

|  |- (65:48)

|  |- (8:192)

|  |- (8:80)

|  `- (65:160)

`- (104:2)

root_vg-root (253:0)

`- (104:2)

root_vg-cdunix (253:9)

`-mpath4 (253:4)

    |- (65:48)

    |- (8:192)

    |- (8:80)

    `- (65:160)

 

 

If I only wanted to look at root_vg-mqm_lv I want to just see

root_vg-mqm_lv (253:7)

`-mpath4 (253:4)

    |- (65:48)

    |- (8:192)

    |- (8:80)

    `- (65:160)

 

I can’t seem to find this flag within the command, does this exist ? Or can it be added into future releases? This would make scripting around the command a lot easier and would also make diagnosing where we have devices that are not utilising multipath, as below ;

 

root_vg-mqm_lv (253:6)

`- (8:192)

 

 

 

Phil Carswell | UNIX L3 | IaaS | Infrastructure Services
Tel 00 44 (0)3301 535 884 | Mobile 00 44 (0)7775 544 375 | Email phillip.carswell@xxxxxxxxxxxx

Barclays, 2nd floor (G7), Block 10, BTCR, Knutsford, Cheshire, England, WA16 9EU
barclays.com

 

Unix Sharepoint
http://teams.barclays.intranet/sites/unix/SitePages/Home.aspx

 

 

Respect  |  Integrity  |  Service  |  Excellence  |  Stewardship
Helping people achieve their ambitions – in the right way          


P Please consider the environment before printing this email

 

Advanced Leave notification : tbc

                                                   

 

 

This e-mail and any attachments are confidential and intended solely for the addressee and may also be privileged or exempt from disclosure under applicable law. If you are not the addressee, or have received this e-mail in error, please notify the sender immediately, delete it from your system and do not copy, disclose or otherwise act upon any part of this e-mail or its attachments.

Internet communications are not guaranteed to be secure or virus-free. The Barclays Group does not accept responsibility for any loss arising from unauthorised access to, or interference with, any Internet communications by any third party, or from the transmission of any viruses. Replies to this e-mail may be monitored by the Barclays Group for operational or business reasons.

Any opinion or other information in this e-mail or its attachments that does not relate to the business of the Barclays Group is personal to the sender and is not given or endorsed by the Barclays Group.

Barclays Bank PLC. Registered in England and Wales (registered no. 1026167). Registered Office: 1 Churchill Place, London, E14 5HP, United Kingdom. Barclays Bank PLC is authorised by the Prudential Regulation Authority and regulated by the Financial Conduct Authority and the Prudential Regulation Authority (Financial Services Register No. 122702). 

--
dm-devel mailing list
dm-devel@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/dm-devel

[Index of Archives]     [DM Crypt]     [Fedora Desktop]     [ATA RAID]     [Fedora Marketing]     [Fedora Packaging]     [Fedora SELinux]     [Yosemite Discussion]     [KDE Users]     [Fedora Docs]

  Powered by Linux