Use the UPDATE VOLUME command to change the access mode for one or more volumes in random or sequential access storage pools. You can also use this command to change the location information for one or more volumes in sequential access storage pools. This command can be used to update volumes assigned to primary or copy storage pools. If you do not explicitly update a parameter, it remains unchanged.
You can reset any error state associated with a volume by updating the volume to an access mode of READWRITE.
A random access volume must be varied offline before you can update the volume to unavailable or destroyed. To vary a volume offline, use the VARY command.
If a scratch volume with a status of EMPTY and an access mode of OFFSITE is updated so that the access mode is READWRITE, READONLY, or UNAVAILABLE, the volume is deleted from the database.
Use the QUERY VOLUME command to display the set of defined storage pool volumes.
Privilege Class
To issue this command, you must have system privilege or operator privilege.
Syntax
(1) >>-UPDate Volume-------volname----------------------------------> >---+-------------------------------+---------------------------> '-ACCess--=--+-READWrite-----+--' +-READOnly------+ +-UNAVailable---+ | (2) | +-DEStroyed-----+ | (3) | '-OFfsite-------' >---+----------------------------+------------------------------> | (4) | '-LOcation------=--location--' .-WHERESTGpool--=--*----------. >---+-----------------------------+-----------------------------> '-WHERESTGpool--=--poolname---' .-WHEREDEVclass--=--*--------------. >----+----------------------------------+-----------------------> '-WHEREDEVclass--=--devclassname---' >----+---------------------------------------+------------------> | .-,---------------. | | V | | '-WHEREACCess--=----+-READWrite---+-+---' +-READOnly----+ +-UNAVailable-+ +-OFfsite-----+ '-DEStroyed---' >----+-----------------------------------+----------------------> | .-,-----------. | | V | | '-WHERESTatus--=----+-ONline--+-+---' +-OFfline-+ +-EMPty---+ +-PENding-+ +-FILling-+ '-FULl----' .-Preview--=--No-------. >----+----------------------+---------------------------------->< '-Preview--=--+-No--+--' '-Yes-'
1 | You must update at least one attribute (ACCESS or LOCATION). |
2 | This option is supported only for volumes in primary storage pools. |
3 | This option is supported only for volumes in copy storage pools. |
4 | This attribute can be specified only for volumes in sequential-access storage pools. |
Parameters
If the volume being updated is an empty scratch volume that had an access mode of offsite, the volume is deleted from the ADSM database.
If the volume being updated is an empty scratch volume that had an access mode of offsite, the volume is deleted from the ADSM database.
If you update a random access volume to unavailable, you cannot vary the volume online.
If you update a sequential access volume to unavailable, ADSM does not attempt to mount the volume.
If the volume being updated is an empty scratch volume that had an access mode of offsite, the volume is deleted from the ADSM database.
Only volumes in primary storage pools can be updated to destroyed.
If you update a random access volume to destroyed, you cannot vary the volume online.
If you update a sequential access volume to destroyed, ADSM does not attempt to mount the volume.
This access mode is used to indicate an entire volume that should be restored by using the RESTORE STGPOOL command. After all files on a destroyed volume have been restored, the volume is automatically deleted from the database.
If a volume contains no files and the UPDATE VOLUME command is used to change the access mode to destroyed, the volume is deleted from the database.
Use this mode to help you track volumes that you move to offsite locations. ADSM treats offsite volumes differently than other volumes:
Note: | If you specify values for both the ACCESS and LOCATION parameters but the access mode cannot be updated for a particular volume, the location attribute is also not updated for that volume. For example, if you specify ACCESS=OFFSITE and LOCATION for primary storage pool volumes, neither the access nor location values are updated because these volumes cannot be given an access mode of OFFSITE. |
This parameter is optional. You can specify more than one access mode in a list by separating each mode with a comma, with no intervening spaces. If you do not specify a value for this parameter, the update is not restricted by the volumes' current access mode. Possible values are:
Examples
Task 1
Update a tape volume namedDSMT20 to make it unavailable to users and system processes (like migration).
Task 2
Update all empty, offsite volumes in the COPYSTG storage pool. Set the access mode to READWRITE and delete the location information for the updated volumes.
Related Commands
Table 250. Commands Related to UPDATE VOLUME
Command | Description |
---|---|
DEFINE VOLUME | Assigns a volume to be used for storage within a specified storage pool. |
DELETE VOLUME | Deletes a volume from a storage pool. |
QUERY VOLUME | Displays information about one or more storage pool volumes. |
VARY | Specifies whether a disk volume is available to the server for use. |