Networking Forums

Networking Forums > Computer Networking > Linux Networking > mounted NFS blocks "forever"

Reply
Thread Tools Display Modes

mounted NFS blocks "forever"

 
 
ENRIQUE
Guest
Posts: n/a

 
      11-30-2007, 10:11 AM
Following next steps my mountd NFS partition blocks "forever":

1.- I start the server NFS process.
2.- I mount the NFS partition like:
mount -t nfs 192.168.2.1:/export/home /home
3.- I stop and start the NFS server, simulating a server/network
temporal shutdown.
4.- The mounted partition doesn't work anymore and simple comands
like:

# ls /home

blocks until I "kill-9" them and there is no way to unmount the device
since trying to unmount it returns "device bussy".

Using ps I see for example that ls is stuck in the kernel call to
nfs_wait_schedule:
[root@/]# ps x -o cmd,wchan | grep ls

ls --color=tty /home nfs_wait_schedule

It's there anyway to avoid such behaviour. I would like, in the worst
case when the NFS servers goes down, to be able to unmount and
remount again.

Thanks in advance for any help,hint or link!


P.S.: I'm using kernel 2.6.20-1.2944.fc6
 
Reply With Quote
 
 
 
 
Steve Wampler
Guest
Posts: n/a

 
      11-30-2007, 01:33 PM
ENRIQUE wrote:
> 4.- The mounted partition doesn't work anymore and simple comands
> like:
>
> # ls /home
>
> blocks until I "kill-9" them and there is no way to unmount the device
> since trying to unmount it returns "device bussy".


Look at the 'intr' and 'hard' mount options for NFS. (You should probably
set this up in your /etc/fstab file so you don't have to type them every
time you mount the partition.)

--
Steve Wampler -- (E-Mail Removed)
The gods that smiled on your birth are now laughing out loud.
 
Reply With Quote
 
Joe Pfeiffer
Guest
Posts: n/a

 
      11-30-2007, 02:44 PM
ENRIQUE <(E-Mail Removed)> writes:

> Following next steps my mountd NFS partition blocks "forever":
>
> 1.- I start the server NFS process.
> 2.- I mount the NFS partition like:
> mount -t nfs 192.168.2.1:/export/home /home
> 3.- I stop and start the NFS server, simulating a server/network
> temporal shutdown.
> 4.- The mounted partition doesn't work anymore and simple comands
> like:
>
> # ls /home
>
> blocks until I "kill-9" them and there is no way to unmount the device
> since trying to unmount it returns "device bussy".


I'm puzzled as to why it isn't coming back after the server comes back
up.

> It's there anyway to avoid such behaviour. I would like, in the worst
> case when the NFS servers goes down, to be able to unmount and
> remount again.


The 'soft' option to mount allows HFS to timeout.
 
Reply With Quote
 
Unruh
Guest
Posts: n/a

 
      11-30-2007, 04:22 PM
ENRIQUE <(E-Mail Removed)> writes:

>Following next steps my mountd NFS partition blocks "forever":


>1.- I start the server NFS process.
>2.- I mount the NFS partition like:
> mount -t nfs 192.168.2.1:/export/home /home
>3.- I stop and start the NFS server, simulating a server/network
>temporal shutdown.
>4.- The mounted partition doesn't work anymore and simple comands
>like:


> # ls /home


>blocks until I "kill-9" them and there is no way to unmount the device
>since trying to unmount it returns "device bussy".


>Using ps I see for example that ls is stuck in the kernel call to
>nfs_wait_schedule:
>[root@/]# ps x -o cmd,wchan | grep ls


>ls --color=tty /home nfs_wait_schedule


>It's there anyway to avoid such behaviour. I would like, in the worst
>case when the NFS servers goes down, to be able to unmount and
>remount again.


Try just mounting again, without trying to unmount.


>Thanks in advance for any help,hint or link!



>P.S.: I'm using kernel 2.6.20-1.2944.fc6

 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[Fwd: SPEWS DOLTS "SneakyP", "Kevin!:?)", "WindsorFox" SPAM braodbandnewsgroup] !:?) Broadband 0 11-30-2005 01:04 AM
Re: SPEWS SLIMES "WindsorFox", "Kevin-!:?)", "Spin Dryer" get the cold shoulder at broadband ng! SneakyP Broadband 0 11-29-2005 10:46 PM
Attention Plus.net Re: SPEWS DOLTS "WindsorFox", "Kevin-!:?)", "SpinDryer" SPAM broadband newsgroup !:?) Broadband 0 11-28-2005 04:28 AM
Attention Plus.Net Re: SPEWS DOLTS "WindsorFox", "Kevin-!:?)", "SpinDryer" SPAM braodband newsgroup !:?) Broadband 0 11-28-2005 03:03 AM
"hotspot" or "hot spot", "wireless" or "wi-fi" or "wi fi" ? Nic O`Neill Wireless Internet 3 02-12-2004 07:42 AM



1 2 3 4 5 6 7 8 9 10 11