How to find which hard drives a LVM volume uses?

Posted on In QA

How to find which hard drives a LVM volume uses to decide which volume will be affected if a disk failes.

You can use lvdisplay with the --maps option to display the the mapping of logical extents to physical volumes and physical extents:

# lvdisplay --maps

To map physical extents to logical extents, use

# pvs --segments -o+lv_name,seg_start_pe,segtype

Eric Ma

Eric is a systems guy. Eric is interested in building high-performance and scalable distributed systems and related technologies. The views or opinions expressed here are solely Eric's own and do not necessarily represent those of any third parties.

Leave a Reply

Your email address will not be published. Required fields are marked *