Note: This bug is displayed in read-only format because
the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Do not use hyphens in LVM volume group names or logical volume names. Keep each name under 64 characters in length, ensuring that the total length of the volume group name plus the logical volume name does not exceed 126 characters in length. Most people will not have problems with this limitation. Use short names and you will be fine.
abrt version: 2.0.5
executable: /mnt/runtime/usr/bin/python
hashmarkername: anaconda
kernel: 2.6.32-209.el6.x86_64
product: Red Hat Enterprise Linux
reason: LVMError: lvcreate failed for vg_aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/lv_root: 06:11:27,670 ERROR : Failed to activate new LV.
time: Wed Oct 19 06:32:44 2011
version: 6.2
anaconda-tb-Xt1gNJ: Text file, 179295 bytes
description:
:The following was filed automatically by anaconda:
:anaconda 13.21.145 exception report
:Traceback (most recent call first):
: File "/usr/lib/anaconda/storage/devicelibs/lvm.py", line 379, in lvcreate
: raise LVMError("lvcreate failed for %s/%s: %s" % (vg_name, lv_name, msg))
: File "/usr/lib/anaconda/storage/devices.py", line 2517, in create
: lvm.lvcreate(self.vg.name, self._name, self.size, progress=w)
: File "/usr/lib/anaconda/storage/deviceaction.py", line 204, in execute
: self.device.create(intf=intf)
: File "/usr/lib/anaconda/storage/devicetree.py", line 713, in processActions
: action.execute(intf=self.intf)
: File "/usr/lib/anaconda/storage/__init__.py", line 344, in doIt
: self.devicetree.processActions()
: File "/usr/lib/anaconda/packages.py", line 110, in turnOnFilesystems
: anaconda.id.storage.doIt()
: File "/usr/lib/anaconda/dispatch.py", line 208, in moveStep
: rc = stepFunc(self.anaconda)
: File "/usr/lib/anaconda/dispatch.py", line 126, in gotoNext
: self.moveStep()
: File "/usr/lib/anaconda/gui.py", line 1478, in setScreen
: self.anaconda.dispatch.gotoNext()
: File "/usr/lib/anaconda/gui.py", line 1391, in nextClicked
: self.setScreen ()
:LVMError: lvcreate failed for vg_aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/lv_root: 06:11:27,670 ERROR : Failed to activate new LV.
:
:</LOG>
06:11:27,669 ERROR : Name "vg_aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa-lv_root" too long
06:11:27,670 ERROR : Failed to set device name for vg_aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa-lv_root
06:11:27,670 ERROR : Failed to activate new LV.
I'm sure we're hitting a label length limit here. What is the LVM label length limit we should be enforcing at install time? Is there a good location we can reference for that limit?
(feel free to answer the questions and reassign the bug back to anaconda)
Well the underlying restriction is that the vgname + lvname lengths together must not exceed 126 minus the total number of hyphens in them.
So 63 bytes is a reasonable limit to use for each, as long as you deduct one from it for each hyphen included in the name.
The hyphen thing is because the hyphen is used internally as a separator, so any hyphens in the name are escaped by doubling them, eating up an extra character.
Technical note added. If any revisions are required, please edit the "Technical Notes" field
accordingly. All revisions will be proofread by the Engineering Content Services team.
New Contents:
Do not use hyphens in LVM volume group names or logical volume names. Keep each name under 64 characters in length, ensuring that the total length of the volume group name plus the logical volume name does not exceed 126 characters in length. Most people will not have problems with this limitation. Use short names and you will be fine.
Indeed. I've never come across a customer problem from using names that are too long, which is why LVM still only has minimal validation in this area.
Comment 20RHEL Program Management
2012-07-16 22:49:22 UTC
This request was evaluated by Red Hat Product Management for
inclusion in a Red Hat Enterprise Linux release. Product
Management has requested further review of this request by
Red Hat Engineering, for potential inclusion in a Red Hat
Enterprise Linux release for currently deployed products.
This request is not yet committed for inclusion in a release.
Comment 25Alexander Todorov
2013-01-16 10:52:41 UTC
with snap #3:
In GUI:
* LV name is limited to 32 characters
* VG name is limited to 16 characters
When testing with ks.cfg from comment #22 VG name was truncated to 50 characters and installation completed.
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.
For information on the advisory, and where to find the updated
files, follow the link below.
If the solution does not work for you, open a new bug report.
http://rhn.redhat.com/errata/RHBA-2013-0373.html
abrt version: 2.0.5 executable: /mnt/runtime/usr/bin/python hashmarkername: anaconda kernel: 2.6.32-209.el6.x86_64 product: Red Hat Enterprise Linux reason: LVMError: lvcreate failed for vg_aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/lv_root: 06:11:27,670 ERROR : Failed to activate new LV. time: Wed Oct 19 06:32:44 2011 version: 6.2 anaconda-tb-Xt1gNJ: Text file, 179295 bytes description: :The following was filed automatically by anaconda: :anaconda 13.21.145 exception report :Traceback (most recent call first): : File "/usr/lib/anaconda/storage/devicelibs/lvm.py", line 379, in lvcreate : raise LVMError("lvcreate failed for %s/%s: %s" % (vg_name, lv_name, msg)) : File "/usr/lib/anaconda/storage/devices.py", line 2517, in create : lvm.lvcreate(self.vg.name, self._name, self.size, progress=w) : File "/usr/lib/anaconda/storage/deviceaction.py", line 204, in execute : self.device.create(intf=intf) : File "/usr/lib/anaconda/storage/devicetree.py", line 713, in processActions : action.execute(intf=self.intf) : File "/usr/lib/anaconda/storage/__init__.py", line 344, in doIt : self.devicetree.processActions() : File "/usr/lib/anaconda/packages.py", line 110, in turnOnFilesystems : anaconda.id.storage.doIt() : File "/usr/lib/anaconda/dispatch.py", line 208, in moveStep : rc = stepFunc(self.anaconda) : File "/usr/lib/anaconda/dispatch.py", line 126, in gotoNext : self.moveStep() : File "/usr/lib/anaconda/gui.py", line 1478, in setScreen : self.anaconda.dispatch.gotoNext() : File "/usr/lib/anaconda/gui.py", line 1391, in nextClicked : self.setScreen () :LVMError: lvcreate failed for vg_aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/lv_root: 06:11:27,670 ERROR : Failed to activate new LV. : :</LOG>