general support - raeker/ARC-Wiki-Test GitHub Wiki

Advanced Research Computing : General Support

Verifying Mounts Exist On Xfer Nodes

***Please note - at this time helpdesk members do not have sudo access on flux-admin09. To check mounts on the flux-xfer nodes pease contact the systems team***

This can be done by using the verifyXferMounts.py script. The script is located in /usr/arcts/systems/scripts/ and the information you will need to use it is:

  • The cluster the xfer nodes are part of (i.e. greatlakes, lighthouse, armis2, flux)
  • The name of the volume you want to query

The script must be run on flux-admin09 AND must be run with sudo. If needed, -h will display the manual page.

[flux-admin09]$ sudo /usr/arcts/systems/scripts/verifyXferMounts.py -c $cluster -n $volume_name

# Real example:
[flux-admin09]$ sudo /usr/arcts/systems/scripts/verifyXferMounts.py -c greatlakes -n arcts-ops
Volume: arcts-ops
----------
Host: gl-xfer1.arc-ts.umich.edu
 /etc/auto.nfs.turbo:1:arcts-ops                  -rw,tcp,hard,nosuid,vers=4                           arcts-ops.turbo.storage.umich.edu:/arcts-ops
 /etc/auto.nfs.turbo:3:arcts-ops                 -rw,tcp,hard,intr,noacl,nosuid,vers=3,retrans=5      arcts-ops.turbo.storage.umich.edu:/arcts-ops

Host: gl-xfer2.arc-ts.umich.edu
 /etc/auto.nfs.turbo:1:arcts-ops                  -rw,tcp,hard,nosuid,vers=4                           arcts-ops.turbo.storage.umich.edu:/arcts-ops
 /etc/auto.nfs.turbo:3:arcts-ops                 -rw,tcp,hard,intr,noacl,nosuid,vers=3,retrans=5      arcts-ops.turbo.storage.umich.edu:/arcts-ops

The script will also let you know if the volume is not mounted on a host. For example:

[flux-admin09]$ sudo /usr/arcts/systems/scripts/verifyXferMounts.py.cgbriggs -c greatlakes -n whatthewhat
Volume: whatthewhat
----------
Host: gl-xfer1.arc-ts.umich.edu
 WARNING: Volume 'whatthewhat' is not mounted on 'gl-xfer1.arc-ts.umich.edu'

Host: gl-xfer2.arc-ts.umich.edu
 WARNING: Volume 'whatthewhat' is not mounted on 'gl-xfer2.arc-ts.umich.edu'

How the script works:

The verifyXferMounts.py script is a wrapper for utilizing sudo with ssh in order to get a shell on the xfer hosts and run a grep command. The script will do this on every xfer host in the cluster you give it, and it will recursively search for the volume name in */etc/auto*. *Here are each of the files it searchs:

-rw-r--r--   1 root     root      15137 Sep 30 11:48 autofs.conf
-rw-r--r--   1 root     root       2223 Jan 11 07:38 auto.master
-rw-r--r--   1 root     root        795 Sep 30 11:48 auto.master.12828.2021-01-11@07:38:51~
drwxr-xr-x   2 root     root          6 Sep 30 11:48 auto.master.d
-rw-r--r--   1 root     root        524 Sep 30 11:48 auto.misc
-rwxr-xr-x   1 root     root       1260 Sep 30 11:48 auto.net
-rw-r--r--   1 root     root      15205 Jan 11 07:38 auto.nfs
-rw-r--r--   1 root     root        675 Jan 11 07:38 auto.nfs.locker
-rw-r--r--   1 root     root       3587 Jan 11 07:38 auto.nfs.locker.gridftp
-rw-r--r--   1 root     root        126 Jan 11 07:38 auto.nfs.mm-isilon
-rw-r--r--   1 root     root        108 Jan 11 07:38 auto.nfs.osiris
-rw-r--r--   1 root     root      63297 Jan 25 15:59 auto.nfs.turbo
-rw-r--r--   1 root     root      63182 Jan 15 11:15 auto.nfs.turbo.122929.2021-01-19@15:40:18~
-rw-r--r--   1 root     root      63051 Jan 13 16:44 auto.nfs.turbo.152915.2021-01-15@11:15:42~
-rw-r--r--   1 root     root      63313 Jan 25 11:31 auto.nfs.turbo.176062.2021-01-25@15:59:45~
-rw-r--r--   1 root     root      63315 Jan 19 15:40 auto.nfs.turbo.222198.2021-01-20@09:48:04~
-rw-r--r--   1 root     root      63182 Jan 20 09:48 auto.nfs.turbo.30899.2021-01-25@11:31:00~
-rw-r--r--   1 root     root      62771 Jan 11 07:38 auto.nfs.turbo.57459.2021-01-13@16:44:35~
-rw-r--r--   1 root     root        129 Jan 11 07:38 auto.nfs.turbo.gridftp
-rwxr-xr-x   1 root     root        687 Sep 30 11:48 auto.smb

The command that is run on the xfer hosts is: /usr/bin/ssh $hostname 'grep -s -n -e ^$volume_name /etc/auto.*[a-z]*'

⚠️ **GitHub.com Fallback** ⚠️