Now that the disks have been replaced, in order to re-create the Volumes using those disks, it is necessary to delete the current Volume Group and Volumes on that drive group and create new ones in their place.
Note that this is a destructive operation and care must be taken to specify the proper device information or you can inadvertently delete existing data. If you have any doubts about the device information gathered during the previous steps (or how to interpret that information), stop the procedure at this point and seek further assistance before continuing.
To continue the example from above to delete the Volume Group and Volume, enter the following:
-
Delete volume group 23:
SMcli -n DAMC001-2-2 -c 'delete volumeGroup ["23"];'
-
Delete volume 22:
SMcli -n DAMC001-2-2 -c 'delete volume ["22"];'
-
Recreate the Volume Group using the command found in the array configuration file from Step 3:
SMcli -n DAMC001-2-2 -c 'create volumeGroup drives=(1,11 3,11) RAIDLevel=1 userLabel="23" securityType=enabled dataAssurance=none;'
Enclose the string parameter to the -c option in single quotes and terminate it with a semi-colon.
-
Re-create the Volume from the command found in the array configuration file:
SMcli -n DAMC001-2-2 -c 'create volume volumeGroup="23" userLabel="22" owner=A segmentSize=1936 dssPreAllocate=false dataAssurance=enabled mapping=none;'
This command may take from 10 minutes to an hour to complete, depending on the number of Volumes being created and the size of the disks being used.