Deleting a count key data storage configuration
Complete this task to delete a count key data storage (CKD) configuration.
Before you begin
About this task
Deleting a CKD storage configuration starts with the removal of the CKD volumes and proceeds with
the removal of each of the other elements (ranks, arrays, and extent pools) to restore the physical
resource to an
equivalent to newstate.
Note: The removal of the volume groups is unnecessary
because the internal code automatically assigns and unassigns CKD volumes to the FICON/ESCON-All
volume group ID (10).
To delete CKD storage, complete the following steps.
Procedure
-
Remove the CKD volumes by issuing the lsckdvol and
rmckdvol commands.
-
Issue the lsckdvol command to display a list of CKD volume IDs. Analyze the
list to determine which IDs can be removed. Enter the lsckdvol command at the
dscli command prompt as follows.
dscli> lsckdvol -dev IBM.2107-75FA120 -lcu 00 -l
Notes:- You can narrow the list of volume IDs for the designated storage system with the parameters of the lsckdvol command.
- The example displays the use of the -lcu parameter with a value of 00. Logical control unit (LCU) values are in the range 00 - FE. Specify a specific LCU; otherwise, the entire storage unit is queried, which results in a longer processing time.
-
Issue the rmckdvol command to delete volumes. This action enables the
removal of the associated ranks, arrays, and extent pools. Enter the rmckdvol
command at the dscli command prompt as follows.
dscli> rmckdvol -dev IBM.2107-75FA120 0100 0101
Note:- The Volume_ID parameter (represented by the values 0100 0101 in the command example) is required when you issue the rmckdvol command.
- A message is displayed for each volume that is being deleted. The message requests that you confirm the deletion.
-
Issue the lsckdvol command to display a list of CKD volume IDs. Analyze the
list to determine which IDs can be removed. Enter the lsckdvol command at the
dscli command prompt as follows.
-
Issue the rmlcu command to delete LCUs so that the address groups can be
redefined for use with fixed block or CKD volumes. Enter the rmlcu command at the
dscli command prompt as follows.
dscli> rmlcu -dev IBM.2107-75FA120 00-03 08
Note: The example command displays a range of LCU IDs plus one LCU ID (00-03 08). A range of LCU IDs requires a hyphen. To add another LCU ID or LCU ID range, place a space between the next LCU ID or LCU ID range. -
Remove the ranks by issuing the lsrank and rmrank
commands.
-
Issue the lsrank command to display a list of rank IDs to be removed. Use
the lsrank command parameters to develop a selective list of rank IDs. Enter the
lsrank command at the dscli command prompt as
follows.
dscli> lsrank -dev IBM.2107-75FA120 -l
Note: Rank IDs that indicate extents used = 0 are eligible to be removed. Anextents used
value greater than 0, it indicates that the ranks are currently assigned to existing volume IDs. -
Issue the rmrank command to remove the ranks that are assigned to the
arrays. Enter the rmrank command at the dscli prompt
as follows.
dscli> rmrank -dev IBM.2107-75FA120 R23
Notes:- You must remove the ranks before you can remove the arrays and extent pools.
- The processing time that is associated with the rmrank command can be lengthy and might inhibit your use of the array on which this command is being processed.
- When the rmrank command is issued, the following processing occurs.
- The rank is unassigned from the array.
- The rank is removed. When the task is successful, a message appears. This part of the process is brief. However, command processing is incomplete despite a message that indicates that the rank is removed.
- The array is formatted. This processing can be prolonged. During processing, the array is not removed or assigned to another rank. Also, until this process is fully completed, the rank is listed as assigned to the array from which it was removed.
- You can check the progress of the rmrank command by logging on to another session of DS CLI. Issue the lsarray command against the storage image where the rank or ranks are being deleted. When you no longer see the rank that is assigned to the array from which it was removed, the remove rank process is completed.
-
Issue the lsrank command to display a list of rank IDs to be removed. Use
the lsrank command parameters to develop a selective list of rank IDs. Enter the
lsrank command at the dscli command prompt as
follows.
-
Remove the arrays by issuing the lsarray and rmarray
commands.
-
Issue the lsarray command to obtain a list of array IDs to be removed. Enter
the lsarray command at the dscli prompt as
follows.
dscli> lsarray -dev IBM.2107-75FA120 -state unassigned
Notes:- The -state unassigned parameter limits the list to array IDs that are not assigned to a rank ID.
- If you issue the lsarray command without using the -state parameter, it is possible for a list of arrays to have a state of unavailable. The state can indicate that the ranks are not removed and that the drives are still formatting. Do not proceed until ranks are removed and drives are formatted.
Proceed to the next step (remove arrays) only after all the associated arrays are displayed with a state of unassigned.
-
Issue the rmarray command to delete the unassigned arrays so that the array
sites can be redefined as new arrays. Enter the rmarray command at the
dscli command prompt as follows.
dscli> rmarray -dev IBM.2107-75FA120 A44-A48 A51
Notes:- The example command displays a range of array IDs plus one array ID (A44-A48 A51). A range of arrays requires the use of a hyphen and a space between the next array or another range of arrays.
- A message requests confirmation before each array deletion.
-
Issue the lsarray command to obtain a list of array IDs to be removed. Enter
the lsarray command at the dscli prompt as
follows.
-
Remove the extent pools by issuing the lsextpool and
rmextpool commands.
-
Issue the lsextpool command to obtain a list of extent pool IDs to be
removed. Enter the lsextpool command at the dscli
command prompt as follows.
dscli> lsextpool -dev IBM.2107-75FA120 -stgtype fb -l
Notes:- Use the -stgtype fb parameter to narrow the list so that it displays only those extent pools that are assigned for use with fixed block volumes.
- Extent pool IDs that indicate assigned ranks = 0 are eligible to be removed. If the value for assigned ranks is greater than 0, the extent pool potentially contains assigned storage volumes. The rank indicator must be 0 before you can remove the extent pool.
-
Issue the rmextpool command to delete extent pool IDs that do not contain
assigned rank IDs. Enter the rmextpool command at the
dscli command prompt as follows.
dscli> rmextpool -dev IBM.2107-75FA120 P21-P25 P30
Notes:- All rank assignments must be deleted before the extent pool can be deleted.
- The example command displays a range of extent pool IDs plus one extent pool ID (P21-P25 P30). A range of extent pool IDs requires the use of a hyphen. Add a space between each extent pool ID or ID range.
-
Issue the lsextpool command to obtain a list of extent pool IDs to be
removed. Enter the lsextpool command at the dscli
command prompt as follows.