ALT_DISK_COPY fallisce a causa di LDR_PRELOAD valorizzato

ALT_DISK_COPY fallisce a causa di LDR_PRELOAD valorizzato

alt_disk_copy con upgrade fallisce con errori relativi a dynatrace:

##################################################
Tue Mar 31 10:51:45 CEST 2020
cmd: /usr/sbin/alt_disk_copy -d hdisk1 -B update_all -l /mnt/AIX/PTF/Aix-72-03-03-FULL/ -e
Calling mkszfile to create new /image.data file.
Checking disk sizes.
Creating cloned rootvg volume group and associated logical volumes.
Creating logical volume alt_hd5
Creating logical volume alt_hd6
Creating logical volume alt_hd8
Creating logical volume alt_hd4
Creating logical volume alt_hd2
Creating logical volume alt_hd9var
Creating logical volume alt_hd3
Creating logical volume alt_hd1
Creating logical volume alt_hd10opt
Creating logical volume alt_hd11admin
Creating logical volume alt_lg_dumplv
Creating logical volume alt_livedump
Creating logical volume alt_nagios
Creating logical volume alt_fslv00
Creating logical volume alt_logs
Creating logical volume alt_ocsinv
Creating logical volume alt_netbackup
Creating logical volume alt_bmc
Creating /alt_inst/ file system.
Creating /alt_inst/admin file system.
Creating /alt_inst/download file system.
Creating /alt_inst/home file system.
Creating /alt_inst/logs file system.
Creating /alt_inst/opt file system.
Creating /alt_inst/opt/bmc file system.
Creating /alt_inst/opt/nagios file system.
Creating /alt_inst/opt/netbackup file system.
Creating /alt_inst/opt/ocsinventory file system.
Creating /alt_inst/tmp file system.
Creating /alt_inst/usr file system.
Creating /alt_inst/var file system.
Creating /alt_inst/var/adm/ras/livedump file system.
Generating a list of files
for backup and restore into the alternate file system…
Backing-up the rootvg files and restoring them to the
alternate file system…
0505-148 alt_disk_install: WARNING: an error occurred during backup.
Modifying ODM on cloned disk.
Building boot image on cloned disk.
exec(): 0509-036 Cannot load program /usr/bin/ksh because of the following errors:
0509-150 Dependent module /opt/dynatrace/oneagent/agent/lib/liboneagentproc.so could not be loaded.
0509-022 Cannot load module /opt/dynatrace/oneagent/agent/lib/liboneagentproc.so.
0509-026 System error: A file or directory in the path name does not exist.
0505-120 alt_disk_install: Error running bosboot in the cloned
root volume group.
Cleaning up.

Abbiamo aperto un case al supporto che ha rilevato che Dynatrace non è installato ma una libreria del prodotto è referenziata da una variabile di ambiente.

LDR_PRELOAD=/opt/dynatrace/oneagent/agent/lib/liboneagentproc.so

Eliminando la variabile l’esecuzione di alt_disk_copy termina correttamente senza errori.

Tags:

Lascia un commento

Il tuo indirizzo email non sarà pubblicato. I campi obbligatori sono contrassegnati *

Questo sito usa Akismet per ridurre lo spam. Scopri come i tuoi dati vengono elaborati.

%d blogger hanno fatto clic su Mi Piace per questo: