Step 1 |
show mirror [location node-id]
Example:
RP/0/RP0/CPU0:router# show mirror
|
Verifies that mirroring is in the redundant state. In the output, the Current Mirroring State should be redundant. If mirroring is not in the redundant state, you cannot proceed with the procedure. You must wait until mirroring is in the redundant state.
Use the
location node-id
keyword and argument to view the mirror status on other line card and fabric card chassis. The default display is the mirror status of the card to which the console is connected.
|
Step 2 |
configure
|
|
Step 3 |
mirror location node-id Primary-device
Secondary-device
Example:
RP/0/RP0/CPU0:router(config)# mirror location 0/
RP0
/CPU0 disk1:disk0:
|
Swaps the device roles such that the primary mirroring device now becomes the secondary device and the secondary mirroring device becomes the primary device.
|
Step 4 |
commit
|
|
Step 5 |
show mirror [location node-id]
Example:
RP/0/RP0/CPU0:router# show mirror
|
Verifies that the primary device is now the secondary device and vice versa. In the output, if disk0: was the primary disk that you want to replace, it should now be listed as the secondary device.
|
Step 6 |
mirror pause [location node-id]
Example:
RP/0/RP0/CPU0:router# mirror pause
|
Temporarily pauses disk mirroring.
|
Step 7 |
show mirror
Example:
RP/0/RP0/CPU0:router# show mirror
|
Verifies that mirroring has paused. In the output, the Current Mirroring State should be paused.
|
Step 8 |
unmount secondary-device [location node-id]
Example:
RP/0/RP0/CPU0:router# unmount disk1:
|
Unmounts the secondary device which is the device that you want to replace. Initially, this was the primary device.
|
Step 9 | Remove the device and insert a new device.
|
|
Step 10 |
show media [location node-id]
Example:
RP/0/RP0/CPU0:router# show media
|
Verifies that the new disk is partitioned. You should see that the new device is mounted. If the new device is not partitioned, format the device as indicated in the next step.
|
Step 11 |
format
secondary-device partition [location node-id]
Example:
RP/0/RP0/CPU0:router# format disk1: partition
| (Optional)
Formats the device. You only need to perform this step if the new device is not partitioned.
|
Step 12 |
mirror resume [location node-id]
Example:
RP/0/RP0/CPU0:router# mirror resume
|
Resumes mirroring.
|
Step 13 |
show mirror [location node-id]
Example:
RP/0/RP0/CPU0:router# show mirror
|
Verifies that mirroring has restarted. In the output, the Current Mirroring State should be Syncing.
It can take 15 to 30 minutes for the mirroring process to complete. The exact time depends on the number of packages or files on the boot device. When the mirroring is complete, the Current Mirroring State should be Redundant.
|
Step 14 |
configure
|
|
Step 15 |
mirror location node-id Primary-device
Secondary-device
Example:
RP/0/RP0/CPU0:router(config)# mirror location 0/
RP0
/CPU0 disk0:disk1:
|
Swaps the device roles back so that the newly inserted device becomes the primary device.
|
Step 16 |
show mirror [location node-id]
Example:
RP/0/RP0/CPU0:router# show mirror
|
Verifies that the new device is now the primary device.
|