[linux-lvm] Characters allowed for vg name

Gerrard Geldenhuis Gerrard.Geldenhuis at datacash.com
Wed Mar 19 13:47:57 UTC 2008

I did report it as a bug via Redhat support. I have ended up pasting the
mailinglist response in the support ticket after a week of no positive

Would you aggree that a short note about allowable names should be added
to man lvm? If yes, then I don't mind creating a patch.


> -----Original Message-----
> From: linux-lvm-bounces at redhat.com
[mailto:linux-lvm-bounces at redhat.com]
> On Behalf Of Alasdair G Kergon
> Sent: 19 March 2008 13:39
> To: LVM general discussion and development
> Subject: Re: [linux-lvm] Characters allowed for vg name
> On Wed, Mar 19, 2008 at 01:19:19PM -0000, Gerrard Geldenhuis wrote:
> > I have a kickstart file which fails if I use an - character in the
> > vgname. Using a _ works fine.
> Report a bug?
> Hyphens are permitted *inside* VG and LV names, but not as the first
> character.  There are also some reserved names you cannot use
> because of existing /dev entries.  (E.g. a VG name of 'null' would
> with '/dev/null' and '.' and '..' are also banned of course).
> > Does anybody know what the allowable characters are for vg, pv and
> > names?
> VG/LV:
>   a-zA-Z0-9+_.-
> (PV names are simply filenames)
> Alasdair
> --
> agk at redhat.com
> _______________________________________________
> linux-lvm mailing list
> linux-lvm at redhat.com
> https://www.redhat.com/mailman/listinfo/linux-lvm
> read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/

More information about the linux-lvm mailing list