Bug 747278
| Summary: | installer does not check lvm name lengths | ||||||
|---|---|---|---|---|---|---|---|
| Product: | Red Hat Enterprise Linux 6 | Reporter: | Michal Nowak <mnowak> | ||||
| Component: | anaconda | Assignee: | David Lehman <dlehman> | ||||
| Status: | CLOSED ERRATA | QA Contact: | Release Test Team <release-test-team-automation> | ||||
| Severity: | unspecified | Docs Contact: | |||||
| Priority: | unspecified | ||||||
| Version: | 6.2 | CC: | agk, atodorov, dwysocha, heinzm, jbrassow, jreed, jstodola, mbanas, ohudlick, prajnoha, prockai, syeghiay, thornber, tlavigne, zkabelac | ||||
| Target Milestone: | rc | ||||||
| Target Release: | --- | ||||||
| Hardware: | x86_64 | ||||||
| OS: | Unspecified | ||||||
| Whiteboard: | abrt_hash:c312445fffb41e8f4f32c0186d197edf302b97592bdfc8684e5ded2352ab337e | ||||||
| Fixed In Version: | anaconda-13.21.191-1 | Doc Type: | Bug Fix | ||||
| Doc Text: |
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.
|
Story Points: | --- | ||||
| Clone Of: | Environment: | ||||||
| Last Closed: | 2013-02-21 09:58:27 UTC | Type: | --- | ||||
| Regression: | --- | Mount Type: | --- | ||||
| Documentation: | --- | CRM: | |||||
| Verified Versions: | Category: | --- | |||||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
| Cloudforms Team: | --- | Target Upstream Version: | |||||
| Embargoed: | |||||||
| Bug Depends On: | |||||||
| Bug Blocks: | 756082, 840685 | ||||||
| Attachments: |
|
||||||
Created attachment 528970 [details]
File: anaconda-tb-Xt1gNJ
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.
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. 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: 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>