[linux-lvm] convert logical sector -> physical sector + pv/vg extent number
Roland
devzero at web.de
Sun Jan 2 19:00:30 UTC 2022
hello,
if i have a logical sector/block "x" on a lvm logical volume , is there
a way to easily calculate/determine (optimally by script/cli) the
corresponding physical sector of the physical device it belongs to and
the extent number of the appropiate pv/vg where it resides ?
regards
roland
ps:
i wonder if there is bad block relocation possible with lvm, and i'm
trying to build some script. as far as i can see lvm has everything
needed for that to shuffle extents from one position on disk to another...
More information about the linux-lvm
mailing list