[Bug 880766] Re: ubiquity and grub-install: fails to install grub on software RAID
Georges Giralt
georges.giralt at free.fr
Fri Oct 9 14:17:47 UTC 2015
Hello !
The problem actually is that the mdadm program is NOT installed on the new system.
I opened a shell and did :
[code]root at ubuntu:~# chroot /target
root at ubuntu:/# grub-install /dev/sda
Installing for i386-pc platform.
grub-install: error: disk `md0' not found.
root at ubuntu:/# ls /dev/md*
/dev/md0 /dev/md1
root at ubuntu:/# mount
/dev/mapper/vg0-lv1 on / type ext4 (rw,relatime,errors=remount-ro,data=ordered)
/dev/md0 on /boot type ext4 (rw,relatime,stripe=4,data=ordered)
/dev/mapper/vg0-lvhome on /home type ext4 (rw,relatime,data=ordered)
/dev/mapper/vg0-lv5 on /opt type ext4 (rw,relatime,data=ordered)
/dev/mapper/vg0-lv2 on /usr type ext4 (rw,relatime,data=ordered)
/dev/mapper/vg0-lv3 on /var type ext4 (rw,relatime,data=ordered)
/dev/sr0 on /cdrom type iso9660 (ro,noatime)
proc on /proc type proc (rw,nosuid,nodev,noexec,relatime)
sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime)
udev on /dev type devtmpfs (rw,relatime,size=3916776k,nr_inodes=979194,mode=755)
tmpfs on /run type tmpfs (rw,nosuid,noexec,relatime,size=785676k,mode=755)
root at ubuntu:/# ls /boot
abi-3.19.0-25-generic memtest86+.elf
abi-3.19.0-30-generic memtest86+_multiboot.bin
config-3.19.0-25-generic System.map-3.19.0-25-genericinitrd.img-3.19.0-25-generic vmlinuz-3.19.0-25-generic.efi.signed
initrd.img-3.19.0-30-generic vmlinuz-3.19.0-30-generic
lost+found vmlinuz-3.19.0-30-generic.efi.signed
memtest86+.bin
root at ubuntu:/# cat /proc/mdstat
Personalities : [raid1]
md1 : active raid1 sdc2[0] sdb2[2] sda2[1]
312359700 blocks [3/3] [UUU]
md0 : active raid1 sda1[0] sdc1[2] sdb1[1]
208704 blocks [3/3] [UUU]
unused devices: <none>
root at ubuntu:/# grub-install --force /dev/sda
Installing for i386-pc platform.
grub-install: error: disk `md0' not found.
root at ubuntu:/# mdadm --help
The program 'mdadm' is currently not installed. You can install it by typing:
apt-get install mdadm
root at ubuntu:/# apt-get install mdadm
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
postfix
Suggested packages:
procmail postfix-mysql postfix-pgsql postfix-ldap postfix-pcre sasl2-bin
dovecot-common postfix-cdb postfix-doc
Recommended packages:
default-mta mail-transport-agent
The following NEW packages will be installed:
mdadm postfix
0 upgraded, 2 newly installed, 0 to remove and 116 not upgraded.
Need to get 0 B/1,445 kB of archives.
After this operation, 4,799 kB of additional disk space will be used.
Do you want to continue? [Y/n]
Preconfiguring packages ...
E: Can not write log (Is /dev/pts mounted?) - openpty (2: No such file or directory)
Selecting previously unselected package mdadm.
(Reading database ... 203167 files and directories currently installed.)
Preparing to unpack .../mdadm_3.2.5-5ubuntu4.2_amd64.deb ...
Unpacking mdadm (3.2.5-5ubuntu4.2) ...
Selecting previously unselected package postfix.
Preparing to unpack .../postfix_2.11.0-1ubuntu1_amd64.deb ...
Unpacking postfix (2.11.0-1ubuntu1) ...
Processing triggers for man-db (2.6.7.1-1ubuntu1) ...
Processing triggers for doc-base (0.10.5) ...
Processing 32 changed doc-base files, 6 added doc-base files...
Processing triggers for ureadahead (0.100.0-16) ...
Processing triggers for ufw (0.34~rc-0ubuntu2) ...
Setting up mdadm (3.2.5-5ubuntu4.2) ...
Generating mdadm.conf... done.
Removing any system startup links for /etc/init.d/mdadm-raid ...
update-initramfs: deferring update (trigger activated)
Generating grub configuration file ...
File descriptor 3 (pipe:[108902]) leaked on vgs invocation. Parent PID 789: /usr/sbin/grub-probe
File descriptor 3 (pipe:[108902]) leaked on vgs invocation. Parent PID 789: /usr/sbin/grub-probe
File descriptor 3 (pipe:[108902]) leaked on vgs invocation. Parent PID 817: /usr/sbin/grub-probe
File descriptor 3 (pipe:[108902]) leaked on vgs invocation. Parent PID 817: /usr/sbin/grub-probe
File descriptor 3 (pipe:[108902]) leaked on vgs invocation. Parent PID 848: /usr/sbin/grub-probe
File descriptor 3 (pipe:[108902]) leaked on vgs invocation. Parent PID 848: /usr/sbin/grub-probe
File descriptor 3 (pipe:[108902]) leaked on vgs invocation. Parent PID 884: /usr/sbin/grub-probe
File descriptor 3 (pipe:[108902]) leaked on vgs invocation. Parent PID 884: /usr/sbin/grub-probe
Warning: Setting GRUB_TIMEOUT to a non-zero value when GRUB_HIDDEN_TIMEOUT is set is no longer supported.
File descriptor 3 (pipe:[108902]) leaked on vgs invocation. Parent PID 995: /usr/sbin/grub-probe
File descriptor 3 (pipe:[108902]) leaked on vgs invocation. Parent PID 995: /usr/sbin/grub-probe
Found linux image: /boot/vmlinuz-3.19.0-30-generic
Found initrd image: /boot/initrd.img-3.19.0-30-generic
Found linux image: /boot/vmlinuz-3.19.0-25-generic
Found initrd image: /boot/initrd.img-3.19.0-25-generic
File descriptor 3 (pipe:[108902]) leaked on vgs invocation. Parent PID 1517: /usr/sbin/grub-probe
File descriptor 3 (pipe:[108902]) leaked on vgs invocation. Parent PID 1517: /usr/sbin/grub-probe
File descriptor 3 (pipe:[108902]) leaked on vgs invocation. Parent PID 1870: grub-probe
File descriptor 3 (pipe:[108902]) leaked on vgs invocation. Parent PID 1870: grub-probe
File descriptor 3 (pipe:[108902]) leaked on vgs invocation. Parent PID 2014: grub-probe
File descriptor 3 (pipe:[108902]) leaked on vgs invocation. Parent PID 2014: grub-probe
Adding boot menu entry for EFI firmware configuration
done
* Starting MD monitoring service mdadm --monitor /sbin/mdadm already running.
[fail]
Setting up postfix (2.11.0-1ubuntu1) ...
Adding group `postfix' (GID 125) ...
Done.
Adding system user `postfix' (UID 116) ...
Adding new user `postfix' (UID 116) with group `postfix' ...
Not creating home directory `/var/spool/postfix'.
Creating /etc/postfix/dynamicmaps.cf
Adding tcp map entry to /etc/postfix/dynamicmaps.cf
Adding sqlite map entry to /etc/postfix/dynamicmaps.cf
Adding group `postdrop' (GID 126) ...
Done.
/etc/aliases does not exist, creating it.
Postfix was not set up. Start with
cp /usr/share/postfix/main.cf.debian /etc/postfix/main.cf
. If you need to make changes, edit
/etc/postfix/main.cf (and others) as needed. To view Postfix configuration
values, see postconf(1).
After modifying main.cf, be sure to run '/etc/init.d/postfix reload'.
Processing triggers for ureadahead (0.100.0-16) ...
Processing triggers for initramfs-tools (0.103ubuntu4.2) ...
update-initramfs: Generating /boot/initrd.img-3.19.0-30-generic
Processing triggers for ufw (0.34~rc-0ubuntu2) ...
Processing triggers for libc-bin (2.19-0ubuntu6.6) ...
root at ubuntu:/# grub-install /dev/sda
Installing for i386-pc platform.
Installation finished. No error reported.
root at ubuntu:/# grub-install /dev/sdb
Installing for i386-pc platform.
Installation finished. No error reported.
[/code]
IMHO, you should "see" that the live system is using RAID AND LVM for it's disk and "try" to reproduce the configuration in the newly installed system....
Thanks for your support
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to grub2 in Ubuntu.
https://bugs.launchpad.net/bugs/880766
Title:
ubiquity and grub-install: fails to install grub on software RAID
Status in grub:
New
Status in grub-installer package in Ubuntu:
Confirmed
Status in grub2 package in Ubuntu:
Confirmed
Bug description:
Installing from a Mythbuntu amd64 CD booted in UEFI mode. Manually
created partitions using gdisk, created RAID1 using mdadm. Ran
Ubiquity installer to create /dev/md0p1 as ext4, install proceeded
until aborting at the end saying that grub-efi could not be installed.
Manual attempts to install grub also failed (both from the CD and
chroot), so the problem package may actually be grub2.
Linux ubuntu 3.0.0-12-generic #20-Ubuntu SMP Fri Oct 7 14:56:25 UTC
2011 x86_64 x86_64 x86_64 GNU/Linux
ProblemType: Bug
DistroRelease: Ubuntu 11.10
Package: ubiquity 2.8.7
ProcVersionSignature: Ubuntu 3.0.0-12.20-generic 3.0.4
Uname: Linux 3.0.0-12-generic x86_64
ApportVersion: 1.23-0ubuntu3
Architecture: amd64
CasperVersion: 1.287
Date: Mon Oct 24 20:26:43 2011
LiveMediaBuild: Mythbuntu 11.10 "Oneiric Ocelot" - Release amd64 (20111012)
ProcEnviron:
LANGUAGE=en_AU.UTF-8
PATH=(custom, no user)
LANG=en_AU.UTF-8
SHELL=/bin/bash
SourcePackage: ubiquity
UpgradeStatus: No upgrade log present (probably fresh install)
To manage notifications about this bug go to:
https://bugs.launchpad.net/grub/+bug/880766/+subscriptions
More information about the foundations-bugs
mailing list