LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Enterprise Linux Forums > Linux - Enterprise
User Name
Password
Linux - Enterprise This forum is for all items relating to using Linux in the Enterprise.

Notices


Reply
  Search this Thread
Old 10-20-2008, 04:01 PM   #1
DennisC31
Member
 
Registered: May 2007
Location: beyond my means
Distribution: Mint 11.04
Posts: 55

Rep: Reputation: 19
NFS in Run Level 1


I have a really weird one here.

Boot up CentOS 5.x, stop grub and add a 1 to the end of the kernel line to boot into run level 1. Do the following:

service network start
(no problem)
mount -t nfs 10.1.1.1:/nfsshare /mnt
<wait eternity -- it hangs>

To fix this problem....

CTRL+C back to the Command Line
init 3
login
mount -t nfs 10.1.1.1:/nfsshare /mnt
(success)
init 1
(wait for command line to come back)
service network start
(success)
ls /mnt
(it's empty)
mount -t nfs 10.1.1.1:/nfsshare /mnt
(*success*)

I am at a loss to explain this one. WHat if I can't boot to RL 3 and I need to use NFS?

I've tried booting to RL1 and running modprobe nfs / modprobe nfsd and I still get the hanging behavior.

Ideas?

Last edited by DennisC31; 04-11-2012 at 05:44 PM.
 
Old 10-20-2008, 04:47 PM   #2
ilikejam
Senior Member
 
Registered: Aug 2003
Location: Glasgow
Distribution: Fedora / Solaris
Posts: 3,109

Rep: Reputation: 97
Hi.

You'll need the nfslock and portmap services to be started to be an NFS client. Just start those (after starting network) from runlevel 1 and you should be OK.

Dave
 
Old 10-21-2008, 09:26 AM   #3
DennisC31
Member
 
Registered: May 2007
Location: beyond my means
Distribution: Mint 11.04
Posts: 55

Original Poster
Rep: Reputation: 19
Quote:
Originally Posted by ilikejam View Post
Hi.

You'll need the nfslock and portmap services to be started to be an NFS client. Just start those (after starting network) from runlevel 1 and you should be OK.

Dave
Wow. Great suggestion. But it hangs at the mount. There must be another service not loading. I will

<booted machine, added 1 to kernel command in grub to stop at RL 1>
#service network start [ ok ]
#service portmap start [ ok ]
#service nfslock start [ ok ]
#mount 10.1.1.1:/nfsshare /mnt
<nothing happens... hangs>
#ping 10.1.1.1 (success)

If you still feel like cracking this one, I can give you a tcpdump from both boxes during the attempt.

It's really burning me up that I can't figure out why it won't mount. I've run a ps -ef and I'm going to compare the ps -ef from when it works in RL 1 and when it doesn't work in RL 1 after mapping in RL 3 and backing down to RL 1. Maybe something isn't being killed that stays in memory.

I love cracking these sort of problems.

I will post back my finds.

Last edited by DennisC31; 04-11-2012 at 05:44 PM.
 
Old 10-21-2008, 01:24 PM   #4
ilikejam
Senior Member
 
Registered: Aug 2003
Location: Glasgow
Distribution: Fedora / Solaris
Posts: 3,109

Rep: Reputation: 97
Hmmm.

Try switching on rpcgssd and rpcidmapd as well.

Dave
 
Old 11-07-2008, 01:30 PM   #5
DennisC31
Member
 
Registered: May 2007
Location: beyond my means
Distribution: Mint 11.04
Posts: 55

Original Poster
Rep: Reputation: 19
solved!!!!

Quote:
Originally Posted by ilikejam View Post
Hmmm.

Try switching on rpcgssd and rpcidmapd as well.

Dave
I could have sworn I posted this and today I needed the info again.

The fix is what Dave gave above.

Boot, add the 1 to grub to get into Runlevel 1 then:
#service network start [ ok ]
#service portmap start [ ok ]
#service nfslock start [ ok ]
#service rpcgssd start [ ok ]
#service rpcidmapd start [ ok ]

Many thanks to Dave for the tip above. I have to ask.... Dave, if you read this... /how/ did you know that?

Last edited by DennisC31; 04-11-2012 at 05:44 PM.
 
Old 11-07-2008, 01:58 PM   #6
ilikejam
Senior Member
 
Registered: Aug 2003
Location: Glasgow
Distribution: Fedora / Solaris
Posts: 3,109

Rep: Reputation: 97
I'm the illegitimate love child of Dennis Ritchie and Ken Thompson, so I've been imbued with a mystical energy and an innate knowledge of Unix.*

Dave



* that, and NFS uses RCP so I did 'chkconfig --list | grep 3:on | grep -i rpc' on a machine that NFS worked on. Don't tell anyone though - Dennis and Ken would be really disappointed.
 
  


Reply



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
set your default run level so you will boot to a default run level - vga console Adam555 Linux - Newbie 1 01-21-2008 04:55 PM
emacs in run level 3 then switch to X (level 7) then back to level 3 dsoliver Slackware 3 09-01-2006 03:31 AM
run level whaase Linux - General 3 10-07-2002 09:07 PM
Run Level POWERBOOKM Linux - Newbie 2 12-01-2001 08:44 PM
run level isajera Linux - Software 2 06-22-2001 07:20 AM

LinuxQuestions.org > Forums > Enterprise Linux Forums > Linux - Enterprise

All times are GMT -5. The time now is 09:53 PM.

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