How do I list the devices associated with logical volumes under LVM?
This document (7009599) is provided subject to the disclaimer at the end of this document.
Environment
SUSE Linux Enterprise Server 11 Service Pack 2
SUSE Linux Enterprise Server 11 Service Pack 1
SUSE Linux Enterprise Server 10 Service Pack 4
SUSE Linux Enterprise Server 10 Service Pack 3
SUSE Linux Enterprise Server 10 Service Pack 2
SUSE Linux Enterprise Server 10 Service Pack 1
Logical Volume Management (LVM)
SUSE Linux Enterprise Server 11 Service Pack 1
SUSE Linux Enterprise Server 10 Service Pack 4
SUSE Linux Enterprise Server 10 Service Pack 3
SUSE Linux Enterprise Server 10 Service Pack 2
SUSE Linux Enterprise Server 10 Service Pack 1
Logical Volume Management (LVM)
Situation
The lvscan, lvs, and lvdisplay commands will list the existing logical volumes, but how can I display the physical devices associated with those logical volumes?
Resolution
Use the lvs -o +devices command. For example,
ls-lvm:~ # lvs -o +devices
LV VG Attr LSize Origin Snap% Move Log Copy% Convert Devices
arch1 asm -wi-ao 120.00m /dev/sdb5(0)
arch2 asm -wi-ao 120.00m /dev/sdb5(30)
critical ceo -wi-ao 240.00m /dev/sdc1(0)
data lrg -wi-ao 500.00m /dev/sdb6(0)
data lrg -wi-ao 500.00m /dev/sdb7(0)
root sys -wi-ao 548.00m /dev/sda3(0)
usr sys -wi-ao 2.52g /dev/sda3(137)
var sys -wi-ao 448.00m /dev/sda3(781)
ls-lvm:~ # lvs -o +devices
LV VG Attr LSize Origin Snap% Move Log Copy% Convert Devices
arch1 asm -wi-ao 120.00m /dev/sdb5(0)
arch2 asm -wi-ao 120.00m /dev/sdb5(30)
critical ceo -wi-ao 240.00m /dev/sdc1(0)
data lrg -wi-ao 500.00m /dev/sdb6(0)
data lrg -wi-ao 500.00m /dev/sdb7(0)
root sys -wi-ao 548.00m /dev/sda3(0)
usr sys -wi-ao 2.52g /dev/sda3(137)
var sys -wi-ao 448.00m /dev/sda3(781)
Disclaimer
This Support Knowledgebase provides a valuable tool for NetIQ/Novell/SUSE customers and parties interested in our products and solutions to acquire information, ideas and learn from one another. Materials are provided for informational, personal or non-commercial use within your organization and are presented "AS IS" WITHOUT WARRANTY OF ANY KIND.
- Document ID:7009599
- Creation Date:21-JUN-12
- Modified Date:21-JUN-12
- SUSESUSE Linux Enterprise DesktopSUSE Linux Enterprise Server
Did this document solve your problem? Provide Feedback
