'bg' option in nfs mounting

'bg' option in nfs mounting

Post by Peter Wittic » Fri, 24 Mar 2000 04:00:00



Can someone explain to me what the consequences are for using
the 'bg' option when mounting an nfs file system? From the mount_nfs(1m)
man page:

               bg  | fg  If the first attempt fails, retry in the
                         background,  or,  in the foreground. The
                         default is fg .

Does this only apply to the first mount attempt? What happens if
the server goes away for a while?

I am having intermittent problems with binaries that are mounted
on a file system with these mount options that I am tempted to
attribute to the server dying (they seem to be correlated in time).
When the errors start on the client, they persist until the client
is rebooted.  (I haven't tried to just remount the file system.)
Does anyoe have any ideas?

Thanks in advance,

        Peter

--
Peter Wittich
Dept. of Physics, U.Penn        There's no small talk on walkie-talkies.

------------------------------------------------------------------

 
 
 

'bg' option in nfs mounting

Post by Casper H.S. Dik - Network Security Engine » Fri, 24 Mar 2000 04:00:00


[[ PLEASE DON'T SEND ME EMAIL COPIES OF POSTINGS ]]


>               bg  | fg  If the first attempt fails, retry in the
>                         background,  or,  in the foreground. The
>                         default is fg .
>Does this only apply to the first mount attempt? What happens if
>the server goes away for a while?

There's only one mount attempt (i.e., this option does not
apply to the automounter.)  If you have nfs mounts in /etc/vfstab,
those mounts will be retried in the background if they fail.

Quote:>I am having intermittent problems with binaries that are mounted
>on a file system with these mount options that I am tempted to
>attribute to the server dying (they seem to be correlated in time).
>When the errors start on the client, they persist until the client
>is rebooted.  (I haven't tried to just remount the file system.)
>Does anyoe have any ideas?

Hm, you're not using soft mounts by chance?

Casper
--
Expressed in this posting are my opinions.  They are in no way related
to opinions held by my employer, Sun Microsystems.
Statements on Sun products included here are not gospel and may
be fiction rather than truth.

 
 
 

'bg' option in nfs mounting

Post by Peter Wittic » Fri, 24 Mar 2000 04:00:00



Quote:>>attribute to the server dying (they seem to be correlated in time).
>>When the errors start on the client, they persist until the client
>>is rebooted.  (I haven't tried to just remount the file system.)
>>Does anyoe have any ideas?
> Hm, you're not using soft mounts by chance?

Alas, no.  The mount output is

/usr/local on server:/pc/usr/local read/write/setuid/noquota/bg/remote on Thu Mar 23 12:15:14 2000

the mounting is done from a Sparc Solaris machine (server) to a Solaris x86
machine (client), though....

        Peter

--
Peter Wittich
Dept. of Physics, U.Penn        There's no small talk on walkie-talkies.

------------------------------------------------------------------

 
 
 

1. Cannot mount NFS with option 'nfsvers=3'

If I try to mount (from the network) a share on a SuSE 10.0 server
with the option 'nfsvers=3' (to overcome the 2 GB file size limit) I
get the following:

$ mount -t nfs -o wsize=8192,rsize=8192,nfsvers=3 192.168.0.2:/backup /
media/hdd
mount: RPC: Unable to receive; errno = Connection refused
mount: nfsmount failed: Bad file descriptor
mount: Mounting 192.168.0.2:/backup on /media/hdd failed: Bad file
descriptor

Any ideas?
If I omit the nfsvers option, it works fine, but I cannot write files
larger than 2 GB.

2. Vacation Software

3. mount NFS hangs until timeout, despite bg option

4. ATI 3d Rage II

5. Anyone have hint on coding 'fg', 'bg'?

6. SCO 5.0.5 Install

7. nfs mount problem: mount: can't get address for nfs-server.kauai

8. fetchmail

9. What's 'side effects' of Ksh built-ins?

10. '-i' option for 'cp' and 'mv'

11. kernel option 'NFS'

12. Does the 'nohide' option really work with NFS?

13. NFS mount won't mount at boot, but mount -a works fine.