Deleting a count key data storage configuration

Complete this task to delete a count key data storage (CKD) configuration.

Before you begin

To delete CKD storage, you must have the command-line interface prompt, and you must be connected to a storage system that contains configured storage.

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 new state.
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

  1. Remove the CKD volumes by issuing the lsckdvol and rmckdvol commands.
    1. 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:
      1. You can narrow the list of volume IDs for the designated storage system with the parameters of the lsckdvol command.
      2. 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.
    2. 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.
  2. 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.
  3. Remove the ranks by issuing the lsrank and rmrank commands.
    1. 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. An extents used value greater than 0, it indicates that the ranks are currently assigned to existing volume IDs.
    2. 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:
      1. You must remove the ranks before you can remove the arrays and extent pools.
      2. 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.
      3. 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.
  4. Remove the arrays by issuing the lsarray and rmarray commands.
    1. 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:
      1. The -state unassigned parameter limits the list to array IDs that are not assigned to a rank ID.
      2. 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.

    2. 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:
      1. 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.
      2. A message requests confirmation before each array deletion.
  5. Remove the extent pools by issuing the lsextpool and rmextpool commands.
    1. 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:
      1. 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.
      2. 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.
    2. 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:
      1. All rank assignments must be deleted before the extent pool can be deleted.
      2. 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.