Bug 430907
Summary: | Anaconda mishandles LVM LV names with -'s in them. | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 5 | Reporter: | Martin Sivák <msivak> |
Component: | anaconda | Assignee: | Joel Andres Granados <jgranado> |
Status: | CLOSED ERRATA | QA Contact: | Alexander Todorov <atodorov> |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | 5.1 | CC: | agk, atodorov, eric-bugs, jgranado, jpazdziora, mbroz, mkearey, tao |
Target Milestone: | rc | ||
Target Release: | --- | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2009-01-20 21:36:57 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: | 186439 | ||
Bug Blocks: |
Description
Martin Sivák
2008-01-30 14:58:04 UTC
*** Bug 428607 has been marked as a duplicate of this bug. *** In case it's not obvious, the algorithm to convert an LV name into a kernel mapped device name (visible directly in /dev/mapper) works like this: replace every '-' in the VG name with '--' replace every '-' in the LV name with '--' concatenate VG name and LV name placing a single '-' between them To reverse the process, starting from the left, if you see *two* hyphens, delete one of them and move to the next character; if you see *one* hyphen not followed by another then split the string at that point into VG name and LV name. (LV names are not permitted to begin with a hyphen, and the lvm2 tools enforce this.) And in case there are other problems lurking, the characters allowed in VG and LV names are: a-z A-Z 0-9 + _ . - Neither a VG nor an LV can begin with a hyphen. There are also various reserved names. A VG cannot be called anything that appears in 'ls /dev' at the time it is created (including '.' and '..' of course). An LV can also not be called '.' or '..'. A new LV cannot begin with the strings 'snapshot' or 'pvmove'. It may not contain the strings '_mlog' or '_mimage'. Additional reserved strings are likely to be added over time. Pre-existing LVs may be found with these names, and the tools will normally cope adequately. (Internally-generated LVs do use these reserved names - that's why they are reserved.) commit 6b8ef69abd2f581f9f0a64af5998a6e2abe42b33 from rawhide solves this problem. should be fixed in anaconda 11.1.2.113, commit 40a5a4badc960a221ffd54a5acae025265bf6a00 ups!! its anaconda 11.1.2.114 and the commit number is in rhel5 branch. This request was evaluated by Red Hat Product Management for inclusion in a Red Hat Enterprise Linux maintenance release. Product Management has requested further review of this request by Red Hat Engineering, for potential inclusion in a Red Hat Enterprise Linux Update release for currently deployed products. This request is not yet committed for inclusion in an Update release. 5.3 snap #2 doesn't allow to install with VG or LV names containing "-". Testing with previous install where I did: lvrename /dev/VolGroup00/LogVol00 /dev/VolGroup00/Log-Vol00 Anaconda didn't crash and I was able to assign a mount point for the logical volume. After install /dev/mapper/VolGroup00-Log--Vol00 was mounted under / An advisory has been issued which should help the problem described in this bug report. This report is therefore being closed with a resolution of ERRATA. For more information on therefore solution and/or where to find the updated files, please follow the link below. You may reopen this bug report if the solution does not work for you. http://rhn.redhat.com/errata/RHBA-2009-0164.html |