Adding a volume to a storage group
Important
- The procedure shown here summarizes the basic steps for adding the volume. For a detailed description, see the IBM documentation for the ICKDSF utility.
- You can use the Automation component to automate this manual process.
Before you begin
To add a volume to a storage group
Varying the candidate volume offline
After the volume is selected, it is checked to ensure that it is empty. The only data sets that can exist on a candidate pool volume are the VVDS and the VTOC index data sets. If the volume is not empty, it will not be used, and the next candidate volume in the pool is run through the AUTOADDV function.
After it is determined that the volume is empty, the volume is varied offline by using the VARY OFFLINE command. If the local system is a member of a sysplex, the volume is varied offline to all systems in the sysplex. If the local system is not a member of a sysplex the volume is varied offline to the local system only.
Important
If a device is not defined to another system in the sysplex, the VARY command will return an IEE313I message to indicate the unit is invalid. If a device does not have a logical path, the VARY command will return an IEE025I message to indicate the unit path is not online. AUTOADDV will ignore these messages and processing continues.
Because the MVS VARY command is used to perform this function, in a JES3 environment the candidate volumes must be managed by MVS. A candidate pool volume cannot be managed by JES3, attached to JES3, or commonly managed. If the VARY command is not successful on all systems in the sysplex, the selected volume is not used and the AUTOADDV request fails.
In certain circumstances, the VARY command can be delayed. For example, if an IEF283D WTOR is outstanding, the VARY OFFLINE command cannot be completed. In this situation, the device is put in a pending offline status until the WTOR is no longer outstanding. BMC AMI Storage will wait for up to one minute for completion of the offline request on all systems. If the offline status cannot be achieved in the one minute time frame, the volume is not used and the current AUTOADDV request fails.
If the local system is a member of a sysplex, the ROUTE command is used to issue the VARY command. The ROUTE command will cause the VARY command to be issued on all systems in the sysplex.
INIT skeleton JCL
Samples of this JCL are distributed in BBSLIB members SRMJOB09 and SRMJOB10.
This JCL can contain skeleton tailoring variables as described in AUTOADDV function. These variables are replaced prior to job submission and can specify the target VOLSER, candidate VOLSER, device address, storage group, and so on.
The sample jobs use the ICKDSF utility to perform the volume INIT. When using this utility, note the following information:
The utility will issue a WTOR requiring operator intervention to complete the ICKDSF job step. This WTOR can be prevented by specifying PARM='NOREPLYU' on the EXEC statement of the job step and by using the VERIFY keyword in the SYSIN statements. The VERIFY keyword causes the utility to first verify that the device is defined with the specified VOLSER before reinitializing the volume to the new VOLSER value. The &CANDVOL variable can be used for this keyword because it contains this VOLSER value. The sample jobs make use of this ability and can be used as an example.
The &TARGVOL skeleton tailoring variable should be used for the VOLID keyword in the ICKDSF utility SYSIN statements. The VOLID keyword specifies the VOLSER to which the device is initialized. The &TARGVOL variable contains this value.
The &UNIT skeleton tailoring variable should be used for the UNIT keyword in the ICKDSF utility SYSIN statements. The UNIT keyword specifies the unit address, also referred to as UCB address or device address, of the device to be initialized.
This INIT job can contain any steps required to initialize a volume in your environment. The only requirement is that when the job is complete, the device address involved is initialized to the target VOLSER.
Important
The AUTOADDV process will vary the device address online after the job is complete. If for some reason the INIT utility fails, the device is still initialized to the candidate VOLSER value. In this situation, when the volume is brought online it will still be recognized by the candidate VOLSER, and it will not be included in the storage group.
Comments
Log in or register to comment.