Skip to contentSkip to conversation

Mapping lvol off to pvol off

linux-lvm Stuart D Gathman 1 participant 1 message Aug 19, 2021 2 messages not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

A message that is not in the archive (sent off-list or not yet received): [email protected]

#2 lore raw
Quoted 5 lines · Chethan Seshadri

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.

_______________________________________________
linux-lvm mailing list
[email protected]
https://listman.redhat.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/