I'm able to mount NFSv3 shares permanently (/etc/filesystems) via smitty nfs.
[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.
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
Please let me know how can I make NFSv4 mount permanently available across reboots.
Yes, there are warnings because you can make you system fail to boot if you really mess up, but it is a structured text file and you just have to be careful.
Can I just check that you are running the smit panels as the super user? (usually root)
Can you paste the panels you are completing (in CODE tags) so we can consider it?
I usually use smitty nfs to mount NFSv3 share filesystems (or sometimes mount command).
I tired the same for NFSv4.
[root@nfsclient]/>smitty nfs
Add a File System for Mounting
Type or select values in entry fields.
Press Enter AFTER making all desired changes.
[Entry Fields]
* Pathname of mount point [/mntpoint] /
* Pathname of remote directory [/nfs4share/test]
* Host where remote directory resides [nfsserver]
Mount type name []
* Security method [sys] +
* Mount now, add entry to /etc/filesystems or both? both +
* /etc/filesystems entry will mount the directory yes +
on system restart.
* Mode for this NFS file system read-write +
* Attempt mount in foreground or background background +
Number of times to attempt mount [] #
Buffer size for read [] #
Buffer size for writes [] #
NFS timeout. In tenths of a second [] #
NFS version for this NFS filesystem any +
Transport protocol to use any +
Internet port number for server [] #
* Allow execution of setuid and setgid programs yes +
in this file system?
* Allow device access via this mount? yes +
* Server supports long device numbers? yes +
* Mount file system soft or hard hard +
Minimum time, in seconds, for holding [3] #
attribute cache after file modification
Allow keyboard interrupts on hard mounts? yes +
Maximum time, in seconds, for holding [60] #
attribute cache after file modification
Minimum time, in seconds, for holding [30] #
attribute cache after directory modification
Maximum time, in seconds, for holding [60] #
attribute cache after directory modification
Minimum & maximum time, in seconds, for [] #
holding attribute cache after any modification
The maximum number of biod daemons allowed [6] #
to work on this file system
* Use acls on this mount? no +
Number of NFS retransmits [] #
* Exchange POSIX pathconf information? no +
* Inherit group IDs? no +
F1=Help F2=Refresh F3=Cancel F4=List
F5=Reset F6=Command F7=Edit F8=Image
F9=Shell F10=Exit Enter=Do
Please let me know if I need to provide additional details.
Thank you.
---------- Post updated at 09:59 AM ---------- Previous update was at 09:56 AM ----------
Received below error
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 "mount" command worked as I mentioned above, do not how to make it permanent.
my bad, how come I missed this. I was looking (scanning) for this option on smit panel. I was thinking that, there's no option to choose NFS version.
This was my fault, failure to notice. sorry.
By default it was set to "any". I just selected "4".
It worked, added entry to "/etc/filesystems".
Thanks much!
Great! Take a note of the stanza it added to /etc/filesystems and you can add more by just editing the file.
Just be careful to get the structures correct. I think it loads every valid one, so just don't mess around with those that are critical to the OS and you can always recover.
Sadly I no longer manage AIX servers after being made redundant 2 years ago, so you have brought up a fond memory.