[linux-lvm] vgs result code error

Masanari Iida standby24x7 at gmail.com
Tue Jul 21 07:16:05 UTC 2009

Hello List,

I have encountered an error with vgs command.

How to reproduce.

(1) Initialize the PV.
# pvcreate /dev/cciss/c0d3p3

(2) Create VG
#  vgcreate vg01 /dev/cciss/c0d3p3

(3)  Use vgs command and see result code.

# vgs /dev/cciss/c0d3p3
  Invalid volume group name: cciss/c0d3p3

# echo $?

The result code should be none zero value.
One of a script rely on this result code, and it failed to work
because of this bug.

I have found this bug on RHEL5 (which uses lvm2.02.40-6) and
I have checked out WHATS_NEW between 2.02-40 to 49,
so far no similar symptom.

/dev/cciss is pointed HP Smart Array, FYI.



More information about the linux-lvm mailing list