Tue 12 Feb 2013 06:37:18 PM UTC, original submission:
Configuration (just setup this week):
Linux Mint 14.1
Two 1TB drives Encrypted with LUKS with LVM2 on top.
LVM2 partitions sysroot, tmp, data, vmdata, home
1TB /dev/sda
1TB /dev/sdb
Had same setup in old system Ubuntu 11.10 with two 750GB drives and this was not a problem.
Issue: When I run update-grub2 I get the following warning message, twice.
/usr/sbin/grub-probe: warning: Couldn't find physical volume `pv1'. Some modules may be missing from core image.
First off, I'm not sure this is really an issue since the grub.cfg is created and the system boots, but since I don't know what this means I'm not sure if there is something I need to fix.
I download the source and built it and grub-probe still produces the error. I added some debug statements trying to understand why the warning is occurring and still can't determine why.
I traced the actual call as:
/usr/sbin/grub-prob --device /dev/mapper/theCrypt/sysroot --target=abstraction
The source location is diskfilter.c function "grub_diskfilter_memberlist"
More details on the LUKS/LVM setup:
I have two Physical Volumes (one for each hard drive) pv0 and pv1.
I have one Volume Group "theCrypt"
With 6 Logical Volumes "sysroot, tmp, home, data, vmdata, swap"
If you notice the device being checked is LV "sysroot". I tried the same command with all six LVs and all but "home" get the same warning.
Here is some output with some of my print statements:
lv->name = sysroot
vg->name = theCrypt
pv->name = pv1
~/software/01-linux/grub2/grub-probe: warning: Couldn't find physical volume `pv1'. Some modules may be missing from core image.
lv->name = sysroot
vg->name = theCrypt
pv->name = pv0
cryptodisk luks gcry_serpent gcry_serpent gcry_sha1 lvm
As you can see the actual command works for "pv0" but gets the warning for "pv1". I think sysroot is on "pv0" and "home" is on "pv1" although is shouldn't matter which PV it is located.
|