* [linux-lvm] Characters allowed for vg name
@ 2008-03-19 13:19 Gerrard Geldenhuis
2008-03-19 13:23 ` Bryn M. Reeves
` (2 more replies)
0 siblings, 3 replies; 7+ messages in thread
From: Gerrard Geldenhuis @ 2008-03-19 13:19 UTC (permalink / raw)
To: LVM general discussion and development
[-- Attachment #1: Type: text/plain, Size: 349 bytes --]
Hi
I have a kickstart file which fails if I use an - character in the
vgname. Using a _ works fine. I did not see any reference to allowable
characters in the man pages. The man pages only makes mention off
allowable characters for tags.
Does anybody know what the allowable characters are for vg, pv and lv
names?
Regards
[-- Attachment #2: Type: text/html, Size: 2131 bytes --]
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [linux-lvm] Characters allowed for vg name
2008-03-19 13:19 [linux-lvm] Characters allowed for vg name Gerrard Geldenhuis
@ 2008-03-19 13:23 ` Bryn M. Reeves
2008-03-19 13:32 ` Milan Broz
2008-03-19 13:38 ` Alasdair G Kergon
2 siblings, 0 replies; 7+ messages in thread
From: Bryn M. Reeves @ 2008-03-19 13:23 UTC (permalink / raw)
To: LVM general discussion and development
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Gerrard Geldenhuis wrote:
> Hi
>
> I have a kickstart file which fails if I use an - character in the
> vgname. Using a _ works fine. I did not see any reference to allowable
> characters in the man pages. The man pages only makes mention off
> allowable characters for tags.
>
> Does anybody know what the allowable characters are for vg, pv and lv names?
The '-' character is allowed:
# vgrename t0 t0-foo
Volume group "t0" successfully renamed to "t0-foo"
Sounds like this is the installer enforcing an additional restriction.
What distribution/version are you using?
Regards,
Bryn.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org
iD8DBQFH4RPE6YSQoMYUY94RAmfaAJ9ogAt9lRovgG+DvcGchebhl5BdTQCfTG+T
MIBhZhsiADR5+FWUugXZtj0=
=s/6+
-----END PGP SIGNATURE-----
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [linux-lvm] Characters allowed for vg name
2008-03-19 13:19 [linux-lvm] Characters allowed for vg name Gerrard Geldenhuis
2008-03-19 13:23 ` Bryn M. Reeves
@ 2008-03-19 13:32 ` Milan Broz
2008-03-19 13:38 ` Alasdair G Kergon
2 siblings, 0 replies; 7+ messages in thread
From: Milan Broz @ 2008-03-19 13:32 UTC (permalink / raw)
To: LVM general discussion and development
Gerrard Geldenhuis wrote:
> I have a kickstart file which fails if I use an - character in the
> vgname. Using a _ works fine. I did not see any reference to allowable
> characters in the man pages. The man pages only makes mention off
> allowable characters for tags.
It's bug in kickstart processing - lvm allows '-' in vgname.
If using Fedora/RHEL/CentOS see
https://bugzilla.redhat.com/show_bug.cgi?id=430907
Milan
--
mbroz@redhat.com
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [linux-lvm] Characters allowed for vg name
2008-03-19 13:19 [linux-lvm] Characters allowed for vg name Gerrard Geldenhuis
2008-03-19 13:23 ` Bryn M. Reeves
2008-03-19 13:32 ` Milan Broz
@ 2008-03-19 13:38 ` Alasdair G Kergon
2008-03-19 13:47 ` Gerrard Geldenhuis
2 siblings, 1 reply; 7+ messages in thread
From: Alasdair G Kergon @ 2008-03-19 13:38 UTC (permalink / raw)
To: LVM general discussion and development
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 clash
with '/dev/null' and '.' and '..' are also banned of course).
> Does anybody know what the allowable characters are for vg, pv and lv
> names?
VG/LV:
a-zA-Z0-9+_.-
(PV names are simply filenames)
Alasdair
--
agk@redhat.com
^ permalink raw reply [flat|nested] 7+ messages in thread
* RE: [linux-lvm] Characters allowed for vg name
2008-03-19 13:38 ` Alasdair G Kergon
@ 2008-03-19 13:47 ` Gerrard Geldenhuis
2008-03-19 14:21 ` Alasdair G Kergon
0 siblings, 1 reply; 7+ messages in thread
From: Gerrard Geldenhuis @ 2008-03-19 13:47 UTC (permalink / raw)
To: LVM general discussion and development
Thanks,
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
response.
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.
Regards
> -----Original Message-----
> From: linux-lvm-bounces@redhat.com
[mailto:linux-lvm-bounces@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
clash
> with '/dev/null' and '.' and '..' are also banned of course).
>
> > Does anybody know what the allowable characters are for vg, pv and
lv
> > names?
>
> VG/LV:
> a-zA-Z0-9+_.-
>
> (PV names are simply filenames)
>
> Alasdair
> --
> agk@redhat.com
>
> _______________________________________________
> 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/
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [linux-lvm] Characters allowed for vg name
2008-03-19 13:47 ` Gerrard Geldenhuis
@ 2008-03-19 14:21 ` Alasdair G Kergon
2008-03-19 18:24 ` Stuart D. Gathman
0 siblings, 1 reply; 7+ messages in thread
From: Alasdair G Kergon @ 2008-03-19 14:21 UTC (permalink / raw)
To: LVM general discussion and development
On Wed, Mar 19, 2008 at 01:47:57PM -0000, Gerrard Geldenhuis wrote:
> 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
> response.
Sorry for that: If you send me the ticket number privately I'll see that it's
progressed.
> 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.
Here's a current summary of the rules (as added to bug 430907).
The characters allowed in VG and
LV names are: a-z A-Z 0-9 + _ . -
Neither a VG nor an LV can begin with a hyphen.
There are also various reserved names.
A VG cannot be called anything that appears in 'ls /dev' at the time it is
created (including '.' and '..' of course).
An LV can also not be called '.' or '..'.
A new LV cannot begin with the strings 'snapshot' or 'pvmove'.
It may not contain the strings '_mlog' or '_mimage'.
Additional reserved strings are likely to be added over time.
Pre-existing LVs may be found with these names, and the tools will normally cope
adequately. (Internally-generated LVs do use these reserved names - that's why
they are reserved.)
Alasdair
--
agk@redhat.com
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [linux-lvm] Characters allowed for vg name
2008-03-19 14:21 ` Alasdair G Kergon
@ 2008-03-19 18:24 ` Stuart D. Gathman
0 siblings, 0 replies; 7+ messages in thread
From: Stuart D. Gathman @ 2008-03-19 18:24 UTC (permalink / raw)
To: LVM general discussion and development
-----BEGIN PGP SIGNED MESSAGE-----
On Wed, 19 Mar 2008, Alasdair G Kergon wrote:
> Pre-existing LVs may be found with these names, and the tools will normally
> cope adequately. (Internally-generated LVs do use these reserved names -
> that's why they are reserved.)
I think that renaming is an excellent approach. If a reserved name
is discovered when activating a VG, rename it to something legal but
recognizable.
I remember when this used to cause problems on AIX - because all LVs
had to be unique, so importing a foreign VG would rename all the common
LV names - very annoying. But this is not a big problem with lvm2 because
only the VG needs to be unique.
- --
Stuart D. Gathman <stuart@bmsi.com>
Business Management Systems Inc. Phone: 703 591-0911 Fax: 703 591-6154
"Confutatis maledictis, flammis acribus addictis" - background song for
a Microsoft sponsored "Where do you want to go from here?" commercial.
-----BEGIN PGP SIGNATURE-----
Version: PGPfreeware 5.0i for non-commercial use
Charset: noconv
iQEVAwUBR+FaY4JnzZxkHLLFAQH+wAf7BTMrroddkgGBd0VQdBm2AQzZW41h9sIs
6jjdl16qu/InIYtR+gLWmqC3lTHZVLedoHAUOfMRrGWPn8rPOLXOU6VXuCN52nhH
FBk6sxuDEu7a/olvaU3c62AOm/fSvrn4qp884zWk5dHpGDypQpGOczdl4botdafu
CwIt3Ev7wUd5LT1t17/c9yfGG4e4LNf/LE97zGG1pf/IZkidWJHY14WYh2xUqM9P
1/u8aAkp0mD8EwyPTade4Hog2C+QIFrkKeV8oeP3kc9RRiSCz/QdwOmWcExcOJ6h
6Vyox46O5rVs+GYaLdRCcYSb9YcBsoCTUPgOjLeTlBC4YA9rZPJ+QQ==
=BuS8
-----END PGP SIGNATURE-----
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2008-03-19 18:25 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-03-19 13:19 [linux-lvm] Characters allowed for vg name Gerrard Geldenhuis
2008-03-19 13:23 ` Bryn M. Reeves
2008-03-19 13:32 ` Milan Broz
2008-03-19 13:38 ` Alasdair G Kergon
2008-03-19 13:47 ` Gerrard Geldenhuis
2008-03-19 14:21 ` Alasdair G Kergon
2008-03-19 18:24 ` Stuart D. Gathman
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).