Rename A Volume Group On Ubuntu 16.04
When using LVM, the vgrename command can rename a volume group. But there are more steps required in order to get the OS to use the new volume group correctly.
sudo vgrename <oldName> <newName>
sudo vgchange -ay
- Modify files that contain references to logical volumes from the old volume group:
- /etc/fstab
- /boot/grub/grub.cfg
- /etc/initramfs-tools/conf.d/resume
sudo update-initramfs -u -k all
sudo shutdown -r now