Hero Image

Rename Logical Volume in CentOS 7

umount /home

lvrename /dev/centos/home /dev/centos/var
Renamed "home" to "var" in volume group "centos"

vi /etc/fstab

mv /var /var.tmp

mount /var

mv /var.tmp/* /var

reboot

rmdir /var.tmp