252 Creating volumes
Creating a volume with a version 20 DCO volume
Creating a volume with a version 20 DCO volume
To create a volume with an attached version 20 DCO object and volume
1 Ensure that the disk group has been upgraded to the latest version. Use the
following command to check the version of a disk group:
# vxdg list diskgroup
To upgrade a disk group to the most recent version, use the following
command:
# vxdg upgrade diskgroup
For more information, see “Upgrading a disk group” on page 208.
2 Use the following command to create the volume (you may need to specify
additional attributes to create a volume with the desired characteristics):
# vxassist [-g diskgroup] make volume length layout=layout \
logtype=dco dcoversion=20 [drl=on|sequential|off] \
[ndcomirror=number] [fastresync=on] [other attributes]
Set the value of the drl attribute to on if dirty region logging (DRL) is to be
used with the volume (this is the default setting). For a volume that will be
written to sequentially, such as a database log volume, set the value to
sequential to enable sequential DRL. The DRL logs are created in the DCO
volume. The redundancy of the logs is determined by the number of mirrors
that you specify using the ndcomirror attribute.
By default, Persistent FastResync is not enabled on newly created volumes.
Specify the
fastresync=on attribute if you want to enable Persistent
FastResync on the volume.
For more information, see the vxassist(1M) manual page.
Note: See “Determining the DCO version number” on page 277 for details of how
to determine the version number of a volume’s DCO.
Creating a volume with dirty region logging enabled
Note: The procedure in this section is applicable to volumes that are created in
disk groups with a version number of less than 110. To enable DRL or sequential
DRL on a volume that is created within a disk group with a version number of
110 or greater, follow the procedure described in “Creating a volume with a
version 20 DCO volume” on page 252, which creates the DRL logs within the
plexes of a version 20 DCO volume.