chrepos Command

Purpose

Replaces a disk, used as the repository disk by the cluster or site, with another disk.

Syntax

chrepos [-n cluster_name] [-r [+New_reposDiskName | +New_reposDiskName,-Old_reposDiskName ] ]

Description

The chrepos command allows the disk currently used by the cluster or site as the repository disk to be replaced with a different disk.

In a multisite environment, the chrepos command can only replace the repository disk for the local site. The chrepos cannot be used to replace a repository disk at the remote site.

Flags

Item Description
-n cluster_name Specifies the name of cluster to be processed.
-r +New_reposDiskName Specifies the name of new repository disk to be used for replacing the existing repository disk. This syntax can only be used to clean up and to complete a previously failed replace operation that used the -r +New_reposDiskName,-Old_reposDiskName syntax.
-r +New_reposDiskName,-Old_reposDiskName Specifies the name of new repository disk to be added and the name of old repository disk to be removed.

Examples

  1. To replace the hdiskY disk with the hdiskX disk in a cluster named cl1:
    chrepos -n cl1 -r +hdiskX,-hdiskY
  2. To replace the existing repository disk with the hdiskX disk in the cluster called cl1:
    chrepos -n cl1 -r +hdiskX