[linux-lvm] Mapping lvol off to pvol off
Stuart D Gathman
stuart at gathman.org
Thu Aug 19 02:38:47 UTC 2021
On Tue, 17 Aug 2021, Chethan Seshadri wrote:
> Can someone help to covert an offset within an lvol to the corresponding
> pvol offset using...
>
> 1. lvm commands
> 2. lvmdbusd APIs
This utility does that:
https://github.com/sdgathman/lbatofile
See getlv() and getpvmap()
https://github.com/sdgathman/lbatofile/blob/master/lbatofile.py
Caveat, only tested with classic LVs. Dunno about thin stuff.
More information about the linux-lvm
mailing list