Showing posts with label AVDF -. Show all posts
Showing posts with label AVDF -. Show all posts

Monday, 1 June 2020

Collect Diagnostic Logs in AVDF


login audit vault system by 'support' user and then switch to 'root' user.

cd /usr/local/dbfw/bin/priv

and run diagnostic package

./dbfw-diagnostics-package.rb


this command will generate the diagnostics zipfile and write its name to stdout. This may then be copied from the system using any normal method.


chmod 775 /usr/local/dbfw/tmp/diagnostics_avs_2020_06_01_05_35_22_0A6239CD75E1EE716B5428EF358F893D.zip


Diagnostic  file path: /usr/local/dbfw/tmp/

Download the diagnostic file and share with oracle support engineer.


Monday, 18 May 2020

AVDF Sowing failed upgrade after installing pre-upgrade package

We installed AVDF 12.2.0.12 pre-upgrade package and rebooted the machine. After the server  reboot it was showing failed upgrade on console and ssh session.

Error:


SYSTEM_STATE=RECOVERY 
INSTALL_STATE=NOT_APPLICABLE
BOOT_STATE=RUNTIME
MIGRATION_SET=POSTRDBMS
MIGRATION_SET_HASH=1000F81C5C6727EF98748CA8CEF2BDA1FFF2B5E855EA86D4AFEFF19AC7EFC206
MIGRATION_SET_STATE=SUCCEEDED
MIGRATION=87
MIGRATION_STATE=SUCCEEDED
MIGRATION_DETAILS=6C61737420286173206E6F626F647929
UPGRADE_STATE=PRE_UPGRADING 


Solution:

The issue is with the pre-upgrade package in place the RPM is going to trigger a recovery state message.
Remove the pre-upgrade package and update /etc/sysconfig/avdf

SYSTEM_STATE="RUNTIME"
UPGRADE_STATE="NOT_APPLICABLE"

If the warning messages is seen again that its in recovery state

/usr/bin/install -m 0644 -o root -g root /dev/null /etc/motd -- will clear the MOTD and avoid false warnings


AVDF 12.2.0.12 Upgrade Failed



[root@avs upgrade]# /usr/bin/avdf-upgrade --confirm
Please wait while validating SHA256 checksum for /var/dbfw/upgrade/avdf-upgrade-12.2.0.12.0.iso
Checksum validation successfull for /var/dbfw/upgrade/avdf-upgrade-12.2.0.12.0.iso
Mounting /var/dbfw/upgrade/avdf-upgrade-12.2.0.12.0.iso on /images
mount: /var/dbfw/upgrade/avdf-upgrade-12.2.0.12.0.iso is write-protected, mounting read-only
Successfuly mounted /var/dbfw/upgrade/avdf-upgrade-12.2.0.12.0.iso on /images

Power loss during upgrade may cause data loss. Do not power
off during upgrade.

Please review Note ID 2235931.1 for a current list of known issues.
Failed to apply update: Not all processes were stopped: 35700 or the processes have been restarted.
Failed to apply update: /images/upgrade/lib/common.rb:606:in `stop_nonroot_processes'
upgrade.rb:107:in `upgrade'
upgrade.rb:258:in `<main>'
Unmounted /var/dbfw/upgrade/avdf-upgrade-12.2.0.12.0.iso on /images

Solution:
If you have open multiple ssh sessions please close all sessions and reconnect only one ssh session and start your upgrade or simply start your upgrade by taking Audit Vault server's console.