[dm-crypt] From /dev/mapper to the real device

Milan Broz mbroz at redhat.com
Tue Jan 18 10:34:56 CET 2011

On 01/18/2011 10:01 AM, Xavier Nicollet wrote:
> I did something like that:
> cryptsetup luksOpen /dev/mapper/lv_device crypto_device
> I would like to find a way, given /dev/mapper/crypto_device, to find
> which lv_device it was built from.

cryptsetup status crypto_device (for active mapping)?

(But note this device name is not always the same you used, for LV you can
have several symlinks /dev/mapper/vg-lv or /dev/vg/lv or /dev/by-uuid/... 
so there are hardcoded priorities)


More information about the dm-crypt mailing list