Tanti Technology

My photo
Bangalore, karnataka, India
Multi-platform UNIX systems consultant and administrator in mutualized and virtualized environments I have 4.5+ years experience in AIX system Administration field. This site will be helpful for system administrator in their day to day activities.Your comments on posts are welcome.This blog is all about IBM AIX Unix flavour. This blog will be used by System admins who will be using AIX in their work life. It can also be used for those newbies who want to get certifications in AIX Administration. This blog will be updated frequently to help the system admins and other new learners. DISCLAIMER: Please note that blog owner takes no responsibility of any kind for any type of data loss or damage by trying any of the command/method mentioned in this blog. You may use the commands/method/scripts on your own responsibility. If you find something useful, a comment would be appreciated to let other viewers also know that the solution/method work(ed) for you.

Saturday, 19 October 2019

AIX nfs export property change using smitty nfs on AIX cluster.


Hello Everyone ,

Today i am going to share how to change property of existing nfs share on AIX cluster setup, when existing exports file(/usr/es/sbin/cluster/etc/exports) is too large for editing and it generates some unreadable character while editing.

Scenario:

We had one scenario where, we need to add new host name to already exported NFS share on AIX cluster setup. Here host name was same but domain was changed and because of this issue nfs share showing error so application team requested us to delete previous hostname and add hostname with FQDN and do re-export. 

Lets see how we implemented and solved above mentioned scenario and which issue we faced.

Solution:

when we tried to edit existing exports file(/usr/es/sbin/cluster/etc/exports) on AIX cluster node we found that file is having too many entry of host name and we find it difficult to edit and also it generated some  unreadable character. so we decided that use smitty nfs to edit this file.

While doing changes to existing export make sure that you entered correct path name for "hanfs"config file and that is /usr/es/sbin/cluster/etc/exports.


* Pathname of directory to export                  [/clnfs]
  Anonymous UID                                              [-2]
  Public filesystem?                                        no
* Export directory now, system restart or both              both

  Pathname of alternate exports file                        [/usr/es/sbin/cluster/etc/exports]

Steps we followed to remove old host name and add same host name with new domain are as below:

1.

smitty NFS

2.

Change characteristics of existing NFS share

3.

choose nfs share name , here /clnfs

4.

version of NFS is 3

5.

remove old hostname with old domain and added same hostname with new domain


  HOSTS allowed root access                          [add hostname]
  HOSTS & NETGROUPS allowed client access            [add hostname]
  PATHNAME of Exports file if using HA-NFS           [/usr/es/sbin/cluster/etc/exports]
]
6.
press enter

after successful re-export make sure that nfs share exported correctly.


7.
at client side remount nfs export.


***issue we faced while doing re-export was, we faced error like below 

"exportfs: 1831-189 hostname: unknown host "

this error was saying that NFS server unable to resolve newly added hostname.

Solution:


we added newly added host name in following format on AIX NFS server in /etc/hosts file

IP      FQDN          HOSTNAME

and problem got resolved.




Thanks  !!!

No comments:

Post a Comment