I'm SO confused about the question of whether I can or cannot update an lpp_source with a bunch of patches. Someone I know who I think knows a lot about AIX and NIM says I should never do this. But I'm looking at the Redbook "NIM from A to Z in AIX 5L", which seems to describe exactly how to do it, in section 5.1. And now, I just read APAR IZ03167, which seems to say do NOT do this. Let me be more specific.
I have an lpp_source and SPOT that correspond to AIX level 5300-11-02-1007. All my servers are running that level right now. I just downloaded all the filesets to upgrade my servers to level 5300-12-02-1036. I have done an upgrade of one of my toy servers from the first mentioned level to the second, using these filesets in a "smitty update_all". This seemed to work perfectly.
My question is: How do I create an lpp_source and SPOT that correspond to the new level, 5300-12-02-1036?
The Redbook I mentioned describes in detail how to do a "smitty nim_update" on the lpp_source, using, apparently, that same set of filesets that I fed into the update_all. Then, it says, create a SPOT from this updated lpp_source, and you're done.
My friend, who seems to know all about NIM and AIX in general, says to never do this, because Bad Things Will Happen. She says the only reliable way is to order a full CD/DVD set of 5300-12-02-1036, and build the lpp_source from that. I think that's what APAR IZ03167 says, too.
Can anyone give me a definitive answer? I hate to have to order a full installable media set every time I want to install a minor upgrade. Is the Redbook wrong, and I really should never try update the lpp_source?
My question is: How do I create an lpp_source and SPOT that correspond to the new level, 5300-12-02-1036?
Answer by example:
Overview
Whenever there is a need to update the Technology Level (TL) or Service Pack (SP) in any NIM client, the first thing you need to do is to update your NIM master server. After the NIM master server is updated, you will need to update the lpp_source follow by the SPOT. If your NIM environment has a mixture of TL levels, hen in order to have some NIM clients at the original level, you need to keep a copy of the original lpp_source and SPOT level. These clients will still need the riginal level of lpp_source and SPOT. In the next section, we describe the steps to perform the lpp_source update. In this example, we have an original lpp_source nd SPOT level at TL04, and we are creating a new TL05 lpp_source and SPOT. LPP Source
1. Create a new AIX 5L V5.3 5372 lpp_source directory, for example, /nim_export/aix53/5300-07-02-0806, and copy the AIX 5L V5.3 5371 lpp_source directory into it.
log into the ms
For example (update with your software levels appropriately):
Run fix_lpp_dir.
For example:
2. Create an AIX 5L V5.3 5372 lpp_source resource from the AIX 5L V5.3 5372 lpp_source directory, as shown in Example 5-1. The following steps are followed when using the SMIT menus:
Or, by using SMIT Fast Path: Note: The NIM server must be at the same or higher level than the NIM clients. You need to upgrade your NIM server before upgrading your NIM client.
Important: Ensure that the files in /nim_export/aix53/lpp_source/5372lpp_res/installp/ppc have Read permission for everybody. If they do not, use the chmod 644 * command inside the lpp_source directory. Also ensure that the ownership of the files is root:system.
Example 5-1 Creating an AIX 5L V5.3 5372 lpp_source
You can also use the command line as follows:
3. Update the TL05 to the LPP-AIX5372 resource as shown in Example 5-2. You use the NIM update peration to perform the task. This operation allows you to update or remove any packages from the lppsource resource. The next steps are followed when using the SMIT menus:
Or, by using SMIT Fast Path:
Media, directory or lpp_source to copy images from /nim_export/aix53/5300-07-02-0806http://ms:8080/DBAprivate/images/attachment_small.png
Example 5-2 Adding software to an lpp_source
You can also use the command line as follows:
After you have updated the TL05 lpp_source, there might be some duplicate updates. You can perform the NIM lppmgr operation to remove them. This operation enables you remove any duplicate software, superseded updates, unnecessary languages, and non-simage software. We recommend that you remove the uplicate software and any superseded updates, but that you do not remove any language software and non-simage filesets unless you are sure that they are not needed for future use. We also recommend that you perform a preview to check what software will be removed before the actual removal.
4. Remove any duplicate updates in lpp_source resource, as shown in Example 5-3. The following steps are followed when using the SMIT menus:
Or, by using SMIT Fast Path:
Example 5-3 Removing duplicate updates in the lpp_source
You can also use the command line as follows:
SPOT
Next, we need to create the AIX 5L V5.3 TL05 SPOT. We will create the SPOT using the latest LPP-AIX5372 lpp_source. Note: this will take quite a while to run, perhaps 30 minutes.
5. Create the AIX 5L V5.3 TL05’s SPOT as shown in Example 5-4. The following steps are followed when using the SMIT menus:
Example 5-4 Creating a SPOT
Note: Run lsnim -l LPP-AIX5372 to check the Rstate and simages. Rstateshould show Ready for use and simages = yes.
Check
After the updated lpp_source and SPOT are created, you can perform a NIM check operation to check the usability of these resources. When you perform the NIM check operation on the lpp_source resource, it rebuilds the table of contents (.toc) file in the lpp_source directory and checks whether all the necessary filesets are in the directory to qualify the lpp_source for the simage attribute.
Check the usability of the lpp_source and SPOT as shown in Example 5-5. The following steps are followed when using the SMIT menus:
Example 5-5 Checking the SPOT
Check the Status of a SPOT
After the lppsource and SPOT resources are updated and ready for use, you can perform software maintenance on NIM clients. Refer to “Client-initiated software maintenance tasks (“pull”)” on page 496 for details.
---------- Post updated at 09:52 AM ---------- Previous update was at 09:45 AM ----------
I always make a new SPOT and LPP_SOURCE.
Copy the old LPP_SOURCE to a new directory. Then update that LPP_SOURCE with the new patches.
Copy your 5300-11-02-1007 to 5300-12-02-1036 and then patch 5300-12-02-1036.
This way you have both versions. You need both versions as long as you have severs at each level.
If you update your LPP_SOURCE and need to boot a server that has not been updated, you will not be able to boot. The levels of the filesets must match exactly (from my experience).
After every server is updated, and some time has gone by, erase 5300-11-02-1007.
Your 'answer by example' seems to be a direct quote from the Redbook I mentioned.
Your comments at the end seem to say that you have actually done this, more than once, and it works fine. Is this right?
However, APAR IZ03167 contains the following, which seems to me to say one shouldn't update your lpp_source with patches. Maybe I'm reading it wrong. Here's the quote that prompted my original question:
Complete AIX Base Install lpp_sources can contain
Update/PTF/fix filesets, but only those that came on the AIX
Base Install Media the lpp_source was generated from, or those
Update/PTF/fix filesets that IBM Support has instructed be
included in the AIX Base Install lpp_source to resolve an
installation problem.
To place both type of filesets together into one NIM
lpp_source, without proper testing, or without the need to
resolve a installation problem with that level of AIX Base
Install images, this will create a undesirable lpp_source, than
can generate unpredictable results if used to perform any kind
of NIM operation. The use of such lpp_sources is not supported
by IBM.".
This seems to be a warning not to "mix" filesets from installation media with patch filesets. It's not clear what "mix" means. Maybe it means just copying patches into the lpp_source, and assuming all is well. But maybe it says don't do what the Redbook describes in detail how to do.
Try not to mix your lpp_source base install filesets with update filesets. It can potentially lead to problems, when performing new bos installs with the updated lpp_source
What i usually do is create a base install lpp_source , a lpp_source for stable updates, and a lpp_source for latest and greatest updates.
Try not to mix your lpp_source base install filesets with update filesets. It can potentially lead to problems, when performing new bos installs with the updated lpp_source
This in fact is the main reason: do not change resources you used once to install. You will not be able to re-do the installation process for systems you installed using these resources once you changed them.
Quote:
Originally Posted by manifestox
What i usually do is create a base install lpp_source , a lpp_source for stable updates, and a lpp_source for latest and greatest updates.
This is sound advice. Another take would be to copy the base LPPSOURCE and SPOT resources you want to update (fs-copy will do), create new NIM resources from these copies and update into them. This way you still retain the original resources should you need them.
IMHO the most important point in managing a NIM-server is to stay as flexible as possible. If you are able to install any update, base level, fix, etc. separately your flexibility is greater than otherwise.
Thank you for your replies. Actually, I am more concerned about the SPOT than the lpp_source, since I use my NIM server to recover an AIX server if the rootvg were to crap out, and in our annual disaster recovery test. Here's the specific scenario I'm concerned with right now:
1. All my servers are running 5.3.0.11. I have an lpp_source and a SPOT which exactly match this AIX level. I also take regular mksysb's to the NIM master, so that in a disaster situation, I can recover my NIM master from a mksysb DVD and backups, and then be ready to recover all other AIX servers from mksysb's on the NIM master.
2. I want to update them all to the latest 5.3.0.12. This is no big deal, since I have downloaded the required patches, and I can simply do a "smitty update_all" on each of them, if I want, and not even worry about the NIM.
3. After the 5.3.0.12 upgrade is done, I want to still be able to install/recover any AIX server from the NIM master, by using the SPOT and mksysb backup there.
QUESTION: How do I best accomplish number (3)?
The advice I have from a Known Good AIX Person (KGAP) is that the SPOT must be of a version NO OLDER than the mksysb I want to recover with it. According to the KGAP, I should NOT try to update my SPOT, but should order a full installable version of AIX to match what all my servers are running, and build an lpp_source and SPOT from that. This seems terribly slow and inefficient, and I am hoping there's a better way. I'd hate to have to order a full AIX DVD set every time I upgrade from 5.3.0.n to 5.3.0.(n+1). So, tell me, please: How do you keep your SPOT in sync with all your AIX servers?
You can actually build a spot from a mksysb. I do not have the flags off the top of my head. But you can use the smit menu and go through the administration of selecting your older mksysb to build a spot off of it.
You can then go about performing a bos recovery through the spot and mksysb.
Hello all,
Relative AIX novice here: I'm trying to clarify the naming of AIX install vs. update media, and how best to name my lpp_sources on my NIM server.
An example:
I have two sets of DVDs from IBM (ordered via Entitled Software Support) sitting in front of me for 7100-03-04. One set... (1 Reply)
Friend's,
I was playing around with NIM in my environment & had a quick question in mind which I didn't/couldn't find answer to, which is -- how to find the name of the NIM server sitting on the NIM client?
All leads to the answer would be much appreciated, many thanks!
-- Souvik (2 Replies)
Hello, I have an AIX6.1 machine which is a nim client to my nim master which is also AIX6.1 machine. I had some problem to perform an installation on my client using smit nim . i removed /etc/niminfo file in order to do the initialization again but when i run the command niminit -a name=client... (0 Replies)
As i have updated a lot of HACMP-nodes lately the question arises how to do it with minimal downtime. Of course it is easily possible to have a downtime and do the version update during this. In the best of worlds you always get the downtime you need - unfortunately we have yet to find this best of... (4 Replies)
Hi all,
I'm trying to understand the requirements for AIX version matching between a SPOT, LPP_SOURCE and my mksysb images. I have a NIM server installed, and I've used it to install new LPARs both from the LPP_SOURCE and from mksysb files. These were based off 7100-00-01.
Recently I created... (1 Reply)
Hi.
I forgot a bundle (X11.dt) in the lpp_source (base OS AIX 7.1). The bundle is now in the CD drive, I need to add it permanently in the lpp_source. What do I have to do ?
- copy (where ?) bundle on my NIM server (how to determine what files to copy to have all elements of the bundle ?) ?... (1 Reply)
Hello everyone
Im trying to backup a nim client from nim master but I got this message
COMMAND STATUS
Command: failed stdout: yes stderr: no
Before command completion, additional instructions may appear below.
0042-001 nim:... (2 Replies)
I try to migrate a NIM server from one server to another.
I try to do a mksysb on NIM server
restore the NIM server's mksysb to a client through NIM installation
shutdown NIM server
start newly installed client as NIM server
Does anyone do this before? who can give me some suggestion? (1 Reply)
My nim master have to updated with new ml 06 .
how do i know which version my nim master is currently?
how to update
nim -o update -a packages=all -a source=/software/aix52ml06 /lpp_sourse
Is this ok..
??
thanks
govind.g (1 Reply)
Hi,
Installing a new version of PROGRESS DB software 9.1c requires us to upgrade AIX to Level Update 4320-02_AIX_ML
( http://techweb.progress.com/kbase/19779 )
How would a do this savely.
This is what i have already.
1) take a system backup.
2) find the level we are on right now.
#... (1 Reply)