How to add volume VOL34 and remove volume VOL29 from storage group STG1?

DB2DatabaseBig Data Analytics

A Volume is a group of physical disks which are used to store the data. A storage group is a collection of volumes. We can add or remove the volumes in a storage group in order to adjust the space. Below command can be issued in order to amend the volume in a storage group.

ALTER STG1
   ADD VOLUMES(VOL34)
   REMOVE VOLUMES(VOL29);

The ALTER reserved word has to be followed by the name of the storage group which needs to be altered. Which is STG1 in this case. The ADD VOLUMES parameter has the list of volumes which needs to be added in the storage group and the REMOVE VOLUMES parameter has the list of volumes which needs to be removed in the storage group. All the volume names in these parameters have to be separated by comma (,).

raja
Updated on 11-Sep-2020 14:07:28

Advertisements