Use the DEFINE VOLUME command to assign a random or sequential access volume to be used for storage within an existing storage pool. You can define a volume to either a primary storage pool or a copy storage pool. You must define each volume to be used in a storage pool, unless you allow scratch volumes for the storage pool.
| Attention: | The size of an allocated database recovery log, or storage pool volume cannot be changed once it has been defined to the ADSM server. ADSM uses the initial size allocation of the volume at the time it is defined to the server to calculate data placement for later retrieval. If you change the size of ADSM volumes by altering the file sizes of ADSM volumes, ADSM may not initialize correctly and data could be lost. |
Privilege Class
To issue this command, you must have system privilege, unrestricted storage privilege, or restricted storage privilege for the storage pool to which the volume is assigned.
Syntax
>>-DEFine Volume--poolname--volname----------------------------->
.-ACCess--=--READWrite--------.
>---+-----------------------------+----------------------------->
'-ACCess--=--+-READWrite---+--'
+-READOnly----+
+-UNAVailable-+
| (1) |
'-OFfsite-----'
>----+----------------------------+----------------------------><
| (2) |
'-LOcation------=--location--'
1 | This value is supported only for volumes assigned to copy storage pools. |
2 | This parameter can be specified only for volumes assigned to sequential access storage pools. |
Parameters
/usr/lpp/adsmserv/bin/mainvol
If you are using an AIX logical volume, enter the path name as:
/dev/rxxx
where xxx is the logical volume name.
No volume name used by ADSM can contain any embedded blanks or equal signs.
If you define a random access volume as unavailable, you cannot vary the volume online. If you define a sequential access volume as unavailable, ADSM does not attempt to access the volume.
Use this value to help you track volumes at offsite locations. ADSM treats volumes designated as offsite differently:
Usage Notes
For sequential access storage pools, it is not necessary to manually define any volumes. You can use the MAXSCRATCH parameter to permit ADSM to mount its own scratch volumes.
Examples
Task 1
A storage pool named POOL1 is assigned to a device class with a device type of 8MM. Define a volume named mnvol to this storage pool, with READWRITE access.
Task 2
A storage pool named OPOOL is assigned to a device class with a device type of OPTICAL. Define a volume named LONGTERMVOL to this storage pool.
Related Commands
Table 64. Commands Related to DEFINE VOLUME
| Command | Description |
|---|---|
| DELETE VOLUME | Deletes a volume from a storage pool. |
| QUERY VOLUME | Displays information about one or more storage pool volumes. |
| UPDATE VOLUME | Updates the attributes of one or more storage pool volumes. |