Modifying a consistency group

The vfradmin cgrp include add, vfradmin cgrp include remove, vfradmin cgrp exclude add, and vfradmin cgrp exclude remove commands allow you to modify a consistency group by adding or removing a path (file or directory) to or from the include and exclude lists. The vfradmin cgrp set mntpt command allows you to modify the consistency group mount point. A consistency group can only be modified if it is not associated with any replication job. You must use the vfradmin job clear cgrp command to disassociate the consistency group from a file replication job.

To disassociate a consistency group from a replication job, type the following command on both the source and the target systems:

# vfradmin job clear cgrp job_name mnpt cgrp_name

where:

job_name is the name of the replication job that you want to disassociate the consistency group from.

mnpt is the mount point on the source or the target system.

cgrp_name is the name of the consistency group that you want to disassociate from the replication job.

After all desired modifications are made to the consistency group, it must be re-associated with the replication job. To associate a consistency group with a replication job, type the following command on both the source and the target systems:

# vfradmin job set cgrp job_name mnpt cgrp_name

where:

job_name is the name of the replication job that you want to associate the consistency group with.

mnpt is the mount point on the source or the target system.

cgrp_name is the name of the consistency group that you want to associate with the replication job.

To add a path (file or directory) to the include list, type the following command on both the source and the target systems:

# vfradmin cgrp include add cgrp_name mntpt include-path1 include-path2

where:

cgrp_name is the name of the consistency group you are modifying.

mntpt is the mount point on the source or the target system.

include-path1 and include-path2 are the full paths including hte mount points of the files or directories you want to add to the include list.

To add a path (file or directory) to the exclude list, type the following command on both the source and the target systems:

# vfradmin cgrp exclude add cgrp_name mntpt exclude-path1 exclude-path2

where:

cgrp_name is the name of the consistency group you are modifying.

mntpt is the mount point on the source or the target system.

exclude-path1 and exclude-path2 are the full paths including mount points of the files or directories you want to add to the exclude list.

To remove a path (file or directory) from the include list, type the following command on both the source and the target systems:

# vfradmin cgrp include remove cgrp_name mntpt include-path1 \
include-path2

where:

cgrp_name is the name of the consistency group you are modifying.

mntpt is the mount point on the source or the target system.

include-path1 and include-path2 are the full paths including mount points of the files or directories you want to remove from the include list.

To remove a path (file or directory) from the exclude list, type the following command on both the source and the target systems:

# vfradmin cgrp exclude remove cgrp_name mntpt exclude-path1 \
exclude-path2

where:

cgrp_name is the name of the consistency group you are modifying.

mntpt is the mount point on the source or the target system.

exclude-path1 and exclude-path2 are the full paths including mount points of the files or directories you want to remove from the exclude list.

To modify the consistency group mount point, type the following command on both the source and the target systems:

# vfradmin cgrp set mntpt cgrp_name old_mntpt new_mntpt

where:

cgrp_name is the name of the consistency group you are modifying

old_mntpt is the old mount point on the source or the target system.

new_mntpt is the new mount point on the source or the target system.

The file system must be mounted at new_mntpt. If the file system is not mounted at new_mntpt, the command will fail.