Bug#782591: grub2 cannot be installed on a disk which is in a RAID1 lvm
jean-yves at lenhof.eu.org
jean-yves at lenhof.eu.org
Tue Apr 14 14:27:44 UTC 2015
Source: grub2
Severity: normal
Dear Maintainer,
I did this :
Create pv /dev/sda1
Create pv /dev/sdb1
Create rootvg with pv /dev/sda1
Create slashlv on rootvg
Create swaplv on rootvg
Make a default installation
Install grub on /dev/sda
Reboot
lvconvert --type raid1 -m 1 /dev/rootvg/slashlv
lvconvert --type raid1 -m 1 /dev/rootvg/swaplv
Wait for the synchronisation to be completed (100% on last column with
lvs command)
Do this :
root at debiantesting:~# grub-install /dev/sdb
Installing for i386-pc platform.
grub-install : erreur : disque «
lvmid/F4RmZp-GRVD-k9lo-mWcv-nlrn-96Pe-3Qr5Q7/bu5DiS-u21N-gWEi-soNa-orlV-Au4C-H992V5
» non disponible.
root at debiantesting:~#
This is because grub is missing a patch...
I get the patch from this bug report
http://savannah.gnu.org/bugs/?func=detailitem&item_id=44534
grub with this patch works well...
root at debiantesting:~# grub-install /dev/sda
Installing for i386-pc platform.
Installation terminée, sans erreur.
root at debiantesting:~# grub-install /dev/sdb
Installing for i386-pc platform.
Installation terminée, sans erreur.
For anyone interested, I rebuilt grub2 with this patch. I put generated
files on my web server (they're not signed) :
http://www.lenhof.eu.org/grub_debian/
Regards,
-- System Information:
Debian Release: 8.0
APT prefers testing-updates
APT policy: (500, 'testing-updates'), (500, 'testing')
Architecture: amd64 (x86_64)
Kernel: Linux 3.16.0-4-amd64 (SMP w/1 CPU core)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
More information about the Pkg-grub-devel
mailing list