[linux-lvm] vgs result code error

Masanari Iida standby24x7 at gmail.com
Tue Jul 21 09:08:04 UTC 2009

Thanks for reply.

> You specified a PV, not a VG.  Try:
> # vgs vg01

Yes I know it should work.

# vgs vg01
  VG   #PV #LV #SN Attr   VSize VFree
  vg01   1   0   0 wz--n- 3.82G 3.82G

The point I want to say is,  vgs command _should_ return non-zero
exit status value, if vgs command returned an error.

Reference: man lvm(8)

       All tools return a status code of zero on success or non-zero on  fail-


More information about the linux-lvm mailing list