Re: LE to PE mapping

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

 




On Sep 16, 2014, at 12:46 PM, Allen, Jack wrote:

Hello:
                I have only received 1 direct reply about this. Nobody else has anything to add?
 
                Another question: Where is the mapping stored if I wanted to write a program to display it the way I want?
 

I don't think there is a way to do exactly what you want that I am aware of.  You need to know three things: the order of the devices, the stripe size, and the overall size.  You can compute what you want from that, but I don't think LVM will do that for you.

You can get those three fields from 'lvs', but I think you will have to do some scripting to get what you want from there.

As to the question of the mapping table...  The mapping table is not stored anywhere.  It is constructed from the LVs properties that are stored in the LVM metadata.  You can, however, get the table used to construct the device by calling 'dmsetup table <DM device>'.  The DM device is what /dev/<vg>/<lv> links to.

 brassow

_______________________________________________
linux-lvm mailing list
linux-lvm@redhat.com
https://www.redhat.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/

[Index of Archives]     [Gluster Users]     [Kernel Development]     [Linux Clusters]     [Device Mapper]     [Security]     [Bugtraq]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]

  Powered by Linux