Red Hat Bugzilla – Bug 828592
cannot create Volume Group names longer than 16 characters
Last modified: 2012-09-12 11:50:22 EDT
Description of problem:
You cannot edit the Volume Group name field. I need several Volume Groups but now I have no way
to do this since there's no way to make them unique.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Boot from F17 x86_64 DVD
2. Select Custom Partitioning
3. Create a Physical Volume
4. Create a Volumne Group
5. Create another Physical Volume
6 Create a 2nd Volume Group
The installer will not allow you to edit the name of the Volume Group.
This results in inability to create more than 1 Volume Group.
Able to edit Volume Group name field.
Came back to this and found that the problem was rooted in anaconda restricting the Volume Group names to only 16 characters.
Our machine names are all 13 characters long and when you add vg_ as prefix the Volume Group default name presented is already 16 characters long. This made it appear like you could not edit the field.
On previous installations we have Volume Group names that are much longer than 16 characters.
The Volume Group name field should not be so narrowly restricted.
The code that limits the length of input to these text entries (vgname, lvname) to 16 characters has been there for more than 10 years. Your only option for using longer names is kickstart.
This length limitation will not be present in F18.
Maybe that's how these machines got the longer Volume Group names because we installed all our servers using kickstart.
Another problem is see with names is this:
I enter a VG name: vg_renog11-1
When it gets created it looks like this: /dev/mapper/vg_renog11--1-lv00
Why does the installer always add extra hyphen?
(In reply to comment #3)
> I enter a VG name: vg_renog11-1
> When it gets created it looks like this: /dev/mapper/vg_renog11--1-lv00
> Why does the installer always add extra hyphen?
lvm (or device-mapper) does that. They have to escape the dash since the dash has special meaning for lvm device names (delineating vg name from lv name).