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: Always Steps to Reproduce: 1.use lvrename to rename a logical volume 2.reboot 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: none
Also, this logic would most likely apply to all the rename commands in lvm2.
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.