/mountnfs

This simple script can be used to mount NFS volumes in bulk by passing user-friendly volume names as arguments.

Primary LanguageShellGNU General Public License v3.0GPL-3.0

mountnfs

This simple script can *be used to mount NFS volumes in bulk by passing user-friendly volume names as arguments.

Author

Kevin Dougherty

kevin[at]afturmath[dot]com

Version

The current version is 0.2

Changelog

0.2

  • Renamed variables for nfs centric scheme
  • added help
  • added debug mode

0.1

  • initial release

Pending features

  • Add options for variables instead of static definitions
  • Test to see if the input mount is already mounted

Usage

mountnfs <volume names>

Example

mountnfs m1 m2 m3

The above would mount 3 nfs volumes exported on the server, m1, m2, and m3

The following varibles MUST be set in the script

  • nroot -- absolute path to the parent mount point on this host
  • nfs_srv -- nfs server hostname or IP address
  • nfs_dir -- absolute directory on the nfs server where all exports live