clsnapshot command

Purpose

Creates a cluster snapshot file. A snapshot file is a set of ASCII files that contain PowerHA® SystemMirror® cluster configuration data and the cluster state information.
Important: The clsnapshot command is deprecated in PowerHA SystemMirror Version 7.2.4 for AIX®, and later. You must use the clmgr command for all snapshot-related functions.
The following table lists some of the clsnapshot commands and their equivalent clmgr commands:
clsnapshot Command Equivalent clmgr Command
clsnapshot –c my_snapshot 
clmgr add snapshot my_snapshot
clsnapshot –a backup_snapshot
clmgr manage snapshot restore backup_snapshot
clsnapshot –l
clmgr list snapshot

Syntax


clsnapshot [-a] [-c] [-C] [-d description] [-e] [-f true|false] [-g] [-h] 
[-i] [-l] [-m methodlist] -n filename [-N filename] [-o odmdir] 
[-q] [-r] [-R] [s] [-t] 

Description

The clsnapshot command creates, modifies, or removes two files. The first file is identified by the file extension .odm and contains the current PowerHA SystemMirror ODM class objects. You can write a brief description to the file. The second file with an extension of .info contains information useful for troubleshooting PowerHA SystemMirror clusters.

The clsnapshot command is run on every configured node to obtain node-specific information.

You can use the clsnapshot command to apply a snapshot to the current cluster hardware. A verification utility is run, and must pass before the configuration information is synchronized to the cluster nodes. You can use the -f flag to force a snapshot to be applied even if the verification routine fails.
Note: The environment variable SNAPSHOTPATH contains the path that leads to the snapshot file. By default, this path is /usr/es/sbin/cluster/snapshots.

Flags

-a
Apply a cluster snapshot
-c
Create a cluster snapshot
-C
Do not refresh an active cluster resource when you are applying a snapshot.
-d text
Added a description to the snapshot.
-e
Save cluster logs in the snapshot. Saving the logs to the snapshot can significantly increase the file size of the snapshot.
-f true|false
Force the application of a snapshot if verification fails.
-g
Generate a temporary ODM holding the snapshot
-h
Usage of the snapshot
-i
Generates files with the .info extension.
-l
Lists the snapshot files.
-m methodlist
Runs each custom snapshot method that is listed in the method list file.
-n file
Specifies the name of the snapshot.
-N file
Specifies the new name of the snapshot.
-o odmdir
Specify the ODM directory (ODMDIR) for the PowerHA SystemMirror ODM classes.
-r
Removes a snapshot.
-R
Replaces a snapshot.
-s
Displays a snapshot.
-t
Resets cluster options.