1. Simplest method : create a lpp_source from a previous one (create the target FS before this):

--> so you can avoid errors regarding the "simages" attribute
#  /usr/lpp/bos.sysmgt/nim/methods/m_setup -x -S 'master' -i 'lpp_source71TL3SP5' -l 'lpp_source71TL4SP1' -D '/export/lpp_source71TL4SP1'  

1.1 eliminate any unnecessary packages

 # nim -o lppmgr -a lppmgr_flags='-bu -x -k en_US -r -e'</pre>
<pre>

1.2 update it with the latest TL

don’t forget to run inutoc in the latest TL directory before this, otherwise nim won’t do anything and won’t tell you why !

 


Check the latest updates

Follow some of these guys, they always relay the releases anouncements : @mr_nmon@chromeaix, @NicoletteMcF , or @IBMAIXeSupp or @IBMPowereSupp

Or activate the notifications from your IBM account : https://www-947.ibm.com/systems/support/myview/subscription/css.wss/subscriptions?brandind=5362951&css_key=pwr000&methodName=createNewSubscription

Go to fix central

Choose the right TL, navigate through the menusput the downloaded TL in your lpp_source repository (approximately 4-5 GB)

IBM Support Fix Central - Mozilla Firefox

Rename the bff files for more comprehensive names : bffcreate is your friend

instead of this:

 U813306.bff
 U813328.bff
 U813329.bff
 U813455.bff
 U815730.bff

…You’ll get this easier way of finding which fileset does what :

perl.man.en_US.5.8.8.366.I
 openssl.base.1.0.1.500.I
 sysmgt.cim.providers.1.2.9.65.I
 sysmgt.cim.smisproviders.1.2.2.65.I
 sysmgt.cimserver.pegasus.2.9.1.65.I
 perl.rte.5.8.8.366.I
 xlC.msg.ja_JP.12.1.0.1.I

Let’s go and execute bffcreate command :

# cd /export/nim/lpp_source/6100-09-01-1341-lpp_source
# inutoc .
# /usr/sbin/bffcreate -cd .
# inutoc .

create the lpp_source NIM resource:

# nim -o define -t lpp_source -a server=master -a location=/export/nim/lpp_source/7100-03-01-1341-lpp_source 7100-03-01-1341-lpp_source

Preparing to copy install images (this will take several minutes)...

Let’s check the lpp_source :

# nim -o check 7100-03-01-1341-lpp_source
#

Ok , no errors, we may proceed.

What can I do about simages errors?

You might encounter this kind of error message :

[MASTER] root@up000nim0101c:/export/nim/lpp_source# nim -o define -t spot -a source=7100-03-01-1341-lpp_source -a location=/export/nim/spot/7100-03-01-1341-spot -a server=master 7100-03-01-1341-sp>
 0042-001 nim: processing error encountered on "master":
 0042-162 m_mkspot: an lpp_source which has the "simages"
 attribute is required for this operation

You will need the CD-Rom in order to get the simages flags and make use of the gencopy command…

…or you can copy the latest « simages enabled » lpp_source’s packages into your freshly downloaded TL, and update it  (yes, it is disk-consuming, sorry about that) :


# lsnim -l 7100-02-03-1334-lpp_source
7100-02-03-1334-lpp_source:
class       = resources
type        = lpp_source
arch        = power
Rstate      = ready for use
prev_state  = unavailable for use
location    = /export/nim/lpp_source/7100-02-03-1334-lpp_source
simages     = yes
alloc_count = 0
server      = master

# du -sg 7100-03-01-1341-lpp_source/ && cp -rf 7100-02-03-1334-lpp_source/installp/ppc/* 7100-03-01-1341-lpp_source/ && du -sg 7100-03-01-1341-lpp_source/

5.27    7100-03-01-1341-lpp_source/
10.93   7100-03-01-1341-lpp_source/
  • Now you can update the lpp_source which will get the simages attribute:
# nim -o update -a packages=all -a source=/export/nim/lpp_source/7100-03-01-1341-lpp_source  7100-03-
01-1341-lpp_source

Now we can check that our lpp_source has its flag simages enabled :

# lsnim -l 7100-03-01-1341-lpp_source
7100-03-01-1341-lpp_source:
class       = resources
type        = lpp_source
arch        = power
Rstate      = ready for use
prev_state  = unavailable for use
location    = /export/nim/lpp_source/7100-03-01-1341-lpp_source
simages     = yes
alloc_count = 0
server      = master

Create the spot

To do so, we will extract the spot from the lpp_source :

# nim -o define -t spot -a source=7100-03-01-1341-lpp_source -a location=/export/nim/spot/7100-03-01-1341-spot -a server=master 7100-03-01-1341-spot

Creating SPOT in "/export/nim/spot/7100-03-01-1341-spot" on machine "master" from "7100-03-01-1341-lpp_source" ...

Restoring files from BOS image.  This may take several minutes ...

Installing filesets ...

Be sure to check the output from the SPOT installation
to verify that all the expected software was successfully
installed.  You can use the NIM "showlog" operation to
view the installation log file for the SPOT.

Links

http://www-933.ibm.com/support/fixcentral/

http://publib.boulder.ibm.com/infocenter/pseries/v5r3/index.jsp?topic=/com.ibm.aix.install/doc/insgdrf/install_sw_rename_sw_in_repos.htm

The simages attribute in NIM lpp resource

http://www.tek-tips.com/viewthread.cfm?qid=1263618

Share Button
NIM : get the latest TL on fix central and make it available on your nim server
Taggé sur :                

Laisser un commentaire