LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices


Reply
  Search this Thread
Old 10-07-2008, 07:04 AM   #1
jnreddy
Member
 
Registered: May 2008
Location: INDIA
Distribution: RHEL
Posts: 171

Rep: Reputation: 15
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
pxe nfsroot without initrd penguinbrain Slackware 5 04-21-2008 06:01 AM
RHEL4, compile nfsroot into kernel fails five0_4tluv Linux - Enterprise 11 10-20-2006 01:30 PM
nfsroot question the_alexx Linux - Networking 0 05-13-2005 12:36 AM
compile kernel with nfsroot option zael Linux - Networking 0 07-09-2004 09:11 AM
nfsroot problem nilwer Linux - Networking 0 09-15-2003 10:17 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop

All times are GMT -5. The time now is 02:15 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration