From: Roland <devzero@web.de>
To: linux-lvm@redhat.com
Subject: [linux-lvm] convert logical sector -> physical sector + pv/vg extent number
Date: Sun, 2 Jan 2022 20:00:30 +0100 [thread overview]
Message-ID: <97c9434a-d291-dc92-4418-89ab2c7d48e1@web.de> (raw)
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/
next reply other threads:[~2022-01-02 19:06 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-01-02 19:00 Roland [this message]
2022-01-02 23:12 ` [linux-lvm] convert logical sector -> physical sector + pv/vg extent number Andy Smith
2022-01-03 11:13 ` Roland
2022-01-03 16:43 ` Roland
2022-01-06 13:47 ` Stuart D Gathman
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=97c9434a-d291-dc92-4418-89ab2c7d48e1@web.de \
--to=devzero@web.de \
--cc=linux-lvm@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).