grub install error with root on LVM

Aaron Hall aaron.hall at washburn.edu
Thu Jul 31 15:44:28 CEST 2014


Hi all,

We're trying to use FAI to install Debian servers with all partitions,
including root, on LVM. The GRUB_PC/10-setup script fails. I added
"bash -x" and I get the following in error.log:

  fai.log:GRUB_PC/10-setup     FAILED with exit code 1.
  shell.log:+ trap 'error=$(($?>$error?$?:$error))' ERR
  shell.log:grub-probe: error: cannot find a GRUB drive for /dev/VolGroup00/LVroot.  Check your device.map.
  shell.log:++ error=1
  shell.log:++ error=1
  shell.log:cat: /boot/grub/video.lst: No such file or directory
  shell.log:GRUB_PC/10-setup     FAILED with exit code 1.

But if after this error, I go into a shell and "chroot /target", I can
run "grub-install /dev/sda" and that works: the installed system boots
fine off the LVM. If we set up root or /boot as a traditional physical
partition, this does not happen.

Here's the config we're trying to use:

  disk_config sda
  primary - 0- - -

  disk_config lvm
  vg VolGroup00 sda1
  VolGroup00-LVroot     /       4096    ext4 rw
  VolGroup00-LVswap     swap    2048    swap    sw
  VolGroup00-LVusr     /usr       4096    ext4 rw
  VolGroup00-LVvar     /var       4096    ext4 rw

And a config that works:

  disk_config sda
  primary /boot           300             ext4    rw
  primary - 0- - -

  disk_config lvm
  vg VolGroup00 sda2
  VolGroup00-LVroot     /       4096    ext4 rw
  VolGroup00-LVswap     swap    2048    swap    sw
  VolGroup00-LVusr     /usr       4096    ext4 rw
  VolGroup00-LVvar     /var       4096    ext4 rw

Are we doing something wrong? We're still not sure we're using
setup-storage correctly.

Thanks,
Aaron

-- 
Aaron Hall <aaron.hall at washburn.edu>
Asst. Systems & Network Administrator
Washburn University ITS
785-670-2305


More information about the linux-fai mailing list