AutoMount

Hi All
How do I do a auto mount to a directory in a different unix server. I am using Solaris.

Please advise!!

TIA
Jana

hy

man automountd

by

So So clear !

Try the NFS Admin Guide from docs.sun.com. If you have specific questions after that, please post them.

Hi All,
I tried to understand but no luck. Could someone please help me out in doing this. May be if someone could give me a simple syntax of how to do it, that would be of great help!!

Thanks and Regards
Jana

easy way:
use the /net directory to access the remote nfs-shares.... (already configured automountd)

otherwise you could mount it with your /etc/vfstab at boot time, but be carefull with the mount options.... false set false boot.... only mount when the remote drive is responding otherwise solaris should try it later, sorry i not sure about the right syntax but i've got another tip:
man mount (!)
:slight_smile:

greetings Pre�y

wouldn't do that. Takes away the sense of automounter, doesn't it?

You use automounter when you want the OS to take care of managing the mounts, and an vfstab entry leaves the managing to you again.

Doesn't it?

## client side ##

1) edit the /etc/auto_master filer as follow

/local_directory remotehost:/path/to/shared

2) start the automounter

/etc/init.d/autofs start

## server side ##

1) export the directory to share

  • edit the /etc/dfs/dfstab and add your line (there is an example)
  • reload the sharetab with the "shareall" cmd

## e.g. ##
local /etc/auto_master

/blairwitch project:/export/home/horror

automount process

ps -edf | grep auto
root 218 1 1 Jul 24 ? 117:35 /usr/lib/autofs/automountd -n

server side

#share

  •           /export/home/horror   rw   "/export/home/horror"
    

Good luck