Re: [linux-lvm] convert logical sector -> physical sector + pv/vg extent number

2022-01-03 Thread Roland
> any chance to get retrieve this information for automated/script based processing ? after long trial and error and reading manpages, i got it (see below): what i'm yet missing is how "translation" of the headings/fields in normal output can be avoided , i.e print the technical/internal field

Re: [linux-lvm] convert logical sector -> physical sector + pv/vg extent number

2022-01-03 Thread Roland
thanks! any chance to get retrieve this information for automated/script based processing ? roland Am 03.01.22 um 00:12 schrieb Andy Smith: Hi Roland, On Sun, Jan 02, 2022 at 08:00:30PM +0100, Roland wrote: if i have a logical sector/block "x" on a lvm logical volume ,  is there a way to

Re: [linux-lvm] convert logical sector -> physical sector + pv/vg extent number

2022-01-03 Thread Andy Smith
Hi Roland, On Sun, Jan 02, 2022 at 08:00:30PM +0100, Roland wrote: > 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

[linux-lvm] Can't get merge in background using blockdev api to work

2022-01-03 Thread Tomas Dalebjörk
Hi, I am trying to start a merge to the previous snapshot to be started with the "-b" flag (background). But it seems to be that the merging has not started in the background at all. BDExtraArg lv_arg = {"--background",""}; const BDExtraArg*extra_args[2] = {_arg,