No volume groups found - CentOS

6,592

Finally, just after creating a bounty, I was able ti fix it by rebuilding the initrd as explained here: https://wiki.centos.org/TipsAndTricks/CreateNewInitrd

Share:
6,592
user2629636
Author by

user2629636

Updated on September 18, 2022

Comments

  • user2629636
    user2629636 over 1 year

    I have migrated a CentOS 5.11 server from VmWare to Hyper-V and when trying to boot the server. I'm getting the following error messages:

    "No volume groups found" ""VolumeGroup00" not found" and consequently the other messages you see on the screenshot.

    enter image description here

    I have booted the VM from a live CD I had in hand and I can see & mount the volume group (lv in the volume group) fine. Here's the vgdisplay command output:

    enter image description here

    You can see the grub contents on the start of the first screenshot. Why do you think this is happening? Any tips?

    edit: hd0 is mapped to /dev/sda as it should be.

    • Etan Reisner
      Etan Reisner over 8 years
      How are the disks attached to the vm? Hyper-V seemed to prefer ide disks when I last looked into it. Are you using the Hyper-V drivers?
  • user2629636
    user2629636 over 8 years
    I tried that, it did not work.
  • user2629636
    user2629636 over 8 years
    Tried it, did not work.
  • Jacob Evans
    Jacob Evans over 8 years
    any warnings when you ran this command? what is your fstab output?
  • user2629636
    user2629636 over 8 years
    no there were no error messages, it worked fine. But I just booted into the same thing again and again. I just posted an answer I found on an IRC channel. FSTAB only included tmpfs devpts, sysfs and proc.
  • c4f4t0r
    c4f4t0r over 8 years
    ok, that would say some driver was missing in your old initrd
  • Emil Styrke
    Emil Styrke over 7 years
    Thanks, this worked perfectly! If the link ever dies, the short version is: boot from CD in rescue mode, chroot /mnt/sysimage, mkinitrd -f -v /boot/initrd-$(uname -r).img $(uname -r)