Removing fixed block or count key data storage

This scenario describes how to remove fixed block or count key data (CKD) storage from a storage unit.

To remove fixed block or count key data storage, you must have the command-line interface prompt, and you must be connected to a storage unit that contains configured storage.
To remove storage, first remove host access to the storage and then remove the storage in order to restore the physical resource to an “equivalent to new” state. At that point, array sites are in the “unassigned” state and can be redefined to make new fixed block or CKD storage. To remove fixed block or count key data storage, perform the following steps:
  1. Remove host access to the volumes that will be removed.

    Create a list of host ports that are associated with the specified port group number using the following commands:

    dscli> lshostconnect -dev ID -portgrp #

    Remove the volume group assignment from the host port using the following command. Repeat this step for each host port.

    dscli> chhostconnect -dev ID -volgrp host_connection_ID

    Remove the volume group assignments from all of the host ports that are associated with the specified port group using the following command:

    dscli> managehostconnect -dev ID -volgrp port_grp_number

    Remove the host ports that are associated with the storage volumes to be removed using the following command:

    dscli> rmhostconnect -dev ID host_connection_ID

  2. Remove the volume groups if all assigned fixed block volumes are to be removed using one of the following commands:
    Option Description
    lsvolgrp -dev ID Returns a list of volume groups and their characteristics.
    showvolgrp -dev ID Volume_group_ID Returns a list of volumes that are assigned to the target volume group.
    You can save the list of volume IDs by using the lsfbvol and lsckdvol commands.

    Unassign volumes from a volume group using the following command. This step is not necessary for CKD volumes because they are automatically assigned or unassigned to the FICON/ESCON-All volume group ID (0).

    dscli> chvolgrp -dev ID -action remove -volume ID1,ID2,... volume_group_ID

    Remove the volume groups as a means to remove volume access by host systems using the following command:

    dscli> rmvolgrp -devID volume_group_ID...volume_group_ID

  3. Remove fixed block volumes, which will enable ranks, arrays and extent pool objects to be removed.

    Create a list of fixed block volume IDs that are candidates for removal using the following command. Use the command filters to develop a list of candidate volume IDs, or use lists of volume IDs that are derived from volume group storage maps.

    dscli> lsfbvol -dev ID -type 2107 | os400-protected | os400-unprotected -extpool ID -lss ID

    In order to enable ranks, arrays, and extent pools to be removed, delete the specified volumes using the following command. An LSS is automatically removed when the last volume contained by the LSS is removed.

    dscli> rmfbvol -dev ID -quiet volume_ID...volume_ID

  4. Remove CKD volumes, which will enable ranks, arrays and extent pool objects to be removed.

    Create a list of CKD volume IDs that are candidates for removal using the following command. Use the command filters to develop a list of candidate volume IDs, or use lists of volume IDs that are derived from volume group storage maps.

    dscli> lsckdvol -dev ID -type 3380 | 3390 -extpool ID -lcu ID

    In order to enable ranks, arrays, and extent pools to be removed, delete volumes using the following command:

    dscli> rmckdvol -dev ID -quiet volume_ID...volume_ID

    In order to enable address groups to be redefined for fixed block volumes, delete LCUs using the following command:

    dscli> rmlcu -dev ID -quiet LCU_ID...LCU_ID

  5. Remove ranks that have zero rank extents allocated to volumes.

    Create a list of rank IDs that are candidates for removal using the following command. Use the command filters to develop a list of candidate rank IDs.

    dscli> lsrank -dev ID -grp 0 | 1 -type 5 | 10 -extpool ID -stgtype fb | ckd

    Ranks that have used zero extents are eligible to be removed. If used extents are greater than or less than zero, the rank segments are currently assigned to existing volumes.

    In order to enable arrays and extent pools to be removed, delete ranks using the following command:

    dscli> rmrank -dev ID -quiet rank_ID...rank_ID

  6. Remove arrays that are not assigned to a rank.

    Create a list of arrays that are not assigned to an existing rank ID using the following command:

    dscli> lsarray -dev storage_image_ID -state unassigned

    In order to enable array sites to be redefined as new arrays, delete arrays using the following command:

    dscli> rmarray -dev storage_image_ID -quiet array_ID ... array_ID

  7. Remove extent pools that do not contain assigned ranks.

    Create a list of extent pools using the following command. Extent pool IDs that indicate zero assigned ranks are eligible to be removed. If assigned ranks are greater than or less than zero, then an extent pool contains assigned storage volumes.

    dscli> lsextpool -dev storage_image_ID -stgtype fb | ckd -rankgrp 0 | 1

    Delete extent pool IDs that do not contain assigned rank IDs using the following command:

    dscli> rmextpool -dev storage_image_ID -quiet extentpool_ID...extentpool_ID

Array sites are now in the “unassigned” state and can be redefined to make new fixed block or CKD storage resource.
Related reference
chhostconnect
rmhostconnect
lshostconnect
managehostconnect
rmarray
rmrank
lsrank
rmextpool
lsextpool
rmlcu
rmckdvol
lsckdvol
rmfbvol
lsfbvol
chvolgrp
rmvolgrp
lsvolgrp
showvolgrp
Library | Support | Terms of use | Feedback
© Copyright IBM Corporation 2004, 2007. All Rights Reserved.