Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Grub2 warning with LVM2
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
binro
l33t
l33t


Joined: 06 May 2005
Posts: 724
Location: Bangkok, Thailand

PostPosted: Mon Aug 13, 2012 1:45 pm    Post subject: Grub2 warning with LVM2 Reply with quote

I have just been installing Grub2 following the wiki. All went well until I ran the mkconfig:
Code:

# grub2-mkconfig -o /boot/grub2/grub.cfg
Generating grub.cfg ...
/usr/sbin/grub2-probe: warning: Couldn't find physical volume `pv1'. Some modules may be missing from core image..
/usr/sbin/grub2-probe: warning: Couldn't find physical volume `pv1'. Some modules may be missing from core image..
/usr/sbin/grub2-probe: warning: Couldn't find physical volume `pv1'. Some modules may be missing from core image..
/usr/sbin/grub2-probe: warning: Couldn't find physical volume `pv1'. Some modules may be missing from core image..
Found linux image: /boot/vmlinuz-3.4.0-gentoo
Found initrd image: /boot/initrd-3.4.0-gentoo
Found linux image: /boot/vmlinuz-3.3.2-gentoo
Found initrd image: /boot/initrd-3.3.2-gentoo
done

I have no volume pv1:
Code:

# pvs
  PV         VG   Fmt  Attr PSize   PFree
  /dev/sda3  vg00 lvm2 a--  213.79g 59.79g
  /dev/sdb4  vg00 lvm2 a--  170.73g 84.73g

The generated grub.cfg looks OK, AFAICT. So is this a serious problem?

TIA
_________________
"Ship me somewheres east of Suez, where the best is like the worst,
Where there ain't no Ten Commandments an' a man can raise a thirst"
from "Mandalay" by Rudyard Kipling
Back to top
View user's profile Send private message
ShadowCat8
Apprentice
Apprentice


Joined: 07 Oct 2008
Posts: 173
Location: San Bernardino, CA, USA

PostPosted: Tue Aug 14, 2012 5:51 pm    Post subject: Reply with quote

Greetings,

What are the USE flags you are using with GRUB2? Do you have it compiled with "device-mapper" and "mount"?

And, do you have the LVM modules built into your initrd?

HTH. Let us know.
_________________
________________________

"As far as the laws of mathematics refer to reality, they are not
certain, and as far as they are certain, they do not refer to reality."

-- Albert Einstein
Back to top
View user's profile Send private message
rjtupas
n00b
n00b


Joined: 26 Jul 2003
Posts: 59
Location: Coronado, CA USA

PostPosted: Wed Aug 15, 2012 6:25 am    Post subject: Reply with quote

Do you need grub 2 compiled with device-mapper support if your MBR (root) is NOT on a LVM partition? I currently have root on a normal partition, but /usr, /var ... on LVM partitions. I'm experiencing e2fsck errors with /usr.
Back to top
View user's profile Send private message
binro
l33t
l33t


Joined: 06 May 2005
Posts: 724
Location: Bangkok, Thailand

PostPosted: Wed Aug 15, 2012 12:59 pm    Post subject: Reply with quote

ShadowCat8 wrote:

What are the USE flags you are using with GRUB2? Do you have it compiled with "device-mapper" and "mount"?
And, do you have the LVM modules built into your initrd?

Grub2 was compiled with "device-mapper". I recompiled it with "mount" but it made no difference. Yes, LVM is built into my initrd. I also specified
Code:

GRUB_PRELOAD_MODULES=lvm

in /etc/default/grub.
_________________
"Ship me somewheres east of Suez, where the best is like the worst,
Where there ain't no Ten Commandments an' a man can raise a thirst"
from "Mandalay" by Rudyard Kipling
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum