HP StorageWorks Storage Mirroring for Linux Getting Started (T2558-96077, February 2008)

19
5. Specify the data to be protected by creating replication set rules. Define a rule by using the repset rule add
command.
6. Repeat the repset rule add command to define all of the data to be protected.
7. If you make an error when creating a replication set, use the repset rule remove command.
8. Verify the replication set rules defined by using the repset display command.
Command REPSET RULE ADD
Description Adds a rule to a replication set. A rule is the specification of a path including volume, directories,
wild cards, and/or file names.
Syntax
REPSET RULE ADD <path> [INCLUDE|EXCLUDE][, RECURSIVE|NONRECURSIVE][TO
<
repset>]
Options
! pathVolume, directory, wild card, and/or file name
! INCLUDE—Include the specified path in the replication set
! EXCLUDE—Exclude the specified path in the replication set
! RECURSIVE—All subdirectories and files are recursively included or excluded
! NONRECURSIVE—All subdirectories and files are non-recursively included or excluded
! repset—Name of the replication set
Examples
repset rule add /var/spool/customerDB to “Customer Data”
Notes ! The default settings for this command are include and recursive.
! If you do not specify a replication set name, the current replication set will be used.
! Options that contain non-alphanumeric characters must be enclosed in quotation marks.
! Verify what files can be included by reviewing Replication Capabilities in the Storage Mirroring User’s
Guide.
Command REPSET RULE REMOVE
Description Removes a rule from a replication set
Syntax
REPSET RULE REMOVE <path> [FROM <repset>]
Options
! pathVolume, directory, wild card, and/or file name
! repset—Name of the replication set
Examples
repset rule remove /var/spool/customerDB from “Customer Data”
Notes ! If you do not specify a replication set name, the current replication set will be used.
! Options that contain non-alphanumeric characters must be enclosed in quotation marks.
Command REPSET DISPLAY
Description Displays the rule of a replication set
Syntax
REPSET DISPLAY [repset]
Options
repset—Name of the replication set
Examples
! repset display
! repset display “Customer Data”
Notes ! If you do not specify a replication set name, the current replication set will be used.
! Replication set names that contain non-alphanumeric characters must be enclosed in quotation
marks.