This service will be undergoing maintenance at 00:00 UTC, 2017-10-23 It is expected to last about 30 minutes
Bug 444180 - lvrename command fails to update /etc/fstab
lvrename command fails to update /etc/fstab
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: lvm2 (Show other bugs)
All Linux
low Severity low
: rc
: ---
Assigned To: LVM and device-mapper development team
Corey Marthaler
Depends On:
  Show dependency treegraph
Reported: 2008-04-25 13:34 EDT by Kevin L
Modified: 2010-05-13 09:58 EDT (History)
8 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2010-05-13 09:58:53 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Kevin L 2008-04-25 13:34:39 EDT
Description of problem:
When you use lvrename to rename a logical volume, it does not automatically 
update the corresponding entry in the /etc/fstab. Granted this is more of an 
enhancement request, but if you forget to modify the entry in /etc/fstab file 
before rebooting, it will fail to mount on reboot. It gets even better if you 
rename the root logical volume because in addition to the above you also need 
to modify the grub.conf :)

Version-Release number of selected component (if applicable):
Any RHEL version, but tested on 5.x

How reproducible:

Steps to Reproduce:
1.use lvrename to rename a logical volume
3.system fails to mount the filesystem because /etc/fstab was not updated
Actual results:
renamed filesystem does not mount

Expected results:
system should boot with the properly renamed logical volume

Additional info:
Comment 1 Kevin L 2008-04-25 13:40:00 EDT
Also, this logic would most likely apply to all the rename commands in lvm2.
Comment 3 Zdenek Kabelac 2010-05-13 09:58:53 EDT
lvrename tool is low level tool - you most probably want to use some higher level user-space oriented tool like system-config-lvm. This tool should also handle /etc/fstab changes.

Note You need to log in before you can comment on or make changes to this bug.