volresize

Purpose

Resizes an Oracle ADVM volume.

Syntax and Description

volresize -G diskgroup -s size [ -f ] volume

Table 15-7 describes the options for the volresize command.


Table 15-7 Options for the volresize command

Option Description

-G diskgroup

Name of the disk group containing the volume.

-f

Forces the shrinking of a volume that is not an Oracle ACFS volume and suppresses any warning message.

volume

Name of the volume.

-s size

New size of the volume in units of K, M, G, or T.


If the volume is mounted on a non-Oracle ACFS file system, then dismount the file system first before resizing. If the new size is smaller than current, you are warned of possible data corruption. Unless the -f (force) option is specified, you are prompted whether to continue with the operation.

If there is an Oracle ACFS file system on the volume, then you cannot resize the volume with the volresize command. You must use the acfsutil size command, which also resizes the volume and file system. For information, see "acfsutil size".

Examples

The following is an example of the volresize command that resizes volume1 in the data disk group to 20 gigabytes.

Example 15-6 Using the ASMCMD volresize command

ASMCMD [+] > volresize -G data -s 20G volume1