Summary of online modification of MC/serviceguard

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.