Veritas Volume Manager 5.0 Administrator's Guide (September 2006)

211Creating and administering subdisks
Associating log subdisks
Note: The subdisk must be exactly the right size. VxVM does not allow the space defined
for two subdisks to overlap within a plex.
For striped or RAID-5 plexes, use the following command to specify a column number
and column offset for the subdisk to be added:
# vxsd [-g diskgroup] -l column_#/offset assoc plex subdisk ...
If only one number is specified with the -l option for striped plexes, the number is
interpreted as a column number and the subdisk is associated at the end of the column.
Alternatively, to add M subdisks at the end of each of the N columns in a striped or RAID-
5 volume, you can use the following form of the
vxsd command:
# vxsd [-g diskgroup] assoc plex subdisk1:0 ... subdiskM:N-1
The following example shows how to append three subdisk to the ends of the three
columns in a striped plex, vol-01, in the disk group, mydg:
# vxsd -g mydg assoc vol01-01 mydg10-01:0 mydg11-01:1 \
mydg12-01:2
If a subdisk is filling a “hole” in the plex (that is, some portion of the volume logical
address space is mapped by the subdisk), the subdisk is considered stale. If the volume is
enabled, the association operation regenerates data that belongs on the subdisk. Otherwise,
it is marked as stale and is recovered when the volume is started.
Associating log subdisks
Note: The version 20 DCO volume layout includes space for a DRL. Do not apply the
procedure described in this section to a volume that has a version 20 DCO volume
associated with it. See “Preparing a volume for DRL and instant snapshots” on page 267
for more information.
Log subdisks are defined and added to a plex that is to become part of a volume on which
dirty region logging (DRL) is enabled. DRL is enabled for a volume when the volume is
mirrored and has at least one log subdisk.
For a description of DRL, see “Dirty region logging” on page 60. Log subdisks are
ignored as far as the usual plex policies are concerned, and are only used to hold the dirty
region log.
Note: Only one log subdisk can be associated with a plex. Because this log subdisk is
frequently written, care should be taken to position it on a disk that is not heavily used.
Placing a log subdisk on a heavily-used disk can degrade system performance.
To add a log subdisk to an existing plex, use the following command: