Solved

Upgrade a spot to the same level of NIM server

Posted on 2011-03-15
7
2,692 Views
Last Modified: 2013-11-17
Hi

I have a Nim server:
[root@:/var/syslog] oslevel -s
7100-00-02-1041

And these resources:
AIX71TL0LPP:
   class       = resources
   type        = lpp_source
   arch        = power
   Rstate      = ready for use
   prev_state  = unavailable for use
   location    = /nim/lpp_source/AIX71TL0LPP
   simages     = yes
   alloc_count = 0
   server      = master
AIX71TL0SPOT:
   class         = resources
   type          = spot
   plat_defined  = chrp
   arch          = power
   bos_license   = yes
   Rstate        = ready for use
   prev_state    = customization is being performed
   nfs_vers      = 3
   nfs_sec       = sys
   location      = /nim/spot/AIX71TL0SPOT/usr
   version       = 7
   release       = 1
   mod           = 0
   oslevel_r     = 7100-00
   alloc_count   = 0
   server        = master
   if_supported  = chrp.64 ent
   Rstate_result = success

As you  can see the SPOT is not at the level of the NIM.. question: How can I upgrade the SPOT/LPP_Source from the NIM server? Is it possible?


0
Comment
Question by:sminfo
  • 4
  • 3
7 Comments
 
LVL 68

Accepted Solution

by:
woolmilkporc earned 500 total points
ID: 35136577
Hi,

are you sure that the SPOT is at a different level?
lsnim just shows TL 0, the same as the one of the OS.

A way to check for missing fixes in the SPOT:

nim -o fix_query -a fix_query_flags=c spot_name |grep ":-:" |grep _AIX_ML
The second column contains the backlevel fileset, the first or last column contains the source where to get the missing fix.
You will have to add the "bos.rte.install" fileset from your SP media to the SPOT beforehand:
smitty nim_res_op -> select SPOT -> select "cust" -> select "Source of Install Images" (lpp_source/media/directory) -> select "Fileset Names: bos.rte.install" -> fill in additional options if desired -> Go.

If needed you can update a SPOT by means of NIM just as you would update a running system by installp.

To update from an lpp NIM resource:
smitty nim_update_all -> select the target (the SPOT) -> select lpp_source -> fill in additional options if desired -> Go.

To update from an lpp NIM resource OR from a medium/directory:
smitty nim_res_op -> select SPOT -> select "update_all" -> fill in image source -> fill in additional options if desired -> Go.

If you don't have an lpp source at the desired level - well, updating it can be done by either adding all shipped update packages to it (that's the easy way, but will blow up your source a lot), or by adding selected filesets (thats the hard way, but will save space).

Start either method with

smitty nim_task_maint -> Add Software to an lpp_source -> select target (lpp_source) ->  select source (lpp_source/media/directory)

Now, for the "total" method select "ALL" at "SOFTWARE Packages to Add",
for the "select" method hit <F4> at "SOFTWARE Packages to Add" and select what you desire.


wmp
0
 

Author Closing Comment

by:sminfo
ID: 35136649
Hi wmp.. long time no see..:-)

I create the above  lpp and spot from the AIX 7.1 iso files...

Look what I have done: From an 5.3 mksysb I tried to upgrade it to AIX 7.1 using nimadm:

[root@:/] aix7_mksysb_2011_03_09.img -s AIX71TL0SPOT -l AIX71TL0LPP -j data01vg -Y -N MKSYSb7_BIBMDES_TEST          <
Initializing the NIM master.
0505-205 nimadm: The level of bos.alt_disk_install.rte installed in SPOT
AIX71TL0SPOT (7.1.0.1) does not match the NIM master's level (7.1.0.2).
Cleaning up alt_disk_migration on the NIM master.

Let me read carefully your email now.
0
 

Author Comment

by:sminfo
ID: 35136671
Let me tell you about NIM.. It looks to a wonderfgul and great tool  for us.. We have to migrate some AIX partitions from AIX 5.3 on power systems to AIX 7.1 on blades and we want to do this using nimadm on the nim server.. DOnt know if it's the perfect way to do this upgrade but it seems to work this way... Have you tried nimadm comamnd?

Thanks wmp.
0
Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

 

Author Comment

by:sminfo
ID: 35136679
Sorry, the nimadm command is:

 nimadm -T MKSYSb_BIBMDES_TEST -O /LPAR_MKSYSB/bibmdesaix7_mksysb_2011_03_09.img -s AIX71TL0SPOT -l AIX71TL0LPP -j data01vg -Y -N MKSYSb7_BIBMDES_TEST
0
 
LVL 68

Expert Comment

by:woolmilkporc
ID: 35136714
I don't use it very often.

I usually perform migrations to such distant new levels (if I have new hardware as well) by doing a fresh install and customization of the base OS on the new hardware, to then migrate the data VGs either by backup/restore (if no shared storage) or (usually) by importvg.

If there is no new hardware I try to avoid such distant upgrades and use alt_disk_install without NIM where possible. We can now mount ISO images using VIO or IVM to any LPAR, so I use NIM only for standalone boxes.

wmp
0
 

Author Comment

by:sminfo
ID: 35136799
But it does means I can not use nimadm for this upgrade, no?  I have always used fresh install on new hardware but when I saw this command I saw it very usefu, that's why I want  to test itl....I'm now  migrating this upgrades from a mksysb 5.3 image to AIX 7.1 if I see any problem I'll follow your steps..:-)

Thanks again.
0
 
LVL 68

Expert Comment

by:woolmilkporc
ID: 35136820
Sure you can use nimadm.
Just update your SPOT as I described to match the level of your Master.
Use your Service Pack 2 medium or lpp-source for this.
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Attention: This article will no longer be maintained. If you have any questions, please feel free to mail me. jgh@FreeBSD.org Please see http://www.freebsd.org/doc/en_US.ISO8859-1/articles/freebsd-update-server/ for the updated article. It is avail…
I promised to write further about my project, and here I am.  First, I needed to setup the Primary Server.  You can read how in this article: Setup FreeBSD Server with full HDD encryption (http://www.experts-exchange.com/OS/Unix/BSD/FreeBSD/A_3660-S…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.

706 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now