Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[minor] Setup Db2 Backup job for Disaster recovery scenario and Compliance/SLA #234

Merged
merged 57 commits into from
Dec 4, 2024

Conversation

mnivedithaa
Copy link
Contributor

@mnivedithaa mnivedithaa commented Nov 28, 2024

Issue: MASCORE-4470

Description

Updates to in Post DB provisioning steps are done except compliance (https://collaborate.mro.com/pages/viewpage.action?spaceKey=MASMS&title=Backup+Configuration+for+AWS)

  1. DB scripts to be run post provisioning and scripts required by automation job are mounted to the job via configmaps and copied to DB2 pod
  2. OC cron job which does database backup is createdif DB backup bucket information is available in the config ibm-db2u-databases.yaml
  3. Reorg tablespace step will be executed if it is not already executed (ie) if the SQL files ALL_TB_REORG.sql, ALL_IX_REORG.sql and ALL_TB_RUNSTATS.sql are not available in DB2 pod
  4. Steps such as creation of roles, Postbackflow script generation, creation of .PROPS file, setting the storage access, creation of backup, temp tablespace removal etc are done as part of this.
  5. All these steps are done only if the below information are available

Details required

  1. DB2 Backup bucket name: This has to be available as secret in AWS secret Manager db2_backup
  2. DB2 Backup bucket endpoint: This has to be available as secret in AWS secret Manager db2_backup
  3. DB2 Backup bucket access key and secret access key: This has to be available as secret in AWS secret Manager db2_backup
  4. Slack notification URL: Slack hook URL to be notified on failure of DB backup.

Testing

Tested in noble4 ajw0111 instance

Job Execution logs:


================================================================================
Settings
================================================================================
ACCOUNT_ID .......................... fyre-noble4-dev
REGION_ID ........................... us-east-2
CLUSTER_ID .......................... noble4
MAS_INSTANCE_ID ..................... ajw0111
MAS_APP_ID .......................... manage
AVP_TYPE ............................ aws
DB2_NAMESPACE ....................... db2u-ajw0111
DB2_INSTANCE_NAME ................... db2wh-ajw0111-manage
DB2_DBNAME .......................... BLUDB

================================================================================
Waiting for pod c-db2wh-ajw0111-manage-db2u-0 to be present before continuing (timeout 300s)
================================================================================
... attempt 1 of 10
NAME                            READY   STATUS    RESTARTS      AGE
c-db2wh-ajw0111-manage-db2u-0   1/1     Running   1 (12d ago)   17d
...... success

================================================================================
Waiting for pod c-db2wh-ajw0111-manage-db2u-0 to report Ready=True before continuing (timeout 300s)
================================================================================
pod/c-db2wh-ajw0111-manage-db2u-0 condition met

================================================================================
Waiting for service c-db2wh-ajw0111-manage-db2u-engn-svc to be present before continuing (timeout 300s)
================================================================================
... attempt 1 of 10
NAME                                   TYPE       CLUSTER-IP      EXTERNAL-IP   PORT(S)           AGE
c-db2wh-ajw0111-manage-db2u-engn-svc   NodePort   172.30.111.94   <none>        50001:31606/TCP   31d
...... success

Creating /mnt/backup/MIRRORLOGPATH in c-db2wh-ajw0111-manage-db2u-0
--------------------------------------------------------------------------------
Defaulted container "db2u" out of: db2u, instdb (init), init-labels (init), init-kernel (init)

Creating /mnt/backup/staging in c-db2wh-ajw0111-manage-db2u-0
--------------------------------------------------------------------------------
Defaulted container "db2u" out of: db2u, instdb (init), init-labels (init), init-kernel (init)

Creating /mnt/backup/bin in c-db2wh-ajw0111-manage-db2u-0
--------------------------------------------------------------------------------
Defaulted container "db2u" out of: db2u, instdb (init), init-labels (init), init-kernel (init)

Getting Instance owner and home directory in c-db2wh-ajw0111-manage-db2u-0
--------------------------------------------------------------------------------
Instance owner is db2inst1
Defaulted container "db2u" out of: db2u, instdb (init), init-labels (init), init-kernel (init)
Instance home directory is /mnt/blumeta0/home/db2inst1

Creating /mnt/blumeta0/home/db2inst1/bin in c-db2wh-ajw0111-manage-db2u-0
--------------------------------------------------------------------------------
Defaulted container "db2u" out of: db2u, instdb (init), init-labels (init), init-kernel (init)

Creating /mnt/blumeta0/home/db2inst1/bin/ITCS104 in c-db2wh-ajw0111-manage-db2u-0
--------------------------------------------------------------------------------
Defaulted container "db2u" out of: db2u, instdb (init), init-labels (init), init-kernel (init)

Creating /mnt/blumeta0/home/db2inst1/Managed in c-db2wh-ajw0111-manage-db2u-0
--------------------------------------------------------------------------------
Defaulted container "db2u" out of: db2u, instdb (init), init-labels (init), init-kernel (init)

Creating /mnt/blumeta0/home/db2inst1/maintenance in c-db2wh-ajw0111-manage-db2u-0
--------------------------------------------------------------------------------
Defaulted container "db2u" out of: db2u, instdb (init), init-labels (init), init-kernel (init)

Copying all the required DB2 scripts in c-db2wh-ajw0111-manage-db2u-0
--------------------------------------------------------------------------------
Defaulted container "db2u" out of: db2u, instdb (init), init-labels (init), init-kernel (init)
  adding: db2-scripts/ (stored 0%)
  adding: db2-scripts/..2024_12_03_14_25_28.1926601078/ (stored 0%)
  adding: db2-scripts/..2024_12_03_14_25_28.1926601078/CopyDBScripts.sh (deflated 65%)
  adding: db2-scripts/..2024_12_03_14_25_28.1926601078/grant_check.sh (deflated 85%)
  adding: db2-scripts/..2024_12_03_14_25_28.1926601078/DB2_Backup.sh (deflated 63%)
  adding: db2-scripts/..2024_12_03_14_25_28.1926601078/.Prompt (deflated 15%)
  adding: db2-scripts/..2024_12_03_14_25_28.1926601078/CreateRoles.sh (deflated 73%)
  adding: db2-scripts/..2024_12_03_14_25_28.1926601078/FixInvalidObjects.sh (deflated 57%)
  adding: db2-scripts/..2024_12_03_14_25_28.1926601078/Set_DB_COS_Storage.sh (deflated 32%)
  adding: db2-scripts/..2024_12_03_14_25_28.1926601078/dropTempts.sh (deflated 60%)
  adding: db2-scripts/..2024_12_03_14_25_28.1926601078/reorgTablesIndexesInplace2.sh (deflated 76%)
  adding: db2-scripts/..2024_12_03_14_25_28.1926601078/HADRMON.sh (deflated 86%)
  adding: db2-scripts/..2024_12_03_14_25_28.1926601078/PostBackFlow.sh (deflated 58%)
  adding: db2-scripts/..2024_12_03_14_25_28.1926601078/Run_Backup.sh (deflated 57%)
  adding: db2-scripts/..2024_12_03_14_25_28.1926601078/OwnerCheck.txt (deflated 67%)
  adding: db2-scripts/..2024_12_03_14_25_28.1926601078/CheckCOS.sh (deflated 32%)
  adding: db2-scripts/..2024_12_03_14_25_28.1926601078/cronRunBKP.sh (deflated 43%)
  adding: db2-scripts/..2024_12_03_14_25_28.1926601078/Explain.ddl (deflated 66%)
  adding: db2-scripts/..2024_12_03_14_25_28.1926601078/reorgTablesIndexesInplace2_maintenance.sh (deflated 76%)
  adding: db2-scripts/..2024_12_03_14_25_28.1926601078/RUN_OnDemandFULL_BKP.sh (deflated 57%)
  adding: db2-scripts/..2024_12_03_14_25_28.1926601078/extract_authorization.sh (deflated 61%)
  adding: db2-scripts/..2024_12_03_14_25_28.1926601078/runstats_rebind.sh (deflated 62%)
  adding: db2-scripts/..2024_12_03_14_25_28.1926601078/Reg-Large_TBSP.sh (deflated 74%)
  adding: db2-scripts/..2024_12_03_14_25_28.1926601078/RUNEXPORT.sh (deflated 58%)
  adding: db2-scripts/..data/ (stored 0%)
  adding: db2-scripts/..data/CopyDBScripts.sh (deflated 65%)
  adding: db2-scripts/..data/grant_check.sh (deflated 85%)
  adding: db2-scripts/..data/DB2_Backup.sh (deflated 63%)
  adding: db2-scripts/..data/.Prompt (deflated 15%)
  adding: db2-scripts/..data/CreateRoles.sh (deflated 73%)
  adding: db2-scripts/..data/FixInvalidObjects.sh (deflated 57%)
  adding: db2-scripts/..data/Set_DB_COS_Storage.sh (deflated 32%)
  adding: db2-scripts/..data/dropTempts.sh (deflated 60%)
  adding: db2-scripts/..data/reorgTablesIndexesInplace2.sh (deflated 76%)
  adding: db2-scripts/..data/HADRMON.sh (deflated 86%)
  adding: db2-scripts/..data/PostBackFlow.sh (deflated 58%)
  adding: db2-scripts/..data/Run_Backup.sh (deflated 57%)
  adding: db2-scripts/..data/OwnerCheck.txt (deflated 67%)
  adding: db2-scripts/..data/CheckCOS.sh (deflated 32%)
  adding: db2-scripts/..data/cronRunBKP.sh (deflated 43%)
  adding: db2-scripts/..data/Explain.ddl (deflated 66%)
  adding: db2-scripts/..data/reorgTablesIndexesInplace2_maintenance.sh (deflated 76%)
  adding: db2-scripts/..data/RUN_OnDemandFULL_BKP.sh (deflated 57%)
  adding: db2-scripts/..data/extract_authorization.sh (deflated 61%)
  adding: db2-scripts/..data/runstats_rebind.sh (deflated 62%)
  adding: db2-scripts/..data/Reg-Large_TBSP.sh (deflated 74%)
  adding: db2-scripts/..data/RUNEXPORT.sh (deflated 58%)
  adding: db2-scripts/CopyDBScripts.sh (deflated 65%)
  adding: db2-scripts/grant_check.sh (deflated 85%)
  adding: db2-scripts/DB2_Backup.sh (deflated 63%)
  adding: db2-scripts/.Prompt (deflated 15%)
  adding: db2-scripts/CreateRoles.sh (deflated 73%)
  adding: db2-scripts/FixInvalidObjects.sh (deflated 57%)
  adding: db2-scripts/Set_DB_COS_Storage.sh (deflated 32%)
  adding: db2-scripts/dropTempts.sh (deflated 60%)
  adding: db2-scripts/reorgTablesIndexesInplace2.sh (deflated 76%)
  adding: db2-scripts/HADRMON.sh (deflated 86%)
  adding: db2-scripts/PostBackFlow.sh (deflated 58%)
  adding: db2-scripts/Run_Backup.sh (deflated 57%)
  adding: db2-scripts/OwnerCheck.txt (deflated 67%)
  adding: db2-scripts/CheckCOS.sh (deflated 32%)
  adding: db2-scripts/cronRunBKP.sh (deflated 43%)
  adding: db2-scripts/Explain.ddl (deflated 66%)
  adding: db2-scripts/reorgTablesIndexesInplace2_maintenance.sh (deflated 76%)
  adding: db2-scripts/RUN_OnDemandFULL_BKP.sh (deflated 57%)
  adding: db2-scripts/extract_authorization.sh (deflated 61%)
  adding: db2-scripts/runstats_rebind.sh (deflated 62%)
  adding: db2-scripts/Reg-Large_TBSP.sh (deflated 74%)
  adding: db2-scripts/RUNEXPORT.sh (deflated 58%)
Defaulted container "db2u" out of: db2u, instdb (init), init-labels (init), init-kernel (init)
Archive:  db2-scripts.zip
   creating: db2-scripts/..2024_12_03_14_25_28.1926601078/
  inflating: db2-scripts/..2024_12_03_14_25_28.1926601078/CopyDBScripts.sh  
  inflating: db2-scripts/..2024_12_03_14_25_28.1926601078/grant_check.sh  
  inflating: db2-scripts/..2024_12_03_14_25_28.1926601078/DB2_Backup.sh  
  inflating: db2-scripts/..2024_12_03_14_25_28.1926601078/.Prompt  
  inflating: db2-scripts/..2024_12_03_14_25_28.1926601078/CreateRoles.sh  
  inflating: db2-scripts/..2024_12_03_14_25_28.1926601078/FixInvalidObjects.sh  
  inflating: db2-scripts/..2024_12_03_14_25_28.1926601078/Set_DB_COS_Storage.sh  
  inflating: db2-scripts/..2024_12_03_14_25_28.1926601078/dropTempts.sh  
  inflating: db2-scripts/..2024_12_03_14_25_28.1926601078/reorgTablesIndexesInplace2.sh  
  inflating: db2-scripts/..2024_12_03_14_25_28.1926601078/HADRMON.sh  
  inflating: db2-scripts/..2024_12_03_14_25_28.1926601078/PostBackFlow.sh  
  inflating: db2-scripts/..2024_12_03_14_25_28.1926601078/Run_Backup.sh  
  inflating: db2-scripts/..2024_12_03_14_25_28.1926601078/OwnerCheck.txt  
  inflating: db2-scripts/..2024_12_03_14_25_28.1926601078/CheckCOS.sh  
  inflating: db2-scripts/..2024_12_03_14_25_28.1926601078/cronRunBKP.sh  
  inflating: db2-scripts/..2024_12_03_14_25_28.1926601078/Explain.ddl  
  inflating: db2-scripts/..2024_12_03_14_25_28.1926601078/reorgTablesIndexesInplace2_maintenance.sh  
  inflating: db2-scripts/..2024_12_03_14_25_28.1926601078/RUN_OnDemandFULL_BKP.sh  
  inflating: db2-scripts/..2024_12_03_14_25_28.1926601078/extract_authorization.sh  
  inflating: db2-scripts/..2024_12_03_14_25_28.1926601078/runstats_rebind.sh  
  inflating: db2-scripts/..2024_12_03_14_25_28.1926601078/Reg-Large_TBSP.sh  
  inflating: db2-scripts/..2024_12_03_14_25_28.1926601078/RUNEXPORT.sh  
  inflating: db2-scripts/..data/CopyDBScripts.sh  
  inflating: db2-scripts/..data/grant_check.sh  
  inflating: db2-scripts/..data/DB2_Backup.sh  
  inflating: db2-scripts/..data/.Prompt  
  inflating: db2-scripts/..data/CreateRoles.sh  
  inflating: db2-scripts/..data/FixInvalidObjects.sh  
  inflating: db2-scripts/..data/Set_DB_COS_Storage.sh  
  inflating: db2-scripts/..data/dropTempts.sh  
  inflating: db2-scripts/..data/reorgTablesIndexesInplace2.sh  
  inflating: db2-scripts/..data/HADRMON.sh  
  inflating: db2-scripts/..data/PostBackFlow.sh  
  inflating: db2-scripts/..data/Run_Backup.sh  
  inflating: db2-scripts/..data/OwnerCheck.txt  
  inflating: db2-scripts/..data/CheckCOS.sh  
  inflating: db2-scripts/..data/cronRunBKP.sh  
  inflating: db2-scripts/..data/Explain.ddl  
  inflating: db2-scripts/..data/reorgTablesIndexesInplace2_maintenance.sh  
  inflating: db2-scripts/..data/RUN_OnDemandFULL_BKP.sh  
  inflating: db2-scripts/..data/extract_authorization.sh  
  inflating: db2-scripts/..data/runstats_rebind.sh  
  inflating: db2-scripts/..data/Reg-Large_TBSP.sh  
  inflating: db2-scripts/..data/RUNEXPORT.sh  
  inflating: db2-scripts/CopyDBScripts.sh  
  inflating: db2-scripts/grant_check.sh  
  inflating: db2-scripts/DB2_Backup.sh  
  inflating: db2-scripts/.Prompt     
  inflating: db2-scripts/CreateRoles.sh  
  inflating: db2-scripts/FixInvalidObjects.sh  
  inflating: db2-scripts/Set_DB_COS_Storage.sh  
  inflating: db2-scripts/dropTempts.sh  
  inflating: db2-scripts/reorgTablesIndexesInplace2.sh  
  inflating: db2-scripts/HADRMON.sh  
  inflating: db2-scripts/PostBackFlow.sh  
  inflating: db2-scripts/Run_Backup.sh  
  inflating: db2-scripts/OwnerCheck.txt  
  inflating: db2-scripts/CheckCOS.sh  
  inflating: db2-scripts/cronRunBKP.sh  
  inflating: db2-scripts/Explain.ddl  
  inflating: db2-scripts/reorgTablesIndexesInplace2_maintenance.sh  
  inflating: db2-scripts/RUN_OnDemandFULL_BKP.sh  
  inflating: db2-scripts/extract_authorization.sh  
  inflating: db2-scripts/runstats_rebind.sh  
  inflating: db2-scripts/Reg-Large_TBSP.sh  
  inflating: db2-scripts/RUNEXPORT.sh  
Defaulted container "db2u" out of: db2u, instdb (init), init-labels (init), init-kernel (init)

Copying the files to bin directory under Instance Home . . . 

Copying the file to bin/ITCS104 directory under Instance Home . . .

Copying files to /mnt/backup/bin directory . . .

Copying files to Managed directory under Instance Home . . .

Copying files to maintenance directory under Instance Home . . . 

================================================================================
Invoke Suite DB2 setup for Manage
================================================================================

Create /tmp/setupdb.sh
--------------------------------------------------------------------------------

Copy /tmp/setupdb.sh to db2u-ajw0111/c-db2wh-ajw0111-manage-db2u-0
--------------------------------------------------------------------------------

Executing /tmp/setupdb.sh file on db2u-ajw0111/c-db2wh-ajw0111-manage-db2u-0
--------------------------------------------------------------------------------
Defaulted container "db2u" out of: db2u, instdb (init), init-labels (init), init-kernel (init)

   Database Connection Information

 Database server        = DB2/LINUXX8664 11.5.9.0
 SQL authorization ID   = DB2INST1
 Local database alias   = BLUDB


Executing /mnt/blumeta0/home/db2inst1/bin/CreateRoles.sh file on db2u-ajw0111/c-db2wh-ajw0111-manage-db2u-0
--------------------------------------------------------------------------------
Defaulted container "db2u" out of: db2u, instdb (init), init-labels (init), init-kernel (init)

   Database Connection Information

 Database server        = DB2/LINUXX8664 11.5.9.0
 SQL authorization ID   = DB2INST1
 Local database alias   = BLUDB

DB20000I  The SQL command completed successfully.
DB20000I  The SQL command completed successfully.
DB20000I  The SQL command completed successfully.
DB20000I  The SQL command completed successfully.
DB20000I  The SQL command completed successfully.
Creating the EXPLAIN ROLE
EXPLAIN is already present in the database BLUDB

Executing /mnt/blumeta0/home/db2inst1/Managed/PostBackFlow.sh file on db2u-ajw0111/c-db2wh-ajw0111-manage-db2u-0
--------------------------------------------------------------------------------
Defaulted container "db2u" out of: db2u, instdb (init), init-labels (init), init-kernel (init)
  
  

================================================================================
Calling apply-db2cfg-settings.sh file on c-db2wh-ajw0111-manage-db2u-0
================================================================================
Loaded in-cluster configuration
DEBUG:mas.devops.db2:Getting Db2uInstance CR db2wh-ajw0111-manage in db2u-ajw0111
INFO:mas.devops.db2:Checking db cfg for BLUDB
================================================================
DEBUG:mas.devops.db2:db2 db BLUDB cfg output:
----------------------------------------------------------------
       Database Configuration for Database BLUDB

 Database configuration release level                    = 0x1500
 Database release level                                  = 0x1500

 Update to database level pending                        = NO (0x0)
 Database territory                                      = US
 Database code page                                      = 1208
 Database code set                                       = UTF-8
 Database country/region code                            = 1
 Database collating sequence                             = IDENTITY
 Alternate collating sequence              (ALT_COLLATE) = 
 Number compatibility                                    = OFF
 Varchar2 compatibility                                  = OFF
 Date compatibility                                      = OFF
 Database page size                                      = 32768

 Statement concentrator                      (STMT_CONC) = LITERALS

 Discovery support for this database       (DISCOVER_DB) = DISABLE

 Restrict access                                         = NO
 Default query optimization class         (DFT_QUERYOPT) = 5
 Degree of parallelism                      (DFT_DEGREE) = ANY
 Continue upon arithmetic exceptions   (DFT_SQLMATHWARN) = NO
 Default refresh age                   (DFT_REFRESH_AGE) = 0
 Default maintained table types for opt (DFT_MTTB_TYPES) = SYSTEM
 Number of frequent values retained     (NUM_FREQVALUES) = 10
 Number of quantiles retained            (NUM_QUANTILES) = 20

 Decimal floating point rounding mode  (DECFLT_ROUNDING) = ROUND_HALF_EVEN

 DECIMAL arithmetic mode                (DEC_ARITHMETIC) = DEC.6
 Large aggregation                   (LARGE_AGGREGATION) = YES

 Backup pending                                          = NO

 All committed transactions have been written to disk    = NO
 Rollforward pending                                     = NO
 Restore pending                                         = NO

 Upgrade pending                                         = NO

 Multi-page file allocation enabled                      = YES

 Log retain for recovery status                          = NO
 User exit for logging status                            = YES

 Self tuning memory                    (SELF_TUNING_MEM) = ON
 Size of database shared memory (4KB)  (DATABASE_MEMORY) = AUTOMATIC(3208675)
 Database memory threshold               (DB_MEM_THRESH) = 100
 Max storage for lock list (4KB)              (LOCKLIST) = AUTOMATIC(15360)
 Percent. of lock lists per application       (MAXLOCKS) = AUTOMATIC(98)
 Package cache size (4KB)                   (PCKCACHESZ) = AUTOMATIC(27663)
 Sort heap thres for shared sorts (4KB) (SHEAPTHRES_SHR) = AUTOMATIC(60345)
 Sort list heap (4KB)                         (SORTHEAP) = AUTOMATIC(12069)

 Database heap (4KB)                            (DBHEAP) = AUTOMATIC(11206)
 Catalog cache size (4KB)              (CATALOGCACHE_SZ) = 800
 Log buffer size (4KB)                        (LOGBUFSZ) = 1024
 Utilities heap size (4KB)                (UTIL_HEAP_SZ) = AUTOMATIC(254438)
 SQL statement heap (4KB)                     (STMTHEAP) = 20000
 Default application heap (4KB)             (APPLHEAPSZ) = AUTOMATIC(8192)
 Application Memory Size (4KB)             (APPL_MEMORY) = AUTOMATIC(40000)
 Statistics heap size (4KB)               (STAT_HEAP_SZ) = AUTOMATIC(4384)

 Interval for checking deadlock (ms)         (DLCHKTIME) = 10000
 Lock timeout (sec)                        (LOCKTIMEOUT) = 300

 Changed pages threshold                (CHNGPGS_THRESH) = 40
 Number of asynchronous page cleaners   (NUM_IOCLEANERS) = AUTOMATIC(3)
 Number of I/O servers                   (NUM_IOSERVERS) = AUTOMATIC(6)
 Sequential detect flag                      (SEQDETECT) = YES
 Default prefetch size (pages)         (DFT_PREFETCH_SZ) = AUTOMATIC

 Track modified pages                         (TRACKMOD) = YES

 Default number of containers                            = 1
 Default tablespace extentsize (pages)   (DFT_EXTENT_SZ) = 4

 Max number of active applications            (MAXAPPLS) = AUTOMATIC(170)
 Average number of active applications       (AVG_APPLS) = AUTOMATIC(1)
 Lifetime of cached credentials   (AUTHN_CACHE_DURATION) = 10
 Max number of users in the cache    (AUTHN_CACHE_USERS) = 100
 Max DB files open per database               (MAXFILOP) = 61440

 Active log space disk capacity (MB)      (LOG_DISK_CAP) = 0
 Log file size (4KB)                         (LOGFILSIZ) = 32768
 Number of primary log files                (LOGPRIMARY) = 100
 Number of secondary log files               (LOGSECOND) = 156
 Changed path to log files                  (NEWLOGPATH) = 
 Path to log files                                       = /mnt/logs/active/BLUDB/NODE0000/LOGSTREAM0000/
 Overflow log path                     (OVERFLOWLOGPATH) = 
 Mirror log path                         (MIRRORLOGPATH) = /mnt/backup/MIRRORLOGPATH/NODE0000/LOGSTREAM0000/
 First active log file                                   = S0000455.LOG
 Block log on disk full                (BLK_LOG_DSK_FUL) = NO
 Block non logged operations            (BLOCKNONLOGGED) = NO
 Percent max primary log space by transaction  (MAX_LOG) = 0
 Num. of active log files for 1 active UOW(NUM_LOG_SPAN) = 0

 Percent log file reclaimed before soft chckpt (SOFTMAX) = 0
 Target for oldest page in LBP       (PAGE_AGE_TRGT_MCR) = 240

 HADR database role                                      = STANDARD
 HADR local host name                  (HADR_LOCAL_HOST) = 
 HADR local service name                (HADR_LOCAL_SVC) = 
 HADR remote host name                (HADR_REMOTE_HOST) = 
 HADR remote service name              (HADR_REMOTE_SVC) = 
 HADR instance name of remote server  (HADR_REMOTE_INST) = 
 HADR timeout value                       (HADR_TIMEOUT) = 120
 HADR target list                     (HADR_TARGET_LIST) = 
 HADR log write synchronization mode     (HADR_SYNCMODE) = NEARSYNC
 HADR spool log data limit (4KB)      (HADR_SPOOL_LIMIT) = AUTOMATIC(0)
 HADR log replay delay (seconds)     (HADR_REPLAY_DELAY) = 0
 HADR peer window duration (seconds)  (HADR_PEER_WINDOW) = 0

 First log archive method                 (LOGARCHMETH1) = DISK:/mnt/logs/archive/
 Archive compression for logarchmeth1    (LOGARCHCOMPR1) = OFF
 Options for logarchmeth1                  (LOGARCHOPT1) = 
 Second log archive method                (LOGARCHMETH2) = OFF
 Archive compression for logarchmeth2    (LOGARCHCOMPR2) = OFF
 Options for logarchmeth2                  (LOGARCHOPT2) = 
 Failover log archive path                (FAILARCHPATH) = 
 Number of log archive retries on error   (NUMARCHRETRY) = 5
 Log archive retry Delay (secs)         (ARCHRETRYDELAY) = 20
 Vendor options                              (VENDOROPT) = 

 Auto restart enabled                      (AUTORESTART) = ON
 Index re-creation time and redo index build  (INDEXREC) = ACCESS
 Log pages during index build            (LOGINDEXBUILD) = OFF
 Default number of loadrec sessions    (DFT_LOADREC_SES) = 1
 Number of database backups to retain   (NUM_DB_BACKUPS) = 60
 Recovery history retention (days)     (REC_HIS_RETENTN) = 60
 Auto deletion of recovery objects    (AUTO_DEL_REC_OBJ) = ON

 TSM management class                    (TSM_MGMTCLASS) = 
 TSM node name                            (TSM_NODENAME) = 
 TSM owner                                   (TSM_OWNER) = 
 TSM password                             (TSM_PASSWORD) = 

 Automatic maintenance                      (AUTO_MAINT) = ON
   Automatic database backup            (AUTO_DB_BACKUP) = OFF
   Automatic table maintenance          (AUTO_TBL_MAINT) = ON
     Automatic runstats                  (AUTO_RUNSTATS) = ON
       Real-time statistics            (AUTO_STMT_STATS) = ON
       Statistical views              (AUTO_STATS_VIEWS) = OFF
       Automatic sampling                (AUTO_SAMPLING) = ON
       Automatic column group statistics (AUTO_CG_STATS) = OFF
     Automatic reorganization               (AUTO_REORG) = OFF

 Auto-Revalidation                          (AUTO_REVAL) = DEFERRED

 Currently Committed                        (CUR_COMMIT) = ON
 CHAR output with DECIMAL input        (DEC_TO_CHAR_FMT) = NEW
 Enable XML Character operations        (ENABLE_XMLCHAR) = YES
 Enforce Constraint                  (DDL_CONSTRAINT_DEF) = YES
 Enable row compression by default  (DDL_COMPRESSION_DEF) = YES
 Replication site ID                      (REPL_SITE_ID) = 0
 Monitor Collect Settings
 Request metrics                       (MON_REQ_METRICS) = BASE
 Activity metrics                      (MON_ACT_METRICS) = BASE
 Object metrics                        (MON_OBJ_METRICS) = EXTENDED
 Routine data                             (MON_RTN_DATA) = NONE
   Routine executable list            (MON_RTN_EXECLIST) = OFF
 Unit of work events                      (MON_UOW_DATA) = NONE
   UOW events with package list        (MON_UOW_PKGLIST) = OFF
   UOW events with executable list    (MON_UOW_EXECLIST) = OFF
 Lock timeout events                   (MON_LOCKTIMEOUT) = NONE
 Deadlock events                          (MON_DEADLOCK) = WITHOUT_HIST
 Lock wait events                         (MON_LOCKWAIT) = NONE
 Lock wait event threshold               (MON_LW_THRESH) = 5000000
 Number of package list entries         (MON_PKGLIST_SZ) = 32
 Lock event notification level         (MON_LCK_MSG_LVL) = 1

 SMTP Server                               (SMTP_SERVER) = 
 SQL conditional compilation flags         (SQL_CCFLAGS) = 
 Section actuals setting               (SECTION_ACTUALS) = NONE
 Connect procedure                        (CONNECT_PROC) = 
 Adjust temporal SYSTEM_TIME period (SYSTIME_PERIOD_ADJ) = NO
 Log DDL Statements                      (LOG_DDL_STMTS) = NO
 Log Application Information             (LOG_APPL_INFO) = NO
 Default data capture on new Schemas   (DFT_SCHEMAS_DCC) = NO
 Strict I/O for EXTBL_LOCATION         (EXTBL_STRICT_IO) = NO
 Allowed paths for external tables      (EXTBL_LOCATION) = /mnt/blumeta0/db2/load;/mnt/blumeta0/home;/mnt/bludata0/scratch;/mnt/external;/mnt/backup
 Default table organization              (DFT_TABLE_ORG) = ROW
 Default string units                     (STRING_UNITS) = SYSTEM
 National character string mapping       (NCHAR_MAPPING) = CHAR_CU32
 Database is in write suspend state                      = NO
 Extended row size support             (EXTENDED_ROW_SZ) = ENABLE
 Encryption Library for Backup                 (ENCRLIB) = libdb2encr.so
 Encryption Options for Backup                (ENCROPTS) = CIPHER=AES:MODE=CBC:KEY LENGTH=256

 WLM Collection Interval (minutes)     (WLM_COLLECT_INT) = 0
 Target agent load per CPU core    (WLM_AGENT_LOAD_TRGT) = AUTOMATIC(12)
 WLM admission control enabled      (WLM_ADMISSION_CTRL) = NO
 Allocated share of CPU resources       (WLM_CPU_SHARES) = 1000
 CPU share behavior (hard/soft)     (WLM_CPU_SHARE_MODE) = HARD
 Maximum allowable CPU utilization (%)   (WLM_CPU_LIMIT) = 0
 Activity Sort Memory Limit          (ACT_SORTMEM_LIMIT) = NONE
 Control file recovery path       (CTRL_FILE_RECOV_PATH) = 
 Encrypted database                                      = YES
 Procedural language stack trace        (PL_STACK_TRACE) = NONE
 HADR SSL certificate label             (HADR_SSL_LABEL) = 
 HADR SSL Hostname Validation        (HADR_SSL_HOST_VAL) = OFF

 BUFFPAGE size to be used by optimizer   (OPT_BUFFPAGE) = 0
 LOCKLIST size to be used by optimizer   (OPT_LOCKLIST) = 0
 MAXLOCKS size to be used by optimizer   (OPT_MAXLOCKS) = 0
 SORTHEAP size to be used by optimizer   (OPT_SORTHEAP) = 0


----------------------------------------------------------------
DEBUG:mas.devops.db2:db2 db BLUDB cr settings:
----------------------------------------------------------------
APPLHEAPSZ: 8192 AUTOMATIC
AUTHN_CACHE_DURATION: '10'
AUTHN_CACHE_USERS: '100'
AUTO_DB_BACKUP: 'OFF'
AUTO_DEL_REC_OBJ: 'ON'
AUTO_MAINT: 'ON'
AUTO_REORG: 'OFF'
AUTO_REVAL: DEFERRED
AUTO_RUNSTATS: 'ON'
AUTO_TBL_MAINT: 'ON'
CATALOGCACHE_SZ: '800'
CHNGPGS_THRESH: '40'
CUR_COMMIT: 'ON'
DATABASE_MEMORY: AUTOMATIC
DBHEAP: AUTOMATIC
DDL_CONSTRAINT_DEF: 'YES'
DEC_TO_CHAR_FMT: NEW
DFT_DEGREE: ANY
DFT_QUERYOPT: '5'
DFT_TABLE_ORG: ROW
LOCKLIST: AUTOMATIC
LOCKTIMEOUT: '300'
LOGBUFSZ: '1024'
LOGFILSIZ: '32768'
LOGPRIMARY: '100'
LOGSECOND: '156'
MAXFILOP: '61440'
MIRRORLOGPATH: /mnt/backup/MIRRORLOGPATH
NUM_DB_BACKUPS: '60'
NUM_IOCLEANERS: AUTOMATIC
NUM_IOSERVERS: AUTOMATIC
PCKCACHESZ: AUTOMATIC
REC_HIS_RETENTN: '60'
SHEAPTHRES_SHR: automatic
SOFTMAX: '0'
SORTHEAP: automatic
STAT_HEAP_SZ: AUTOMATIC
STMTHEAP: '20000'
STMT_CONC: LITERALS
TRACKMOD: 'YES'
WLM_ADMISSION_CTRL: 'NO'
----------------------------------------------------------------
DEBUG:mas.devops.db2:Running checks
----------------------------------------------------------------
DEBUG:mas.devops.db2:[APPLHEAPSZ] '8192 AUTOMATIC' ~= 'AUTOMATIC(8192)'
DEBUG:mas.devops.db2:[AUTHN_CACHE_DURATION] '10' ~= '10'
DEBUG:mas.devops.db2:[AUTHN_CACHE_USERS] '100' ~= '100'
DEBUG:mas.devops.db2:[AUTO_DB_BACKUP] 'OFF' ~= 'OFF'
DEBUG:mas.devops.db2:[AUTO_DEL_REC_OBJ] 'ON' ~= 'ON'
DEBUG:mas.devops.db2:[AUTO_MAINT] 'ON' ~= 'ON'
DEBUG:mas.devops.db2:[AUTO_REORG] 'OFF' ~= 'OFF'
DEBUG:mas.devops.db2:[AUTO_REVAL] 'DEFERRED' ~= 'DEFERRED'
DEBUG:mas.devops.db2:[AUTO_RUNSTATS] 'ON' ~= 'ON'
DEBUG:mas.devops.db2:[AUTO_TBL_MAINT] 'ON' ~= 'ON'
DEBUG:mas.devops.db2:[CATALOGCACHE_SZ] '800' ~= '800'
DEBUG:mas.devops.db2:[CHNGPGS_THRESH] '40' ~= '40'
DEBUG:mas.devops.db2:[CUR_COMMIT] 'ON' ~= 'ON'
DEBUG:mas.devops.db2:[DATABASE_MEMORY] 'AUTOMATIC' ~= 'AUTOMATIC(3208675)'
DEBUG:mas.devops.db2:[DBHEAP] 'AUTOMATIC' ~= 'AUTOMATIC(11206)'
DEBUG:mas.devops.db2:[DDL_CONSTRAINT_DEF] 'YES' ~= 'YES'
DEBUG:mas.devops.db2:[DEC_TO_CHAR_FMT] 'NEW' ~= 'NEW'
DEBUG:mas.devops.db2:[DFT_DEGREE] 'ANY' ~= 'ANY'
DEBUG:mas.devops.db2:[DFT_QUERYOPT] '5' ~= '5'
DEBUG:mas.devops.db2:[DFT_TABLE_ORG] 'ROW' ~= 'ROW'
DEBUG:mas.devops.db2:[LOCKLIST] 'AUTOMATIC' ~= 'AUTOMATIC(15360)'
DEBUG:mas.devops.db2:[LOCKTIMEOUT] '300' ~= '300'
DEBUG:mas.devops.db2:[LOGBUFSZ] '1024' ~= '1024'
DEBUG:mas.devops.db2:[LOGFILSIZ] '32768' ~= '32768'
DEBUG:mas.devops.db2:[LOGPRIMARY] '100' ~= '100'
DEBUG:mas.devops.db2:[LOGSECOND] '156' ~= '156'
DEBUG:mas.devops.db2:[MAXFILOP] '61440' ~= '61440'
DEBUG:mas.devops.db2:[MIRRORLOGPATH] '/mnt/backup/MIRRORLOGPATH' ~= '/mnt/backup/MIRRORLOGPATH/NODE0000/LOGSTREAM0000/'
DEBUG:mas.devops.db2:[NUM_DB_BACKUPS] '60' ~= '60'
DEBUG:mas.devops.db2:[NUM_IOCLEANERS] 'AUTOMATIC' ~= 'AUTOMATIC(3)'
DEBUG:mas.devops.db2:[NUM_IOSERVERS] 'AUTOMATIC' ~= 'AUTOMATIC(6)'
DEBUG:mas.devops.db2:[PCKCACHESZ] 'AUTOMATIC' ~= 'AUTOMATIC(27663)'
DEBUG:mas.devops.db2:[REC_HIS_RETENTN] '60' ~= '60'
DEBUG:mas.devops.db2:[SHEAPTHRES_SHR] 'automatic' ~= 'AUTOMATIC(60345)'
DEBUG:mas.devops.db2:[SOFTMAX] '0' ~= '0'
DEBUG:mas.devops.db2:[SORTHEAP] 'automatic' ~= 'AUTOMATIC(12069)'
DEBUG:mas.devops.db2:[STAT_HEAP_SZ] 'AUTOMATIC' ~= 'AUTOMATIC(4384)'
DEBUG:mas.devops.db2:[STMTHEAP] '20000' ~= '20000'
DEBUG:mas.devops.db2:[STMT_CONC] 'LITERALS' ~= 'LITERALS'
DEBUG:mas.devops.db2:[TRACKMOD] 'YES' ~= 'YES'
DEBUG:mas.devops.db2:[WLM_ADMISSION_CTRL] 'NO' ~= 'NO'
DEBUG:mas.devops.db2:
----------------------------------------------------------------
INFO:mas.devops.db2:All db cfg checks for BLUDB passed

INFO:mas.devops.db2:Checking dbm cfg
================================================================
DEBUG:mas.devops.db2:db2 dbm cfg output:
----------------------------------------------------------------
          Database Manager Configuration

     Node type = Enterprise Server Edition with local and remote clients

 Database manager configuration release level            = 0x1500

 CPU speed (millisec/instruction)             (CPUSPEED) = 9.446887e-08
 Communications bandwidth (MB/sec)      (COMM_BANDWIDTH) = 1.000000e+02

 Max number of concurrently active databases     (NUMDB) = 1
 Federated Database System Support           (FEDERATED) = YES
 Transaction processor monitor name        (TP_MON_NAME) = 

 Default charge-back account           (DFT_ACCOUNT_STR) = 

 Java Development Kit installation path       (JDK_PATH) = /mnt/blumeta0/home/db2inst1/sqllib/java/jdk64

 Diagnostic error capture level              (DIAGLEVEL) = 3
 Notify Level                              (NOTIFYLEVEL) = 3
 Diagnostic data directory path               (DIAGPATH) = /mnt/blumeta0/db2/log/ $N
 Current member resolved DIAGPATH                        = /mnt/blumeta0/db2/log/NODE0000/
 Alternate diagnostic data directory path (ALT_DIAGPATH) = 
 Current member resolved ALT_DIAGPATH                    = 
 Size of rotating db2diag & notify logs (MB)  (DIAGSIZE) = 300

 Default database monitor switches
   Buffer pool                         (DFT_MON_BUFPOOL) = OFF
   Lock                                   (DFT_MON_LOCK) = OFF
   Sort                                   (DFT_MON_SORT) = OFF
   Statement                              (DFT_MON_STMT) = OFF
   Table                                 (DFT_MON_TABLE) = OFF
   Timestamp                         (DFT_MON_TIMESTAMP) = ON
   Unit of work                            (DFT_MON_UOW) = OFF
 Monitor health of instance and databases   (HEALTH_MON) = OFF

 SYSADM group name                        (SYSADM_GROUP) = DB2IADM1
 SYSCTRL group name                      (SYSCTRL_GROUP) = BLUADMIN
 SYSMAINT group name                    (SYSMAINT_GROUP) = BLUADMIN
 SYSMON group name                        (SYSMON_GROUP) = BLUADMIN

 Client Userid-Password Plugin          (CLNT_PW_PLUGIN) = 
 Client Kerberos Plugin                (CLNT_KRB_PLUGIN) = 
 Group Plugin                             (GROUP_PLUGIN) = 
 GSS Plugin for Local Authorization    (LOCAL_GSSPLUGIN) = 
 Server Plugin Mode                    (SRV_PLUGIN_MODE) = UNFENCED
 Server List of GSS Plugins      (SRVCON_GSSPLUGIN_LIST) = 
 Server Userid-Password Plugin        (SRVCON_PW_PLUGIN) = 
 Server Connection Authentication          (SRVCON_AUTH) = NOT_SPECIFIED
 Cluster manager                                         = 

 Database manager authentication        (AUTHENTICATION) = SERVER_ENCRYPT
 Alternate authentication           (ALTERNATE_AUTH_ENC) = NOT_SPECIFIED
 Cataloging allowed without authority   (CATALOG_NOAUTH) = NO
 Trust all clients                      (TRUST_ALLCLNTS) = YES
 Trusted client authentication          (TRUST_CLNTAUTH) = CLIENT
 Bypass federated authentication            (FED_NOAUTH) = NO

 Default database path                       (DFTDBPATH) = /mnt/blumeta0/db2/databases

 Database monitor heap size (4KB)          (MON_HEAP_SZ) = AUTOMATIC(90)
 Java Virtual Machine heap size (4KB)     (JAVA_HEAP_SZ) = 65536
 Audit buffer size (4KB)                  (AUDIT_BUF_SZ) = 65000
 Global instance memory (% or 4KB)     (INSTANCE_MEMORY) = 23
 Member instance memory (% or 4KB)                       = GLOBAL
 Agent stack size                       (AGENT_STACK_SZ) = 1024
 Sort heap threshold (4KB)                  (SHEAPTHRES) = 0

 Directory cache support                     (DIR_CACHE) = YES

 Application support layer heap size (4KB)   (ASLHEAPSZ) = 15
 Max requester I/O block size (bytes)         (RQRIOBLK) = 65535
 Workload impact by throttled utilities(UTIL_IMPACT_LIM) = 10

 Priority of agents                           (AGENTPRI) = SYSTEM
 Agent pool size                        (NUM_POOLAGENTS) = AUTOMATIC(100)
 Initial number of agents in pool       (NUM_INITAGENTS) = 0
 Max number of coordinating agents     (MAX_COORDAGENTS) = AUTOMATIC(200)
 Max number of client connections      (MAX_CONNECTIONS) = AUTOMATIC(MAX_COORDAGENTS)

 Keep fenced process                        (KEEPFENCED) = NO
 Number of pooled fenced processes         (FENCED_POOL) = 50
 Initial number of fenced processes     (NUM_INITFENCED) = 0

 Index re-creation time and redo index build  (INDEXREC) = RESTART

 Transaction manager database name         (TM_DATABASE) = 1ST_CONN
 Transaction resync interval (sec)     (RESYNC_INTERVAL) = 180

 SPM name                                     (SPM_NAME) = a6887fb9
 SPM log size                          (SPM_LOG_FILE_SZ) = 256
 SPM resync agent limit                 (SPM_MAX_RESYNC) = 20
 SPM log path                             (SPM_LOG_PATH) = 

 TCP/IP Service name                          (SVCENAME) = db2c_db2inst1
 Discovery mode                               (DISCOVER) = DISABLE
 Discover server instance                (DISCOVER_INST) = DISABLE

 SSL server keydb file                   (SSL_SVR_KEYDB) = /mnt/blumeta0/db2/ssl_keystore/bludb_ssl.kdb
 SSL server stash file                   (SSL_SVR_STASH) = /mnt/blumeta0/db2/ssl_keystore/bludb_ssl.sth
 SSL server certificate label            (SSL_SVR_LABEL) = CN=db2u
 SSL service name                         (SSL_SVCENAME) = 50001
 SSL cipher specs                      (SSL_CIPHERSPECS) = 
 SSL versions                             (SSL_VERSIONS) = TLSV13,TLSV12
 SSL client keydb file                  (SSL_CLNT_KEYDB) = 
 SSL client stash file                  (SSL_CLNT_STASH) = 

 Maximum query degree of parallelism   (MAX_QUERYDEGREE) = 5
 Enable intra-partition parallelism     (INTRA_PARALLEL) = NO

 Maximum Asynchronous TQs per query    (FEDERATED_ASYNC) = 0

 Number of FCM buffers                 (FCM_NUM_BUFFERS) = AUTOMATIC(4096)
 FCM buffer size                       (FCM_BUFFER_SIZE) = 32768
 Number of FCM channels               (FCM_NUM_CHANNELS) = AUTOMATIC(2048)
 FCM parallelism                       (FCM_PARALLELISM) = AUTOMATIC(3)
 Node connection elapse time (sec)         (CONN_ELAPSE) = 60
 Max number of node connection retries (MAX_CONNRETRIES) = 5
 Max time difference between nodes (min) (MAX_TIME_DIFF) = 60

 db2start/db2stop timeout (min)        (START_STOP_TIME) = 10

 WLM dispatcher enabled                 (WLM_DISPATCHER) = NO
 WLM dispatcher concurrency            (WLM_DISP_CONCUR) = COMPUTED
 WLM dispatcher CPU shares enabled (WLM_DISP_CPU_SHARES) = NO
 WLM dispatcher min. utilization (%) (WLM_DISP_MIN_UTIL) = 5

 Communication buffer exit library list (COMM_EXIT_LIST) = 
 Current effective arch level         (CUR_EFF_ARCH_LVL) = V:11 R:5 M:9 F:0 I:0 SB:0
 Current effective code level         (CUR_EFF_CODE_LVL) = V:11 R:5 M:9 F:0 I:0 SB:39066

 Keystore type                           (KEYSTORE_TYPE) = PKCS12
 Keystore location                   (KEYSTORE_LOCATION) = /mnt/blumeta0/db2/keystore/keystore.p12

 Path to python runtime                    (PYTHON_PATH) = /usr/bin/python
 Path to R runtime                              (R_PATH) = 

 Multipart upload part size            (MULTIPARTSIZEMB) = 100

----------------------------------------------------------------
DEBUG:mas.devops.db2:db2 dbm cr settings:
----------------------------------------------------------------
AGENT_STACK_SZ: '1024'
FENCED_POOL: '50'
HEALTH_MON: 'OFF'
KEEPFENCED: 'NO'
MON_HEAP_SZ: AUTOMATIC
RQRIOBLK: '65535'
----------------------------------------------------------------
DEBUG:mas.devops.db2:Running checks
----------------------------------------------------------------
DEBUG:mas.devops.db2:[AGENT_STACK_SZ] '1024' ~= '1024'
DEBUG:mas.devops.db2:[FENCED_POOL] '50' ~= '50'
DEBUG:mas.devops.db2:[HEALTH_MON] 'OFF' ~= 'OFF'
DEBUG:mas.devops.db2:[KEEPFENCED] 'NO' ~= 'NO'
DEBUG:mas.devops.db2:[MON_HEAP_SZ] 'AUTOMATIC' ~= 'AUTOMATIC(90)'
DEBUG:mas.devops.db2:[RQRIOBLK] '65535' ~= '65535'
DEBUG:mas.devops.db2:
----------------------------------------------------------------
INFO:mas.devops.db2:All dbm cfg checks passed

INFO:mas.devops.db2:Checking registry cfg
================================================================
DEBUG:mas.devops.db2:db2set output:
----------------------------------------------------------------DB2_REMOTE_EXTTAB_PIPE_PATH=/db2u/tmp
DB2_4K_DEVICE_SUPPORT=ON
DB2_CDE_REDUCED_LOGGING=REDUCED_REDO:NO
DB2_FMP_RUN_AS_CONNECTED_USER=NO
DB2_OBJECT_STORAGE_LOCAL_STAGING_PATH=/mnt/backup/staging
DB2_OVERRIDE_THREADING_DEGREE=2
DB2_OVERRIDE_NUM_CPUS=6
DB2_RESTORE_GRANT_ADMIN_AUTHORITIES=ON
DB2_ATS_ENABLE=YES
DB2_WORKLOAD=MAXIMO
DB2RSHCMD=/bin/ssh
DB2AUTH=OSAUTHDB,ALLOW_LOCAL_FALLBACK,PLUGIN_AUTO_RELOAD
DB2_SKIPINSERTED=ON [O]
DB2_OBJECT_TABLE_ENTRIES=65532
DB2_USE_ALTERNATE_PAGE_CLEANING=ON
DB2_LOAD_COPY_NO_OVERRIDE=COPY YES TO /mnt/bludata0/scratch/db2/copy
DB2_BCKP_PAGE_VERIFICATION=TRUE
DB2_INLIST_TO_NLJN=YES
DB2_MINIMIZE_LISTPREFETCH=Y
DB2_EVALUNCOMMITTED=YES [O]
DB2_FMP_COMM_HEAPSZ=65536 [O]
DB2_SKIPDELETED=ON [O]
DB2CHECKCLIENTINTERVAL=100
DB2COMM=TCPIP,SSL
----------------------------------------------------------------
DEBUG:mas.devops.db2:db2 cr registry settings:
----------------------------------------------------------------
DB2AUTH: OSAUTHDB,ALLOW_LOCAL_FALLBACK,PLUGIN_AUTO_RELOAD
DB2_4K_DEVICE_SUPPORT: 'ON'
DB2_BCKP_PAGE_VERIFICATION: 'TRUE'
DB2_CDE_REDUCED_LOGGING: REDUCED_REDO:NO
DB2_EVALUNCOMMITTED: 'YES'
DB2_FMP_COMM_HEAPSZ: '65536'
DB2_FMP_RUN_AS_CONNECTED_USER: 'NO'
DB2_INLIST_TO_NLJN: 'YES'
DB2_MINIMIZE_LISTPREFETCH: Y
DB2_OBJECT_STORAGE_LOCAL_STAGING_PATH: /mnt/backup/staging
DB2_SKIPDELETED: 'ON'
DB2_SKIPINSERTED: 'ON'
DB2_USE_ALTERNATE_PAGE_CLEANING: 'ON'
DB2_WORKLOAD: MAXIMO
----------------------------------------------------------------
DEBUG:mas.devops.db2:Running checks
----------------------------------------------------------------
DEBUG:mas.devops.db2:[DB2AUTH] 'OSAUTHDB,ALLOW_LOCAL_FALLBACK,PLUGIN_AUTO_RELOAD' ~= 'OSAUTHDB,ALLOW_LOCAL_FALLBACK,PLUGIN_AUTO_RELOAD'
DEBUG:mas.devops.db2:[DB2_4K_DEVICE_SUPPORT] 'ON' ~= 'ON'
DEBUG:mas.devops.db2:[DB2_BCKP_PAGE_VERIFICATION] 'TRUE' ~= 'TRUE'
DEBUG:mas.devops.db2:[DB2_CDE_REDUCED_LOGGING] 'REDUCED_REDO:NO' ~= 'REDUCED_REDO:NO'
DEBUG:mas.devops.db2:[DB2_EVALUNCOMMITTED] 'YES' ~= 'YES'
DEBUG:mas.devops.db2:[DB2_FMP_COMM_HEAPSZ] '65536' ~= '65536'
DEBUG:mas.devops.db2:[DB2_FMP_RUN_AS_CONNECTED_USER] 'NO' ~= 'NO'
DEBUG:mas.devops.db2:[DB2_INLIST_TO_NLJN] 'YES' ~= 'YES'
DEBUG:mas.devops.db2:[DB2_MINIMIZE_LISTPREFETCH] 'Y' ~= 'Y'
DEBUG:mas.devops.db2:[DB2_OBJECT_STORAGE_LOCAL_STAGING_PATH] '/mnt/backup/staging' ~= '/mnt/backup/staging'
DEBUG:mas.devops.db2:[DB2_SKIPDELETED] 'ON' ~= 'ON'
DEBUG:mas.devops.db2:[DB2_SKIPINSERTED] 'ON' ~= 'ON'
DEBUG:mas.devops.db2:[DB2_USE_ALTERNATE_PAGE_CLEANING] 'ON' ~= 'ON'
DEBUG:mas.devops.db2:[DB2_WORKLOAD] 'MAXIMO' ~= 'MAXIMO'
DEBUG:mas.devops.db2:
----------------------------------------------------------------
INFO:mas.devops.db2:All registry cfg checks passed

INFO:mas.devops.db2:Results
================================================================
INFO:mas.devops.db2:All checks passed
... db2 config already matches expected config, returning without calling apply-db2cfg-settings

================================================================================
Invoke Suite DB2 Backup
================================================================================

Create /tmp/backupdb.sh
--------------------------------------------------------------------------------

Copy /tmp/backupdb.sh to db2u-ajw0111/c-db2wh-ajw0111-manage-db2u-0
--------------------------------------------------------------------------------

Executing /tmp/backupdb.sh file on db2u-ajw0111/c-db2wh-ajw0111-manage-db2u-0
--------------------------------------------------------------------------------
Defaulted container "db2u" out of: db2u, instdb (init), init-labels (init), init-kernel (init)
backupdb.sh: Database connect not returning SQL1116N, nothing to do, exit now

================================================================================
Setting fyre-noble4-dev/noble4/ajw0111/jdbc/db2wh-ajw0111-manage/config secret
================================================================================

Fetch CA cert from db2u-certicate-db2wh-ajw0111-manage secret in db2u-ajw0111
--------------------------------------------------------------------------------

Fetch ssl-server target port of c-db2wh-ajw0111-manage-db2u-engn-svc service in db2u-ajw0111
--------------------------------------------------------------------------------

Construsting JDBC_CONNECTION_URL
--------------------------------------------------------------------------------

Updating Secrets Manager
--------------------------------------------------------------------------------
Logging into AWS SecretsManager ...
      Name                    Value             Type    Location
      ----                    -----             ----    --------
   profile                <not set>             None    None
access_key     ****************QVGO shared-credentials-file    
secret_key     ****************CnpC shared-credentials-file    
    region                us-east-2              env    ['AWS_REGION', 'AWS_DEFAULT_REGION']
Secret Manager: Updating fyre-noble4-dev/noble4/ajw0111/jdbc/db2wh-ajw0111-manage/config with tags [{"Key": "source", "Value": "postsync-setup-db2"}, {"Key": "account", "Value": "fyre-noble4-dev"}, {"Key": "cluster", "Value": "noble4"}]
- Secret fyre-noble4-dev/noble4/ajw0111/jdbc/db2wh-ajw0111-manage/config unchanged

================================================================================
Invoke Fix invalid objects for Manage
================================================================================

Executing /mnt/blumeta0/home/db2inst1/bin/ITCS104/FixInvalidObjects.sh file on db2u-ajw0111/c-db2wh-ajw0111-manage-db2u-0
--------------------------------------------------------------------------------
Defaulted container "db2u" out of: db2u, instdb (init), init-labels (init), init-kernel (init)

   Database Connection Information

 Database server        = DB2/LINUXX8664 11.5.9.0
 SQL authorization ID   = DB2INST1
 Local database alias   = BLUDB

 all invalid objects

OBJECTSCHEMA                                                                                                                     OBJECTNAME                                                                                                                       ROUTINENAME                                                                                                                      OBJECTTYPE
-------------------------------------------------------------------------------------------------------------------------------- -------------------------------------------------------------------------------------------------------------------------------- -------------------------------------------------------------------------------------------------------------------------------- ----------

  0 record(s) selected.

checking again for invalid objects (query should return zero resluts

OBJECTSCHEMA                                                                                                                     OBJECTNAME                                                                                                                       ROUTINENAME                                                                                                                      OBJECTTYPE
-------------------------------------------------------------------------------------------------------------------------------- -------------------------------------------------------------------------------------------------------------------------------- -------------------------------------------------------------------------------------------------------------------------------- ----------

  0 record(s) selected.

DB20000I  The SQL command completed successfully.

================================================================================
Invoke Tablespace alter script for DB2
================================================================================
Defaulted container "db2u" out of: db2u, instdb (init), init-labels (init), init-kernel (init)

Creating .PROPS file
--------------------------------------------------------------------------------

Copy .PROPS to db2u-ajw0111/c-db2wh-ajw0111-manage-db2u-0
--------------------------------------------------------------------------------
Defaulted container "db2u" out of: db2u, instdb (init), init-labels (init), init-kernel (init)

Executing /mnt/blumeta0/home/db2inst1/Managed/Set_DB_COS_Storage.sh file on db2u-ajw0111/c-db2wh-ajw0111-manage-db2u-0
--------------------------------------------------------------------------------
Defaulted container "db2u" out of: db2u, instdb (init), init-labels (init), init-kernel (init)
ALIAS=AWSCOS
AWSCOS is available already.

Executing /mnt/blumeta0/home/db2inst1/bin/CheckCOS.sh file on db2u-ajw0111/c-db2wh-ajw0111-manage-db2u-0
--------------------------------------------------------------------------------
Defaulted container "db2u" out of: db2u, instdb (init), init-labels (init), init-kernel (init)
 
        ##### BUCKET = test-ajw0111-db2-backup #####
 

===================================================================================
Total number of files found = 26.
-----------------------------------------------------------------------------------
Size(bytes) Object Keys                                                     
----------- -----------------------------------------------------------------------  
3373076480  backups-manage/c-db2wh-ajw0111-manage-db2u-0/BLUDB.0.db2inst1.DBPART000.20241125144448.001
3389857792  backups-manage/c-db2wh-ajw0111-manage-db2u-0/BLUDB.0.db2inst1.DBPART000.20241125151124.001
3389857792  backups-manage/c-db2wh-ajw0111-manage-db2u-0/BLUDB.0.db2inst1.DBPART000.20241126063651.001
3389857792  backups-manage/c-db2wh-ajw0111-manage-db2u-0/BLUDB.0.db2inst1.DBPART000.20241126070012.001
1308946432  backups-manage/c-db2wh-ajw0111-manage-db2u-0/BLUDB.0.db2inst1.DBPART000.20241126074226.001
3389857792  backups-manage/c-db2wh-ajw0111-manage-db2u-0/BLUDB.0.db2inst1.DBPART000.20241126074528.001
3373076480  backups-manage/c-db2wh-ajw0111-manage-db2u-0/BLUDB.0.db2inst1.DBPART000.20241126090817.001
3389857792  backups-manage/c-db2wh-ajw0111-manage-db2u-0/BLUDB.0.db2inst1.DBPART000.20241126094058.001
3389857792  backups-manage/c-db2wh-ajw0111-manage-db2u-0/BLUDB.0.db2inst1.DBPART000.20241127104428.001
3406639104  backups-manage/c-db2wh-ajw0111-manage-db2u-0/BLUDB.0.db2inst1.DBPART000.20241127110814.001
3406639104  backups-manage/c-db2wh-ajw0111-manage-db2u-0/BLUDB.0.db2inst1.DBPART000.20241127134422.001
3406639104  backups-manage/c-db2wh-ajw0111-manage-db2u-0/BLUDB.0.db2inst1.DBPART000.20241127140217.001
1392881664  backups-manage/c-db2wh-ajw0111-manage-db2u-0/BLUDB.0.db2inst1.DBPART000.20241128020111.001
3406639104  backups-manage/c-db2wh-ajw0111-manage-db2u-0/BLUDB.0.db2inst1.DBPART000.20241128082608.001
3406639104  backups-manage/c-db2wh-ajw0111-manage-db2u-0/BLUDB.0.db2inst1.DBPART000.20241128085108.001
3406639104  backups-manage/c-db2wh-ajw0111-manage-db2u-0/BLUDB.0.db2inst1.DBPART000.20241128111549.001
3406639104  backups-manage/c-db2wh-ajw0111-manage-db2u-0/BLUDB.0.db2inst1.DBPART000.20241128113915.001
3389857792  backups-manage/c-db2wh-ajw0111-manage-db2u-0/BLUDB.0.db2inst1.DBPART000.20241128131248.001
3389857792  backups-manage/c-db2wh-ajw0111-manage-db2u-0/BLUDB.0.db2inst1.DBPART000.20241128133932.001
1292193792  backups-manage/c-db2wh-ajw0111-manage-db2u-0/BLUDB.0.db2inst1.DBPART000.20241129020037.001
3389857792  backups-manage/c-db2wh-ajw0111-manage-db2u-0/BLUDB.0.db2inst1.DBPART000.20241129084134.001
3406639104  backups-manage/c-db2wh-ajw0111-manage-db2u-0/BLUDB.0.db2inst1.DBPART000.20241129090558.001
3406639104  backups-manage/c-db2wh-ajw0111-manage-db2u-0/BLUDB.0.db2inst1.DBPART000.20241129162419.001
3423420416  backups-manage/c-db2wh-ajw0111-manage-db2u-0/BLUDB.0.db2inst1.DBPART000.20241129164736.001
6846        backups-manage/c-db2wh-ajw0111-manage-db2u-0/KEYSTORE/keystore.p12
193         backups-manage/c-db2wh-ajw0111-manage-db2u-0/KEYSTORE/keystore.sth
===================================================================================


Executing /mnt/blumeta0/home/db2inst1/bin/RUN_OnDemandFULL_BKP.sh file on db2u-ajw0111/c-db2wh-ajw0111-manage-db2u-0
--------------------------------------------------------------------------------
Defaulted container "db2u" out of: db2u, instdb (init), init-labels (init), init-kernel (init)

Executing  file /tmp/db2-scripts/dropTempts.sh on db2u-ajw0111/c-db2wh-ajw0111-manage-db2u-0
--------------------------------------------------------------------------------
Defaulted container "db2u" out of: db2u, instdb (init), init-labels (init), init-kernel (init)
/tmp/db2-scripts/dropTempts.sh: line 47: continue: only meaningful in a `for', `while', or `until' loop
NO TEMP STORAGE Found. Exiting . . . 

Executing /mnt/blumeta0/home/db2inst1/bin/RUN_OnDemandFULL_BKP.sh file on db2u-ajw0111/c-db2wh-ajw0111-manage-db2u-0
--------------------------------------------------------------------------------
Defaulted container "db2u" out of: db2u, instdb (init), init-labels (init), init-kernel (init)

@mnivedithaa mnivedithaa requested a review from whitfiea November 28, 2024 13:16
Copy link
Contributor

@whitfiea whitfiea left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we have to guard some of these calls so that these only run when a) backup is setup i.e. there is a bucket set and b) that we allow external customers to still use this chart to setup db2 for MAS. These customers are unlikely to have ICD and I see a lot of the scripts are calling into ICD as an assumption that it will be present. We either change change scripts to do this as optional, or say this backup process is internal ibm only.

The other thing we need to check is how much of an outage that this would cause if the setup-db2 job is run again (i.e. a change in values or we have a v6 version). I see a number of db2stop calls that would mean an outage when SRE simply update the gitops version. The scripts should ideally only set when things need to be set, and only restart if it is the first time of setup.

@whitfiea whitfiea self-requested a review December 4, 2024 10:57
@whitfiea whitfiea self-requested a review December 4, 2024 12:32
@whitfiea whitfiea changed the title [patch] Setup Db2 Backup job for Disaster recovery scenario and Compliance/SLA [minor] Setup Db2 Backup job for Disaster recovery scenario and Compliance/SLA Dec 4, 2024
@whitfiea whitfiea merged commit d9c7d1b into main Dec 4, 2024
2 checks passed
@whitfiea whitfiea deleted the DB2_Backup_and_Compliance branch December 4, 2024 12:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants