Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

NFS Automounting and remounting

Status
Not open for further replies.

stevenriz

IS-IT--Management
May 21, 2001
1,069
Hi all, I suppose I can test this out but can't shut down any servers currently and thought I'd ask.

In regard to mounting NFS file systems with the bg option, will bg only work during the initial boot OR if the machine sharing the NFS mountable file system happens to crash, once that server is brought back up, will the bg option still kick in and remount that NFS share?

In other words...
NFSSERVER has directory /mnt/data
CLIENTPC NFS mounts NFSSERVER:/mnt/data /data using these options rw,hard,intr,rsize=2048,bg

If NFSSERVER crashes and is brought back up, will we need to do a remount or a "mount -av" or will the file system automatically mount??

I don't believe the automounter comes into play here. From what I understand you can have a certain file system mounted as particular users log in.

Thanks!!
Steve
 
it is a good question, yet I think the solution is to be found on the client machine and not the server.

Automount, to my knowledge will not re-mount your NFS share after a server crash.

You could write a script to check that the share is still up, and if not, delete the lock file and re-mount the share.

If you run it as a root cronjob that may do the trick.

QatQat

Life is what happens when you are making other plans.
 
Thanks, that's a great idea. I don't know of any lock file that gets created with an NFS mount though. I will check it out. I would think a mount -av would do the trick if I cron it, probably couldn't hurt to just cron that command regardeless don't you think???

well thanks for the reply.
steve....
 
give it a try,

somitimes easy things may not be the most elegant but they save you a lot of time in trying to figure out why the system is behaving like that.


QatQat

Life is what happens when you are making other plans.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top