HPCHOST

Client Login Client Login

A brief autofs overview

Overview

This article is for Autofs Version 4. When Autofs Version 5 is available we can setup the master to use /- rather than /nas, therefor allowing backupdir in cpbackup.conf to stay the same if using cPanel. Do not attempt to use /- prior to Autofs Version 5 or you may cause the server to immediately crash.

/etc

auto.master

/etc/auto.master is used as the Absolute base location for Autofs.

Do not simply set / or /mnt as everything under that directory hierarchy will not be seen as Autofs Version 4 does not do any type of Onion/Union or Layered mounting. When not using -g (--ghost) then you will not see any subdirectories within this absolute mount point.

auto.xxx

These stubs will need to be set to a NON-EXECUTABLE permission unless the stub is a script. Permissions are only needed by the root user if security is required.

Credentials

The credentials file is only needed when dealing with a remote filesystem that requires authentication, such as NAS. Typically the credentials file will only require two variables to be configured.

username=
password=

 

Sample Configuration

This example will automount /nas/backup from //nas05.service.hpchost.com/SL00000-0

/nas /etc/auto.nas --ghost --timeout=15

 

backup -fstype=cifs,noacl,credentials=/root/.nas05.SL00000-0 ://nas05.service.hpchost.com/SL00000-0

 

  • /root/.nas05.SL00000-0

# THIS IS THE USER CREDENTIALS FILE FOR /etc/auto.nas
# DO NOT EDIT UNLESS YOU KNOW WHAT YOU ARE DOING
username=SL00000-0
password=XXXXXXXXX

 

backupdir=/nas/backup

 

  • After these are configured you will simply need to restart the service. eg: /etc/init.d/autofs restart

Examples

These examples are not for /etc/auto.master but rather for the stubs that are referenced from /etc/auto.master, described as auto.xxx

 

CIFS Stub

nas05 -fstype=cifs,noacl,credentials=/root/.nas05.SL00000-0 ://nas05.service.hpchost.com/SL00000-0

CIFS Credentials

username=SL00000-0
password=XXXXXXXXX

smbfs Stub

smbfs has been deprecated. Use CIFS.

NFS Stub

nfs01 -fstype=nfs,rsize=8192,wsize=8192,soft,timeo=15,rw nfs01.service.hpchost.com.local:/path/to/nfs/share

NFS - Multi-User

This is useful if you plan on using remote authentication and housing all users home directories on a remote server.  You will also have to setup your server to assign users homes with the /export/home prefixed path.  We will not go further into this advanced configuration within this article.

  • /etc/auto.master

/export/home /etc/auto.home

  • /etc/auto.home

* -fstype=nfs,-rsize=8192,wsize=8192,soft,timeo=60,rw nfsserver:/home/&

iSCSI Stub

This is JUST like any other LOCAL mount point

iscsi01 -fstype=ext3,nosuid,nodev :/dev/sdb1

NTFS Stub

DO NOT USE THIS UNLESS YOU ABSOLUTELY HAVE TO!!! MIGRATE TO A NEW FILESYSTEM!

ntfs01 -fstype=ntfs,fmask=0337,dmask=0227,gid=disk,case_sensitive=false :/dev/sdb1



Was this answer helpful?

Add to Favourites
Print this Article

Also Read



Close Chat
HPC Host Live Chat