Dennis Jacobfeuerborn
2013-May-02 16:13 UTC
[CentOS] Kickstart and volume group with a dash in the name
Hi, I'm trying to setup the provisioning of new OpenStack hypervisors with cinder volumes on them. The problem is that kickstart doesn't allow dashed in volume group names? I tried this: volgroup cinder-volumes --pesize=4096 pv.02 and this: volgroup cinder--volumes --pesize=4096 pv.02 but in both cases I end up with a volume group named "cindervolumes" on the system. Any idea what I have to do to accomplish this? Defining VGs with dashes works perfectly fine on the command line. Regards, Denis
Hi Dennis Did you try to screen it via "\" ? i.e. "volgroup cinder\-volumes --pesize=4096 pv.02" ? Max On 03/05/13 00:13, Dennis Jacobfeuerborn wrote:> Hi, > I'm trying to setup the provisioning of new OpenStack hypervisors with > cinder volumes on them. The problem is that kickstart doesn't allow > dashed in volume group names? > I tried this: > > volgroup cinder-volumes --pesize=4096 pv.02 > > and this: > > volgroup cinder--volumes --pesize=4096 pv.02 > > but in both cases I end up with a volume group named "cindervolumes" on > the system. Any idea what I have to do to accomplish this? > Defining VGs with dashes works perfectly fine on the command line. > > Regards, > Denis > _______________________________________________ > CentOS mailing list > CentOS at centos.org > http://lists.centos.org/mailman/listinfo/centos >
SilverTip257
2013-May-02 16:36 UTC
[CentOS] Kickstart and volume group with a dash in the name
On Thu, May 2, 2013 at 12:13 PM, Dennis Jacobfeuerborn < dennisml at conversis.de> wrote:> Hi, > I'm trying to setup the provisioning of new OpenStack hypervisors with > cinder volumes on them. The problem is that kickstart doesn't allow > dashed in volume group names? >Since LVs can be referenced in a way that contains dashes, I expect dashes may not be allowed. See these examples: /dev/vgname/logvolname /dev/mapper/vgname-logvolname But the following excerpt from "man lvm" doesn't support my thought. VALID NAMES The following characters are valid for VG and LV names: a-z A-Z 0-9 + _ . - VG and LV names cannot begin with a hyphen. There are also various reserved names that are used internally by lvm that can not be used as LV or VG names. A VG cannot be called anything that exists in /dev/ at the time of creation, nor can it be called '.' or '..'. A LV can? not be called '.' '..' 'snapshot' or 'pvmove'. The LV name may also not contain the strings '_mlog', '_mimage', '_rimage', '_tdata', '_tmeta'.> I tried this: > > volgroup cinder-volumes --pesize=4096 pv.02 > > and this: > > volgroup cinder--volumes --pesize=4096 pv.02 > > but in both cases I end up with a volume group named "cindervolumes" on > the system. Any idea what I have to do to accomplish this? >Underscores work just fine. You might consider using underscores instead of dashes.> Defining VGs with dashes works perfectly fine on the command line. >As maxxik suggests, you may consider escaping the hypen/dash.> > Regards, > Denis > _______________________________________________ > CentOS mailing list > CentOS at centos.org > http://lists.centos.org/mailman/listinfo/centos >-- ---~~.~~--- Mike // SilverTip257 //
Carl T. Miller
2013-May-02 17:18 UTC
[CentOS] Kickstart and volume group with a dash in the name
On 05/02/2013 12:13 PM, Dennis Jacobfeuerborn wrote:> Hi, > I'm trying to setup the provisioning of new OpenStack hypervisors with > cinder volumes on them. The problem is that kickstart doesn't allow > dashed in volume group names? > I tried this: > > volgroup cinder-volumes --pesize=4096 pv.02 > > and this: > > volgroup cinder--volumes --pesize=4096 pv.02 > > but in both cases I end up with a volume group named "cindervolumes" on > the system. Any idea what I have to do to accomplish this? > Defining VGs with dashes works perfectly fine on the command line.If you have commands that work on the command line, try adding them to the post install section of the kickstart file. c
Markus Falb
2013-May-03 17:12 UTC
[CentOS] Kickstart and volume group with a dash in the name
On 02.Mai.2013, at 18:13, Dennis Jacobfeuerborn wrote:> The problem is that kickstart doesn't allow > dashed in volume group names?It seems so. https://bugzilla.redhat.com/show_bug.cgi?id=186439 https://bugzilla.redhat.com/show_bug.cgi?id=407701 https://bugzilla.redhat.com/show_bug.cgi?id=430907 http://rhn.redhat.com/errata/RHBA-2009-0164.html If I understand it correct then it should have been fixed long ago. I tried it. CentOS 5 does *not* strip the dash Fedora 18 does *not* strip the dash but CentOS 6 *does strip* the dash It seems like a regression. You are using CentOS 6, aren't you? Would you mind filing a bugzilla? -- Markus