After
updating my NIM master to AIX 7.1 TL2 SP1 (7100-02-01-1245), I noticed a
problem. Whenever I installed a new AIX partition using NIM, the resources
allocated to the NIM client were not
being de-allocated, even though the installation was completing successfully. Also,
if I tried to run my usual ‘NIM client reset’ script (below), the resources
were still allocated.

#!/usr/bin/ksh

# Reset a
NIM client.

if [[
"$1" = "" ]] ; then

echo Please specify a NIM client to reset
e.g. aixlpar1.

else

if lsnim -l $1 > /dev/null 2>&1 ;
then

nim -o reset -F $1

nim -Fo de-allocate -a subclass=all $1

nim -Fo change -a cpuid= $1

else

echo Not a valid NIM client!?

fi

fi

For
example, here’s my NIM client with the lpp_source,
mksysb and SPOT resources assigned to it (even though the AIX install
completed OK).

root@nim1 :
/ # lsnim -l aixlpar1

aixlpar1:

class= machines

type= standalone

connect= shell

platform= chrp

netboot_kernel= 64

if1= network1 aixlpar1 0

cable_type1= N/A

Cstate= ready for a NIM operation

prev_state= not running

Mstate= currently running

boot= boot

lpp_source=
lpp_sourceaix710105

mksysb= aixlpar1-71

nim_script= nim_script

spot=
spotaix710105

cpuid= 00C453C75C00

control= master

Cstate_result= success

installed_image = aixlpar1-71

My
workaround was to use 'smit nim_mac_res'
to manually de-allocate resources from
the client:

====

De-allocate Network Install Resources

aixlpar1machinesstandalone

>lpp_sourceaix710105lpp_source

>spotaix710105spot

>aixlpar1-71mksysb

====

It
appears that others were also experiencing this problem. I found the following
thread on the IBM developerWorks AIX user forum: