unixdev.net


Switch to SpeakEasy.net DSL

The Modular Manual Browser

Home Page
Manual: (OSF1-V5.1-alpha)
Page:
Section:
Apropos / Subsearch:
optional field



volrootmir(8)							volrootmir(8)



NAME

  volrootmir - Creates mirror of areas necessary for booting on	a new disk

SYNOPSIS

  /usr/sbin/volrootmir [-a] [nconfig=count] [swap=target_disk] target_disk

OPTIONS

  -a  Specifies	that all volumes relating to the boot disk be mirrored,	not
      just the root and	swap volumes, rootvol and swapvol.

  nconfig=count
      Specifies	the number of log copies and copies of the configuration
      database;	for example, nconfig=2.

  swap=target_disk
      Specifies	that the swap volume, swapvol, be mirrored 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 allo-
  cates	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 volume,
  use the swap operand to specify a separate target for	the swap mirror.

  This script can be called 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 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

   1.  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

   2.  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

   3.  The following command adds mirrors for rootvol on disk dsk3, swapvol
       on disk dsk7, and any other volumes 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

   4.  The following command adds mirrors for rootvol on disk dsk3 and swap-
       vol 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)