| Summary: | system-config-lvm leaves mount for logical group in fstab after group was completely removed. | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 6 | Reporter: | Marek Grac <mgrac> |
| Component: | system-config-lvm | Assignee: | Marek Grac <mgrac> |
| Status: | CLOSED ERRATA | QA Contact: | Cluster QE <mspqa-list> |
| Severity: | high | Docs Contact: | |
| Priority: | low | ||
| Version: | 6.2 | CC: | agk, bbrock, cluster-maint, dwysocha, fedora.jrg01, itamar, mbroz, mclasen, mgrac, prajnoha, prockai, rsteiger |
| Target Milestone: | rc | ||
| Target Release: | --- | ||
| Hardware: | i686 | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | system-config-lvm-1.1.12-9 | Doc Type: | Bug Fix |
| Doc Text: |
The system-config-lvm utility incorrectly left mount information in the /etc/fstab configuration file for a logical volume that had been completely removed from the system. This could have caused the system to enter single-user mode after rebooting because it was unable to mount a logical volume in /etc/fstab that no longer existed. This update ensures that system-config-lvm correctly removes the fstab entry for any logical volume that is removed.
|
Story Points: | --- |
| Clone Of: | 658344 | Environment: | |
| Last Closed: | 2011-12-06 17:46:39 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Bug Depends On: | 658344 | ||
| Bug Blocks: | |||
|
Description
Marek Grac
2011-07-18 12:27:20 UTC
Unit test: 1) add new logical volume to fstab 2) change path to /dev/mapper/vg-lv 3) remove logical volume from fstab 4) if line was removed then patch is correct Patch is in upstream now: http://git.fedorahosted.org/git/?p=system-config-lvm.git;a=commit;h=d97f18f6c012cfd428e9029f0a44b7c181f40d02 The situation as per unit test in Comment #1 seems quite artificial for the manual fstab entry modification, but I still understand this might happen during system upgrades. BEFORE FIX: Following steps of unit test Comment #1 1) created a new Logical volume named "test" using system-config-lvm on a physical extent named "test", with option "Mount when rebooted" selected 2) check that fstab entry exists [root@z1 etc]# cat fstab |grep test /dev/test/test /mnt ext3 defaults 1 2 3) modify this entry to point to /dev/mapper/$1 entry of the same logical unit: [root@z1 etc]# cat fstab |grep test /dev/mapper/test-test /mnt ext3 defaults 1 2 4) delete the logical volume using system-config-lvm 5) see that the entry was not removed from /etc/fstab: [root@z1 etc]# cat fstab |grep test /dev/mapper/test-test /mnt ext3 defaults 1 2 [root@z1 etc]# AFTER FIX: Following steps of unit test Comment #1 1) created a new Logical volume named "test" using system-config-lvm on a physical extent named "test", with option "Mount when rebooted" selected 2) check that fstab entry exists [root@z1 etc]# cat fstab |grep test /dev/test/test /mnt ext3 defaults 1 2 3) modify this entry to point to /dev/mapper/$1 entry of the same logical unit: [root@z1 etc]# cat fstab |grep test /dev/mapper/test-test /mnt ext3 defaults 1 2 4) delete the logical volume using system-config-lvm 5) see that the entry was removed correctly from /etc/fstab: [root@z1 etc]# cat fstab |grep test [root@z1 etc]# Marking VERIFIED for system-config-lvm-1.1.12-9.el6
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:
The system-config-lvm utility incorrectly left mount information in the /etc/fstab configuration file for a logical volume that had been completely removed from the system. This could have caused the system to enter single-user mode after rebooting because it was unable to mount a logical volume in /etc/fstab that no longer existed. This update ensures that system-config-lvm correctly removes the fstab entry for any logical volume that is removed.
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-2011-1710.html |