Re: [linux-lvm] Where are the data blocks of an LV?

2022-07-27 Thread Roger James
See https://talk.manageiq.org/t/lvm-internals-structures-disk-layout/1328 On 26 July 2022 09:16:31 Marcin Owsiany 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

Re: [linux-lvm] Where are the data blocks of an LV?

2022-07-26 Thread Stuart D Gathman
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