subscribe iconSubscribe to this information

mirrorios command

Purpose

Mirrors all the logical volumes on rootvg. This command may reboot the partition as part of its operation.

Syntax

mirrorios [-f] [-defer] [PhysicalVolume ...]

Description

The mirrorios command takes all the logical volumes on the rootvg volume group and mirrors those logical volumes. The target physical drives must already be members of the volume group.

The mirrorios command attempts to mirror the logical volumes onto any of the disks in a volume group. To control which drives are used for mirroring, you must include the list of disks in the input parameters, PhysicalVolume. Mirror strictness is enforced. The mirrorios command mirrors the logical volumes, using the default settings of the logical volume being mirrored.

The Virtual I/O Server will restart when the command is completed and you are prompted to continue. The Virtual I/O Server will be restarted as part of the command's operation. If the user does not want the VIOS to reboot as part of the commands operation, the user may specify the -defer option, which is only available for VIOS 1.4 or later. No need to reboot for VIOS 1.5 or later, so you should use the -defer option. If the command restarts as part of its operation, then the user can specify not to be prompted to continue. The -f option tells the command to run without prompting you.

Note: For best results, mirror the rootvg volume group on all Virtual I/O Server partitions.

Only the prime administrator (padmin) can run this command.

Flags

-f Runs the command without prompting you to continue.
-defer Instructs the command not to reboot the VIOS. Running the command without the -defer option will automatically reboot the VIOS.
PhysicalVolume Specifies the target physical volume name. The volume must already be a member of the volume group.

Exit Status

5 The Virtual I/O Server is already mirrored
6 Boot LV not found
7 The physical volume appears to belong to another volume group

Examples

  1. To mirror the Virtual I/O Server root volume group to physical volume hdisk4, type the following command:
    mirrorios -f hdisk4
  2. To mirror the Virtual I/O Server root volume group to physical volume hdisk4, but defer a system reboot, type the following command:
    mirrorios -defer hdisk4

Send feedback | Rate this page

Last updated: Fri, Oct 30, 2009