mirror
To configure disk mirroring on a node, use the mirror command in global configuration mode. To disable disk mirroring, use the no form of this command.
mirror location [preconfigure] node-id primary-device:secondary-device:
no mirror location
Syntax Description
location node-id |
Specifies the node of the RP. It can be a node that is not yet installed if the preconfigure keyword is used. The node-id argument is entered in the rack/ slot/ module notation. |
preconfigure |
(Optional) Enables you to specify a node that is not yet installed. |
primary-device : |
Specifies the primary boot device used to store installation packages and configuration files. Supported devices are:
|
secondary-device : |
Storage device on the same RP as the primary-device , to where critical data is replicated. Supported devices are the same as for primary-device : , but secondary-device : must be different than the primary-device : . |
Command Default
None
Command Modes
Global configuration
Command History
Release |
Modification |
---|---|
Release 3.7.2 |
This command was introduced. |
Usage Guidelines
To use this command, you must be in a user group associated with a task group that includes appropriate task IDs. If the user group assignment is preventing you from using a command, contact your AAA administrator for assistance.
The mirror command replicates all critical data contained in the primary partition of the primary boot device, onto a second storage device on the same RSP. Therefore, if the primary boot device fails, applications continue to be serviced transparently by the secondary device, without having to switch control to a standby RSP.
Before the mirror command can be used, the secondary storage device must be partitioned using the format command. If the primary boot device is not partitioned, once mirroring is enabled and all data on the primary boot device is replicated to the secondary device, the primary boot device is partitioned automatically. This guarantees that only critical data on the primary boot device is mirrored to the secondary device. Noncritical data, such as logging data, should not be mirrored and should, therefore, be saved to the secondary partition on the storage device.
To temporarily suspend disk mirroring without changing the configuration, use the mirror pause command in EXEC mode.
Task ID
Task ID |
Operations |
---|---|
root-lr |
read, write |
Examples
The following example shows how to configure disk mirroring from the primary boot device (disk0:) to the secondary storage device (disk1:):
RP/0/RSP0/CPU0:(config)# mirror location 0/rp0/cpu0 disk0: disk1: