| United States-English |
|
|
|
![]() |
VERITAS Volume Manager 3.5 Administrator's Guide > Chapter 7 Creating
VolumesCreating a Mirrored Volume |
|
A mirrored volume provides data redundancy by containing more than one copy of its data. Each copy (or mirror) is stored on different disks from the original copy of the volume and from other mirrors. Mirroring a volume ensures that its data is not lost if a disk in one of its component mirrors fails.
To create a new mirrored volume, use the following command: # vxassist [-b] [-g diskgroup] make volume length layout=mirror [nmirror=number] [init=active]
For example, to create the mirrored volume, volmir, use the following command: # vxassist -b make volmir 5g layout=mirror To create a volume with 3 instead of the default of 2 mirrors, modify the command to read: # vxassist -b make volmir 5g layout=mirror nmirror=3 A mirrored-concatenated volume mirrors several concatenated plexes. To create a concatenated-mirror volume, use the following command: # vxassist [-b] [-g diskgroup] make volume length layout=mirror-concat [nmirror=number]
Alternatively, first create a concatenated volume, and then mirror it as described in “Adding a Mirror to a Volume ”.
A concatenated-mirror volume is an example of a layered volume which concatenates several underlying mirror volumes. To create a concatenated-mirror volume, use the following command: # vxassist [-b] [-g diskgroup] make volume length layout=concat-mirror [nmirror=number]
If a data change object (DCO) and DCO volume are associated with a volume, this allows Persistent FastResync to be used with the volume. (See “How Persistent FastResync Works with Snapshots” for details of how Persistent FastResync performs fast resynchronization of snapshot mirrors when they are returned to their original volume.) To perform fast resynchronization of mirrors after a system crash or reboot, you must also enable dirty region logging (DRL) on a mirrored volume. To add a DCO object and DCO volume to a volume on which DRL logging is enabled, follow the procedure described in “Adding a DCO and DCO Volume”.
Dirty region logging (DRL) is the default log type if you specify the log attribute to enable logging on a mirrored volume, but do not use the logtype attribute to specify the type of logging to vxassist.
To create a volume with an attached DCO object and DCO volume, use the following procedure:
For more information about configuring DCO, see the vxassist(1M) manual page. To create a mirrored volume with dirty region logging (DRL) enabled, use this command: # vxassist [-g diskgroup] make volume length layout=mirror logtype=drl
For a volume that will be written to sequentially, such as a database log volume, use the following command to specify that sequential DRL is to be used: # vxassist [-g diskgroup] make volume length layout=mirror logtype=drlseq To add DRL logging to a volume that has DCO enabled, or to change the number of DRL logs, follow the procedure that is described in “Adding DRL Logging to a Mirrored Volume”. If you use ordered allocation when creating a mirrored volume on specified storage, you can use the optional logdisk attribute to specify on which disks the log plexes should be created. Use the following form of the vxassist command to specify the disks from which space for the logs is to be allocated: # vxassist [-g diskgroup] -o ordered make volume length layout=mirror logtype=log_type logdisk=disk[,disk,...] storage_attributes If you do not specify the logdisk attribute, vxassist locates the logs in the data plexes of the volume. For more information about ordered allocation, see “Specifying Ordered Allocation of Storage to Volumes” and the vxassist(1M) manual page. |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|||||||||||||||