0

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
4
  • 1
    You should be able to repair it from the dracut emergency shell. – Michael Hampton Mar 5 '16 at 18:17
  • yes i need to know how can i repair it – MTita Mar 5 '16 at 18:34
  • Then change the volume group name back to what it was before. – Michael Hampton Mar 5 '16 at 18:36
  • i changed it in the first time from a GUI (cockpit) , I need to know how can i change it back from the emergency shell – MTita Mar 5 '16 at 18:39
1

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
1
  • when trying to rename the volume group the result is lvm vgrename test.anhri.lan fedora_dhcp-192-168-10-190 Read-only locking type set. Write locks are prohibited. can't get lock for fedora_dhcp-192-168-10-190 – MTita Mar 6 '16 at 9:14
1

I finally figured it out it was about editing

/etc/lvm/lvm.conf.

then renaming the lvgroup back to the old name thanks

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.