Deleting a fixed block data storage configuration
Complete this task to delete a fixed block data storage configuration.
Before you begin
About this task
The deletion of a storage configuration involves several steps that systematically remove host
access to the data storage. Then, storage elements (arrays, ranks, extent pools, volumes, and volume
groups) are removed to restore the physical resource to an equivalent to new
state.
To delete fixed block data storage, complete the following steps:
Procedure
-
Remove host access to the volumes that are to be removed. This task requires the issuance of
the lshostconnect command and the rmhostconnect command.
-
Issue the lshostconnect command to display a list of SCSI host port IDs that
are associated with the storage to be removed. Enter the lshostconnect command at
the dscli command prompt as follows.
dscli> lshostconnect -dev IBM.2107-75FA120 -l -portgrp 1
Notes:- The -portgrp port_grp_number parameter lists only port IDs that are associated with a port group number that you assigned when you originally created the host connection.
- The -l parameter is used to generate the detailed status report for each host connection.
-
Issue the rmhostconnect command to delete the SCSI host port IDs that are
associated with the storage volumes to be removed. Enter the rmhostconnect at the
dscli command prompt as follows.
dscli> rmhostconnect -dev IBM.2107-75FA120 1
Notes:- The host_connect_ID parameter (1 in the command example) is required and is a unique identifier (0 - 65 534) within the scope of a storage system.
- A message requests confirmation for host connection deletion.
-
Issue the lshostconnect command to display a list of SCSI host port IDs that
are associated with the storage to be removed. Enter the lshostconnect command at
the dscli command prompt as follows.
-
Find the volume groups and volume group storage maps by issuing the lsvolgrp
and showvolgrp commands.
-
Issue the lsvolgrp command to display a list of defined volume group IDs and
their characteristics. Enter the lsvolgrp command at the
dscli command prompt as follows.
dscli> lsvolgrp -dev IBM.2107-75FA120 -l
-
Issue the showvolgrp command to display the detailed properties of the
volume group that you want to delete. Enter the showvolgrp command at the
dscli command prompt as follows.
dscli> showvolgrp -dev IBM.2107-75FA120 -lunmap V1001
Repeat the showvolgrp command for each volume group you want to delete.
Note: The Volume_Group_ID (V1001) parameter is required. The shortened form is allowed when you designate the -dev parameter. - Copy the list of volumes within the volume group for later use when you analyze which volumes that you want to remove.
-
Issue the lsvolgrp command to display a list of defined volume group IDs and
their characteristics. Enter the lsvolgrp command at the
dscli command prompt as follows.
-
Remove the volume groups, as a means to remove volume access by host systems, by issuing the
rmvolgrp command. Enter the rmvolgrp command at the
dscli command prompt as follows.
dscli> rmvolgrp -dev IBM.2107-75FA120 V123-V125
Notes:- All volume groups that are specified for deletion must belong to the same storage unit.
- The Volume_Group_ID parameter (V123-V125 in the example) is required. If you designate the -dev parameter, the shortened version of the ID is allowed.
- The example command shows a range of volume group IDs. To add another range of volumes or volume groups, add a blank between the designations (for example, V123-V125 V130-V133 V135).
- A message displays for each deleted volume group ID or range of volume group IDs. The message requests confirmation for the deletion.
-
Remove the fixed block volumes by issuing the rmfbvol command. This action
enables the removal of the associated ranks, arrays, and extent pools. Enter the
rmfbvol command at the dscli command prompt as
follows.
dscli> rmfbvol -dev IBM.2107-75FA120 0100 0101
Notes:- The associated logical subsystem (LSS) is automatically removed when the last volume that is contained by the LSS is removed.
- The Volume_ID parameter (represented by 0100 0101 in the example) is required when you issue the rmfbvol command. If you designate the -dev parameter, the shortened version of the ID is allowed.
- A message displays for each volume that is deleted. The message requests that you confirm the deletion.
-
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 command parameters to develop a selective list of rank IDs. Enter the lsrank
command at the dscli prompt as follows.
dscli> lsrank -dev IBM.2107-75FA120 -l
Note: Rank IDs that indicate extents used = 0 are eligible to be removed. Ifextents used
is greater than 0 then rank segments 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:- The rank_ID parameter (R23 in the example) is required. If you designate the -dev parameter, the shortened version of the ID is allowed.
- 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. If this process is successful, a message is given. This part of the process does not take long. However, the processing that is associated with this command is not completed despite notification that the rank is 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 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 you removed it, the remove rank process is complete.
-
Issue the lsrank command to display a list of rank IDs to be removed. Use
the command parameters to develop a selective list of rank IDs. Enter the lsrank
command at the dscli 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 the -state parameter, a list of arrays that have a state of unavailable can appear. This state is a good indication that the ranks are not removed and that the drives are still formatting. Wait until the ranks are removed and the drives are formatted before proceeding.
- Proceed to the next step (remove arrays) only after all the associated arrays displayed 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 more array ID.(A44-A48 A51). A range of arrays requires a hyphen and a space between the next array or another range of arrays.
- A message requests confirmation for 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 -l -stgtype fb
Note:- The -stgtype fb parameter limits the list to extent pools that are assigned for fixed block volumes.
- Extent pool IDs that indicate assigned ranks = 0 are eligible to be removed. If the assigned ranks are 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 the use of a range of extent pool IDs plus one extent pool ID (P21-P25 P30). A range of extent pool IDs requires a hyphen and a space between the next extent pool ID or next range of extent pool IDs.
-
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.