Thursday, December 16, 2021

Install/Configure Oracle Autonomous Health Framework

 

at least 10GB needed on local filesystem for data repository.

https://docs.oracle.com/en/engineered-systems/health-diagnostics/autonomous-health-framework/index.html

--as oracle user

export AHF_HOME=<path_to_sw_home>


-create ahf root owned directories

oracle> mkdir -p $AHF_HOME/ahf/data

oracle> sudo chown -R root:root $AHF_HOME/ahf


--as root user

cd /<tfa_software_binary_stage>/TFA/21.3.3_30166242


export AHF_OVERRIDE_INSTALL_CHECKS=1

./ahf_setup -silent -local -ahf_loc $AHF_HOME/ahf -data_dir $AHF_HOME/ahf/data


AHF Installer for Platform Linux Architecture x86_64

AHF Installation Log : /tmp/ahf_install_213300_39838_2021_12_15-16_58_59.log

Starting Autonomous Health Framework (AHF) Installation

AHF Version: 21.3.3 Build Date: 202112130225

AHF Location : $AHF_HOME/ahf/oracle.ahf

Suppressing 'AHF-00014: AHF Location $AHF_HOME/ahf/oracle.ahf is not owned by root in directory hierarchy' as AHF_OVERRIDE_INSTALL_CHECKS=1

AHF Data Directory : $AHF_HOME/ahf/oracle.ahf/data

Suppressing AHF-00014: AHF Data Location $AHF_HOME/ahf/oracle.ahf/data is not owned by root in directory hierarchy as AHF_OVERRIDE_INSTALL_CHECKS=

Extracting AHF to $AHF_HOME/ahf/oracle.ahf

Configuring TFA Services

Discovering Nodes and Oracle Resources

Not generating certificates as GI discovered

Starting TFA Services

Created symlink from /etc/systemd/system/multi-user.target.wants/oracle-tfa.service to /etc/systemd/system/oracle-tfa.service.

Created symlink from /etc/systemd/system/graphical.target.wants/oracle-tfa.service to /etc/systemd/system/oracle-tfa.service.

.--------------------------------------------------------------------------------.

| Host        | Status of TFA | PID   | Port | Version    | Build ID             |

+-------------+---------------+-------+------+------------+----------------------+

| <host_name> | RUNNING       | 41142 | 5002 | 21.3.3.0.0 | 21330020211213022521 |

'-------------+---------------+-------+------+------------+----------------------'

Running TFA Inventory...

Adding default users to TFA Access list...

.----------------------------------------------------------------------------.

|                        Summary of AHF Configuration                        |

+-----------------+----------------------------------------------------------+

| Parameter       | Value                                                    |

+-----------------+----------------------------------------------------------+

| AHF Location    | $AHF_HOME/ahf/oracle.ahf                   |

| TFA Location    | $AHF_HOME/ahf/oracle.ahf/tfa               |

| Orachk Location | $AHF_HOME/ahf/oracle.ahf/orachk            |

| Data Directory  | $AHF_HOME/ahf/oracle.ahf/data              |

| Repository      | $AHF_HOME/ahf/oracle.ahf/data/repository   |

| Diag Directory  | $AHF_HOME/ahf/oracle.ahf/data/<host_name>/diag |

'-----------------+----------------------------------------------------------'


Starting orachk scheduler from AHF ...

AHF binaries are available in $AHF_HOME/ahf/oracle.ahf/bin

AHF is successfully installed

Moving /tmp/ahf_install_213300_39838_2021_12_15-16_58_59.log to $AHF_HOME/ahf/oracle.ahf/data/<hostname>/diag/ahf/


--as oracle

-check install

oracle> cd $AHF_HOME/ahf/oracle.ahf/bin

oracle> systemctl status oracle-tfa.service

● oracle-tfa.service - Oracle Trace File Analyzer

   Loaded: loaded (/etc/systemd/system/oracle-tfa.service; enabled; vendor preset: disabled)

   Active: active (running) since Wed 2021-12-15 17:41:59 PST; 18min ago

 Main PID: 33185 (init.tfa)

   CGroup: /system.slice/oracle-tfa.service

           ├─33185 /bin/sh /etc/init.d/init.tfa run >/dev/null 2>&1 </dev/null

           ├─33392 $AHF_HOME/ahf/oracle.ahf/jre/bin/java -server -Xms128m -Xmx256m -Djava.awt.headless=true -Ddisable.checkF...

           └─63448 /bin/sleep 30


oracle> cd $AHF_HOME/ahf/oracle.ahf/bin

oracle> ./tfactl status

.--------------------------------------------------------------------------------------------------.

| Host       | Status of TFA | PID   | Port | Version    | Build ID             | Inventory Status |

+------------+---------------+-------+------+------------+----------------------+------------------+

| <hostname> | RUNNING       | 33392 | 5002 | 21.3.3.0.0 | 21330020211213022521 | COMPLETE         |

'------------+---------------+-------+------+------------+----------------------+------------------'

OR more verbose from ahfctl


oracle> $AHF_HOME/ahf/oracle.ahf/bin

oracle> ./ahfctl statusahf

.--------------------------------------------------------------------------------------------------.

| Host       | Status of TFA | PID   | Port | Version    | Build ID             | Inventory Status |

+------------+---------------+-------+------+------------+----------------------+------------------+

| <hostname> | RUNNING       | 33392 | 5002 | 21.3.3.0.0 | 21330020211213022521 | COMPLETE         |

'------------+---------------+-------+------+------------+----------------------+------------------'


------------------------------------------------------------

ID: orachk.autostart_client_oratier1

------------------------------------------------------------

AUTORUN_FLAGS  =  -usediscovery -profile oratier1 -dball -showpass -tag autostart_client_oratier1 -readenvconfig

COLLECTION_RETENTION  =  7

AUTORUN_SCHEDULE  =  3 2 * * 1,2,3,4,5,6

------------------------------------------------------------

------------------------------------------------------------

ID: orachk.autostart_client

------------------------------------------------------------

AUTORUN_FLAGS  =  -usediscovery -tag autostart_client -readenvconfig

COLLECTION_RETENTION  =  14

AUTORUN_SCHEDULE  =  3 3 * * 0

------------------------------------------------------------

orachk daemon is not running


-increase repo size 

oracle> cd $AHF_HOME/ahf/oracle.ahf/bin

oracle> sudo tfactl set reposizeMB=10240

The minimum recommended repository size is 10 GB.

Do you wish to continue with current repository size ? [Y/y/N/n] [N] y

Repository size will consume more than 50% of available space in filesystem.

Do you wish to continue with the new size ? [Y/y/N/n] [N] y

Successfully changed repository size

.----------------------------------------------------------------------------.

| Repository Parameter  | Value                                              |

+-----------------------+----------------------------------------------------+

| Location              | $AHF_HOME/ahf/oracle.ahf/data/reposi |

| Old Maximum Size (MB) | 2022                                               |

| New Maximum Size (MB) | 3072                                               |

| Current Size (MB)     | 20                                                 |

| Status                | OPEN                                               |

'-----------------------+----------------------------------------------------'


oracle> $AHF_HOME/ahf/oracle.ahf/bin/tfactl toolstatus

.------------------------------------------------------------------.

|                   TOOLS STATUS - HOST : <HOSTNAME>                  |

+----------------------+--------------+--------------+-------------+

| Tool Type            | Tool         | Version      | Status      |

+----------------------+--------------+--------------+-------------+

| AHF Utilities        | alertsummary |       21.3.3 | DEPLOYED    |

|                      | calog        |       21.3.3 | DEPLOYED    |

|                      | dbglevel     |       21.3.3 | DEPLOYED    |

|                      | grep         |       21.3.3 | DEPLOYED    |

|                      | history      |       21.3.3 | DEPLOYED    |

|                      | ls           |       21.3.3 | DEPLOYED    |

|                      | managelogs   |       21.3.3 | DEPLOYED    |

|                      | menu         |       21.3.3 | DEPLOYED    |

|                      | orachk       |       21.3.3 | DEPLOYED    |

|                      | param        |       21.3.3 | DEPLOYED    |

|                      | ps           |       21.3.3 | DEPLOYED    |

|                      | pstack       |       21.3.3 | DEPLOYED    |

|                      | summary      |       21.3.3 | DEPLOYED    |

|                      | tail         |       21.3.3 | DEPLOYED    |

|                      | triage       |       21.3.3 | DEPLOYED    |

|                      | vi           |       21.3.3 | DEPLOYED    |

+----------------------+--------------+--------------+-------------+

| Development Tools    | oratop       |       14.1.2 | DEPLOYED    |

+----------------------+--------------+--------------+-------------+

| Support Tools Bundle | darda        | 2.10.0.R6036 | DEPLOYED    |

|                      | oswbb        |        8.3.2 | RUNNING     |

|                      | prw          | 12.1.13.11.4 | NOT RUNNING |

'----------------------+--------------+--------------+-------------'

oracle> cd $AHF_HOME/ahf/oracle.ahf/bin

oracle> ./ahfctl -h

Usage : ahfctl <command> [options]

        | applypatch

        | celldiagcollect

        | checkpassword

        | checkupload

        | compliance

        | get

        | getupgrade

        | getupload

        | import

        | loadpolicy

        | querypatch

        | redact

        | rmap

        | rollbackpatch

        | set

        | setpassword

        | setupgrade

        | setupload

        | showrepo

        | startahf

        | statusahf

        | stopahf

        | uninstall

        | unloadpolicy

        | unset

        | unsetpassword

        | unsetupgrade

        | unsetupload

        | upgrade

        | upload

        | version

For detailed help on each command use: ahfctl <command> -h


For detailed help on each command use: ahfctl <command> -h


- for most detailed analysis, use root admin user.

root#> $AHF_HOME/ahf/oracle.ahf/bin/tfactl menu

Trace File Analyzer Collector Menu System

=========================================

TFA Main Menu

      The Oracle Trace File Analyzer Menu provides a simple

      interface to the TFA tools.


      Select one of the following categories:


        1.  System Analysis

        2.  Collections

        3.  Administration


    (B)ack   (M)ain   (H)elp   E(x)it

    Please enter your selection :


- tfactl menu details

 1. System Analysis

       Select one of the following categories:     

         1. Summary

         2. Events

         3. Analyze logs

         4. TFA Utilities

         5. Support Tool Bundle

         6. Tools status             

  2. Collections

      Select one of the following options:      

        1. Default Collection

        2. SRDC Collection

        3. Engineered System Collection

        4. Advanced Collection     

  3.Administration

    Select One of the following options:      

      1. Version & status

      2. Start, stop & auto start

      3. Hosts & ports

      4. Settings

      5. Actions submitted

      6. Manage Database logs

      7. Tracing Level

      8. Users

      9. Collect TFA Diagnostic Data









No comments:

Post a Comment