Top
ETERNUS SF AdvancedCopy Manager V16.9A Operation Guide
FUJITSU Storage

8.3.1 Environment Definition Commands

This section describes environment definition commands for replication management.

8.3.1.1 swsrpsetvol (Replication Volume Information Setting Command)

NAME

swsrpsetvol - sets the replication source volumes and replication destination volumes

SYNOPSIS

To Execute on Managed Server
For Replication on Single Server
/opt/FJSVswsrp/bin/swsrpsetvol [-n] [-u] [-Xgroup groupName]
originalVolumeName replicaVolumeName
For Server-to-server Replication
/opt/FJSVswsrp/bin/swsrpsetvol [-n] [-u]  -o (ORG|REP|BOTH) [-Xgroup groupName] originalVolumeName replicaVolumeName
To Execute on Management Server
For Replication on Single Server
/opt/FJSVswsrp/bin/swsrpsetvol [-h serverName] [-n] [-u] [-Xgroup groupName] originalVolumeName replicaVolumeName
For Server-to-server Replication
/opt/FJSVswsrp/bin/swsrpsetvol [-h serverName] [-n] [-u] -o (ORG|REP|BOTH) [-Xgroup groupName] originalVolumeName replicaVolumeName

DESCRIPTION

This command sets the replication source volumes and replication destination volumes that are used in a replication operation. Execute this command to declare that the replication operation is performed using the specified replication volumes.

OPTIONS

-h serverName

When executing on the Management Server, specify the name of the target Managed Server.
When executing on the target Managed server, it is not necessary to specify this option.
For the server name, accurately specify the same letters, including upper and lower case, as the server name displayed with the stgxfwcmdispsrv command.

-u

Specifies the direction of copying.
If this option is specified, copying is performed only in the direction from replication source volume to a replication destination volume. Copying from a replication destination volume to a replication source volume is prohibited.
If this option is omitted, copying between the replication source and replication destination volumes is bidirectional.

-o {ORG|REP|BOTH}

When performing the server-to-server replication, specify the operation server(s) authorized to manage replication.
Specify one of the following for this operand:

ORG : Sets the replication source server as the operation server.
REP : Sets the replication destination server as the operation server.
BOTH : Sets both the copy-source server and copy-destination server as operation servers.

When BOTH has been specified, all commands can be executed from either the replication source server or the replication destination server.
When ORG or REP was specified, the non-operation server cannot issue the following commands:

However, in the following cases, the non-operation server can issue the above commands.

  • When specifying the -d option with the swsrpdelvol command.

  • When specifying the -c option with the swsrpcancel command.

  • When specifying the -b option with the swsrpcancel command.

-n

If this option is omitted, replication volume information cannot be set when the sizes of the replication source volume and replication destination volume are different.
When this option is specified, the sizes of the replication source volume and replication destination volume are not checked. Use this option when volume sizes are different (for example, for replication between different OSs).
When the volume sizes of the replication source volume and replication destination volume are different, copying is performed as follows:
The address at which copying starts is the first sector of the replication destination volume.
The copy data size is the size of the smaller volume.
Therefore, ensure that the size of the copy destination volume is the same size or larger than the size of the copy source volume.

-Xgroup groupName

Specifies that the copy source and copy destination volumes are registered in a group.
If the specified group does not exist, a new group is created. Otherwise, the specified copy source and copy destination volumes are added to an existing group.
The characters that can be used for the group name are single-byte alphanumeric characters, the hyphens (-), underscore (_), number sign (#) and period (.). The first character must be a single-byte alphanumeric character. Up to 64 characters can be used.

OPERANDS

originalVolumeName

Specifies a replication source volume name.
For the volume names of other servers, use the format "Volume-Name@Managed-Server-Name".
Specifies the AdvancedCopy Manager device name for the Volume-Name.

replicaVolumeName

Specifies a replication destination volume name.
For the volume names of other servers, use the format "Volume-Name@Managed-Server-Name".
Specifies the AdvancedCopy Manager device name for the Volume-Name.

EXIT STATUS

=0: Completed successfully
>0: Terminated abnormally

EXAMPLES

NOTES

8.3.1.2 swsrpvolinfo (Replication Volume Information Display Command)

NAME

swsrpvolinfo - displays the replication volume information

SYNOPSIS

To Execute on Managed Server
/opt/FJSVswsrp/bin/swsrpvolinfo [-L] [originalVolumeName]
To Execute on Management Server
/opt/FJSVswsrp/bin/swsrpvolinfo [-h serverName] [-L] [originalVolumeName]

DESCRIPTION

This command displays the replication volume information registered by the swsrpsetvol command.
The following information is displayed.

Title

Description

Server

Displays a Managed Server name.

Original-Volume

Displays a replication source volume name.

Size

Displays the volume size.

Additionally, in the case of a volume group, displays the size of the physical disk on which the logical disk exists.

Replica-Volume

Displays a replication destination volume name.

Copy

Displays the copying direction.

"uni-direction": One-way copying from a replication source volume to a replication destination volume is allowed.
"bi-direction": Bidirectional copying is allowed.

Op-Server

Displays the operation server of a pair of replication volumes.

"original": The replication source server is the operation server.
"replica": The replication destination server is the operation server.
"both": Sets both the copy-source server and copy-destination server as operation servers.

Group

(Only when the -L option is specified)

Displays the group name.

"----"is displayed if the copy source and destination volumes are not registered in a group.

OPTIONS

-h serverName

When executing on the Management Server, specify the name of the target Managed Server.
When executing on the target Managed server, it is not necessary to specify this option.
For the server name, accurately specify the same letters, including upper and lower case, as the server name displayed with the stgxfwcmdispsrv command.

-L

Specifies that information is displayed using the extended format.
For the items displayed by this option, refer to the table in the description above.
The items that are displayed may be expanded to support new functions provided by future versions.

OPERANDS

originalVolumeName

Specifies a replication source volume name.
For the volume names of other servers, use the format "Volume-Name@Managed-Server-Name."
Specifies the AdvancedCopy Manager device name for the volume name.
Displays all the replication volume information for the specified replication source volume. If this operand is omitted, all the replication volume information existing on the Managed Server on which this command is executed is displayed.

EXIT STATUS

=0: Completed successfully
>0: Terminated abnormally

EXAMPLES

NOTES

8.3.1.3 swsrpdelvol (Replication Volume Information Deletion Command)

NAME

swsrpdelvol - deletes the replication volume

SYNOPSIS

To Execute on Managed Server
/opt/FJSVswsrp/bin/swsrpdelvol [-e] [-d] originalVolumeName replicaVolumeName
To Execute on Management Server
/opt/FJSVswsrp/bin/swsrpdelvol [-h serverName] [-e] [-d] originalVolumeName replicaVolumeName

DESCRIPTION

This command deletes the replication volume information that has been set.
If copy processing is being performed on a replication volume that is to be deleted, execute the command after the copy processing has stopped.

OPTIONS

-h serverName

When executing on the Management Server, specify the name of the target Managed Server.
When executing on the target Managed server, it is not necessary to specify this option.
When performing the server-to-server replication, specify the name of the operation server configured with the swsrpsetvol command.
For the server name, accurately specify the same letters, including upper and lower case, as the server name displayed with the stgxfwcmdispsrv command.

-e

Emergency mode is available for operations.
Specifies deleting replica volume information without checking the execution state of an Advanced Copy. Use this option only when it is clear that the Advanced Copy has not executed.

-d

Specifies that no communication should take place between the linked servers in server-to-server replication. When this option is specified, replication volume information is deleted without communication taking place between the linked servers.
Use the option only when recovery of one of the linked servers cannot be expected.
The option is valid only for server-to-server replication.
The option can be used on the server not specified as the operation server.

OPERANDS

originalVolumeName

Specifies a replication source volume name.
For the volume names of other servers, use the format "Volume-Name@Managed-Server-Name".
Specifies the AdvancedCopy Manager device name for the Volume-Name.

replicaVolumeName

Specifies a replication destination volume name.
For the volume names of other servers, use the format "Volume-Name@Managed-Server-Name".
Specifies the AdvancedCopy Manager device name for the Volume-Name.

EXIT STATUS

=0: Completed successfully
>0: Terminated abnormally

EXAMPLES

NOTES

8.3.1.4 swsrprecbuffstat (REC Buffer Information Display Command)

NAME

swsrprecbuffstat - displays information for the REC buffer

SYNOPSIS

To Execute on Managed Server
/opt/FJSVswsrp/bin/swsrprecbuffstat [-L] volumeName
To Execute on Management Server
/opt/FJSVswsrp/bin/swsrprecbuffstat [-h server-Name] [-L] volumeName

DESCRIPTION

This command displays information for the REC buffer used by ETERNUS Disk storage system when REC is performed in Consistency mode.
The following information is displayed.

Title

Description

BoxID

The box identifier for the box connected to the server where the command was executed.

ID

The ID for the REC buffer.

Use

The attribute (usage) for the REC buffer.

"SEND": REC buffer for sending data
"RECV": REC buffer for receiving data

Rate

The usage rate of the REC buffer as a percentage.

If "Use" Is SEND, the usage rate of the REC buffer is displayed as a percentage. The usage rate may not be 0 %, even if REC is not being performed in Consistency mode.

If "Use" Is RECV, "0%" is always displayed.

"----" is displayed if the REC buffer cannot be used.

RemoteBoxID

The box identifier for the box performing a remote copy.

DiskBuff

Displays the REC Disk buffer status only when -L option is specified:

  • "---": REC buffer is used for receiving

  • "active": REC Disk buffer is available for use

  • "invalid": REC Disk buffer is not set

  • "warning(code=xx)": REC Disk buffer is available for use but there is a disk fault

  • "inactive(code=xx)": REC Disk buffer cannot be used

  • "not_support": REC Disk buffer is not supported

The following codes are displayed at code=xx in the case of warning or inactive:

  • 04: Rebuild or other recovery operation is in progress (REC Disk buffer is available for use)

  • 05: RAID that comprises the REC Disk buffer has a fault

  • 06: The REC Disk buffer RAID group is being formatted

  • 07: Copy destination does not support REC Disk buffer

  • 08: A RAID that comprises the REC Disk buffer has no redundancy

DiskRate

Displays the busy rate as a percentage if the REC Disk buffer state is "active" or "warning" only when -L option is specified. If the REC Disk buffer is not being used, 0% is displayed.
In cases other than the above, "---" is displayed.

OPTIONS

-h serverName

When executing on the Management Server, specify the name of the target Managed Server.
When executing on the target Managed server, it is not necessary to specify this option.
For the server name, accurately specify the same letters, including upper and lower case, as the server name displayed with the stgxfwcmdispsrv command.

-L

This option specifies to display in extended format.
For the items displayed by this option, refer to the table in the description above.
Note that additional items corresponding to new functions in future versions might be displayed in future when this option is specified.

OPERANDS

volumeName

Specifies the name of a volume that has been registered as a replication volume.
You can only specify volumes that are connected to the Managed Server where the command is executed.

Specifies the AdvancedCopy Manager device name as the volume name.

EXIT STATUS

=0: Completed successfully
>0: Terminated abnormally

EXAMPLES

NOTES

8.3.1.5 swsrprecbuffset (REC Buffer Settings Change Command)

NAME

swsrprecbuffset - changes the settings of the REC buffer

SYNOPSIS

To Execute on Managed Server
/opt/FJSVswsrp/bin/swsrprecbuffset -Xbuffid buffer-id -Xbuffuse {SEND|RECV} volumeName
To Execute on Management Server
/opt/FJSVswsrp/bin/swsrprecbuffset [-h serverName] -Xbuffid buffer-id -Xbuffuse {SEND|RECV} volumeName

DESCRIPTION

This command changes the settings of the REC buffer used by ETERNUS Disk storage system when REC is performed in Consistency mode.
For information about the setting method of REC buffer, refer to "User's Guide Setup / Maintenance" of ETERNUS Web GUI.

OPTIONS

-h serverName

When executing on the Management Server, specify the name of the target Managed Server.
When executing on the target Managed server, it is not necessary to specify this option.
For the server name, accurately specify the same letters, including upper and lower case, as the server name displayed with the stgxfwcmdispsrv command.

-Xbuffid buffer-id

Specifies the ID for the REC buffer.

-Xbuffuse {SEND|RECV}

Specifies the usage for the REC buffer.

SEND : REC buffer for sending data
RECV : REC buffer for receiving data

OPERANDS

volumeName

Specifies the name of a volume that has been registered as a replication volume.
You can only specify volumes that are connected to the Managed Server where the command is executed.

Specifies the AdvancedCopy Manager device name as the volume name.

EXIT STATUS

=0: Completed successfully
>0: Terminated abnormally

EXAMPLES

NOTES