Installing an ifix in AIX
Note: Reference took from IBM
1. To
preview the installation of an interim fix package called games.020303.epkg.Z,
enter:
# emgr -p -e
games.020303.epkg.Z
2. To
install the interim fix package called games.020303.epkg.Z and
automatically expand file systems if additional space is needed, enter:
# emgr -X -e
games.020303.epkg.Z
3. To list
all interim fixes on the system, enter:
# emgr -l
4. To do a
level 3 listing of interim fix label games, enter:
# emgr -lv3 -L games
5. To remove
the interim fix with label games, enter:
# emgr -r -L games
6. To
preview the removal of the interim fix labels in file /tmp/myfixes,
enter:
# emgr -rp -f
/tmp/myfixes
7. To check
all interim fixes with verification level 2, enter:
# emgr -cv2
8. To check interim
fix ID number 3 with verification level 1 (the default verification
level), enter:
# emgr -c -n3
9. To check interim
fix with VUID of 000775364C00020316020703 and
verification level 3, enter:
# emgr -u
000775364C00020316020703 -c -v3
10. To list
all locked packages and their interim fix labels, enter:
# emgr -P
11. To list
all interim fix labels that have locked the installp package bos.rte.lvm,
enter:
# emgr -P bos.rte.lvm
12. To
mount-install the interim fix package called games.020303.epkg.Z and
suppress AIX bosboot, enter:
# emgr -e games.020303.epkg.Z
-mb
13. To mount
all interim fix files that have been mount-installed on the system by
using the -m option, enter:
# emgr -M
14. To
unmount all interim fix files associated with interim fix label games,
enter:
# emgr -U -L games
15. To apply
an interim fix package called kernelmod.031007.epkg.Z with
concurrent updates to the system memory, enter:
# emgr -i
kernelmod.031007.epkg.Z
16. To commit
the concurrent updates associated with the interim fix label kernelmod to
the disk, enter:
# emgr -C -L kernelmod
17. To apply
an interim fix package called kernelmod2.031007.epkg.Z with
concurrent updates to the system memory, and also to commit the concurrent
updates to the disk, enter:
# emgr -i
kernelmod2.031007.epkg.Z -C
18. To
display level 3 verbosity output on interim fix package test.102403.epkg.Z,
enter:
# emgr -v3 -d
test.102403.epkg.Z
Note: Below exercise was
performed on a Non Prod server and required reboot.
root@lpar8(/)#oslevel -s
6100-07-01-1141
root@lpar8(/)#cd
root@lpar8(/)#ls –ltr |grep IV16*
-rw-r--r-- 1 root
system 7191445 Oct 29 11:14
IV16587s01.epkg.Z
root@lpar8(/)#
root@lpar8(/)#emgr -l
There
is no efix data on this system.
root@lpar8(/)#
root@lpar8(/)#emgr -d -e IV16587s01.epkg.Z
+-----------------------------------------------------------------------------+
Efix
Manager Initialization
+-----------------------------------------------------------------------------+
Initializing
log /var/adm/ras/emgr.log ...
Efix
package file is: /backup8/IV16587s01.epkg.Z
MD5
generating command is /usr/bin/csum
Could
not load program /usr/bin/csum:
Dependent module libclic.a(shr.o) could
not be loaded.
Could
not load module libclic.a(shr.o).
System
error: No such file or directory
emgr:
0645-172 ATTENTION: Error generating MD5 checksum.
Accessing
efix metadata ...
Verifying
efix control file ...
+-----------------------------------------------------------------------------+
Efix
Attributes
+-----------------------------------------------------------------------------+
LABEL: IV16587s01
EFIX
FILES: 3
FILE
NUMBER: 1
LOCATION: /usr/sbin/trustchk
FILE
NUMBER: 2
LOCATION: /usr/ccs/lib/libc.a
FILE
NUMBER: 3
LOCATION: /usr/ccs/lib/libc.a.min
+-----------------------------------------------------------------------------+
Operation
Summary
+-----------------------------------------------------------------------------+
emgr:
0645-140 ATTENTION: emgr has issued 1 attention notice(s).
Such
notices may not indicate an immediate failure, but may require
further
attention. Please see the output above or the log for more details.
Log
file is /var/adm/ras/emgr.log
EPKG
NUMBER LABEL OPERATION RESULT
=========== ============== ================= ==============
1 IV16587s01 DISPLAY SUCCESS
Return
Status = SUCCESS
root@lpar8(/backup8)#
Run a preview installation
root@lpar8(/)#emgr -p -e IV16587s01.epkg.Z
*******************************************************************************
EFIX
MANAGER PREVIEW START
*******************************************************************************
+-----------------------------------------------------------------------------+
Efix
Manager Initialization
+-----------------------------------------------------------------------------+
Initializing
log /var/adm/ras/emgr.log ...
Efix
package file is: /backup8/IV16587s01.epkg.Z
MD5
generating command is /usr/bin/csum
Could
not load program /usr/bin/csum:
Dependent module libclic.a(shr.o) could
not be loaded.
Could
not load module libclic.a(shr.o).
System
error: No such file or directory
emgr:
0645-172 ATTENTION: Error generating MD5 checksum.
Accessing
efix metadata ...
Processing
efix label "IV16587s01" ...
Verifying
efix control file ...
+-----------------------------------------------------------------------------+
Installp
Prerequisite Verification
+-----------------------------------------------------------------------------+
Verifying
prerequisite file ...
Checking
prerequisites ...
Prerequisite
Number: 1
Fileset: bos.rte.libc
Minimal Level: 6.1.7.0
Maximum Level: 6.1.7.0
Actual Level: 6.1.7.0
Type: PREREQ
Requisite Met: yes
All
prerequisites have been met.
+-----------------------------------------------------------------------------+
Processing
APAR reference file
+-----------------------------------------------------------------------------+
ATTENTION:
Interim fix is enabled for automatic removal by installp.
+-----------------------------------------------------------------------------+
Efix
Attributes
+-----------------------------------------------------------------------------+
LABEL: IV16587s01
PACKAGING
DATE: Fri Mar 16 15:37:02 CDT 2012
ABSTRACT: efix fro APAR IV16587
PACKAGER
VERSION: 7
VUID: 00CCCC5B4C00031615030112
REBOOT
REQUIRED: yes
BUILD
BOOT IMAGE: yes
PRE-REQUISITES: yes
SUPERSEDE: no
PACKAGE
LOCKS: no
E2E
PREREQS: no
FIX
TESTED: no
ALTERNATE
PATH: None
EFIX
FILES: 3
Install
Scripts:
PRE_INSTALL: no
POST_INSTALL: no
PRE_REMOVE: no
POST_REMOVE: no
File
Number: 1
LOCATION: /usr/sbin/trustchk
FILE TYPE: Standard (file or executable)
INSTALLER: installp
SIZE: 1060
ACL: DEFAULT
CKSUM: 00396
PACKAGE: bos.rte.security
MOUNT INST: no
File
Number: 2
LOCATION: /usr/ccs/lib/libc.a
FILE TYPE: Standard (file or executable)
INSTALLER: installp
SIZE: 23128
ACL: DEFAULT
CKSUM:
59990
PACKAGE: bos.rte.libc
MOUNT INST: no
File
Number: 3
LOCATION: /usr/ccs/lib/libc.a.min
FILE TYPE: Standard (file or executable)
INSTALLER: installp
SIZE: 6256
ACL: DEFAULT
CKSUM: 12626
PACKAGE: bos.rte.libc
MOUNT INST: no
+-----------------------------------------------------------------------------+
Efix
Description
+-----------------------------------------------------------------------------+
==========================
EFIX DESCRIPTION =============================
Description
: Final resolution for DST off-by-one-hour issues
Official
APAR Number :IV16587
Level
Fix was built at : AIX 6.1 TL 07 SP 01
Instructions
to install the fix :
emgr -pe IV16587s01.120316.epkg.Z //preview
emgr -Xe IV16587s01.120316.epkg.Z
//install
Instructions
to uninstall:
emgr -rL IV16587s01 //uninstall
=========================================================================
+-----------------------------------------------------------------------------+
Efix
Lock Management
+-----------------------------------------------------------------------------+
Checking
locks for file /usr/sbin/trustchk ...
Checking
locks for file /usr/ccs/lib/libc.a ...
Checking
locks for file /usr/ccs/lib/libc.a.min ...
All
files have passed lock checks.
+-----------------------------------------------------------------------------+
Space
Requirements
+-----------------------------------------------------------------------------+
Checking
space requirements ...
Space
statistics (in 512 byte-blocks):
File
system: /usr, Free: 205168, Required: 64880, Deficit: 0.
File
system: /tmp, Free: 253280, Required: 104900, Deficit: 0.
+-----------------------------------------------------------------------------+
Reboot
Processing
+-----------------------------------------------------------------------------+
***
NOTICE ***
This
efix package requires the target system to be rebooted after the current
operation
is complete. It is recommended that you reboot the target system as
soon
as possible after installation to avoid disruption of current functionality.
*******************************************************************************
EFIX
MANAGER PREVIEW END
*******************************************************************************
+-----------------------------------------------------------------------------+
Operation
Summary
+-----------------------------------------------------------------------------+
emgr:
0645-140 ATTENTION: emgr has issued 1 attention notice(s).
Such
notices may not indicate an immediate failure, but may require
further
attention. Please see the output above or the log for more details.
Log
file is /var/adm/ras/emgr.log
EPKG
NUMBER LABEL OPERATION RESULT
=========== ============== ================= ==============
1 IV16587s01 INSTALL PREVIEW SUCCESS
ATTENTION:
system reboot will be required by the actual (not preview) operation.
Please
see the "Reboot Processing" sections in the output above or in the
/var/adm/ras/emgr.log
file.
Return
Status = SUCCESS
root@lpar8(/)#
Install ifix
root@lpar8(/)#emgr -e IV16587s01.epkg.Z
+-----------------------------------------------------------------------------+
Efix
Manager Initialization
+-----------------------------------------------------------------------------+
Initializing
log /var/adm/ras/emgr.log ...
Efix
package file is: /backup8/IV16587s01.epkg.Z
MD5
generating command is /usr/bin/csum
Could
not load program /usr/bin/csum:
Dependent module libclic.a(shr.o) could
not be loaded.
Could
not load module libclic.a(shr.o).
System
error: No such file or directory
emgr:
0645-172 ATTENTION: Error generating MD5 checksum.
Accessing
efix metadata ...
Processing
efix label "IV16587s01" ...
Verifying
efix control file ...
+-----------------------------------------------------------------------------+
Installp
Prerequisite Verification
+-----------------------------------------------------------------------------+
Verifying
prerequisite file ...
Checking
prerequisites ...
Prerequisite
Number: 1
Fileset: bos.rte.libc
Minimal Level: 6.1.7.0
Maximum Level: 6.1.7.0
Actual Level: 6.1.7.0
Type: PREREQ
Requisite Met: yes
All
prerequisites have been met.
+-----------------------------------------------------------------------------+
Processing
APAR reference file
+-----------------------------------------------------------------------------+
ATTENTION:
Interim fix is enabled for automatic removal by installp.
+-----------------------------------------------------------------------------+
Efix
Attributes
+-----------------------------------------------------------------------------+
LABEL: IV16587s01
PACKAGING
DATE: Fri Mar 16 15:37:02 CDT 2012
ABSTRACT: efix fro APAR IV16587
PACKAGER
VERSION: 7
VUID: 00CCCC5B4C00031615030112
REBOOT
REQUIRED: yes
BUILD
BOOT IMAGE: yes
PRE-REQUISITES: yes
SUPERSEDE: no
PACKAGE
LOCKS: no
E2E
PREREQS: no
FIX
TESTED: no
ALTERNATE
PATH: None
EFIX
FILES: 3
Install
Scripts:
PRE_INSTALL: no
POST_INSTALL: no
PRE_REMOVE: no
POST_REMOVE: no
File
Number: 1
LOCATION: /usr/sbin/trustchk
FILE TYPE: Standard (file or executable)
INSTALLER: installp
SIZE: 1060
ACL: DEFAULT
CKSUM: 00396
PACKAGE: bos.rte.security
MOUNT INST: no
File
Number: 2
LOCATION: /usr/ccs/lib/libc.a
FILE TYPE: Standard (file or executable)
INSTALLER: installp
SIZE: 23128
ACL: DEFAULT
CKSUM: 59990
PACKAGE: bos.rte.libc
MOUNT INST: no
File
Number: 3
LOCATION: /usr/ccs/lib/libc.a.min
FILE TYPE: Standard (file or executable)
INSTALLER: installp
SIZE: 6256
ACL: DEFAULT
CKSUM: 12626
PACKAGE: bos.rte.libc
MOUNT INST: no
+-----------------------------------------------------------------------------+
Efix
Description
+-----------------------------------------------------------------------------+
==========================
EFIX DESCRIPTION =============================
Description
: Final resolution for DST off-by-one-hour issues
Official
APAR Number :IV16587
Level
Fix was built at : AIX 6.1 TL 07 SP 01
Instructions
to install the fix :
emgr -pe IV16587s01.120316.epkg.Z
//preview
emgr -Xe IV16587s01.120316.epkg.Z
//install
Instructions
to uninstall:
emgr -rL IV16587s01 //uninstall
=========================================================================
+-----------------------------------------------------------------------------+
Efix
Lock Management
+-----------------------------------------------------------------------------+
Checking
locks for file /usr/sbin/trustchk ...
Checking
locks for file /usr/ccs/lib/libc.a ...
Checking
locks for file /usr/ccs/lib/libc.a.min ...
All
files have passed lock checks.
+-----------------------------------------------------------------------------+
Space
Requirements
+-----------------------------------------------------------------------------+
Checking
space requirements ...
Space
statistics (in 512 byte-blocks):
File
system: /usr, Free: 205168, Required: 64880, Deficit: 0.
File
system: /tmp, Free: 253280, Required: 104900, Deficit: 0.
+-----------------------------------------------------------------------------+
Efix
Installation Setup
+-----------------------------------------------------------------------------+
Unpacking
efix package file ...
Initializing
efix installation ...
+-----------------------------------------------------------------------------+
Efix
State
+-----------------------------------------------------------------------------+
Setting
efix state to: INSTALLING
+-----------------------------------------------------------------------------+
File
Archiving
+-----------------------------------------------------------------------------+
Saving
all files that will be replaced ...
Save
directory is: /usr/emgrdata/efixdata/IV16587s01/save
File
1: Saving /usr/sbin/trustchk as EFSAVE1 ...
File
2: Saving /usr/ccs/lib/libc.a as EFSAVE2 ...
File
3: Saving /usr/ccs/lib/libc.a.min as EFSAVE3 ...
+-----------------------------------------------------------------------------+
Efix
File Installation
+-----------------------------------------------------------------------------+
Installing
all efix files:
Installing
efix file #1 (File: /usr/sbin/trustchk) ...
Installing
efix file #2 (File: /usr/ccs/lib/libc.a) ...
Installing
efix file #3 (File: /usr/ccs/lib/libc.a.min) ...
Total
number of efix files installed is 3.
All
efix files installed successfully.
+-----------------------------------------------------------------------------+
Package
Locking
+-----------------------------------------------------------------------------+
Processing
package locking for all files.
File
1: locking installp fileset bos.rte.security.
File
2: locking installp fileset bos.rte.libc.
File
3: installp fileset bos.rte.libc is already locked by emgr.
All
package locks processed successfully.
+-----------------------------------------------------------------------------+
Reboot
Processing
+-----------------------------------------------------------------------------+
***
NOTICE ***
This
efix package requires the target system to be rebooted after the current
operation
is complete. It is recommended that you reboot the target system as
soon
as possible after installation to avoid disruption of current functionality.
+-----------------------------------------------------------------------------+
Efix
State
+-----------------------------------------------------------------------------+
Setting
efix state to: REBOOT REQUIRED
+-----------------------------------------------------------------------------+
Boot
Image Processing
+-----------------------------------------------------------------------------+
Rebuilding
boot image ...
trustchk:
/usr/ccs/lib/libc.a.min: Verification of attributes failed: size
bosboot:
Boot image is 49180 512 byte blocks.
Successfully
rebuilt boot image.
+-----------------------------------------------------------------------------+
Operation
Summary
+-----------------------------------------------------------------------------+
emgr:
0645-140 ATTENTION: emgr has issued 1 attention notice(s).
Such
notices may not indicate an immediate failure, but may require
further
attention. Please see the output above or the log for more details.
Log
file is /var/adm/ras/emgr.log
EPKG
NUMBER LABEL OPERATION RESULT
=========== ============== ================= ==============
1 IV16587s01 INSTALL SUCCESS
ATTENTION:
system reboot is required. Please see the "Reboot Processing"
sections
in the output above or in the /var/adm/ras/emgr.log file.
Return
Status = SUCCESS
root@lpar8(/)#
root@lpar8(/)#emgr -l
ID STATE LABEL INSTALL TIME UPDATED BY ABSTRACT
===
===== ========== ================= ==========
======================================
1 *Q*
IV16587s01 10/29/16 15:23:18
efix fro APAR IV16587
STATE
codes:
S = STABLE
M = MOUNTED
U = UNMOUNTED
Q = REBOOT REQUIRED
B = BROKEN
I = INSTALLING
R = REMOVING
T = TESTED
P = PATCHED
N = NOT PATCHED
SP = STABLE + PATCHED
SN = STABLE + NOT PATCHED
QP = BOOT IMAGE MODIFIED + PATCHED
QN = BOOT IMAGE MODIFIED + NOT PATCHED
RQ = REMOVING + REBOOT REQUIRED
root@lpar8(/)#
Removing an ifix
Note: Make sure
to use label
root@lpar8(/)#emgr -r -L IV16587s01
+-----------------------------------------------------------------------------+
Efix
Manager Initialization
+-----------------------------------------------------------------------------+
Initializing
log /var/adm/ras/emgr.log ...
Accessing
efix metadata ...
Processing
efix label "IV16587s01" ...
+-----------------------------------------------------------------------------+
Efix
Attributes
+-----------------------------------------------------------------------------+
LABEL: IV16587s01
INSTALL
DATE: 10/29/16 15:23:18
STATE: STABLE
ABSTRACT: efix fro APAR IV16587
PACKAGER
VERSION: 7
VUID: 00CCCC5B4C00031615030112
REBOOT
REQUIRED: yes
BUILD
BOOT IMAGE: yes
PRE-REQUISITES: yes
SUPERSEDE: no
PACKAGE
LOCKS: no
E2E
PREREQS: no
FIX
TESTED: no
ALTERNATE
PATH: None
EFIX
FILES: 3
Install
Scripts:
PRE_INSTALL: no
POST_INSTALL: no
PRE_REMOVE: no
POST_REMOVE: no
File
Number: 1
LOCATION: /usr/sbin/trustchk
FILE TYPE: Standard (file or executable)
INSTALLER: installp
SIZE: 1060
ACL: DEFAULT
CKSUM: 00396
PACKAGE: bos.rte.security
MOUNT INST: no
File
Number: 2
LOCATION: /usr/ccs/lib/libc.a
FILE TYPE: Standard (file or executable)
INSTALLER: installp
SIZE: 23128
ACL: DEFAULT
CKSUM: 59990
PACKAGE: bos.rte.libc
MOUNT INST: no
File
Number: 3
LOCATION: /usr/ccs/lib/libc.a.min
FILE TYPE: Standard (file or executable)
INSTALLER: installp
SIZE: 6256
ACL: DEFAULT
CKSUM: 12626
PACKAGE: bos.rte.libc
MOUNT INST: no
+-----------------------------------------------------------------------------+
Efix
Description
+-----------------------------------------------------------------------------+
==========================
EFIX DESCRIPTION =============================
Description
: Final resolution for DST off-by-one-hour issues
Official
APAR Number :IV16587
Level
Fix was built at : AIX 6.1 TL 07 SP 01
Instructions
to install the fix :
emgr -pe IV16587s01.120316.epkg.Z
//preview
emgr -Xe IV16587s01.120316.epkg.Z
//install
Instructions
to uninstall:
emgr -rL IV16587s01 //uninstall
=========================================================================
+-----------------------------------------------------------------------------+
Space
Requirements
+-----------------------------------------------------------------------------+
Checking
space requirements ...
Space
statistics (in 512 byte-blocks):
File
system: /usr, Free: 250016, Required: 35472, Deficit: 0.
File
system: /tmp, Free: 253336, Required: 66901, Deficit: 0.
+-----------------------------------------------------------------------------+
Efix
State
+-----------------------------------------------------------------------------+
Setting
efix state to: REMOVING
+-----------------------------------------------------------------------------+
Package
Locking
+-----------------------------------------------------------------------------+
Processing
package unlocking for all files.
File
3: unlocking installp fileset bos.rte.libc.
File
2: installp fileset bos.rte.libc is already unlocked.
File
1: unlocking installp fileset bos.rte.security.
All
package locks processed successfully.
+-----------------------------------------------------------------------------+
Efix
File Removal
+-----------------------------------------------------------------------------+
Setting
up for removal of efix files ...
Removing
all efix files (in reverse order of installation):
Removing
efix file #3 (File: /usr/ccs/lib/libc.a.min) ...
Successfully
updated the Kernel Authorization Table.
Successfully
updated the Kernel Role Table.
Successfully
updated the Kernel Command Table.
Successfully
updated the Kernel Device Table.
Successfully
updated the Kernel Object Domain Table.
Successfully
updated the Kernel Domains Table.
Removing
efix file #2 (File: /usr/ccs/lib/libc.a) ...
Successfully
updated the Kernel Authorization Table.
Successfully
updated the Kernel Role Table.
Successfully
updated the Kernel Command Table.
Successfully
updated the Kernel Device Table.
Successfully
updated the Kernel Object Domain Table.
Successfully
updated the Kernel Domains Table.
Removing
efix file #1 (File: /usr/sbin/trustchk) ...
Successfully
updated the Kernel Authorization Table.
Successfully
updated the Kernel Role Table.
Successfully
updated the Kernel Command Table.
Successfully
updated the Kernel Device Table.
Successfully
updated the Kernel Object Domain Table.
Successfully
updated the Kernel Domains Table.
Total
number of efix files removed is 3.
+-----------------------------------------------------------------------------+
Reboot
Processing
+-----------------------------------------------------------------------------+
***
NOTICE ***
This
efix package requires the target system to be rebooted after the current
operation
is complete. It is recommended that you reboot the target system as
soon
as possible after installation to avoid disruption of current functionality.
+-----------------------------------------------------------------------------+
Boot
Image Processing
+-----------------------------------------------------------------------------+
Rebuilding
boot image ...
bosboot:
Boot image is 49180 512 byte blocks.
Successfully
rebuilt boot image.
+-----------------------------------------------------------------------------+
Operation
Summary
+-----------------------------------------------------------------------------+
Log
file is /var/adm/ras/emgr.log
EFIX
NUMBER LABEL OPERATION RESULT
=========== ============== ================= ==============
1 IV16587s01 REMOVE SUCCESS
ATTENTION:
system reboot is required. Please see the "Reboot Processing"
sections
in the output above or in the /var/adm/ras/emgr.log file.
Return
Status = SUCCESS
root@lpar8(/)#
Verify
root@lpar8(/)#emgr -l
There
is no efix data on this system.
root@lpar8(/)#