lvm report tool

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I want to write a tool to give a quick overview
on how my LVs scatter over the different PVs.
"vgdisplay -m" lists the mapping, I need to now.
Unfortunately it is not easy to parse, and with
"-c", no mapping is listed. The -m option for
pvdisplay seems not to work. The /proc interface
also disappeared. Any clue, on how to extract the
mapping?

Anyway: using the lvm tools, I have to be root, as
they have to open/read the PVs. Any idea on how to
extract the informations as an unprivileged user?

Could sysfs (/sys) help here? Would it make sense,
to output any hierarchical information via XML?
It could be processed much saver/easier than any
colon separated lists...

Dieter.
--
Dieter Stüken, con terra GmbH, Münster
    stueken@conterra.de
    http://www.conterra.de/
    (0)251-7474-501

_______________________________________________
linux-lvm mailing list
linux-lvm@redhat.com
https://www.redhat.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/

[Index of Archives]     [Gluster Users]     [Kernel Development]     [Linux Clusters]     [Device Mapper]     [Security]     [Bugtraq]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]

  Powered by Linux