Hi, just would like to add to what Jose posted. Once you set up NFS v4 you can easily clear NFS v4 attribute from NIM resources just running NIM command on then without specifying NFS version. It will clear attribute and NFS v3 will be used as default.
nim -o change -a nfs_sec="" -a nfs_vers="" resource_name
But there is one NIM resource nim_script which doesn't recognize "change" operation. NFS v4 attribute on that resource needs to be cleared with odm commands as Jose suggested. Here's I have done it few weeks ago
root@nim01 /home/root > lsnim -l nim_script
nim_script:
class = resources
type = nim_script
comments = directory containing customization scripts created by NIM
Rstate = ready for use
nfs_vers = 4location = /export/nim/scripts
alloc_count = 0
server = master
reserved = yes
root@nim01 /home/root > odmget nim_pdattr | grep -p
nfs_versnim_pdattr:
class = 2
subclass = ",12,"
type = ",24,26,869,27,28,29,30,31,32,33,35,375,36,37,39,40,41,25,401,816,465,591,611,619,641,748,752,754,750,820,840,913,957,937,973,"
attr = 720name = "nfs_vers"
mask = 3
value = ""
h_num = 721
verbose_num = 350
root@nim01 /home/root > odmget nim_attr | grep -p value | grep -p -w
720nim_attr:
id = 1641395448value = "4"seqno = 0
pdattr = "720"
root@nim01 /home/root > odmget nim_attr nim_object nim_pdattr | grep -p
1641395448nim_attr:
id = 1641395448
value = "yes"
seqno = 0
pdattr = "60"
nim_attr:
id = 1641395448
value = "master"
seqno = 0
pdattr = "100"
nim_attr:
id = 1641395448
value = "/export/nim/scripts"
seqno = 0
pdattr = "101"
nim_attr:
id = 1641395448
value = "18"
seqno = 0
pdattr = "99"
nim_attr:
id = 1641395448
value = "0"
seqno = 0
pdattr = "103"
nim_attr:
id = 1641395448
value = "directory containing customization scripts created by NIM"
seqno = 0
pdattr = "57"
nim_attr:
id = 1641395448value = "4"seqno = 0
pdattr = "720"
nim_object:
id = 1641395448
name = "nim_script"
class = 2
type = "41"
attrs = "1641395448"
root@nim01 /home/root > odmget -q value=
4 nim_attr
nim_attr:
id = 1641395448value = "4"seqno = 0
pdattr = "720"root@nim01 /home/root > odmdelete -o nim_attr -q value=
40518-307 odmdelete: 1 objects deleted.
root@nim01 /home/root > odmget -q value=4 nim_attr
root@nim01 /home/root > lsnim -l nim_script
nim_script:
class = resources
type = nim_script
comments = directory containing customization scripts created by NIM
Rstate = ready for use
location = /export/nim/scripts
alloc_count = 0
server = master
reserved = yes
Hope that helps,
Martin
------------------------------
Martin Boban
------------------------------
Original Message:
Sent: Sat February 05, 2022 10:05 PM
From: Rizwan
Subject: Roll Back NFS V4 to NFS V3
We have implemented NFS V4 on our NIM (Configuring NIM with NFS V4) and Client LPAR's (IBM AIX : HOW TO SETUP NFSV4 MOUNT IN CLIENT AND SERVER). What if we need to roll back it to version 3?
1-How to unset local NFS domain on AIX client?
2-How to remove NFS domain from NIM master definition?
Thanks
------------------------------
Rizwan Khaliq
------------------------------