ADOP Cutover Failed – Scenarios
This Note to explain various scenarios I’ve faced while applying patches through ADOP.
Scenario – 1
Before Starting the patch cycle.
Run File System: FS1
Patch File System: FS2
Scenario:
Prepare – Completed
Apply – Completed
Finalize – Completed
Cutover – Failed - after file system switch over completed and before starting Middle tier, this can be verified by running the below SQL.
set pagesize 200;
set linesize 160;
col PREPARE_STATUS format a15
col APPLY_STATUS format a15
col CUTOVER_STATUS format a15
col ABORT_STATUS format a15
col STATUS format a15
select NODE_NAME,ADOP_SESSION_ID, PREPARE_STATUS , APPLY_STATUS ,CUTOVER_STATUS , CLEANUP_STATUS , ABORT_STATUS , STATUS
from AD_ADOP_SESSIONS
order by ADOP_SESSION_ID;
ADOP_SESSION_ID P A C C A S
--------------- - - - - - -
12 Y Y 6 N X F
12 Y Y 5 N X F -- From this output. ADOP Session 12 - Cutover failed because it couldn’t start the Middle tier on Slave Node.
--------------- - - - - - -
12 Y Y 6 N X F
12 Y Y 5 N X F -- From this output. ADOP Session 12 - Cutover failed because it couldn’t start the Middle tier on Slave Node.
cutover statuses
cutover_status='Y''COMPLETED'
cutover_status not in ('N','Y','X') and status='F''FAILED'
cutover_status='0''CUTOVER STARTED'
cutover_status='1''SERVICES SHUTDOWN COMPLETED'
cutover_status='3''DB CUTOVER COMPLETED'
cutover_status='D''FLIP SNAPSHOTS COMPLETED'
cutover_status='4''FS CUTOVER COMPLETED'
cutover_status='5''ADMIN STARTUP COMPLETED'
cutover_status='6''SERVICES STARTUP COMPLETED'
cutover_status='N''NOT STARTED'
cutover_status='X''NOT APPLICABLE'
cutover_status not in ('N','Y','X') and status='F''FAILED'
cutover_status='0''CUTOVER STARTED'
cutover_status='1''SERVICES SHUTDOWN COMPLETED'
cutover_status='3''DB CUTOVER COMPLETED'
cutover_status='D''FLIP SNAPSHOTS COMPLETED'
cutover_status='4''FS CUTOVER COMPLETED'
cutover_status='5''ADMIN STARTUP COMPLETED'
cutover_status='6''SERVICES STARTUP COMPLETED'
cutover_status='N''NOT STARTED'
cutover_status='X''NOT APPLICABLE'
So Cutover Failed, if you source Run edition Env file,
File system is already switched i.e patch edition (FS2) become run edition and run edition (FS1) become patch.
So Now,
Run File System: FS2
Patch File System: FS1
Solution:
1. Source the Run edition Env file (FS2 is Run edition here)
2. Shutdown Middle tier on Primary and Slave, if it’s running. It’s safe to shutdown CM, but not required.
3. Run the cutover again, this cutover will not bringdown and brought up any services, It will complete quickly.
4. Restart Middle tier on Primary and Slave node.