Networking Forums

Networking Forums > Computer Networking > Linux Networking > nfs locks autofs (unlocked by exportfs -r)

Reply
Thread Tools Display Modes

nfs locks autofs (unlocked by exportfs -r)

 
 
olivier.eribon@free.fr
Guest
Posts: n/a

 
      02-12-2008, 07:43 AM
All,

I have a problem with a embedded cpu board (under linux 2.4.18_mvl30)
(base-8000-19 @A IP address). This target includes a nfs server in
order to export /usr/usbflash where /user is a autofs mount point.

When I try to mount (by nfs) the usb stick from another PC (pc-labo18
@B IP address) :
[root@pc-labo18 oeribon]# mount -t nfs @A:/user/usbflash /mnt/oe

All is correct :
[root@base-8000-19 /]# df | grep usb
/dev/sda1 8274108 4 8274104 1% /user/usbflash
[root@base-8000-19 /]# cat /var/lib/nfs/rmtab
@B:/user/usbflash:0x00000001

But if I umount this last /mnt/oe :
[root@pc-labo18 oeribon]# umount /mnt/oe

On the nfs server the automounter keeps /user/usbflash mounted :
[root@base-8000-19 /]# df | grep usb
/dev/sda1 8274108 4 8274104 1% /user/usbflash
But the rmtab is correct :
[root@base-8000-19 /]# cat /var/lib/nfs/rmtab
[root@base-8000-19 /]#

The next command unlocks the automounter :
[root@base-8000-19 /]# exportfs -r
yaffs: dev is 7939 name is "1f:03"
yaffs: Attempting MTD mount on 31.3, "1f:03"
[root@base-8000-19 /]# df | grep usb
[root@base-8000-19 /]#

Do you have any idea about a bad configuration of autofs or nfs server
in order to explain that exportfs -r command is needed to umount the
usb stick ?

Thanks for your help

Kind regards,

Olivier Eribon

PS : The 3 configuration files

[root@base-8000-19 root]# cat /etc/exports
/user/usbflash *(rw,no_root_squash,no_all_squash)

[root@base-8000-19 root]# cat /etc/auto.master
# $Id: auto.master.sh,v 1.5 2006/09/15 09:16:37 oeribon Exp $
# Sample auto.master file
# Format of this file:
# mountpoint map options
# For details of the format look at autofs(5).
#/var/autofs/misc /etc/auto.misc
/user /etc/auto.misc --timeout=3

[root@base-8000-19 root]# cat /etc/auto.misc
# $Id: auto.misc.sh,v 1.13 2007/10/08 06:35:46 otu8000 Exp $
# This is an automounter map and it has the following format
# key [ -mount-options-separated-by-comma ] location
# Details may be found in the autofs(5) manpage
usbflash -fstype=vfat,sync,nodev,nosuid,umask=000 :/dev/
sda1
 
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
autofs 4.1.3 problem pranay.tembhekar@gmail.com Linux Networking 4 03-23-2006 03:53 AM
Autofs problem titi Linux Networking 1 03-22-2006 09:02 AM
Autofs problem pranay.tembhekar@gmail.com Linux Networking 2 07-19-2005 10:25 AM
exportfs problems Glenn Forney Linux Networking 0 04-29-2005 02:43 PM
heartbeat & autofs Skaghk Linux Networking 0 10-12-2004 12:55 PM



1 2 3 4 5 6 7 8 9 10 11