Complete this task to end a Global Mirror session. In addition
to ending a single session, this task is also the second step that you use
when you remove the Global Mirror environment from your system.
Each session that you have created for Global Mirror processing
must be ended individually. You cannot designate that a range of sessions
be ended. Ending a session does not remove the volume or path associations.
Each of these must be removed in their own way.
Perform the
following steps to end a Global Mirror session. The example commands in this
task are shown in two formats. The first format shows the type of information
that the command requires. The second format provides the command with declared
values for the variables.
- Issue the lssession command to obtain a list of
all sessions that are associated with the specified logical subsystem. Enter
the lssession command at the dscli command prompt with the following
parameters and variables:
dscli>lssession -dev storage_image_ID -s LSS_ID
Example
dscli>lssession –dev IBM.1750-68FA120 -s 01
Note: For
the circumstance described in this task, it is better to issue the
-s parameter.
The
-s parameter creates a report with the following three items of
information:
- LSSID
- Session number
- Volume numbers
- Print the report or record the session numbers that need to be
ended.
- Issue the rmsession command to end the specified
session. Enter the rmsession command at the dscli command prompt with
the following parameters and variables:
dscli>rmsession -dev storage_image_ID -lss ID session_ID
Example
dscli>rmsession -dev IBM.1750-68FA120 -lss 10 01
- Enter Y to respond to the message that requests
that you confirm that you want to end the specified session. A message similar
to the following is displayed when you process the rmsession command.
Are you sure you want to close Session ID 01? y/n Y
Global Mirror Session ID 01 closed successfully.
- Repeat Step 3 for each session that needs to be ended.