Fedora 23 server can't boot after renaming volume group in cockpit

Mohamed Tita asked:

I’ve installed Fedora 23 as web server and it was working so well for some reason i can’t remember i decided to rename the volume group in storage section in cockpit the name was generated automatically during installation and it was something like

Fedora_dhcp-192-168-00-00

after rebooting it can’t boot and can’t find /root, /swap volumes because it’s still looking for them in the old directory

/dev/Fedora_dhcp-192-168-00-00

now I need to restore my system. The error message is

dracut-initqueue[303]: warning

My answer:


In a normal shell, you can rename a volume group with vgrename.

vgrename oldname newname

Embedded environments like the emergency shell may require you to call lvm explicitly:

lvm vgrename oldname newname

View the full question and answer on Server Fault.

Creative Commons License
This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.