abrt version: 2.0.5
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
anaconda-tb-Xt1gNJ: Text file, 179295 bytes
: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
: File "/usr/lib/anaconda/storage/devicetree.py", line 713, in processActions
: File "/usr/lib/anaconda/storage/__init__.py", line 344, in doIt
: File "/usr/lib/anaconda/packages.py", line 110, in turnOnFilesystems
: File "/usr/lib/anaconda/dispatch.py", line 208, in moveStep
: rc = stepFunc(self.anaconda)
: File "/usr/lib/anaconda/dispatch.py", line 126, in gotoNext
: File "/usr/lib/anaconda/gui.py", line 1478, in setScreen
: 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.
Created attachment 528970 [details]
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.
*** Bug 747544 has been marked as a duplicate of this bug. ***
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.
Internal names used for snapshots etc. can take up a further 8 characters so maybe make the limit 59 characters minus number of hyphens.
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.
Thanks, Alasdair. I'm going to add a technote for this (not that anyone will ever read it) and we can fix it up in 6.3.
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.
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.
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.
with snap #3:
* 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.