Quantcast
Channel: UNIX and Linux Forums - AIX
Viewing all articles
Browse latest Browse all 373

How to make NFS4 mount permanent ?

$
0
0
Hello,

I'm able to mount NFSv3 shares permanently (/etc/filesystems) via smitty nfs.

Code:

[root@nfs3client]/>lsfs -a
Name            Nodename  Mount Pt              VFS  Size    Options    Auto Accounting
/dev/hd4        --        /                      jfs2  2097152 --        yes  no
/dev/hd1        --        /home                  jfs2  1638400 --        yes  no
/dev/hd2        --        /usr                  jfs2  30932992 --        yes  no
/dev/hd9var    --        /var                  jfs2  2883584 --        yes  no
/dev/hd3        --        /tmp                  jfs2  4194304 --        yes  no
/dev/hd11admin  --        /admin                jfs2  262144  --        yes  no
/proc          --        /proc                  procfs --      --        yes  no
/dev/hd10opt    --        /opt                  jfs2  2097152 --        yes  no
/dev/livedump  --        /var/adm/ras/livedump  jfs2  524288  --        yes  no
 nfsserver:/nfs3shre/test /mntpoint                nfs  --      rw,bg,hard,intr,sec=sys yes  no

I've tried to follow the same procedure (smitty nfs) for NFSv4 as well. But it gave me below error.

Code:

Command: failed        stdout: yes          stderr: no

Before command completion, additional instructions may appear below.

mount: 1831-011 access denied for nfsserver:/nfs4shre/test
mount: 1831-008 giving up on:
nfsserver:/nfs4shre/test
The file access permissions do not allow the specified action.


But when I use below command, then it worked.

mount -o vers=4,hard,rw,bg,intr,sec=sys nfsserver:/nfs4shre/test /mntpoint


The issue is " NFSv4 share is not mounting automatically after a server reboot".

As per my understanding,
we are not supposed to modify/edit " /etc/filesystems" in AIX.

As per IBM man pages "
Modifying this file can cause several effects to file systems."

Please let me know how can I make NFSv4 mount permanently available across reboots.

Thank you.

Viewing all articles
Browse latest Browse all 373

Trending Articles