All of lore.kernel.org
 help / color / mirror / Atom feed
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	[thread overview]
Message-ID: <4A4A5F77.10308@redhat.com> (raw)
In-Reply-To: <4A4A48B8.9040401@stormagic.com>

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

  reply	other threads:[~2009-06-30 18:54 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-06-30 17:17 [linux-lvm] Mapping LVs to physical device Chris Farey
2009-06-30 18:54 ` Milan Broz [this message]
2009-06-30 19:07 ` Stuart D. Gathman

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4A4A5F77.10308@redhat.com \
    --to=mbroz@redhat.com \
    --cc=linux-lvm@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.