volrootmir(8)volrootmir(8)NAMEvolrootmir - Creates mirror of areas necessary for booting on a new
disk
SYNOPSIS
/usr/sbin/volrootmir [-a] [nconfig=count] [swap=target_disk] tar‐
get_disk
OPTIONS
Specifies that all volumes relating to the boot disk be mirrored, not
just the root and swap volumes, rootvol and swapvol. Specifies the
number of log copies and copies of the configuration database; for
example, nconfig=2. Specifies that the swap volume, swapvol, be mir‐
rored on a separate disk, specified by target_disk.
DESCRIPTION
The volrootmir script creates a copy of all areas involved in booting
on the specified target disk and adds those copies as mirrors to the
relevant system volumes.
When used without the -a option, volrootmir adds mirrors to the root
and swap volumes only (does not mirror the volume for /usr or /var) and
allocates them on the new disk. In addition, all disk regions required
for booting are set up and partitions for the new volume mirrors are
created.
When used with the -a option, volrootmir mirrors all in-use partitions
on the system disk.
To mirror a swap volume that is on a separate disk from the root vol‐
ume, use the swap operand to specify a separate target for the swap
mirror.
You can run this script from the voldiskadm menu by choosing the Mirror
volumes on a disk operation.
RESTRICTIONS
The volrootmir command is not supported in a cluster.
The specified target disk for mirroring the boot disk: Must not be
under LSM control Must have a disk label with all partitions marked
unused Must be as large as the partitions (on the boot disk) being mir‐
rored plus the size of the private region (4096 blocks).
If the swap partition is on a different disk than the boot disk, to
mirror swap you need an additional disk that: Is not under LSM control
Has a disk label with all partitions marked unused Is at least as large
as the swap space partition plus the size of the private region (4096
blocks)
Specify a disk (not a partition) as the target for mirroring a swap
volume, if the swap volume is on a separate disk.
EXAMPLES
The following command adds mirrors for the rootvol and swapvol volumes
on the target disk, dsk3. This command will fail if swapvol is on a
different disk from rootvol.
# volrootmir dsk3 The following command adds mirrors for
rootvol, swapvol, and any other volumes on the root disk on the
target disk, dsk3. This command will fail if swapvol is on a
different disk from rootvol.
# volrootmir-a dsk3 The following command adds mirrors for
rootvol on disk dsk3, swapvol on disk dsk7, and any other vol‐
umes on the root disk on disk dsk3. This command will fail if
swapvol is on the same disk as rootvol.
# volrootmir-a swap=dsk7 dsk3 The following command adds mir‐
rors for rootvol on disk dsk3 and swapvol on disk dsk7. This
command will fail if swapvol is on the same disk as rootvol.
# volrootmir swap=dsk7 dsk3
SEE ALSO
Commands: voldiskadm(8)
Other: volintro(8)volrootmir(8)