Comments on: Access partitions in non-disk block devices with kpartx https://backreference.org/2010/09/25/access-partitions-in-non-disk-block-devices-with-kpartx/ Proudly uncool and out of fashion Sat, 22 Oct 2011 16:20:05 +0000 hourly 1 https://wordpress.org/?v=5.8.2 By: waldner https://backreference.org/2010/09/25/access-partitions-in-non-disk-block-devices-with-kpartx/#comment-24704 Sat, 22 Oct 2011 16:20:05 +0000 http://backreference.org/?p=2546#comment-24704 In reply to thj2.

Sorry I'm not aware of such a tool. IIUC what it does, assuming a simple contiguous LV entirely contained in a single PV, it might be possible to do something by moving each LV block back by N blocks (where N is the size of the LVM metadata in the PV), but this is just wild speculation, I may be misunderstanding (and even if not, it may not be possible to do what I suggest or it may be wrong).

]]>
By: thj2 https://backreference.org/2010/09/25/access-partitions-in-non-disk-block-devices-with-kpartx/#comment-24698 Thu, 20 Oct 2011 02:27:28 +0000 http://backreference.org/?p=2546#comment-24698 Ok, but do you know of any way to map the blocks of an LVM LV-hosted filesystem back to the underlying physical disk (presuming a sequential, contiguous LV hosting the filesystem). Basically, I'm trying to find a Linux LVM2 equivalent to doing a vxunroot.

]]>
By: waldner https://backreference.org/2010/09/25/access-partitions-in-non-disk-block-devices-with-kpartx/#comment-7782 Wed, 08 Dec 2010 18:09:38 +0000 http://backreference.org/?p=2546#comment-7782 In reply to Rich.

In fact I use many different distros, the article about CentOS was only because that happened on a time I had to install CentOS (and actually, CentOS isn't exactly my favorite, but I digress). It would be nice to see a Gentoo ebuild of libguestfs, but I see from the related bug that the road may be a bit longer (unless one is willing to experiment a bit).
But I won't mind trying it out under Debian, Ubuntu or Fedora/RHEL (which I suppose have the best support, seeing where you work) when I have time.

]]>
By: Rich https://backreference.org/2010/09/25/access-partitions-in-non-disk-block-devices-with-kpartx/#comment-7767 Wed, 08 Dec 2010 15:31:18 +0000 http://backreference.org/?p=2546#comment-7767 In reply to waldner.

No problem. We're keen to get people to try out the Debian and Ubuntu version too, although I guess from reading your blog you are using CentOS (which will ship with it in CentOS 6).

]]>
By: waldner https://backreference.org/2010/09/25/access-partitions-in-non-disk-block-devices-with-kpartx/#comment-7761 Wed, 08 Dec 2010 13:23:25 +0000 http://backreference.org/?p=2546#comment-7761 In reply to Rich.

Thanks. Libguestfs is indeed one of those things that have been in my TODO list for quite a while, I hope I'll be able to give it a go soon.

]]>