chsess
Use the chsess command to change the description or properties for an existing session. If you want to change the session type, you must delete the session and create another session.
Syntax
The properties that are available for a session depend on the session type and the storage system type. For a description of the correlating properties by session type and storage system type in the GUI, see the IBM Copy Services Manager User's Guide.
Parameters for sessions for all storage system types
- -help | -h | -?
- Lists help for the command. If you specify additional parameters and arguments, those parameters and arguments are ignored.
- -quiet
- Suppresses the confirmation prompt for this command. This flag answers yes to all confirmation prompts.
- -site1loc location
- Specifies a location to associate with the site 1 volume role.
- -site2loc location
- Specifies a location to associate with the site 2 volume role.
- -site3loc location
- Specifies a location to associate with the site 3 volume role.
- -site4loc location
- Specifies a location to associate with the site 4 volume role.
- -desc description
- Specifies the new description for the session. This description can have up to 250 alphanumeric characters. If the description contains white space, enclose it in single quotation marks.
- -groupname group_name
- Specifies the new session group for the session to belong to. The group name can have up to 250 alphanumeric characters. If the group name contains white spaces, enclose it in single quotation marks.
- -rmgroup
- Specifies the session should be removed from the session group it currently belongs to.
- -name new_session_name
- Specifies the new name for the session. This parameter is
mutually exclusive and cannot be specified with any other parameter. The session name can have up to
250 alphanumeric characters and must be unique.Note:
- This command is supported only for users with administrator privileges.Important: Do not issue the command under the following conditions:
- If the session is running.
- If the session is scheduled to run before renaming can be completed.
- This command is not supported under the following conditions:
- If HyperSwap® or Hardened Freeze is enabled for the session.
- If the session is an ESE Sizer session type, a Safeguarded Copy for Storage Virtualize session type, an XIV® or a FlashSystem A9000 session type, or a basic HyperSwap session type.
- If the session is in transition state.
- This command is supported only when the session is in these states: Defined, Prepared, Suspended, and Protected. A FlashCopy® session can be renamed, when it is in the Target Available state.
- After a session is renamed, operators that previously had access to the session, will no longer have access to the session with the new session name. You must provide access to the newly renamed session on both local and standby servers, to all Operator users and groups who previously had access to it.
- This command is supported only for users with administrator privileges.
- session_name... | -
- Specifies the name of the session that is to be modified.
Parameters for sessions for IBM DS8000 or TotalStorage Enterprise Storage Server storage systems
- -dsinc { yes | no }
- For a point-in-time session, specifies whether the FlashCopy relationship is incremental for the next Flash or Start command.Note: Multiple incremental FlashCopy will be used if the source storage system supports it.
For practice sessions, specifies whether the practice role pair relationship is incremental for the next Flash command. For Global Mirror Either Direction with Two Site Practice sessions, this parameter will apply to both the H1-I1 and H2-I2 role pairs. This parameter is valid for Global Mirror practice sessions only if the source storage system supports multiple incremental FlashCopy. Valid values are yes or no
- -dspers { yes | no }
- Specifies whether the next FlashCopy relationship for this session is persistent. Valid values are yes or no.
- -dsnocpy { yes | no }
- For a point-in-time session, specifies whether the FlashCopy relationship is established with a background copy for the next Flash or Start command. Valid values are yes or no.
- -dspmir { no | preferred | required }
- Specifies the Preserve Mirror option for storage systems. You can specify no, preferred, or required. If this option is not specified, the default is no preserve mirror options.
- -dstgtpprc { true | false }
- Allows the FlashCopy target volume to be a remote mirror and copy source volume if the option is set to true. This parameter must be set to true for the dspmir parameter to take effect. The default option for this parameter is false.
- -rmreserves { yes | no }
- Removes the persistent reserve on the target volumes to allow the establishment of a session. When this parameter is set to yes, the setting persists for the session and remains set until you change the value. Warnings are displayed to indicate that the value is set to yes when you attempt to start the session.
- -failIfTgtOnline { yes | no }
- Determines whether the Start command fails if a target
volume is online. If the parameter is set to
yes, the target is determined to be online to a host, and the Start command fails. - -failIfTgtOnline_fc { yes | no }
- Determines whether the Flash command fails if a target volume is online. If the
parameter is set to
yes, the target is determined to be online to a host, and the Flash command fails. - -reset_tgt_reserve_fc { yes | no }
- Resets any reserves for target volumes during a FlashCopy Flash command. This parameter affects only fixed block data (FB) volumes
- -aftersuspend { hold | release }
- Specifies the session operation after a suspend occurs. This parameter applies to Metro Mirror
and Metro Global Mirror sessions. Valid policies are:
- hold
- Does not allow any updates to the primary volume after a suspend.
- release
- Allows updates to the primary volume after a suspend.
- -expireautoroll_h1 { yes | no }
- Specifies whether the Copy Services Management server will automatically expire an entire backup
when it detects the hardware has rolled off the backup on at least one volume. Set this option to
free up additional space whenever one or more volumes do not have enough backup capacity to form new
backups. This can help avoid out-of-space conditions. However, when a backup is automatically
expired, it is no longer available for recovery across any of the volumes that contained that
backup. By default, this option is not set. When this option is not set, the backup is not
automatically expired so that if one or more volumes did not auto roll the backup, those volumes can
still be recovered to that backup. To allow recovery to those volumes, you must remove any volumes
indicating that they auto rolled that backup, from the session. Note: If you set this option, but the backup is in a recovery relationship, and the hardware rolls a volume off, Copy Services Manager does not expire it.
- allowexpire_h1 { yes | no }
- Specifies whether backups can be manually expired or not. If this option is not set, the Expire Backup and the Terminate command will not be allowed.
- -backupfreq_h1 backup_frequency_h1
- Specifies the value in minutes for how often a Safeguarded Copy backup can be taken.
- -minretention_h1 min_retention
- Specifies the number of backups to be retained. This option indicates that a backup should not expire even if it is older than the time specified for backupretention option, if the deletion of backup would cause the total number of backups to fall below this number. This option applies only to deletions due to the specified backup retention period time and does not apply to the Expire Backup command.
- -backupretention_h1 backup_retention_h1
- Specifies the value in hours for how long Safeguarded Copy backups should be retained. After the time has elapsed the backups will be expired.
- -snapshotretention_h1 snapshot_retention_h1
- Specifies the value in hours for how long Storage Virtualize Copy snapshots should be retained. After the time has elapsed the snapshots will be expired.
- -recovernocopy_h1r1 { yes | no }
- For the h1r1 role pair, specifies whether the recovery relationship is established with a background copy for the next Recover Backup command. Valid values are yes or no.
- -recoverpersistent_h1r1 { yes | no }
- For the h1r1 role pair, specifies whether the recovery relationship is established with persistence for the next Recover Backup command. Valid values are yes or no. Support for persistent recovery on Safeguarded Copy requires the proper level of DS8000 microcode.
- -zosSysplex {sysplex_name || NO_ASSOCIATION }
- Specifies or clears the z/OS sysplex that is associated with
the session. The -zosSysplex or -zosSystem parameter is
required to use the -SiteSelectionHS and -PriorityHS
parameters and the parameters for managing HyperSwap and enabling hardened freeze.
-zosSysplexh1h2 and -zosSysplexh3h4 relate to the role pair.
- sysplex_name
- Specifies the z/OS sysplex and host system(separated by a dash "-") that is connected to the storage system.
- NO_ASSOCIATION
- Clears the associated sysplex if a sysplex is defined for the session.
- -zosSystem {system_name | NO_ASSOCIATION }
- Specifies or clears the z/OS system that is associated with the session. The
-zosSystem or -zosSysplex parameter is required to use the
-SiteSelectionHS and -PriorityHS parameters and the
parameters for managing HyperSwap and enabling hardened freeze. -zosSystemh1h2
and -zosSystemh3h4 relate to the role pair.
- system_name
- Specifies the z/OS system and host system(separated by a dash "-") that is connected to the storage system.
- NO_ASSOCIATION
- Clears the associated system if a system is defined for the session.
- -SiteSelectionHS { auto | priority }
- For multi-target sessions, determines how HyperSwap Manager selects the target site for a HyperSwap operation.
- -PriorityHS priority_list
- For multi-target sessions, determines the priority in which HyperSwap Manager selects the target site for a HyperSwap operation. The value for this parameter is a string with the list of sites in order of priority. You can separate the sites by a comma (,) or a semi-colon (;).
- -manageH1H2withHyperSwap { yes | no }
- -manageH1H3withHyperSwap { yes | no }
- -manageH2H3withHyperSwap { yes | no }
- Enables the following session types to use Basic HyperSwap.
- Metro Mirror Failover/Failback
- Metro Global Mirror
- Metro Global Mirror with Practice
- Metro Mirror-Metro Mirror
- -disableHS { yes | no }
- Disables HyperSwap for all of the role pairs that are in the session. This
parameter is applicable only if a
-manageHxHxwithHyperSwapparameter is set toyes. - -onPlannedErrorHS { disable | partition }
- This optional parameter specifies the policy for the action to be taken when an error occurs
during a planned HyperSwap. Valid policies are:
- disable
- HyperSwap processing is stopped and backed up, and HyperSwap is disabled.
- partition
- Systems that cannot complete the swap operation are partitioned out of the sysplex, and the HyperSwap continues with the remaining members of the sysplex. This is the default value.
- -onUnplannedErrorHS { disable | partition }
- Specifies the policy for the action to be taken when an error occurs during an unplanned
HyperSwap. Valid policies are:
- disable
- HyperSwap processing is stopped and backed up, HyperSwap is disabled, and a permanent I/O error is returned to any users of the failing device.
- partition
- Systems that cannot complete the swap operation are partitioned out of the sysplex, and the HyperSwap continues with the remaining members of the sysplex. This is the default value.
- -enableHardenedFreeze { yes | no }
- -enableH1H2HardenedFreeze { yes | no }
- -enableH1H3HardenedFreeze { yes | no }
- -enableH2H3HardenedFreeze { yes | no }
- Specifies whether the z/OS Input/Output Supervisor (IOS)
is used to manage freeze operations. If this parameter is set to yes, the
following actions can occur:
- A freeze can occur regardless of whether the copy services management server is started or stopped.
- You can include z/OS system volumes such as paging, database, and WebSphere® Application Server hierarchical file system (HFS) volumes as Metro Mirror volumes in the session. When you set the -enableHardenedFreeze parameter to yes, IOS manages the freeze operations for all Metro Mirror volumes in the session, which prevents the copy services management server from freezing itself. This parameter does not enable IOS to manage freeze operations for Global Mirror volumes.
- -enableHardwareReserves { yes | no }
- Specifies whether the z/OS Input/Output Supervisor (IOS) will allow hardware reserves on volumes in the session when a HyperSwap configuration has been loaded.
- -coordint coordination_interval_time
- Specifies the new coordination interval time for Global Mirror type sessions. This parameter is meant to be used by advanced users. -coordint_h1j3, -coordint_h2j1, -coordint_h1j2, -coordint_h3j1, -coordint_h3j2, and -coordint_h2j3 relate to the role pair.
- -rpo rpo_value
- Specifies the new consistency group interval time in seconds for the XX-XX role pair. The value of data exposure for the session trends toward this value. This parameter applies only to Global Mirror session types and copy types where the recovery point objective (RPO) is mapped. A value of 0 specifies that the storage system continuously attempt to form consistency groups. The possible range of values is 0 - 65535. The default is 0.
- -dsRPOwarning dsRPOwarning_value
- Specifies whether an alert is generated when an RPO threshold is exceeded for a role pair. This parameter applies only to Global Mirror and Metro Global Mirror sessions.
- -dsRPOsevere dsRPOsevere_value
- Specifies whether an alert is generated and the session status is changed to Severe when an RPO threshold is exceeded for a role pair. This parameter applies only to Global Mirror and Metro Global Mirror sessions.
- -reflash { yes | no }
- For sessions with journal volumes, specifies whether to reflash a consistent set of data to the journal volume after a Recover command is issued to the session. Reflashing to the journal volume ensures that there is a consistent copy of the data to recover from if failures occur during resynchronization. Valid values are yes or no. If you enter no, the journal volumes will not have a consistent copy of the data after the recover operation. However, the space will be available when using space efficient volumes.
- -preventreflash { yes | no }
- For sessions with practice volumes, specifies whether to allow the session to issue another Flash that will overwrite the existing data on the practice volumes. If the option is set to yes, after a Flash or Recover, the session will not allow another Flash to occur until the Allow Practice Flash command is issued.
- -maxdrain max_drain_time
- Specifies the new maximum drain time for Global Mirror type sessions. This parameter is meant to be used by advanced users.
Parameters for sessions for SAN Volume Controller, Storwize® family, or Storwize V7000 Unified storage systems
- -svcinc { yes | no }
- For a point-in-time session, specifies whether the FlashCopy relationship for the storage systems is incremental for the next Flash or Start command. Valid values are yes or no.
- -svccopyrate svc_background_copy_rate
- Specifies the copy rate that the storage systems use to complete the background copy of the FlashCopy relationships. For older storage systems running IBM Spectrum Virtualize, specify a value in the range 0-100; for newer storage systems at release 7.8.1 and higher, specify a value in the range 0-150. The default is 50.
- -svccopyrate_h2i2 svc_background_copy_rate
- Specifies the copy rate that the storage systems use to complete the background copy of the FlashCopy relationships. For older storage systems running IBM Spectrum Virtualize, specify a value in the range 0-100; for newer storage systems at release 7.8.1 and higher, specify a value in the range 0-150. The default is 50.
- -enableChangeVolumes { yes | no }
- Specifies whether the use of change volumes is enabled in the copy sets for the session. Change volumes are denoted as Cx, where x identifies the site. These volumes contain point-in-time images that are copied from the H1 and H2 volumes. The C1 volume stores changes from the H1 volume. These changes are sent from the C1 volume to the H2 volume, and then to the C2 volume.
- -cycleperiod cycle_period
- Specifies the period in seconds in which the change volumes are refreshed with a consistent copy of the data. If a copy does not complete in the cycle period, the next cycle period will not start until the copy is complete. The range of possible values is 60 - 86400. The default is 300. This parameter applies only to Global Mirror Failover/Failback with Change Volumes sessions.
- -svcRPOwarning_h1h2 svcRPOwarning_h1h2_value
- Specifies whether an alert is generated when an RPO threshold is exceeded for a H1-H2 role pair. This parameter applies only to Global Mirror Failover/Failback with Change Volumes sessions.
- -svcRPOsevere_h1h2 svcRPOsevere_h1h2_value
- Specifies whether an alert is generated and the session status is changed to Severe when an RPO threshold is exceeded for a H1-H2 role pair. This parameter applies only to Global Mirror Failover/Failback with Change Volumes sessions.
- -enableAutoRestart { yes | no }
- Specifies whether the session should restart automatically if it unexpectedly suspends with reason code 1720 or 1920. An automatic restart is attempted for every suspend with reason code 1720 or 1920 a certain number of times (determined be the storage server's gmlinktolerance value) within a 30 minute time period. If the number of allowable automatic restarts is exceeded within the time period, the session will not restart automatically on the next unexpected suspend. Issue a Start command to restart the session, clear the automatic restart counters and enable automatic restarts.
- -autoRestartDelay delay_time
- Specifies the amount of time, in seconds, in which the copy services management server will wait after an unexpected suspend with reason code 1720 or 1920 before automatically restarting the session. This option is only valid when the -enableAutoRestart option is set to Yes.
- recoverypool svc_recovery_pool_name
-
For Safeguarded Copy and Snapshot sessions, specifies the single pool that should be used to define the recovery volumes in.
- defaultrecoverypool
-
Indicates that the source pool or pools of the source volumes should be used to define the recovery volume in.
- snapshotpool svc_snapshot_pool_ID
-
For Snapshot sessions, specifies the single child pool ID that should be used to create the snapshot volumes in.
- defaultsnapshotpool
- Indicates that the snapshot will be created in the same pool or pools as the source volumes.
Parameters for sessions for FlashSystems/IBM Spectrum Accelerate systems
- -rpo rpo_value
- Specifies the RPO threshold for the session in seconds. The
-rpo parameter works with the -schedule parameter to
determine:
- How often FlashSystem/IBM Spectrum® Accelerate attempts to form a consistency group.
- Whether the RPO value exceeds the threshold.
- -schedule schedule
- For a FlashSystem/IBM Spectrum Accelerate Global Mirror session, this option specifies how often FlashSystem/IBM Spectrum Accelerate forms a consistency group to ensure consistency on the secondary side and achieve the RPO that is set by the -rpo option.
Example: Changing the description of a session
The following command changes the description of the session session1 to MGM session.
csmcli> chsess -quiet -desc "MGM session" session1
The following output is returned:
IWNR1124I The description for session session1 was modified successfully. The new description is MGM session.
Example: Changing the session site locations
The following command changes location of each site in Metro Global Mirror session session2.
csmcli> chsess -quiet -site1loc Boulder -site2loc Tucson -site3loc Marana session2
The following output is returned:
IWNR1096I The locations for sessions session2 and Site 3 were set successfully.
Example: Disabling HyperSwap for a session
The following command disables HyperSwap for session session3.
csmcli> chsess -quiet -disableHS yes session3
The following output is returned:
IWNR5411E Basic HyperSwap is disabled by operator for session session3.
Example: Setting the cycle period for a Global Mirror Failover/Failback with Change Volumes session
The following command sets the cycle period for session session4. The cycle period is the period in seconds during which a point-in-time image is copied to the change volumes.
csmcli> chsess -quiet -cycleperiod 567 session4
The following output is returned:
IWNR1228I The options for session session4 have been set successfully.
Example: Setting the target site and priority for a HyperSwap operation for a Metro Mirror multi-target session
The following command directs HyperSwap Manager to select the target site for a HyperSwap operation based on the priority list for session session5. In this example, the target site priority is site 3, site 2, and site 1.
csmcli> chsess -quiet -SiteSelectionHS priority -PriorityHS 3,2,1 session5
The following output is returned:
IWNR1228I The options for session session5 have been set successfully.
