From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mx3.redhat.com (mx3.redhat.com [172.16.48.32]) by int-mx1.corp.redhat.com (8.13.1/8.13.1) with ESMTP id m2JDK4xI001799 for ; Wed, 19 Mar 2008 09:20:04 -0400 Received: from mail177.messagelabs.com (mail177.messagelabs.com [85.158.138.99]) by mx3.redhat.com (8.13.8/8.13.8) with ESMTP id m2JDJVMH000859 for ; Wed, 19 Mar 2008 09:19:32 -0400 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C889C3.D6C22E87" Date: Wed, 19 Mar 2008 13:19:19 -0000 Message-ID: From: "Gerrard Geldenhuis" Subject: [linux-lvm] Characters allowed for vg name Reply-To: LVM general discussion and development List-Id: LVM general discussion and development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , List-Id: To: LVM general discussion and development This is a multi-part message in MIME format. ------_=_NextPart_001_01C889C3.D6C22E87 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable 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. =20 Does anybody know what the allowable characters are for vg, pv and lv names? =20 Regards ------_=_NextPart_001_01C889C3.D6C22E87 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

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

------_=_NextPart_001_01C889C3.D6C22E87-- From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [10.33.0.40] (breeves.fab.redhat.com [10.33.0.40]) by pobox.fab.redhat.com (8.13.1/8.13.1) with ESMTP id m2JDW8pe002605 for ; Wed, 19 Mar 2008 09:32:08 -0400 Message-ID: <47E113C4.1050503@redhat.com> Date: Wed, 19 Mar 2008 13:23:16 +0000 From: "Bryn M. Reeves" MIME-Version: 1.0 Subject: Re: [linux-lvm] Characters allowed for vg name References: In-Reply-To: Content-Transfer-Encoding: 7bit Reply-To: LVM general discussion and development List-Id: LVM general discussion and development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , List-Id: Content-Type: text/plain; charset="us-ascii" 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----- From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [10.34.32.183] (mazybook.englab.brq.redhat.com [10.34.32.183]) by pobox.stuttgart.redhat.com (8.13.1/8.13.1) with ESMTP id m2JDWrXs018013 for ; Wed, 19 Mar 2008 09:32:53 -0400 Message-ID: <47E115FC.90802@redhat.com> Date: Wed, 19 Mar 2008 14:32:44 +0100 From: Milan Broz MIME-Version: 1.0 Subject: Re: [linux-lvm] Characters allowed for vg name References: In-Reply-To: Content-Transfer-Encoding: 7bit Reply-To: LVM general discussion and development List-Id: LVM general discussion and development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , List-Id: Content-Type: text/plain; charset="us-ascii" 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 From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from agk.fab.redhat.com (agk.fab.redhat.com [10.33.0.19]) by pobox.fab.redhat.com (8.13.1/8.13.1) with ESMTP id m2JDclKR003596 for ; Wed, 19 Mar 2008 09:38:47 -0400 Received: from agk by agk.fab.redhat.com with local (Exim 4.34) id 1JbyVD-0004Zp-Nl for linux-lvm@redhat.com; Wed, 19 Mar 2008 13:38:47 +0000 Date: Wed, 19 Mar 2008 13:38:47 +0000 From: Alasdair G Kergon Subject: Re: [linux-lvm] Characters allowed for vg name Message-ID: <20080319133847.GF12007@agk.fab.redhat.com> References: Mime-Version: 1.0 Content-Disposition: inline In-Reply-To: Reply-To: LVM general discussion and development List-Id: LVM general discussion and development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , List-Id: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit 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 From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mx3.redhat.com (mx3.redhat.com [172.16.48.32]) by int-mx1.corp.redhat.com (8.13.1/8.13.1) with ESMTP id m2JDnBJR022693 for ; Wed, 19 Mar 2008 09:49:11 -0400 Received: from mail125.messagelabs.com (mail125.messagelabs.com [85.158.136.35]) by mx3.redhat.com (8.13.8/8.13.8) with ESMTP id m2JDmaow027406 for ; Wed, 19 Mar 2008 09:48:37 -0400 Content-class: urn:content-classes:message MIME-Version: 1.0 Subject: RE: [linux-lvm] Characters allowed for vg name Date: Wed, 19 Mar 2008 13:47:57 -0000 Message-ID: In-Reply-To: <20080319133847.GF12007@agk.fab.redhat.com> References: <20080319133847.GF12007@agk.fab.redhat.com> From: "Gerrard Geldenhuis" Content-Transfer-Encoding: 8bit Reply-To: LVM general discussion and development List-Id: LVM general discussion and development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , List-Id: Content-Type: text/plain; charset="us-ascii" 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/ From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from agk.fab.redhat.com (agk.fab.redhat.com [10.33.0.19]) by pobox.fab.redhat.com (8.13.1/8.13.1) with ESMTP id m2JELi9w011707 for ; Wed, 19 Mar 2008 10:21:44 -0400 Received: from agk by agk.fab.redhat.com with local (Exim 4.34) id 1JbzAm-0004b8-9F for linux-lvm@redhat.com; Wed, 19 Mar 2008 14:21:44 +0000 Date: Wed, 19 Mar 2008 14:21:44 +0000 From: Alasdair G Kergon Subject: Re: [linux-lvm] Characters allowed for vg name Message-ID: <20080319142144.GG12007@agk.fab.redhat.com> References: <20080319133847.GF12007@agk.fab.redhat.com> Mime-Version: 1.0 Content-Disposition: inline In-Reply-To: Reply-To: LVM general discussion and development List-Id: LVM general discussion and development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , List-Id: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit 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 From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mx3.redhat.com (mx3.redhat.com [172.16.48.32]) by int-mx1.corp.redhat.com (8.13.1/8.13.1) with ESMTP id m2JIPDbi013340 for ; Wed, 19 Mar 2008 14:25:13 -0400 Received: from mail.bmsi.com (www.bmsi.com [24.248.44.156]) by mx3.redhat.com (8.13.8/8.13.8) with ESMTP id m2JIOg2X026852 for ; Wed, 19 Mar 2008 14:24:42 -0400 Received: from bmsred.bmsi.com (bmsred.bmsi.com [192.168.9.50]) by mail.bmsi.com (8.13.6/8.13.6) with ESMTP id m2JIObrS002174 for ; Wed, 19 Mar 2008 14:24:37 -0400 Received: from localhost (localhost [127.0.0.1]) by bmsred.bmsi.com (8.13.5/8.13.6) with ESMTP id m2JIObDS013354 for ; Wed, 19 Mar 2008 14:24:37 -0400 Date: Wed, 19 Mar 2008 14:24:23 -0400 (EDT) From: "Stuart D. Gathman" Subject: Re: [linux-lvm] Characters allowed for vg name In-Reply-To: <20080319142144.GG12007@agk.fab.redhat.com> Message-ID: MIME-Version: 1.0 Reply-To: LVM general discussion and development List-Id: LVM general discussion and development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , List-Id: Content-Type: TEXT/PLAIN; charset="us-ascii" Content-Transfer-Encoding: 7bit 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 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-----