0

I have seen several similar questions to mine but none seen to address the specific issue. I have been getting the *-vg-root does not exist error on a Ubuntu 16.04 virtual machine after a crash. The root device does appear under /dev/mapper and lvm vgdisplay lists it, however it is missing from blkid. I am not really sure what to do from here? How do I restore the blkid entry? In the image below the link to dm-0 for root was missing - I created it manually.

enter image description here

enter image description here

enter image description here

1
  • Provide the output of ls -l /dev/mapper/ and lvdisplay.
    – M. Dm.
    Jan 26, 2018 at 9:32

1 Answer 1

0

Looks like your volume group name is elysium-oc-vg but partitions root & swap_1 are considered to be a part of elysium--oc--vg (additional - in the name).

So try the following cd /dev/mapper/, unlink elysium--oc--vg-root, ln -s ../dm-0 elysium-oc-vg-root and reboot the server. If everything is fine, do the same for swap partition.

1
  • Thank you, I tried this but it was unsuccessful. Comparing to another VM we have I think the way I had created the link was correct.
    – skyman
    Jan 27, 2018 at 7:12

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .