All the configurations or modifications here are in the running state of the Cluster. We will not discuss the situation where the cluster is in the stopped state.
Virtual condition:
A. Existing cluster1 composed of node1 and node2. The above two packages run pkg1 and pkg2 respectively.
B. node3 is not in the Cluster
1. Add node3 to cluster1 in the running Cluster
# Cd/etc/cmcluster
# Cmgetconf-C backup. ASCII
# Cmquerycl-C cmcluster. ascii-C cluster1-N node1-N node2-N node3
# Cmcheckconf-C cmcluster. ASCII Note: This step is not required
# Cmapplyconf-C cmcluster. ASCII
# Cmrunnode node3
# Cmviewcl
2. Delete node3 from cluster1 on the running Cluster
# Cd/etc/cmcluster
# Cmgetconf-C backup. ASCII
# Cmhaltnode-F node3 Note: This step only exits node3 from the cluster.
# Cmquerycl-C cmcluster. ascii-C cluster1-N node1-N node2
# Cmcheckconf-C cmcluster. ASCII Note: This step is not required
# Cmapplyconf-C cmcluster. ASCII
3. Change the volume group configuration on the running Cluster
# Cd/etc/cmcluster
# Cmgetconf-C backup. ASCII
Modify the cmcluster. ASCII file
To meet your requirements. If you delete a volume group, you must modify the PKG configuration file in the response.
# Cmcheckconf-C cmcluster. ASCII Note: This step is not required
# Cmapplyconf-C cmcluster. ASCII
4. Add the package pkg3 to the running Cluster
# Cd/etc/cmcluster
# Cmgetconf-C backup. ASCII
# Cmcheckconf-P/etc/cmcluster/pkg3/pkg3.conf
# Cmapplyconf-P/etc/cmcluster/pkg3/pkg3.conf
Copy the control script of pkg3 to the corresponding directories of node1 and node2.
# Cmrunpkg pkg3
5. reconfigure the pkg3 package on the running Cluster
# Cd/etc/cmcluster/pkg3
# Cmhaltpkg pkg3 Note: Stop the pkg3 package
# Cmgetconf-P pkg3.ascii
Edit the file and Its Control script to meet your requirements.
# Cmcheckconf-P/etc/cmcluster/pkg3/pkg3.ascii
# Cmapplyconf-P/etc/cmcluster/pkg3/pkg3.ascii
Copy the control script of pkg3 to the corresponding directories of node1 and node2.
# Cmrunpkg pkg3
6. Delete the pkg3 package on the running Cluster
# Cd/etc/cmcluster/pkg3
# Cmgetconf-P pkg3.ascii
# Cmmodpkg-D pkg3
# Cmhaltpkg pkg3
# Cmdeleteconf-P pkg3