VERITAS CLUSTER SERVER COMMAND LINE REFERENCE...

Post on 23-Jan-2021

16 views 0 download

transcript

VERITAS CLUSTER SERVER COMMAND LINE REFERENCE CARD

Start VCShastart (-force) (-stale)

Stop VCS# hastop -local [-force I -evacuate] -local stops had on the system where you

type the command.- sys stopshad on the systemyou specify.-all stops had on all systems in the cluster.

# hastop -sys system_name [-force I -evacuate]# hastop -all [-force]

Change VCS Configuration Onlinehaconf -makerw

. . .make changes. . .haconf -dump -makrero

Get Current Cluster Status

# hastatus -summary

Agent OperationsStop and start agents manually. # haagent -start agenCname -sys system_name

# haagent -stop agenCname -sys system_name

Add and Delete UsersAdd a user with read/write access to theves configuration.Add a user with read-only access.

Modify a user.

# hauser -add user_nameEnter a password when prompted.# hauser -add VCSGuest

Press Return when prompted for a password.

# hauser -modi fy user_name

Enter a new password when prompted.# hauser -delete user_name

# hauser -display [user_name]

Delete a user.

Display a user. If user_name is notsDecified, all users are disDlaved.

System Operations

Resource Types

List resource types.Get detailed information about a resource

type.List all resources of a Darticular tVDe.

Add a resource type.Set the value of static attributes.Delete a resource tVDe.

# hatype -list

# hatype -display [type_name]

# hatype# hatype# hatype

# hatype

-resources

-add resource.

-modify-delete resource e

- -...

List systems in the cluster. # hasys -listGet detailed information about each system. # hasys -display [system name]Add a system. Increase the system count in # hasys -add system_namethe GAB startup script.Delete a system. # hasys -delete system name

VERITAS CLUSTER SERVER COMMAND LINE REFERENCE CARD

Resource Operations

Service Group Operations

List all service groups.List a service group's resources.List a service group's dependencies.Get detailed information about a serviceorou.....Start a service group and bring its resourcesonJine.

Stop a service group and take its resourcesoffline.

Switch a service group from one system toanother. ([ailover groups only)Freeze a service group (disable onJining andofflining).Thaw a service group (reenable onJining andofflining).Enable a service group.Disable a service group.Enable all the resources in a serviceDisable all the resources in a service

Specify the dependency relationshipbetween two service groups.Remove the dependency between twoserVIce grouDS.

#:hagrp -list

#:hagrp -resources [service~roup]

#:hargrp -dep [service-f?roup]

#: hagrp -display [service~roup]

#: hagrp -online service~roup -sys system_name

#:hagrp -offline service~roup -sys system_name

#: hagrp -swi tch service~roup -to to_system

#: hagrp -freeze service~roup [-persistent]

#: hagrp -unfreeze service~roup [-persistent]

#: hagrp

#: hagrp

#: hagrp

#: hagrp

#: hagrp

#: hagrp -unl ink parent-$roup child-$roup

List all resources #:hares -list

List a resource's dependencies. #: hares -dep [resource name]Get detailed information about a resource. #: hares -display [resource name]Add a resource. #: hares -add resource name resourceJype service.J?roupModify the attributes of the new resource. #: hares -modify resource name attribute name valueDelete a resource, type. #: hares -delete resource nameOnJine a resource, type. #: hares -online resource name -sys system nameOffline a resource, type. #: hares -offline resource name -sys system name

Cause a resource's agent to immediately #: hares -probe resource_name - sys system_namemonitor the resource on a particular system.Clear a faulted resource. #: hares -clear resource name [ - sys system name ]

Make a resource's attribute value local. #: hares -local resource_name attribute_name value

Make a resource's attribute value global. #: hares -global resource_name attribute_name valueSpecify a dependency between two #: hares -1ink parenCreschild_resresources.

Remove the dependency relationship #: hares -unlink parenCreschild_resbetween two resources: