Complete this task to delete a fixed block data storage configuration.
To delete fixed block data storage, you must have the command-line
interface prompt, and you must be connected to a storage unit that contains configured storage.
Deleting a storage configuration involves several steps that systematically
remove host access to the data storage, and then removes the storage elements
(arrays, ranks, extent pools, volumes, and volume groups) in order to restore
the physical resource to an “equivalent to new” state.
To delete fixed
block data storage, perform the following steps:
- Remove host access to the volumes that will be removed. This generally
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.1750–68FA120 -l -portgrp 1
Notes: - The -portgrp port_grp_number parameter is used to only list
those 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.1750–68FA120 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 unit.
- A message is displayed with a request that you confirm the deletion of
the host connection.
- 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.1750–68FA120 -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.1750–68FA120 -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.
- 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.1750–68FA120 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. The shortened version of the ID is allowed if you designate the -dev parameter.
- The example command shows a range of volume group IDs. If you have another
volume group or another volume group range, you must add a blank between the
designations (for example, V123-V125 V130-V133 V135)
- A message is displayed for each deleted volume group ID or range of volume
group IDs. The message requests that you confirm 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.1750-68FA120 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. The shortened
version of the ID is allowed if you designate the -dev parameter.
- A message is displayed 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.1750-68FA120 -l
Note: Rank IDs
that indicate extents used = 0 are eligible to be removed. If extents used
are 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.1750-68FA120 R23
Notes: - The rank_ID parameter (R23 in the example) is required.
The shortened version of the ID is allowed if you designate the -dev parameter.
- 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 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.
- 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.1750-68FA120 -state unassigned
Notes: - The -state unassigned parameter allows you to narrow your list
to just the array IDs that are not assigned to a rank ID.
- 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.
- 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: - 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.
- A message is displayed for each array being deleted that requests your
confirmation before processing.
- 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.1750-68FA120 -l -stgtype fb
Note: - The -stgtype fb parameter allows you 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 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.1750-68FA120 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 additional extent pool ID (P21-P25 P30). A range of extent pool IDs requires
the use of a hyphen and a space between the next extent pool ID or next range
of extent pool IDs.