Veritas Cluster Cheat Sheet Page 4

ADVERTISEMENT

1 = read only mode
hacf -verify /etc/VRTS/conf/config
Check the configuration file
Note: you can point to any directory as long as it has main.cf and
types.cf
convert a main.cf file into cluster
hacf -cftocmd /etc/VRTS/conf/config -dest /tmp
commands
convert a command file into a main.cf
hacf -cmdtocf /tmp -dest /etc/VRTS/conf/config
file
Service Groups
haconf -makerw
hagrp -add groupw
add a service group
hagrp -modify groupw SystemList sun1 1 sun2 2
hagrp -autoenable groupw -sys sun1
haconf -dump -makero
haconf -makerw
delete a service group
hagrp -delete groupw
haconf -dump -makero
haconf -makerw
hagrp -modify groupw SystemList sun1 1 sun2 2 sun3 3
haconf -dump -makero
change a service group
Note: use the "hagrp -display <group>" to list attributes
list the service groups
hagrp -list
list the groups dependencies
hagrp -dep <group>
list the parameters of a group
hagrp -display <group>
display a service group's resource
hagrp -resources <group>
display the current state of the service group
hagrp -state <group>
clear a faulted non-persistent resource in a
hagrp -clear <group> [-sys] <host> <sys>
specific grp
# remove the host
hagrp -modify grp_zlnrssd SystemList -delete <hostname>
# add the new host (don't forget to state its position)
Change the system list in a cluster
hagrp -modify grp_zlnrssd SystemList -add <hostname> 1
# update the autostart list
hagrp -modify grp_zlnrssd AutoStartList <host> <host>
Service Group Operations
Start a service group and bring its resources
hagrp -online <group> -sys <sys>
online
Stop a service group and takes its resources
hagrp -offline <group> -sys <sys>
offline
Switch a service group from system to
hagrp -switch <group> to <sys>
another
Enable all the resources in a group
hagrp -enableresources <group>
Disable all the resources in a group
hagrp -disableresources <group>
hagrp -freeze <group> [-persistent]
Freeze a service group (disable onlining and
offlining)
note: use the following to check "hagrp -display <group> |
grep TFrozen"
Unfreeze a service group (enable onlining and
hagrp -unfreeze <group> [-persistent]

ADVERTISEMENT

00 votes

Related Articles

Related forms

Related Categories

Parent category: Education
Go
Page of 6