* [linux-lvm] Where are the data blocks of an LV?
@ 2022-07-22 17:30 Marcin Owsiany
2022-07-26 8:58 ` Roger James
2022-07-26 18:22 ` Stuart D Gathman
0 siblings, 2 replies; 3+ messages in thread
From: Marcin Owsiany @ 2022-07-22 17:30 UTC (permalink / raw)
To: linux-lvm
[-- Attachment #1.1: Type: text/plain, Size: 377 bytes --]
Hello,
I know that it is possible to find where a given logical volume's extents
start on a PVs thanks to the information printed by lvdisplay --maps.
I was also able to experimentally establish that the actual data of an LV
starts one megabyte after that location. Is that offset documented
anywhere, or can I somehow discover it at runtime for a given LV?
regards,
Marcin
[-- Attachment #1.2: Type: text/html, Size: 563 bytes --]
[-- Attachment #2: Type: text/plain, Size: 202 bytes --]
_______________________________________________
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] 3+ messages in thread
* Re: [linux-lvm] Where are the data blocks of an LV?
2022-07-22 17:30 [linux-lvm] Where are the data blocks of an LV? Marcin Owsiany
@ 2022-07-26 8:58 ` Roger James
2022-07-26 18:22 ` Stuart D Gathman
1 sibling, 0 replies; 3+ messages in thread
From: Roger James @ 2022-07-26 8:58 UTC (permalink / raw)
To: LVM general discussion and development
[-- Attachment #1.1: Type: text/plain, Size: 754 bytes --]
See https://talk.manageiq.org/t/lvm-internals-structures-disk-layout/1328
On 26 July 2022 09:16:31 Marcin Owsiany <marcin@owsiany.pl> wrote:
> Hello,
>
> I know that it is possible to find where a given logical volume's extents
> start on a PVs thanks to the information printed by lvdisplay --maps.
>
> I was also able to experimentally establish that the actual data of an LV
> starts one megabyte after that location. Is that offset documented
> anywhere, or can I somehow discover it at runtime for a given LV?
>
> regards,
> Marcin
> _______________________________________________
> 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/
[-- Attachment #1.2: Type: text/html, Size: 1976 bytes --]
[-- Attachment #2: Type: text/plain, Size: 202 bytes --]
_______________________________________________
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] 3+ messages in thread
* Re: [linux-lvm] Where are the data blocks of an LV?
2022-07-22 17:30 [linux-lvm] Where are the data blocks of an LV? Marcin Owsiany
2022-07-26 8:58 ` Roger James
@ 2022-07-26 18:22 ` Stuart D Gathman
1 sibling, 0 replies; 3+ messages in thread
From: Stuart D Gathman @ 2022-07-26 18:22 UTC (permalink / raw)
To: Marcin Owsiany; +Cc: linux-lvm
Checkout https://github.com/sdgathman/lbatofile
It was written to identify the file affected by a bad block (so it goes
the opposite direction), but the getpvmap() function obtains pe_start and
pe_size plus the list of segments. findlv() goes through the segments to
find the one an absolute sector is in. That should tell you what you want
to know.
On Fri, 22 Jul 2022, Marcin Owsiany wrote:
> I know that it is possible to find where a given logical volume's extents
> start on a PVs thanks to the information printed by lvdisplay --maps.
>
> I was also able to experimentally establish that the actual data of an LV
> starts one megabyte after that location. Is that offset documented anywhere,
> or can I somehow discover it at runtime for a given LV?
_______________________________________________
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] 3+ messages in thread
end of thread, other threads:[~2022-07-27 7:39 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-07-22 17:30 [linux-lvm] Where are the data blocks of an LV? Marcin Owsiany
2022-07-26 8:58 ` Roger James
2022-07-26 18:22 ` 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).