nfsroot problem
Hi
Am facing a problem with nfsroot
i have two systems cross cabled
1)rhel5, server running DNS,DHCP,NFS and tftp working fine
2)another one is diskless client having onboard bootrom.
i configured kickstart in my server.my diskless system can able to boot from pxe and able to install rhel5 properly, by this i can say my server is working no problem with DNS,DHCP,NFS or TFTP.
then i was trying to configure my capable to handle diskless clients
after searching google i came to know nfsroot to mounted.
then i tried the below page
# rsync -a --exclude '/proc/*' --exclude '/sys/*' --exclude
/diskless/rhel5u1/root / /diskless/rhel5u1/root
Then added entry for this directory into /etc/exports on server1
# cat /etc/exports
/diskless/rhel5u1/root/ *(rw,no_root_squash)
# /etc/init.d/nfs restart
...
# exportfs
/diskless/rhel5u1/root
<world>
2. Made some more changes to the image in /diskless/rhel5u1/root(such as
etc/fstab,etc/hosts, etc/sysconfig/network-scripts/ifcfg-eth0,
etc/sysconfig/network)
3. Did the following on the test machine.."server2"
#mkinitrd -v --with=tg3 --rootdev server1_IP:diskless/rhel5u1/root
--rootfs nfs --net-dev=eth0 --rootopts=rw,nolock /tmp/initrd-NFS
2.6.18-53.el5
Creating initramfs
Looking for deps of module uhci-hcd
Looking for deps of module ohci-hcd
...
Adding module tg3
bootproto not specified for eth0, assuming DHCP
#cp /tmp/initrd-NFS /boot/initrd-NFS.img
Added the entry for this(Stateless Unix Test into menu.lst
# cat /boot/grub/menu.lst
...
default=1
title Red Hat Enterprise Linux Server (2.6.18-53.el5)
root (hd0,0)
kernel /boot/vmlinuz-2.6.18-53.el5 ro root=LABEL=/ rhgb
console=tty0 console=ttyS0,9600
initrd /boot/initrd-2.6.18-53.el5.img
title Stateless Unix Test
kernel /boot/vmlinuz-2.6.18-53.el5 selinux=0
root=server1_IP:/diskless/rhel5u1/root rhgb console=tty0
console=ttyS0,9600
initrd /boot/initrd-NFS.img
#reboot
upto reboot everything is ok after rebooting
after first screen showing error there is no /boot/vmlinuz to load.
but i checked thoroughly vmlinuz is there in /boot.
i dont know what is going wrong.is it mandatory to have a modified kernel to boot diskless clients.
can any body suggest me to resolve my issue.
Thanks in advance
jnreddy
|