UnixPedia : HPUX / LINUX / SOLARIS: HPUX :Mounting NFS FS via autofs with options

Saturday, March 29, 2014

HPUX :Mounting NFS FS via autofs with options

Mounting NFS FS via autofs with options
Overview
Mounting NFS FS via autofs with options
Procedures
Nfs file systems which are exported via package should be mounted via autofs.

Make the entry of Mounitng NFS in auto.direct file with expected option of mount point.
[root@Apple:/.root]#
#-> vi /etc/auto.direct
"/etc/auto.direct" 4 lines, 403 characters
/opr_nphpnecc1 "-o vers=3,proto=udp,retry=3" nphpnecc1.company.com:/opr_nphpnecc1
/sapmnt/EJ1     "-o vers=3,proto=udp,retry=3" nphpnecc1.company.com:/export/sapmnt/EJ1
#/oracle/EJ1/sapbackup  "-o vers=3,proto=udp,retry=3" nphpnecc1.company.com:/export/oracle/EJ1/sapbackup
/oracle/EJ1/sapbackup   "-o rw,bg,hard,rsize=32768,wsize=32768,vers=3,forcedirectio,nointr,proto=tcp,suid" nphpnecc1.company.com:/export/oracle/EJ1/sapbackup
~
~
:wq!

Run below command to re-read the auto.direct file.

#-> automount -v
automount: /oracle/EJ1/sapbackup mounted
automount: no unmounts
[root@Apple:/.root]#

Check the content of file to check NFS is getting mounted via autofs.
#-> ll /oracle/EJ1/sapbackup
total 508
-rw-r--r--   1 oraej1     dba           1316 Mar 16 03:34 backEJ1.log
-rw-r--r--   1 oraej1     dba          21328 Mar  3 05:18 beniaszj.anf
-rw-r--r--   1 oraej1     dba          23645 Mar  6 18:52 benisgyv.anf
-rw-r--r--   1 oraej1     dba          21539 Mar  9 01:04 benjdjsd.anf
-rw-r--r--   1 oraej1     dba          22938 Mar  9 02:35 benjdrtg.anf
-rw-r--r--   1 oraej1     dba          23141 Mar  9 04:45 benjedgk.anf
-rw-r--r--   1 oraej1     dba         141384 Mar 16 03:35 benkkbpv.anf
drwxr-xr-x   2 root       root            96 Feb 20 20:17 lost+found
[root@Apple:/.root]#
#-> bdf  -t nfs
Filesystem          kbytes    used   avail %used Mounted on

nphpnecc1.company.com:/export/oracle/EJ1/sapbackup
                   20512768   71927 19163294    0% /oracle/EJ1/sapbackup

[root@Apple:/.root]#

#Check the parameter of Mounted NFS with #nfsstat –m and #mount -v
#-> nfsstat -m
/oracle/EJ1/sapbackup from nphpnecc1.company.com:/export/oracle/EJ1/sapbackup
 Flags:         vers=3,proto=tcp,sec=sys,hard,nointr,forcedirectio,link,symlink,acl,nodevs,rsize=32768,wsize=32768,retrans=5,timeo=600
 Attr cache:    acregmin=3,acregmax=60,acdirmin=30,acdirmax=60

[root@Apple:/.root]#
#-> mount  -v |grep  -I  “/oracle/EJ1/sapbackup”
nphpnecc1.company.com:/export/oracle/EJ1/sapbackup on /oracle/EJ1/sapbackup type nfs nointr,nodevs,forcedirectio,rsize=32768,wsize=32768,NFSv3,dev=4000096 on Sat Mar 29 03:06:02 2014
[root@Apple:/.root]#
Keywords
Automountd , autofs , mount, nfsstat


No comments:

Post a Comment