Managing a VERITAS Cluster Server (VCS) for
a database involves specific commands to start, stop, and manage the cluster.
Below are the steps and commands to start and shut down a VERITAS cluster for a
database environment.
Starting the VERITAS Cluster
- Start
the VCS Services:
Ensure the VCS services are running on all nodes in the cluster.
hastart
This command starts the VCS services on the local node.
Bring the Cluster Online:
If the cluster is not already online, bring it online using:
hagrp
-online <group_name> -sys <system_name>
Replace <group_name> with the name of the
resource group and <system_name> with the name of the system
where the group should be brought online.
Verify the Cluster Status:
Check the status of the cluster to ensure all resources are online:
hastatus
-summary
- This
command provides a summary of the cluster's status, including resource
groups and their states.
- Start
the Database Resource:
If the database is managed as a resource in VCS, ensure it is started:
hares
-online <database_resource_name> -sys <system_name>
Replace <database_resource_name> with the
name of the database resource.
Shutting Down the VERITAS Cluster
- Stop
the Database Resource:
Gracefully stop the database resource:
hares
-offline <database_resource_name> -sys <system_name>
- Replace <database_resource_name> with
the name of the database resource.
- Bring
the Resource Group Offline:
Take the resource group offline:
hagrp
-offline <group_name> -sys <system_name>
Replace <group_name> with the name of the resource group.
Stop the VCS Services:
Stop the VCS services on all nodes:
hastop
-all
- This
command stops the VCS services on all nodes in the cluster.
- Verify
the Cluster is Shutdown:
Confirm that the cluster is fully stopped:
hastatus
- This
command should indicate that the VCS services are not running.
Additional Commands for VCS Management
- Check
Cluster Configuration:
hacf
-verify
- This
command verifies the cluster configuration file for errors.
- List
Resource Groups:
hagrp
-list
- Lists
all resource groups in the cluster.
- Check
Resource Status:
hares
-state
·
Displays the state of all resources.
·
Move a Resource Group to Another Node:
hagrp
-switch <group_name> -to <system_name>
Moves a resource group to another system in the cluster.
No comments:
Post a Comment