[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: [linux-lvm] Mapping LVs to physical device
- From: Milan Broz <mbroz redhat com>
- To: LVM general discussion and development <linux-lvm redhat com>
- Subject: Re: [linux-lvm] Mapping LVs to physical device
- Date: Tue, 30 Jun 2009 20:54:47 +0200
Chris Farey wrote:
> I have a requirement to be able to work out which areas of a physical
> device assigned to LVM are being used by various logical volumes. I
> haven't found any easy way to do this using an API, so I've resorted to
> spawning off lvm commands and interpretting the output.
you can report all attributes using pvs/lvs/vgs, like this
pvs -o +devices
lvs --segments -o +seg_pe_ranges
... for list of available attributes just run "pvs -o help"
Milan
--
mbroz redhat com
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]