DB2
De TwisterWiki
Supprimer un cluster TSA
- Il faut en premier passer le cluster ou ressource groupe offline
chrg -o offline db2_db2inst1_0-rg
[root@noeud1 ~]# lssam Offline IBM.ResourceGroup:db2_db2inst1_0-rg Nominal=Offline |- Offline IBM.Application:db2_db2inst1_0-rs |- Offline IBM.Application:db2_db2inst1_0-rs:noeud1 '- Offline IBM.Application:db2_db2inst1_0-rs:noeud2 |- Offline IBM.Application:db2mnt-db2data-rs |- Offline IBM.Application:db2mnt-db2data-rs:noeud1 '- Offline IBM.Application:db2mnt-db2data-rs:noeud2 |- Offline IBM.Application:db2mnt-db2indextext-rs |- Offline IBM.Application:db2mnt-db2indextext-rs:noeud1 '- Offline IBM.Application:db2mnt-db2indextext-rs:noeud2 |- Offline IBM.Application:db2mnt-db2instance-rs |- Offline IBM.Application:db2mnt-db2instance-rs:noeud1 '- Offline IBM.Application:db2mnt-db2instance-rs:noeud2 |- Offline IBM.Application:db2text-db2inst1-rs |- Offline IBM.Application:db2text-db2inst1-rs:noeud1 '- Offline IBM.Application:db2text-db2inst1-rs:noeud2 |- Offline IBM.ServiceIP:db2ip_192_168_0_1-rs |- Offline IBM.ServiceIP:db2ip_192_168_0_93-rs:noeud1 '- Offline IBM.ServiceIP:db2ip_192_168_0_93-rs:noeud2 '- Offline IBM.ServiceIP:db2ip_192_168_10_60-rs |- Offline IBM.ServiceIP:db2ip_192_168_10_60-rs:noeud1 '- Offline IBM.ServiceIP:db2ip_192_168_10_60-rs:noeud2 Online IBM.Equivalency:db2_db2inst1_0-rg_group-equ |- Online IBM.PeerNode:noeud1:noeud1 '- Online IBM.PeerNode:noeud2:noeud2 Online IBM.Equivalency:db2_private_network_0 |- Online IBM.NetworkInterface:eth2:noeud2 '- Online IBM.NetworkInterface:eth2:noeud1 Online IBM.Equivalency:db2_private_network_1 |- Online IBM.NetworkInterface:eth1:noeud1 '- Online IBM.NetworkInterface:eth1:noeud2
- On stop le cluster
stoprpdomain db2cluster [root@noeud1 ~]# lssam lssam: No resource groups defined or cluster is offline!
- On supprime la configuration (il faut que les montages /db2instance, /db2data et /db2indextext soient actif)
su - db2inst1 db2haicu -delete
- On vérifie si le domain est bien supprimé sur les 2 noeuds, ici il n'est pas supprimé
[root@noeud1 ~]# lsrpdomain Name OpState RSCTActiveVersion MixedVersions TSPort GSPort db2cluster Offline 3.1.4.3 No 12347 12348
- Suppression du domain sur les 2 noeuds
rmrpdomain -f db2cluster
en root
chrg -o offline db2_db2inst1_0-rg
chrg -o online db2_db2inst1_0-rg
stoprpdomain db2clu
startrpdomain db2clu
lssam
creation cluster
en root
preprpnode noeud 1 nooeu2
un connection en ssh est testée
en db2inst1
db2start
db2haicu
lsrpdomain
rmrpdomain -f manpodb2clupp
Comandes utilies
- Reset l'état d'un application
ex : |- Online IBM.Application:db2text-$INSTANCE-rs Control=MemberInProblemState
|- Failed offline IBM.Application:db2text-padpdb2-rs:noeud1
'- Online IBM.Application:db2text-$INSTANCE-rs:noeud2
resetrsrc -s "Name like 'db2text%'" IBM.Application
- Changer le cluster de noeud
rgreq -o move $RESSOURCEGROUP
- stopper un ressource group
chrg -o online $RESSOURCEGROUP
- relancer un ressource group
chrg -o offline $RESSOURCEGROUP
- suspendre le cluster (état : SuspendedPropagated)
su - $instance_owner
db2haicu -disable