7.3. Using Other CCS Administrative Options

The following sections detail other administrative functions that can be performed by the ccs_tool command.

7.3.1. Extracting Files from a CCS Archive

When extracting original CCS configuration files from a CCS archive, the ccs_tool extract command creates a new directory specified on the command line and recreates the CCS files in the directory. The CCS archive remains unaffected by this command.

7.3.1.1. Usage

ccs_tool extract CCADevice Directory

CCADevice

Specifies the name of the CCA device.

Directory

The relative path to the directory containing the CCS files for the cluster.

7.3.1.2. Example

In this example, the CCS files contained on the CCA device, /dev/pool/alpha_cca, are extracted and recreated in directory /tmp/alpha-bak/.

ccs_tool extract /dev/pool/alpha_cca /tmp/alpha-bak/

7.3.2. Listing Files in a CCS Archive

The CCS configuration files contained within a CCS archive can be listed by using the ccs_tool list command.

7.3.2.1. Usage

ccs_tool list CCADevice

CCADevice

Specifies the name of the CCA device.

7.3.2.2. Example

This example causes the CCS files contained on the CCA device, /dev/pool/alpha_cca, to be listed.

ccs_tool list /dev/pool/alpha_cca

7.3.3. Comparing CCS Configuration Files to a CCS Archive

The ccs_tool diff command can be used to compare a directory of CCS configuration files with the configuration files in a CCS archive. The output from the ccs_tool diff command is displayed for each corresponding file in the specified directory and the CCS archive.

7.3.3.1. Usage

ccs_tool diff CCADevice [Directory]

CCADevice

Specifies the name of the CCA device.

Directory

The relative path to the directory containing the CCS files for the cluster.

7.3.3.2. Example

In this example, the CCS configuration files in directory /root/alpha/ are compared with the configuration files in CCA device /dev/pool/alpha_cca.

ccs_tool diff /dev/pool/alpha_cca /root/alpha/