Deleting a count key data storage configuration

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

To delete CKD storage, you must have the command-line interface prompt, and you must be connected to a storage unit that contains configured storage.
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) in order to restore the physical resource to an “equivalent to new” state.
Note: There is no reason to remove the volume groups because the internal code automatically assigns and unassigns CKD volumes to the FICON/ESCON-All volume group ID (10).

To delete CKD storage, perform the following steps:

  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.1750–68FA120 -lcu 00 -l
      Notes:
      1. You can narrow the list of volume IDs for the designated storage unit by using the supported 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 - 1E. You must 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.1750-68FA120 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-68FA120 00-03 08 
    Note: The example command displays the use of a range of LCU IDs plus one additional LCU ID (00-03 08). A range of LCU IDs requires the use of a hyphen. If you add an additional LCU ID or a range of LCU IDs, you must allow a space between the next LCU ID or another range of LCU IDs.
  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.1750-68FA120 -l
      Note: Rank IDs that indicate extents used = 0 are eligible to be removed. If the displayed value for extents used is 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.1750-68FA120 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 this is successful, a message is displayed. This part of the process does not take long; however, the processing that is associated with this command is not complete even though you have received a message that the rank was removed.
        • The array is formatted. This processing can take some time. During this processing the array cannot be 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 is has been removed.
        • You can check the progress of the rmrank command by logging onto another session of DS CLI. Issue the lsarray command against the storage unit where the rank or ranks are being deleted. When you no longer see the rank that is assigned to the array from which you removed it, the remove rank process is complete.
  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.1750-68FA120 -state unassigned
      Notes:
      1. The -state unassigned parameter allows you to narrow your list to just the 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 you will see a list of arrays that have a state of unavailable. This is generally a good indication that the ranks have not been removed and that the drives are still formatting. You must wait until the ranks have been removed and the drives have been formatted before you can proceed.

      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.1750-68FA120 A44-A48 A51
      Notes:
      1. The example command displays the use of a range of array IDs plus one additional 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 is displayed for each array being deleted that requests your confirmation before processing.
  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.1750-68FA120 -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.1750-68FA120 P21-P25 P30
      Notes:
      1. All rank assignments must be deleted before the extent pool can be deleted.
      2. The example command displays the use of a range of extent pool IDs plus one additional extent pool ID (P21-P25 P30). A range of extent pool IDs requires the use of a hyphen. When you add an additional extent pool ID or another range of extent pool IDs, you must put a space between the current extent pool ID value and the next extent pool ID value.
Related tasks
Deleting a logical storage configuration
Library | Support | Terms of use | Feedback
© Copyright IBM Corporation 2004, 2007. All Rights Reserved.