Cluster actions
The db2mtool action=cluster parameter provides a command-line interface to IBM® i clustering functions.
Use db2mtool action=cluster with the cl parameter to indicate which cluster function you want to perform.
cl=addcluinterface
Add a cluster interface to a cluster node.
db2mtool action=cluster cl=addcluinterface node=xxx ip1=xxx
cl=addclumon
Add a cluster monitor.
db2mtool action=cluster cl=addclumon node=xxx restsvr=xxx restuser=xxx
cl=addclunode
Add a node to the cluster.
db2mtool action=cluster cl=addclunode node=xxx ip1=xxx [ip2=xxx] start=xxx
cl=addclupcy
Add a cluster policy.
db2mtool action=cluster cl=addclupcy policy=xxx domain=xxx dmntype=xxx
[qualifier=xxx] [value=xxx]
cl=adddevdmne
Add a cluster node to a device domain.
db2mtool action=cluster cl=adddevdmne node=xxx devdmn=xxx
cl=adddisk
Add disk units to a geographic mirror copy ASP. Specify the primary ASP name by using the primaryasp parameter when disks are added to a secondary ASP.
db2mtool action=cluster cl=adddisk asp=xxx [primaryasp=xxx] disklist="DMPnnn,DMPnnn"
cl=chgcluinterface
Change a cluster interface of a cluster node.
db2mtool action=cluster cl=chgcluinterface node=xxx ip1=xxx newip1=xxx
cl=chgclumon
Change a cluster monitor.
db2mtool action=cluster cl=chgclumon node=xxx restsvr=xxx
newrestsvr=xxx newrestuser=xxx
cl=chgclunodsts
Change the status of a cluster node from partition to failed.
db2mtool action=cluster cl=chgclunodsts
cl=chgclupcy
Change a cluster policy.
db2mtool action=cluster cl=chgclupcy policy=xxx domain=xxx dmntype=xxx
[qualifier=xxx] [value=xxx]
cl=chgcluver
Change the cluster version.
db2mtool action=cluster cl=chgcluver
cl=chgcrg
Change a cluster resource group.
db2mtool action=cluster cl=chgcrg source=xxx sourcerole=xxx
copy=xxx copyrole=xxx
cl=chgcrgpri
Initiate the switchover of a cluster resource group.
db2mtool action=cluster cl=chgcrgpri crg=xxx
cl=crtclu
Create a cluster.
db2mtool action=cluster cl=crtclu cluster=db2mclu node=xxx ip1=xxx [ip2=xxx]
cl=crtcrg
Create a cluster resource group.
db2mtool action=cluster cl=crtcrg crg=xxx node1=xxx ip1=xxx node2=xxx ip2=xxx iasplist="xxx,yyy"
cl=deconfiggeo
Deconfigure geographic mirroring for an ASP.
db2mtool action=cluster cl=deconfiggeo asp=xxx
cl=detachasp
Detach a geographically mirrored copy of an ASP from the production copy.
db2mtool action=cluster cl=detachasp asp=xxx
cl=dltclu
Delete the cluster.
db2mtool action=cluster cl=dltclu
cl=dltcrg
Delete a cluster resource group.
db2mtool action=cluster cl=dltcrg crg=xxx
cl=dspclu
Display the cluster name, cluster version, and cluster nodes.
db2mtool action=cluster cl=dspclu
cl=dspclupcy
Display cluster policies.
db2mtool action=cluster cl=dspclupcy
cl=dspcrginf
Display a cluster resource group.
db2mtool action=cluster cl=dspcrginf crg=xxx
cl=dspdevdmn
Display the nodes in a device domain.
db2mtool action=cluster cl=dspdevdmn devdmn=xxx
cl=endclunod
End a cluster node.
db2mtool action=cluster cl=endclunod node=xxx option=xxx
cl=endcrg
End a cluster resource group.
db2mtool action=cluster cl=endcrg crg=xxx
cl=initdisk
Initialize disk units. Binary zeros are written to the entire disk unit.
db2mtool action=cluster cl=initdisk disklist="DMPnnn,DMPnnn"
cl=lstclu
Display the nodes in the cluster.
db2mtool action=cluster cl=lstclu
cl=lstclumon
Display the cluster monitors for a node in the cluster.
db2mtool action=cluster cl=lstclumon node=xxx
cl=lstcrgcfgobj
Display the configuration objects in a cluster resource group.
db2mtool action=cluster cl=lstcrgcfgobj crg=xxx
cl=lstcrgrcydmn
Display the recovery domain of a cluster resource group.
db2mtool action=cluster cl=lstcrgrcydmn crg=xxx
cl=lstdevdmn
Display the device domains in the cluster.
db2mtool action=cluster cl=lstdevdmn
cl=reattachasp
Reattach a geographically mirrored copy of an ASP to the production copy.
db2mtool action=cluster cl=reattachasp asp=xxx
cl=resumegeo
Resume geographic mirroring for an ASP.
db2mtool action=cluster cl=resumegeo asp=xxx
cl=rmvcluinterface
Change a cluster node by removing a cluster interface.
db2mtool action=cluster cl=rmvcluinterface node=xxx ip1=xxx
cl=rmvclumon
Remove a cluster monitor.
db2mtool action=cluster cl=rmvclumon node=xxx
cl=rmvclunode
Remove a node from the cluster.
db2mtool action=cluster cl=rmvclunode node=xxx
cl=rmvclupcy
Remove a cluster policy.
db2mtool action=cluster cl=rmvclupcy policy=xxx domain=xxx dmntype=xxx
[qualifier=xxx]
cl=rmvdevdmne
Remove a node from a device domain.
db2mtool action=cluster cl=rmvdevdmne node=xxx devdmn=xxx
cl=strclunod
Start a cluster node.
db2mtool action=cluster cl=strclunod node=xxx
cl=strcrg
Start a cluster resource group.
db2mtool action=cluster cl=strcrg crg=xxx
cl=suspendgeo
Suspend geographic mirroring for an ASP.
db2mtool action=cluster cl=suspendgeo asp=xxx