January 8, 2015

Veritas Cluster Server: how to get a snapshot of a running cluster

Posted in Veritas tagged , , , , , , , at 6:51 pm by alessiodini

Since the new year one of my new duties is to work as Symantec consultant, so I’m working a lot with VxVM/VCS ( 4.*, 5.*, 6.* ) under RHEL,SUSE,HP-UX,Solaris.
Today I learned how to get a snapshot of a running cluster. This procedure is very useful because I can get the complete list of vcs commands for clone,copy or create a new cluster on a new systems ( adapting hostnames,network interfaces, etc.etc. ). I immediatelly tought about scsnapshot on Sun Cluster/Oracle Cluster but with VCS there are a lot of details. This new cluster was composited by just two nodes without resources yet but I obtained more than 3k lines of commands!!
How to get the snapshot? It’s easy 🙂

Go to /etc/VRTSvcs/conf/config and run: hacf -verify .
You will have a main.cmd file, containing the commands list. I was curious to see the option description from the hacf man page:

-verify conf_dir [-display]
The -verify option checks for syntax errors in the
configuration file main.cf (which usually includes
types.cf) before starting the VCS engine. It returns
after the first syntax error is detected. VCS does not
execute if there are errors in the configuration. The
hacf command looks for the main.cf file in the
conf_dir. The conf_dir is the directory in which the

SunOS 5.11 Last change: 2013-11-07 1

VCS 6.1 HACF(1M)

main.cf file resides. No error message and a return
value of zero means the syntax is legal. If the
-display option is specified, then the output is also
displayed on the stdout.

This is a part of main.cmd file generated today.


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: