Installed Ubuntu 14.04.1 Desktop LTS using RAID1+LVM and Grub failed to install

Bug #1354948 reported by Huygens
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
grub-installer (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

I booted on Ubuntu 14.04.1 Desktop 64 bit (using the USB), went to ry Ubuntu and partition the 2 HDD (SATA 320GB) as I wanted, which is:

  - 2x 512MB as RAID1 (md) w/ ext4 for /boot
  - 2x 6GB as RAID0 (md) for swap
  - 2x 64GB as RAID1 (md) + 1 Logical Volume (LVM2) using all available space with ext4 as /
  - 2x remainder space as BTRFS RAID1 configuration for /home

Why so complex? I had first only the /boot and swap on software RAID, the rest was under BTRFS with 2 volumes (for home and for /), but it was problematic to boot. So I "moved" the / to another more classical partition scheme using mdadm and lvm.
But it does not work.

I did this to at least get grub-install to report no blocking error:
sudo -s
echo raid1 >> /target/etc/modules
echo dm-mod >> /target/etc/modules
echo dm-snapshot >> /target/etc/modules
echo dm-mirror >> /target/etc/modules
echo raid1 >> /target/etc/initramfs-tools/modules
echo dm-mod >> /target/etc/initramfs-tools/modules
echo dm-snapshot >> /target/etc/initramfs-tools/modules
echo dm-mirror >> /target/etc/initramfs-tools/modules
mount --bind /dev /target/dev
mount --bind /dev/pts /target/dev/pts
mount --bind /proc /target/proc
mount --bind /sys /target/sys
chroot /target grub-install /dev/sda
chroot /target grub-install /dev/sdb

The command grub-install is outputing in both cases this:
Installing for i386-pc platform.
You have a memory leak (not released memory pool):
 [0x1b765f0] dtree
Internal error: Unreleased memory pool(s) found.
You have a memory leak (not released memory pool):
 [0x1b774f0] dtree
Internal error: Unreleased memory pool(s) found.
You have a memory leak (not released memory pool):
 [0x1b79a70] dtree
Internal error: Unreleased memory pool(s) found.
Installation finished. No error reported.

I will report after reboot if it worked or not.

ProblemType: Bug
DistroRelease: Ubuntu 14.04
Package: ubiquity 2.18.8
ProcVersionSignature: Ubuntu 3.13.0-32.57-generic 3.13.11.4
Uname: Linux 3.13.0-32-generic x86_64
ApportVersion: 2.14.1-0ubuntu3.2
Architecture: amd64
CasperVersion: 1.340
Date: Sun Aug 10 23:13:35 2014
InstallCmdLine: file=/cdrom/preseed/ubuntu.seed boot=casper initrd=/casper/initrd.lz quiet splash -- maybe-ubiquity
LiveMediaBuild: Ubuntu 14.04.1 LTS "Trusty Tahr" - Release amd64 (20140722.2)
ProcEnviron:
 PATH=(custom, no user)
 LANG=en_US.UTF-8
 SHELL=/bin/bash
SourcePackage: grub-installer
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Huygens (huygens-25) wrote :
Revision history for this message
Huygens (huygens-25) wrote :

I rebooted and was greeted by grub but without any menu, just the grub command line...
It is late in my local time zone, so this is some more tasks for another day...

Btw, if anyone knows a brainless step-by-step how to install Ubuntu Desktop using software RAID, he is more than welcome. Sadly the Alternate CD is no longer supported...

Revision history for this message
Alex Karasulu (akarasulu) wrote :

I have almost the exact same problem. The same memory error messages. Using LVM + RAID with thin-pools and my root partition is on a thin volume. There are serious problems here with grub bugs I think seeing from similar posts on google. Here's some of the same output you got previously:

 Internal error: Unreleased memory pool(s) found.
You have a memory leak (not released memory pool):
 [0xc47990] dtree
 [0xc41e90] dtree
Internal error: Unreleased memory pool(s) found.
You have a memory leak (not released memory pool):
 [0xc47990] dtree
 [0xc41e90] dtree
 [0xc47060] dtree
Internal error: Unreleased memory pool(s) found.
grub-install: error: disk `lvmid/suAEfj-aVEh-gwyO-d2kh-cQDm-DVs8-1AWNFP/bgW9iU-LQWd-aUIk-i1lB-HwiH-MSp5-1ofx1S' not found.

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in grub-installer (Ubuntu):
status: New → Confirmed
Revision history for this message
gunxfight (chrisonline1991) wrote :

I might have had the same problem as you, but i can't check any of the log files because the computer isn't accessible to me anymore.

The problem i had when grub-install was being ran from the installer was it was trying to install grub to /dev/sda which was the USB device i was actually booting Ubuntu 14.04.2 from. I dropped into a terminal but grub-install wasn't a command. I used the boot repair disk to fix it, you can find that here: https://help.ubuntu.com/community/Boot-Repair

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.