Rename a Volume Group (LVM / Debian)

!
Warning: This post is over 365 days old. The information may be out of date.

Small post to explain how to rename a LVM volume group on Debian.

  • Reboot your machine and choose recovery mode (not mandatory but it’s better)
  • Run the command
    # vgrename actualName NewName
    
  • Edit /etc/fstab and change all the entries with the new name
  • Edit /etc/initramfs-tools/conf.d/resume and replace the old name with the new one
  • Rebuild an initramfs:
    # update-initramfs -u -k all
    
  • Reboot

Related Posts