Can't boot after changing the root volume group

Asked by tearsforhari

I was trying to change the name of my root volume group:

>cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=12.04
DISTRIB_CODENAME=precise
DISTRIB_DESCRIPTION="Ubuntu 12.04.5 LTS"

>uname -r
3.2.0-101-generic-pae

>sudo -i

>vgrename /dev/Tear /dev/Tears
>
>reboot

Now, I get the grub rescue prompt. So, I booted from the Live CD to changed it back to the old name:
(#bash)--optional
(#apt-get install lvm2)--optional
#lvm vgrename Tears Tear
#reboot

And, everything is back to normal. However, I would like to know why it didn't work in the first place?

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Manfred Hampl (m-hampl) said :
#1

I assume that the volume group name is referenced by the grub boot files.
If you just rename the volume group and not do anything else, I assume that the grub boot loader still searches the system by using the old name.
Try renaming the volume group, and the run sudo update-grub
If this does not work either, you already know how to repair.
(Maybe even more changes are required.)

Can you help with this problem?

Provide an answer of your own, or ask tearsforhari for more information if necessary.

To post a message you must log in.