chsession
The chsession command allows you to modify a Global Mirror session.
Parameters
- -dev storage_image_ID
- (Optional) The ID of the storage image containing the logical subsystem. The storage image ID includes manufacturer, machine type, and serial number. The storage image ID is required if you do not specify a fully qualified LSS ID or do not set the devid variable in your profile or with the setenv command. The storage image ID is also required if the HMC is associated with more than one storage image. Using the -dev parameter temporarily overrides any defined value for devid for the current command.
- -remotedev storage_image_ID
- (Optional) The remote DS system that contains one or more target volume IDs that are defined by the source_volume_ID:target_volume_ID variable of the -volpair parameter. The remote storage ID includes the manufacturer, machine type, and serial number. This parameter is required if you do not specify a fully qualified target volume ID or if you specify the -dev parameter.
- -lss ID
- (Required) The logical subsystem (LSS) ID for the Global Mirror session. The format of the LSS ID is a hexadecimal number in the range 00 - FE.
- -action add | remove
- (Required). Specify one of the following values.
- add
- Volumes to be added to the session.
- remove
- Volumes to be removed from the session.
- -volpair source_volume_ID:target_volume_ID ... | -volume volume_ID ...
- (Required) An array of one or more volume IDs or volume ID ranges to be added or removed for the
Global Mirror session. All volumes must share a common logical subsystem.
The ellipsis (...) indicates that, optionally, you can specify multiple values. To specify a range of volume IDs, you must separate the volume IDs with a hyphen. To specify a combination of one or more volume IDs and a range of volume IDs, separate the volume IDs and ranges with commas.
Notes:- Specify either the -volpair parameter or the -volume parameter.
- See the following information for the -volpair and -volume parameters.
- -volpair source_volume_ID:target_volume_ID ...
- A Remote Mirror and Copy pair ID consists of two volume IDs, one designated as the source and the other as the target for a Remote Mirror and Copy relationship. To specify two volume IDs, separate the volume IDs with a colon and no space. The first volume ID is the designated source volume and the second ID as the designated target volume. The secondary volume ID is required to identify a specific relationship in a Multi-Target Metro Mirror relationship.
- -volume volume_ID ...
- The volume ID is a 32-bit number that can be represented as four hexadecimal digits in the form
of XYZZ, where:
- XY
- The logical subsystem number, 00 - FE.
- ZZ
- The volume number, 00 - FF.
- X
- The address group, 0 - F.
- Session_ID | -
- (Required) The Global Mirror session that is modified for this session ID. A session ID is a hexadecimal number in the range 01 - FF.
Example: Modifying a Global Mirror session
dscli> chsession -dev IBM.2107-75FA120 -remotedev IBM.2107-7504491 -lss 10 -action add -volpair 1000-1010:1000-1010 01
Output
Global Mirror session 01 successfully modified.