I change num_cmd_elems to 400 with chdev –P (remember, the –P flag only updates the AIX ODM, and not the running configuration of the device in the AIX kernel. You must either reboot for this change to take effect or offline &online the device).
# chdev -l fcs1 -a num_cmd_elems=400 -P
fcs1 changed
Now the lsattr command reports num_cmd_elems is set to 400 in the ODM.
# lsattr -El fcs1 -a num_cmd_elems
num_cmd_elems 400 Maximum Number of COMMAND Elements True
# echo vfcs fcs1 | kdb | grep num_cmd_elems
num_cmd_elems: 0xC8 location_code: U9119.FHA.87654A1-V20-C10-T1
Using this technique I now have a way of checking if an AIX system has been restarted since an attribute was changed on a VFC adapter.
At this point I could suggest a reboot of the system. Or I could take the adapter offline and then online for the changes to take effect. For example:
# lspath
Enabled hdisk0 fscsi0
Enabled hdisk1 fscsi0
Enabled hdisk0 fscsi1
Enabled hdisk1 fscsi1
# rmpath -l hdisk0 -p fscsi1
# rmpath -l hdisk1 -p fscsi1
# lspath
Enabled hdisk0 fscsi0
Enabled hdisk1 fscsi0
Defined hdisk0 fscsi1
Defined hdisk1 fscsi1
# rmdev -Rl fcs1
fscsi1 Defined
fcs1 Defined
# cfgmgr
# lspath
Enabled hdisk0 fscsi0
Enabled hdisk1 fscsi0
Enabled hdisk0 fscsi1
Enabled hdisk1 fscsi1
# lsattr -El fcs1 –a num_cmd_elems
num_cmd_elems 400 Maximum Number of COMMAND Elements True
# echo vfcs fcs1 | kdb | grep num_cmd_elems
num_cmd_elems: 0x190 location_code: U9119.FHA.87654A1-V20-C10-T1
;; 0x190 hex = 400 decimal
Please note: Be careful when using the kdb command. If used incorrectly, you can crash an AIX system!