# man vxmirror Reformatting page. Wait... done Maintenance Commands vxmirror(1M) NAME vxmirror - mirror volumes on a disk or control default mir- roring SYNOPSIS /etc/vx/bin/vxmirror [-g diskgroup ] [-d yes|no ] [-t task- tag ] medianame [new_medianame...] /etc/vx/bin/vxmirror [-g diskgroup ] [-d yes|no ] [-t task- tag ] -a [new_medianame...] /etc/vx/bin/vxmirror [-g diskgroup ] [-d yes|no] /etc/vx/bin/vxmirror [-g diskgroup] -D DESCRIPTION The vxmirror command provides a mechanism to mirror the con- tents of a specified disk, to mirror all currently un- mirrored volumes in the specified disk group, or to change or display the current defaults for mirroring. All volumes that have only a single plex (mirror copy), are mirrored by adding an additional plex. Volumes containing subdisks that reside on more than one disk are not mirrored by vxmirror. vxmirror is generally called from the vxdiskadm menus. It is not an interactive command, and after it is called, con- tinues until completion of the operation or until a failure is detected. Note: Generating mirror copies of volumes can take a con- siderable time to complete. Mirroring volumes from the boot disk produces a disk that can be used as an alternate boot disk. This is done by cal- ling the vxrootmir command. This mirrors root and swap volumes. If usr and var are also volumes, they too are mir- rored even though they may not be on the same disk. In the first listed form of this command, the disk media name is supplied on the command line to vxmirror. That name is assumed to be the only disk from which volumes are mir- rored. In the case of mirroring volumes from a specified disk, only simple single-subdisk volumes are mirrored. In the first and second listed forms of the command, new_medianame... identifies a new disk media name (or set of names). The mirroring operation uses these names as tar- gets on which to allocate the mirrors. An error results if the same disk is specified for both the source and target disk and if no other viable targets are supplied. VxVM 3.0 Last change: 11 Dec 1998 1 Maintenance Commands vxmirror(1M) OPTIONS -a Mirrors all existing volumes for the specified disk group. -d yes | no Changes the default for subsequent volume crea- tion, depending on the option argument. If yes, then all subsequent volumes created automatically become mirrored volumes. If no, then mirroring is turned off for future volumes created. -D Displays current default status for mirroring. -g diskgroup Limits operation of the command to the given disk group, as specified by disk group ID or disk group name. The medianame operands are evaluated rela- tive to the given disk group. If no disk group is supplied, then rootdg is assumed. -t tasktag Specifies using a tasktag as the tag for any tasks created to perform the mirror operations. EXAMPLES The following command mirrors the disk disk01 to any avail- able space on any available disk. Subsequent calls to vxas- sist mirror created volumes by default. vxmirror -d yes disk01 This command displays the current status of default mirror- ing. It outputs the string yes if mirroring is currently enabled, or no if mirroring is not enabled. vxmirror -D This command mirrors any volumes on disk02 to disk03. vxmirror disk02 disk03 FILES /etc/default/vxassist The defaults file for vxassist parameters. SEE ALSO vxassist(1M), vxdiskadm(1M), vxintro(1M), vxrootmir(1M), vxtask(1M) VxVM 3.0 Last change: 11 Dec 1998 2 #