Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I'm fighting with grub again. I want to boot my servers from a storage volume. the server is connected with a fibre channel adapter to the storage and the FCA is configured with BIOS enabled and so on.
I installed grub on this new volume, which looks like this:
sdd1 -> /boot
sdd2 -> LVM2
sdd3 -> SWAP
LVM2 has a volume group vgos, and a logical volume slash (my /). while working on the "local" os, sdd is (hd3). I did mounted vgos/slash to /mnt/newslash, sdd1 to /mnt/newslash/boot, also /proc and /dev. i made a change root to /mnt/newslash and installed grub:
grub
> root (hd3,0)
> setup (hd3)
> quit
everything worked fine for me. I changed the grub.conf to this:
Code:
default=0
timeout=5
splashimage=(hd0,0)/grub/splash.xpm.gz
hiddenmenu
title Red Hat Enterprise Linux AS (2.6.9-55.0.6.ELsmp)
root (hd0,0)
kernel /vmlinuz-2.6.9-55.0.6.ELsmp ro root=/dev/vgos/slash rhgb quiet
initrd /initrd-2.6.9-55.0.6.ELsmp.img
#title Red Hat Enterprise Linux AS (2.6.9-55.0.6.ELsmp)
# root (hd0,0)
# kernel /vmlinuz-2.6.9-55.0.6.ELsmp ro root=/dev/vg00/lv00 rhgb quiet
# initrd /initrd-2.6.9-55.0.6.ELsmp.img
#title Red Hat Enterprise Linux AS (2.6.9-55.0.6.EL)
# root (hd0,0)
# kernel /vmlinuz-2.6.9-55.0.6.EL ro root=/dev/vg00/lv00 rhgb quiet
# initrd /initrd-2.6.9-55.0.6.EL.img
title Red Hat Enterprise Linux AS (2.6.9-22.ELsmp)
root (hd0,0)
kernel /vmlinuz-2.6.9-22.ELsmp ro root=/dev/vg00/lv00 rhgb quiet
initrd /initrd-2.6.9-22.ELsmp.img
title Red Hat Enterprise Linux AS-up (2.6.9-22.EL)
root (hd0,0)
kernel /vmlinuz-2.6.9-22.EL ro root=/dev/vg00/lv00 rhgb quiet
initrd /initrd-2.6.9-22.EL.img
then i also altered my /etc/fstab to the new volumes, recreated my initrd file and rebooted.
now, what happens: the server boots and the only thing I see is the grub console. If I enter the following commands, my server boots to the "new" OS on the new starge volume:
and it works. So, my question is: Why does grub NOT load my config file? all the paths are okay (doublechecked that), also the filenames of the kernel and the initrd file as well...
I have implemented this "storage boot" on 3 other servers so far. i had nothing else to cofigure therefore. if the LVM Modules are loaded they'll find the volumes, so that always worked for me so far.
the problem is, if I located the problem right, not my fstab, more somthing with grub. I'm not sure if it is looking on the wrong partition for it's config, cause at boot time it needs (hd0), but I instaled grub on (hd3). it is in fact the same device, but I'm not sure what exaclty grub does if I install it on (hd3), respectively which path's are configured.
I tried something else, but no success with that. I unpresented all other devices on the storage, so sdd goes to sda.
grub
> root (hd0,0)
> setup (hd0)
> quit
but no success with that. exaclty the same behaviour. grub console on boot time, with manual config it works fine
There was something wrong with the setup command (it runs an install). I had to run the install command again, but for the configfile i removed the /boot.
There was something wrong with the setup command (it runs an install). I had to run the install command again, but for the configfile i removed the /boot.
Why did you remove /boot from the command ? Isn't that where your menu.lst is located: /boot/grub/menu.lst ? That's where mine is located and I can't load it, whether I try configfile or setup or install... none of it loads the menu... and I'm not getting any errors either, just being pushed back to the grub> prompt.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.