bugGNU GRUB - Bugs: bug #33501, can t boot on lvm volumes with pxe...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #33501: can t boot on lvm volumes with pxe boot

Submitted by:  christian dare <christian_dare>
Submitted on:  Thu 09 Jun 2011 01:40:19 PM UTC  
 
Category: NetworkSeverity: Major
Priority: 5 - NormalItem Group: None
Status: InvalidPrivacy: Public
Assigned to: NoneOriginator Name: 
Open/Closed: ClosedRelease: 
Release: otherReproducibility: Every Time
Planned Release: None

Fri 10 Jun 2011 07:25:50 AM UTC, comment #2:

It works.thanks a lot.
I did insert all theses moduless for my tests but never in that order.
I thought that once the module is loaded,i didn t haved to care the order i loaded them.

Thanks again
Here the grub.cfg that works :
menuentry 'Linux Sauvegarde/Restauration' --class debian --class gnu-linux --class gnu --class os {
insmod biosdisk
insmod part_msdos
insmod lvm
insmod ext2
set root='(lvmelec-boot)'
linux /vmlinuz-2.6.32-5-amd64 root=/dev/mapper/lvmelec-admin ro
initrd /initrd.img-2.6.32-5-amd64
}

christian dare <christian_dare>
Fri 10 Jun 2011 12:40:34 AM UTC, comment #1:

This grub.cfg is wrong. You have to load modules as following:
insmod biosdisk
insmod part_msdos
insmod lvm
insmod ext2

Vladimir Serbinenko <phcoder>
Project Administrator
Thu 09 Jun 2011 01:40:19 PM UTC, original submission:

Hi,
I ve compiled grub 1.99 on a debian squeeze without any problem.
I ve used grub-mknetdir to create necessary files to pxe boot grub.
My computer boots fine with pxe grub , i ve got the menu i ve defined , evething seems OK.

But i can t boot my linux, grub can t see my lvm volumes.

I ve grub installed on the computer disk too with the same grub.cfg and if i boot locally , it works.

Here what i ve done :

grub-mknetdir --net-directory=/tftpboot --subdir=pxegrub

configure dhcpd with filename "pxegrub/i386-pc/core.0";

create in pxegrub/i386-pc a grub.cfg like this :

menuentry 'Linux Sauvegarde/Restauration' --class debian --class gnu-linux --class gnu --class os {
insmod lvm
insmod part_msdos
insmod ext2
set root='(lvmelec-boot)'
linux /vmlinuz-2.6.32-5-amd64 root=/dev/mapper/lvmelec-admin ro
initrd /initrd.img-2.6.32-5-amd64
}

After booting by pxe , on a grub console ,here what i see even after inserting biosdisk lvm ext2 part_msdos modules:
grub>ls
(hd0) (hd0,msdos2) (hd0,msdos1) (pxe)

No lvm volumes

After booting locally, i have that in grub console :
grub>ls
(lvmelec-admin) (lvmelec-swap) (lvmelec-boot) (hd0) (hd0,msdos2) (hd0,msdos1)
I can see the lvm volumes !

I ve tried this to include the modules in core.0 but it s the same result :
grub-mknetdir --net-directory=/boot --subdir=pxegrub --modules=lvm --modules=ext2 --modules=biosdisk --modules=normal --modules=part_msdos

Is there something bad in my method ? something missing ?

cheers,

christian dare <christian_dare>

 

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by phcoder (Posted a comment)
  • -unavailable- added by christian_dare (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 2 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Fri 10 Jun 2011 12:40:34 AM UTCphcoderStatusNone=>Invalid
      Open/ClosedOpen=>Closed

    Back to the top


    Powered by Savane 3.1-cleanup1