Veritas Cluster (VCS) CLI reference guide

Cluster Operations

Lists the VCS commands for cluster operations.

Cluster operationsCommand line
Start VCS hastart [-onenode] hastart -force system_name
Stop VCS hastop -local [-force|-evacuate|-noautodisable] hastop -local [-force|-evacuate -noautodisable] hastop -sys system_name [-force|-evacuate|-noautodisable] hastop -sys system_name [-force|-evacuate -noautodisable] hastop -all [-force]
Enable/disable read-write access to VCS configuration haconf -makerw haconf -dump -makero
Add user hauser -add user_name

Service Group and Resource operations

Lists the VCS commands for service group and resource operations.

Service group and resource operationsCommand line
Configure service groups hagrp -add |-delete group_name hagrp -modify group attribute value hagrp -link parent_group child_group dependency
Configure resources hares -add resource type group_name hares -delete resource_name hares -modify resource attribute value hares -link parent_resource child_resource
Configure agents or resource types hatype -modify type attribute value
Bring service groups online and take them offline hagrp -online service_group -sys system_name hagrp -offline service_group -sys system_name
Bring resources online and take them offline hares -online resource_name -sys system_name hares -offline resource_name -sys system_name
Freezing/unfreezing service groups hagrp -freeze group_name [-persistent] hagrp -unfreeze group_name [-persistent]

Status and Verification

Lists the VCS commands for status and verification.

Status and VerificationCommand line
Cluster status hastatus -summary
LLT status/verification lltconfig lltconfig -a list lltstat lltstat -nvv
GAB status/verification gabconfig -a
AMF kernel driver status/verification amfconfig amfstat

Cluster Communications

ists the VCS commands for cluster communication.

CommunicationCommand line
Starting and stopping LLT lltconfig -c lltconfig -U
Starting and stopping GAB gabconfig -c -n seed_number gabconfig -U

System Operations

Lists the VCS commands for system operations.

System OperationsCommand line
List systems in a cluster hasys -list
Retrieve detailed information about each system hasys -display system_name
Freezing/unfreezing systems hasys -freeze [-persistent][-evacuate] system_name hasys -unfreeze [-persistent] system_name