DSS How to access DSS Container Exports using Linux AutoMounter
Overview
If multiple DSS containers are exported via NFS to a single system or VM, or if there are often changes to the list of containers that are exported to a system or VM, a system administrator has to adjust the configuration of NFS mounts in /etc/fstab. To avoid this manual intervention the Linux AutoFS (automounter) can be used to query and mount all DSS containers that are exported to system automatically.
Prerequisites and Setup
To use the automounter script the Linux "autofs" and "nfs-util" packages have to be installed on the system.
Two files have to be created in the "/etc/auto.master.d" directory:
Add the hostname(s) of the exporting NFS server(s) in /etc/auto.master.d/dss.autofs.pl (Line with @DSSNFSSERVER declaration).
The necessary information about NFS server name and DSS Filesystem can be seen in the DSSWeb interface:
In the example the DSSNFSSERVER is: datdsscnfs02.dss.lrz.de and the <DSS Filesystem> is: dssfs01
Make script executable and test it.
chmod 755 /etc/auto.master.d/dss.autofs.pl mkdir /dss /etc/auto.master.d/dss.autofs.pl <DSS Filesystem>
The output should look similar to this example:
> /etc/auto.master.d/dss.autofs.pl dssfs01 -fstype=nfs,hard,intr,nodev,nosuid \ /lwp-dss-0000/pr74qo/pr74qo-dss-0005 datdsscnfs02.dss.lrz.de:/dss/dssfs01/lwp-dss-0000/pr74qo/pr74qo-dss-0005
Check if autofs includes the files in the /etc/auto.master.d/ directory:
> grep -vE "^#" /etc/auto.master | grep "/etc/auto.master.d" +dir:/etc/auto.master.d
And finally start autofs:
> systemctl start autofs > systemctl status autofs