Administering volumes 271

Starting a volume

Starting a volume

Starting a volume makes it available for use, and changes the volume state from DISABLED or DETACHED to ENABLED. To start a DISABLED or DETACHED volume, use the following command:

#vxvol [-g diskgroup] start volume ...

If a volume cannot be enabled, it remains in its current state.

To start all DISABLED or DETACHED volumes in a disk group, enter:

#vxvol -g diskgroup startall

Alternatively, to start a DISABLED volume, use the following command:

#vxrecover -g diskgroup -s volume ...

To start all DISABLED volumes, enter:

#vxrecover -s

To prevent any recovery operations from being performed on the volumes, additionally specify the -noption to vxrecover.

Adding a mirror to a volume

A mirror can be added to an existing volume with the vxassist command, as follows:

#vxassist [-b] [-g diskgroup] mirror volume

Note: If specified, the -boption makes synchronizing the new mirror a background task.

For example, to create a mirror of the volume voltest in the disk group, mydg, use the following command:

#vxassist -b -g mydg mirror voltest

Another way to mirror an existing volume is by first creating a plex, and then attaching it to a volume, using the following commands:

#vxmake [-g diskgroup] plex plex sd=subdisk ...

#vxplex [-gdiskgroup] att volume plex