I have a DB2 with TSAMP configuration which I do plan to upgrade to Pacemaker at some point but am having an issue I was hoping I could quickly solve.
There are two DCs with two DB2 instances in each DC. Where the local DC standby is NEARSYNC and the remote standbys are SUPERASYNC.
Primary: Site-1-Server-1 and Site-1-Server-2
Standby: Site-2-Server-1 and Site-2-Server-2
What happens is if we HADR takeover from Site 1 to Site 2 to then TSAMP activates the ServiceIP once DB2 is online. The issue is if we restart the server in Site 1 that previously had the ServiceIP then TSAMP doesn't bring the ServiceIP online on the other Standby Server.
This is how lssam looks.
Pending online IBM.ResourceGroup:db2_isva_isva_HVDB-rg Request=Lock Nominal=Online
|- Offline IBM.Application:db2_isva_isva_HVDB-rs Control=StartInhibitedBecauseSuspended
|- Offline IBM.Application:db2_isva_isva_HVDB-rs:s2svr1
'- Offline IBM.Application:db2_isva_isva_HVDB-rs:s2svr2
'- Online IBM.ServiceIP:db2ip_100_64_20_110-rs Control=SuspendedPropagated
|- Online IBM.ServiceIP:db2ip_100_64_20_110-rs:s2svr1
'- Offline IBM.ServiceIP:db2ip_100_64_20_110-rs:s2svr2
Online IBM.ResourceGroup:db2_isaminst_s2svr1_0-rg Nominal=Online
'- Online IBM.Application:db2_isaminst_s2svr1_0-rs
'- Online IBM.Application:db2_isaminst_s2svr1_0-rs:s2svr1
Online IBM.ResourceGroup:db2_isaminst_s2svr2_0-rg Nominal=Online
'- Online IBM.Application:db2_isaminst_s2svr2_0-rs
'- Online IBM.Application:db2_isaminst_s2svr2_0-rs:s2svr2
Online IBM.Equivalency:db2_isva_isva_HVDB-rg_group-equ
|- Online IBM.PeerNode:s2svr1:s2svr1
'- Online IBM.PeerNode:s2svr2:s2svr2
Online IBM.Equivalency:db2_isaminst_s2svr1_0-rg_group-equ
'- Online IBM.PeerNode:s2svr1:s2svr1
Online IBM.Equivalency:db2_isaminst_s2svr2_0-rg_group-equ
'- Online IBM.PeerNode:s2svr2:s2svr2
Online IBM.Equivalency:db2_private_network_0
|- Online IBM.NetworkInterface:ens34:s2svr1
'- Online IBM.NetworkInterface:ens34:s2svr2
Online IBM.Equivalency:db2_public_network_0
|- Online IBM.NetworkInterface:ens33:s2svr1
'- Online IBM.NetworkInterface:ens33:s2svr2
As above I can see:
|- Online IBM.ServiceIP:db2ip_100_64_20_110-rs:s2svr1
This is showing that the ServiceIP is online.
If I reboot the host s2svr1 then the ServiceIP doesn't come back.
Failed offline IBM.ResourceGroup:db2_isva_isva_HVDB-rg Nominal=Online
|- Failed offline IBM.Application:db2_isva_isva_HVDB-rs
|- Failed offline IBM.Application:db2_isva_isva_HVDB-rs:s2svr1
'- Failed offline IBM.Application:db2_isva_isva_HVDB-rs:s2svr2
'- Offline IBM.ServiceIP:db2ip_100_64_20_110-rs
|- Offline IBM.ServiceIP:db2ip_100_64_20_110-rs:s2svr1
'- Offline IBM.ServiceIP:db2ip_100_64_20_110-rs:s2svr2
Online IBM.ResourceGroup:db2_isaminst_s2svr1_0-rg Nominal=Online
'- Online IBM.Application:db2_isaminst_s2svr1_0-rs
'- Online IBM.Application:db2_isaminst_s2svr1_0-rs:s2svr1
Online IBM.ResourceGroup:db2_isaminst_s2svr2_0-rg Nominal=Online
'- Online IBM.Application:db2_isaminst_s2svr2_0-rs
'- Online IBM.Application:db2_isaminst_s2svr2_0-rs:s2svr2
Online IBM.Equivalency:db2_isva_isva_HVDB-rg_group-equ
|- Online IBM.PeerNode:s2svr1:s2svr1
'- Online IBM.PeerNode:s2svr2:s2svr2
Online IBM.Equivalency:db2_isaminst_s2svr1_0-rg_group-equ
'- Online IBM.PeerNode:s2svr1:s2svr1
Online IBM.Equivalency:db2_isaminst_s2svr2_0-rg_group-equ
'- Online IBM.PeerNode:s2svr2:s2svr2
Online IBM.Equivalency:db2_private_network_0
|- Online IBM.NetworkInterface:ens34:s2svr1
'- Online IBM.NetworkInterface:ens34:s2svr2
Online IBM.Equivalency:db2_public_network_0
|- Online IBM.NetworkInterface:ens33:s2svr1
'- Online IBM.NetworkInterface:ens33:s2svr2
The only way to bring it back online is to HADR back to the standby.
The reason for this is we have ACR enabled pointing to the ServiceIP in the other DC. So when we have both ServiceIPs active then any client connecting will automatically know to go to the other DC. But in this situation we don't have the ServiceIP so the client can't connect.
So.. Is there a way to manually bring only the service IP back online so it can be pinged, without needing to bring the DB2 daabase back into the DC?
I think I will need to use something like.
But doing:
chrg -o online db2_isva_isva_HVDB-rg
chrsrc -o online
But the documentation isn't clear what steps I would need to run to bring the ServiceIP online. Any suggestions?