• Solaris Automounter

    Whenever you’re using NFS mount points, it’s really nice to use some type of automounter. Linux and FreeBSD use AMD to accomplish this, but Solaris uses automountd, and it’s fun and easy to use… Here is an example of a configuration that will automatically mount an NFS share and unmount it after 5 minuets of inactivity.

    We have a system called micky which has an NFS point shared to a system called minny as /shareme.
    We can see that it is set up in the /etc/dfs/dfstab file on micky:

    share -F nfs -o ro=minny.yourdomain.com -d “NFS ShareMe” /shareme

    The above will share the directory read-only. If you would like to map the directory as root and be able to write to it, the command would look more like this:

    share -F nfs -o rw,root=minny.yourdomain.com -d “NFS ShareMe” /shareme

    You can run the share command on micky to check to make sure it is shared:

    # share
    - /shareme ro=minny.yourdomain.com “NFS ShareMe”

    If it’s not shared, run shareall to share it:

    # shareall

    Now, jump on over to minny and add the following line to /etc/auto_master:

    /- auto_direct

    Automountd will now look in /etc/auto_direct for direct mount points.

    Next edit /etc/auto_direct and add the following line:

    /micky-shareme micky:/shareme

    Now, create the directory for the NFS mount point on minny:

    # mkdir /micky-shareme

    Finally, run the auromount command on minny to inform the daemon of the changes:

    # automount

    That should do it… Have fun with your new automount NFS share.

    More information on this can be found here

    This entry was posted on Sunday, January 1st, 2006 at 6:52 pm and is filed under Data and Technology. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.
  • 2 Comments

    Take a look at some of the responses we've had to this article.

    1. Jan 10th
      Reply

      How would you set up NFS shares such that any dependencies (resulting from the need to have the sharing server boot up before the mounting server in the event of a restart) are removed? I dealt with this by putting an entry like this in root’s crontab (Fedora Linux): “0 * * * * mount -a -t nfs”

    2. Jan 10th
      Reply

      Oh, and of course, I put the appropriate entry in /etc/fstab, enabling the command above to work.

  • Leave a Reply

    Let us know what you thought.

  • Name (required):

    Email (required):

    Website:

    Message:

Visitors have tagged this post: solaris auto_direct (278) - auto_direct solaris (145) - automount solaris (140) - solaris automount (113) - solaris automounter (49) - automounter solaris (46) - solaris automountd (43) - t (41) - automountd solaris (25) - solaris restart automount (18) - solaris automount nfs (17) - configure automount solaris (16) - solaris automount howto (15) - automount in solaris (15) - shareme (13) - solaris 10 auto_direct (13) - solaris auto_master (13) - solaris (12) - automount nfs solaris (12) - auto_direct in solaris (12) - Solaris auto_mount (12) - automount (11) - solaris automount configuration (11) - /- auto_direct solaris 10 (10) - Solaris nfs mount (10) - solaris automount config (10) - solaris automount /net (10) - restart automountd solaris (10) - Solaris dfstab (10) - solaris automount restart (10) - auto_direct (9) - automount on solaris (9) - auto mount solaris (9) - all (8) - solaris nfs automount (8) - solaris nfs howto (8) - restarting solaris (8) - solaris automount setup (8) - share (8) - solaris automount cd (7) - restarting automounter solaris (7) - how to configure automount in solaris (7) - solaris 10 auto_master (7) - automount auto_master (6) - solaris mount example (6) - solaris net share (6) - +restart +nfs +solaris (6) - restart automounter solaris (6) - solaris 10 automount (6) - restarting automountd (6) - auto_master solaris (6) - Automounting in Solaris (6) - solaris configure automount (6) - solaris auto mount (6) - auto_mount solaris (6) - auto_direct example solaris (6) - solaris /etc/auto_direct (5) - "NFS" automount solaris (5) - Solaris AUtomounter configuration (5) - solaris automount example (5) - how to configure automount on solaris (5) - solaris /net (5) - automounter in solaris (5) - automount solaris example (5) - auto_master (4) - restart solaris automounter (4) - Solaris automount share (4) - automount restart solaris (4) - restarting automount solaris (4) - Solaris Automounter howto (4) - solaris automount dfstab (4) - fedora automount nfs (4) - solaris nfs share (4) - +solaris +automount +configure (4) - restart automount solaris (4) - automountd in solaris (4) - solaris automountd restart (4) - solaris nfs (4) - solaris nfs shareall (4) - solaris automounter examples (4) - mss (4) - setup automount solaris (4) - dfstab howto (4) - solaris restart automounter (4) - solaris restarting automount (4) - how to automount in solaris (4) - solaris 10 automountd (4) - how to configure automount solaris (4) - auto_direct restart (4) - solaris automounter restart (4) - automount Solaris 10 (4) - configure automount in solaris (3) - configure NFS solaris (3) - how to Configure NFS in solaris (3) - nfs solaris howto (3) - solaris share dfstab (3) - restarting nfs on solaris (3) - automount+solaris (3) - solaris mount (3) - diy lock picks (3) - solaris automount auto_master (3) - automount solaris how to (3) - WRECK DIVING WMV (3) - automount nfs share solaris (3) - solaris how to automount (3) - configure automountd solaris (3) - solaris nfs setup (3) - automount on solaris howto (3) - "solaris 10" nfs howto (3) - Solaris shareall (3) - solaris /net nfs (3) - auto_direct nfs solaris (3) - nfs automount auto_direct (3) - solaris automountd configuration (3) - solaris+automount (3) - auto_master nfs solaris (3) - share dfstab (3) - solaris auto_master nfs (3) - automount & solaris & fedora (3) - solaris 10 restart automounter (3) - automountd on Solaris (3) - shares solaris (3) - automountd solaris 10 (3) - automounter on solaris (3) - auto_master + solaris + examples (3) - automountd in Solaris 10 (3) - restart automounter solaris 9 (3) - solaris auto mounter (3) - solaris 10 automounter (3) - solaris configure auto_direct (3) - Solaris 10 auto_master -xfn (3) - nfs (2) - nfs shares solaris example (2) - solaris nfs mount share (2) - solaris nfs net (2) - automount solaris /net (2) - automount net solaris (2) - mount solaris example (2) - what is automount in solaris (2) - SUN auto_direct (2) - nfs shares solaris (2) - solaris mount auto (2) - solaris configure automounter (2) - Solaris auto mount nfs (2) - restarting automount on solaris (2) - mounting solaris nfs shares (2) - restarting nfs solaris (2) - solaris "/net" nfs mount (2) - solaris nfs mount howto (2) - head up display diy (2) -