search cancel

DCS fails to unstinstall on AIX with an Error 45

book

Article ID: 163027

calendar_today

Updated On:

Products

Data Center Security Monitoring Edition Data Center Security Server Data Center Security Server Advanced

Issue/Introduction

When un-installing the SCSP Agent on AIX, the installation halts with an error that bosboot failed.

0301-165 bosboot: WARNING! bosboot failed - do not attempt to boot device.
#<12/24/16 11:03:41>: Error 45 - bosboot: WARNING! bosboot failed - do not attempt to boot device. An error occurred during bosboot processing.  Please rerun the 'bosboot -ad /dev/ipldevice' command as root.  If the problem persists, please correct the problem before reboot.
12/24/16 10:26:49: Using response file /etc/sisips/SYMCsdcss.response
12/24/16 10:26:49: #--- Start pre-remove <pid=12345678> -------
SDCSS IDS A6gent is not running
12/24/16 10:26:49: IDS Agent stopped successfully.
SDCSS IPS Agent is not running
12/24/16 10:26:49: IPS Agent stopped successfully.
SDCSS Util Service is not running
12/24/16 10:26:49: IPS Util Service stopped successfully.
12/24/16 10:26:49: uninstallAgent: Unloading/removing drivers..
var/opt/freeware/tmp/rpm-tmp.16284[17]: /etc/methods/sisipsctrl:  not found.
var/opt/freeware/tmp/rpm-tmp.16284[17]: /etc/methods/sisipsctrl:  not found.
12/24/16 10:26:49: Unconfiguring IDS real-time file integrity monitoring driver..
0518-307 odmdelete: 0 objects deleted.
0518-307 odmdelete: 0 objects deleted.
0518-307 odmdelete: 0 objects deleted.
0518-307 odmdelete: 0 objects deleted.
0518-307 odmdelete: 0 objects deleted.
0518-307 odmdelete: 0 objects deleted.
12/24/16 10:26:49: UpdateAIXBootImage: create complete boot image and device. Run 'bosboot -ad /dev/ipldevice'.

0301-108 /usr/lib/boot/bin/mkboot_chrp: Unable to read file blocks. Return code: -1

0301-158 bosboot: mkboot failed to create bootimage.

0301-165 bosboot: WARNING! bosboot failed - do not attempt to boot device.
#<12/24/16 10:27:00>: Error 45 - bosboot: WARNING! bosboot failed - do not attempt to boot device. An error occurred during bosboot processing.  Please rerun the 'bosboot -ad /dev/ipldevice' command as root.  If the problem persists, please correct the problem before reboot.

Cause

The command "bosboot -a" runs as part of the SCSP Agent un-install process. The purpose is to generate a new boot image when modifications have been made to the boot environment. This issue will occur on any AIX server where the bosboot utility is unable to run, but the problem has been particularly observed on systems running EMC Powerpath. This is because bosboot cannot run when the boot disk is an EMC device.

Resolution

Run the command "pprootdev fix" to change the boot device to a non-EMC device.
Create and verify a bosboot wrapper script:
mv /usr/sbin/bosboot /usr/sbin/bosboot.orig            # Rename the bosboot script
touch /usr/sbin/bosboot                                           # Create a new empty bosboot file
head -1 /usr/sbin/bosboot.orig > /usr/sbin/bosboot    # Copy the script header to the new file
echo /usr/sbin/bosboot.orig -ad /dev/ipldevice >> /usr/sbin/bosboot           # Add the modified bosboot command
cat /usr/sbin/bosboot                                              # Check the modified contents (see below**).
chmod +x /usr/sbin/bosboot                                   # Make the new script executable
Run the SCSP installation.
Rename bosboot
mv /usr/sbin/bosboot /usr/sbin/bosboot.csp
mv /usr/sbin/bosboot.orig /usr/sbin/bosboot
** The new bosboot file should contain the following text:

#!/usr/bin/ksh
/usr/sbin/bosboot.orig -ad /dev/ipldevice