Weixing,
At 10:33 AM 12/1/00 -0600, Zhang, Weixing wrote:
>Hi all,
> I found that NFS is more convenient than rcp to copy files and
>directories between computers,
>but the NFS client keeps talking with the NFS server after such operation.
>For example:
>Computer_A (NFS server), Computer_B (NFS client)
>The file systems on computer_A will be mounted on computer_B after the user
>do 'cd /hosts/computer_A/user'
>at computer_B and 'df -k' on computer_B will display the file systems from
>computer_A.
>Is there any way to umount the NFS on computer_B as a normal user (other
>than root)?
>In other words, make it disappear in the 'df -k' list on computer_B. Your
>input is highly appreciated.
>
>Weixing Zhang, Ph.D.
>Department of Structural Biology
>St. Jude Children's Research Hospital
>332 North Lauderdale Street
>Memphis, TN 38105
>Voice: (901)495-3169
>Fax: (901)495-3032
>http://www.stjude.org/departments
I use Solaris's automounting feature for these types of interactions.
The main benefit is that if computer_A becomes unavailable for any
reason, computer_B is unaffected. When a user initiates a request,
the requested partition is mounted. After 5 mins of inactivity
(by default), the partition is unmounted.
The key files involved are auto_master, auto_direct and dfs/dfstab
in the /etc directory. Once these files are setup (examples are
given at the end), one can do the following:
/etc/init.d/nfs.server stop
/etc/init.d/nfs.server start
which insures the nfs server is started properly after dfstab
is modified. Then run:
automount -v
to get all the automounts going. This procedure has worked nicely
here. There may be better ways of doing similar automounting; I am
no more than a self-taught, figure-it-out-once kind of unix
administrator, and spend as little time on this stuff as possible.
It would be helpful to hear about alternative ways of doing this.
Cheers,
Charlie
***** /etc/auto_master ********************************************
# Master map for automounter
#
#+auto_master
/net -hosts -nosuid
/- auto_direct
/home auto_home
/xfn -xfn
***** /etc/auto_direct ********************************************
/natoth -ro natoth.chem.wisc.edu:/u/exp/stan/nmr
/narn -ro narn.chem.wisc.edu:/export/home
/vorlon -rw vorlon.chem.wisc.edu:/export/home
#natoth is an avance sgi
#narn is a unity-500 sun host
#vorlon is a sun datastation
***** /etc/dfs/dfstab ********************************************
share -F nfs -o ro=natoth.chem.wisc.edu:narn.chem.wisc.edu:vorlon.chem.wisc.edu /export/home
#this share provides read-only privileges (from a spectrometer
# sun host) to natoth, narn and vorlon
----------------------------------------------------------
Charles G. Fry, Ph.D. Tel: (608)262-3182
Director, MR Facility Fax: (608)262-0381
Chem. Dept., Univ. Wisconsin
Madison, WI 53706 USA email: fry_at_chem.wisc.edu
----------------------------------------------------------
Received on Fri Dec 01 2000 - 16:42:12 MST