Adding physical volumes to the storage pool
You can add physical volumes to the storage pool by using the Virtual I/O Server (VIOS) command-line interface.
Before
you start, ensure that there are physical volumes capable of being
added to the storage pool. To display a list of physical volumes for
which the usage cannot be determined, enter the lspv -free or lspv
-capable commands immediately before changing the storage
provisioning. Another VIOS logical partition
might have taken a physical volume. For example, entering the lspv
-free command returns results similar to the following:
NAME PVID SIZE (megabytes)
-----------------------------------------------------
hdisk0 none 17408
hdisk3 000d4451605a0d99 20482
hdisk4 none 10250
hdisk6 none 20490
hdisk8 none 20500
List the physical volumes that are capable of being included in the storage pool. For example, entering the lspv -clustername clusterA -capable command returns results similar to the following:
PV NAME SIZE (MB) PVUDID
--------------------------------------------------------------------------
hdisk0 17408 200B75CXHW1025F07210790003IBMfcp
hdisk3 20482 200B75CXHW1031007210790003IBMfcp
hdisk4 10250 200B75CXHW1031107210790003IBMfcp
hdisk6 20490 200B75CXHW1031307210790003IBMfcp
hdisk8 20500 200B75CXHW1031A07210790003IBMfcp
To determine if a physical volume is in use, run the prepdev command.
If the physical volume is in use as a cluster repository disk or as
a storage pool disk, you will receive an error message. For example,
by entering prepdev -dev hdisk5, you can determine
if the hdisk5 physical volume is in use. Output
similar to the following is displayed:
WARNING!
The VIOS has detected that this physical volume is currently in use. Data will be
lost and cannot be undone when destructive actions are taken. These actions should
only be done after confirming that the current physical volume usage and data are
no longer needed.
The VIOS could not determine the current usage of this device.
If
the physical volume is in use as a cluster repository disk or as a
storage pool disk, you can use the cleandisk command
to make the physical volume available.
Note: Ensure that the physical
volume is no longer required, because running the cleandisk command
results in loss of data on the physical volume.
- To remove a cluster repository disk signature from the hdisk4 physical
volume, enter the following command:
cleandisk -r hdisk4
- To remove a storage pool disk signature from the hdisk4 physical
volume, enter the following command:
cleandisk -s hdisk4
To add one or more physical volumes to a storage pool, complete the following steps: