[linux-lvm] Resend: API for retrieving linux lvm information

Alasdair G Kergon agk at redhat.com
Wed Sep 8 09:35:18 UTC 2004


On Tue, Sep 07, 2004 at 06:39:24PM -0700, Stanley Yue wrote:
> As far as the parsing goes, is it better (in terms of compatibility,
> output stability) to parse against the command line output (i.e.
> lvdisplay) or against the /proc/filesystems (i.e.
> /proc/lvm/VGs/vg00/LVs)?
 
My answer was for LVM2.
Looks like you're using LVM1.
To simplify your future upgrade you should consider using LVM2 tools
lvs/pvs/vgs read-only even on an LVM1 installation as their output is 
designed to be easy to parse.

Alasdair
-- 
agk at redhat.com



More information about the linux-lvm mailing list