linux-lvm.redhat.com archive mirror
 help / color / mirror / Atom feed
* [linux-lvm] convert logical sector -> physical sector + pv/vg extent number
@ 2022-01-02 19:00 Roland
  2022-01-02 23:12 ` Andy Smith
  0 siblings, 1 reply; 5+ messages in thread
From: Roland @ 2022-01-02 19:00 UTC (permalink / raw)
  To: linux-lvm

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...


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

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2022-01-06 14:42 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-01-02 19:00 [linux-lvm] convert logical sector -> physical sector + pv/vg extent number Roland
2022-01-02 23:12 ` Andy Smith
2022-01-03 11:13   ` Roland
2022-01-03 16:43     ` Roland
2022-01-06 13:47     ` Stuart D Gathman

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).