1832306 Members
2019 Online
110041 Solutions
New Discussion

nfs mount question

 
SOLVED
Go to solution
Ragni Singh
Super Advisor

nfs mount question

when you do a nfs mount, does it always stay mounted until you manually umount it or is there a timer option that you can specify to automatically umount after a while when it hasn't been accessed.

Is there a difference in nfs mount between redhat and solaris?.
6 REPLIES 6
Ivan Ferreira
Honored Contributor

Re: nfs mount question

You can use automount/autofs to mount and dismount automatically a NFS export or media.

I don't know about Solaris but normally there are no big differences.
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
Steven E. Protter
Exalted Contributor

Re: nfs mount question

Shalom Sanjit,

Once nfs mount is done (mounting) the nfs client daemon attempts to maintain that connection until it is specifically broken.

The nfs clients for most OS's are built on the same code base. There are standards for what NFS does and does not do and how it does it.

The real difference with nfs is the version of nfs is running. v2 v3 are in wide user and v4 was released within the past two years.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Ragni Singh
Super Advisor

Re: nfs mount question

Is automount/autofs done on client or on server side?

How would I mount this on the client side to tell me to umount after 10min.

Usually I would do mount -F nfs ..... /mnt/nfs on the client side. This stayed mounted all night and I am trying to make a point here that there is a option that we can use to where it will automatically umount.
Ivan Ferreira
Honored Contributor
Solution

Re: nfs mount question

What OS is your client? The automount/autofs configuration is done at the client side.

On linux is somethig like this:

# cat /etc/auto.master

/misc /etc/auto.nfs --timeout=600


# cat /etc/auto.nfs

nfs -ro,soft server:/export

# service autofs start
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
Ivan Ferreira
Honored Contributor

Re: nfs mount question

See also:

http://freespace.sourceforge.net/guidod/howto/autofs.html
http://ozguru.mu.nu/archives/2005/11/tech_tip_automo.html
http://forums1.itrc.hp.com/service/forums/helptips.do?#28
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
Ragni Singh
Super Advisor

Re: nfs mount question

Thank you very much for your help. BTY, OS is solaris 10. You get 10 points.