[Bug 880766] Re: ubiquity and grub-install: fails to install grub on software RAID
*** This bug is a duplicate of bug 44609 *** https://bugs.launchpad.net/bugs/44609 ** Project changed: grub => grub (Ubuntu) ** No longer affects: grub (Ubuntu) ** No longer affects: grub2 (Ubuntu) ** Package changed: grub-installer (Ubuntu) => ubiquity (Ubuntu) ** This bug has been marked a duplicate of bug 44609 RAID not implemented (use alternate CD instead) -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/880766 Title: ubiquity and grub-install: fails to install grub on software RAID To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/ubiquity/+bug/880766/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 880766] Re: ubiquity and grub-install: fails to install grub on software RAID
*** This bug is a duplicate of bug 44609 *** https://bugs.launchpad.net/bugs/44609 Status changed to 'Confirmed' because the bug affects multiple users. ** Changed in: grub (Ubuntu) Status: New => Confirmed -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/880766 Title: ubiquity and grub-install: fails to install grub on software RAID To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/ubiquity/+bug/880766/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 880766] Re: ubiquity and grub-install: fails to install grub on software RAID
Confirmed still reproducible with 16.04 LTS -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/880766 Title: ubiquity and grub-install: fails to install grub on software RAID To manage notifications about this bug go to: https://bugs.launchpad.net/grub/+bug/880766/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 880766] Re: ubiquity and grub-install: fails to install grub on software RAID
Hello ! The problem actually is that the mdadm program is NOT installed on the new system. I opened a shell and did : [code]root@ubuntu:~# chroot /target root@ubuntu:/# grub-install /dev/sda Installing for i386-pc platform. grub-install: error: disk `md0' not found. root@ubuntu:/# ls /dev/md* /dev/md0 /dev/md1 root@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@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+foundvmlinuz-3.19.0-30-generic.efi.signed memtest86+.bin root@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: root@ubuntu:/# grub-install --force /dev/sda Installing for i386-pc platform. grub-install: error: disk `md0' not found. root@ubuntu:/# mdadm --help The program 'mdadm' is currently not installed. You can install it by typing: apt-get install mdadm root@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
[Bug 880766] Re: ubiquity and grub-install: fails to install grub on software RAID
Finally found the solution, which leaves me with a question. Having successfully installed an 11.10 server with RAID, I tried again on 11.10 desktop: this time, after getting the message that GRUB had not installed, I chrooted into /target/, did 'sudo-apt-get install mdadm', then 'sudo grub-install /dev/sda'. No errors. So the Ubuntu graphical installer (Ubiquity? or whatever underlying package is responsible) is not installing mdadm into the target installation, and consequently GRUB can't be installed. Which package should this bug be filed against? -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/880766 Title: ubiquity and grub-install: fails to install grub on software RAID To manage notifications about this bug go to: https://bugs.launchpad.net/grub/+bug/880766/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 880766] Re: ubiquity and grub-install: fails to install grub on software RAID
Status changed to 'Confirmed' because the bug affects multiple users. ** Changed in: grub-installer (Ubuntu) Status: New = Confirmed -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/880766 Title: ubiquity and grub-install: fails to install grub on software RAID To manage notifications about this bug go to: https://bugs.launchpad.net/grub/+bug/880766/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 880766] Re: ubiquity and grub-install: fails to install grub on software RAID
Status changed to 'Confirmed' because the bug affects multiple users. ** Changed in: grub2 (Ubuntu) Status: New = Confirmed -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/880766 Title: ubiquity and grub-install: fails to install grub on software RAID To manage notifications about this bug go to: https://bugs.launchpad.net/grub/+bug/880766/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 880766] Re: ubiquity and grub-install: fails to install grub on software RAID
** Summary changed: - Ubiquity fails with EFI and software RAID + ubiquity and grub-install: fails to install grub on software RAID -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/880766 Title: ubiquity and grub-install: fails to install grub on software RAID To manage notifications about this bug go to: https://bugs.launchpad.net/grub/+bug/880766/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 880766] Re: ubiquity and grub-install: fails to install grub on software RAID
Updating bug description - I'm having the same problem in a VirtualBox environment (disks partitioned as GPT, no EFI). I was able to use ubuntu-11.10-server-amd64 to install a system with mdadm RAID1 (GPT partitioning, 1MB BIOS GRUB partition, ~20GB RAID) and have the system boot successfully, but trying to install ubuntu-11.10-desktop-amd64 with the same partitoning failed. chrooting in and running grub-install again gave 'grub-probe: error: no such disk' as above. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/880766 Title: ubiquity and grub-install: fails to install grub on software RAID To manage notifications about this bug go to: https://bugs.launchpad.net/grub/+bug/880766/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs