Cisco 6400 Software Setup Guide
Redundancy and SONET APS Configuration

Table of Contents

Redundancy and SONET APS Configuration
Memory Requirements
NSP Redundancy
Configuring Redundant NSPs
Synchronizing Redundant NSPs
Erasing Startup Configurations on Redundant NSPs
PCMCIA Disk Mirroring
Using NSP Redundancy for Hardware Backup
Using NSP Redundancy for Software Error Protection
Booting Redundant NSPs from a Network Server
NRP Redundancy
NLC Redundancy
SONET APS for NLC Port Redundancy
Primary and Secondary Role Switching

Redundancy and SONET APS Configuration


The Cisco 6400 contains two slots for node switch processors (NSPs) and eight slots for node line cards (NLCs) or node route processors (NRPs), as shown in Figure 5-1. Each slot can contain one full-height or two half-height cards. NRPs and NSPs support enhanced high system availability (EHSA) redundancy, and NLCs support SONET automatic protection switching (APS) redundancy at the port-level.

Redundancy can be configured between:

  • NSPs (always assumed when two NSPs are installed in the chassis)
  • NRPs and full-height NLCs installed in the following slot pairs:
    • Slots 1 and 2, 3 and 4, 5 and 6, or 7 and 8
  • Half-height NLCs installed in adjacent subslot pairs:
    • Subslots 0 (top) in slots 1 and 2, 3 and 4, 5 and 6, or 7 and 8
    • Subslots 1 (bottom) in slots 1 and 2, 3 and 4, 5 and 6, or 7 and 8

This chapter contains the following sections:


Figure 5-1   Cisco 6400 Carrier-Class Broadband Aggregator


Memory Requirements

When configuring redundancy between two NRPs or two NSPs, the two cards must have identical hardware configurations. Check each card in a redundant pair, and make sure they share the following parameters:

  • DRAM size
  • Flash memory size
  • PCMCIA disk size (NSP only)
  • Hardware version (module part number)

If redundancy is configured between two cards with different amounts of memory or disk capacity, the Cisco 6400 will display a warning message. Depending on which card is identified as the primary card, the Cisco 6400 will perform the following actions:

  • Primary card has more memory than secondary card—The Cisco 6400 shuts down the secondary card.
  • Secondary card has more memory than primary card—The Cisco 6400 displays a message, indicating that the secondary card has more memory than the primary card. This configuration will cause redundancy to be disabled if the secondary card is activated.

  • Note   This approach allows for memory upgrades on a redundant pair of NRPs or NSPs. For information about performing memory upgrades, see the Cisco 6400 UAC FRU Installation and Replacement document.

NSP Redundancy

Both NSP slots are numbered slot 0 for consistent interface identification between primary and secondary devices. Nevertheless, the left NSP slot is labeled slot A and the right slot is labeled slot B to distinguish between the two slots, when required.

You can use EHSA redundancy for simple hardware backup or for software error protection. Hardware backup protects against NSP card failure because you configure both NSP cards with the same software image and configuration information. Additionally, you configure the system to automatically synchronize configuration information on both cards when changes occur.

Software error protection protects against critical Cisco IOS software errors in a particular release because you configure the NSP cards with different software images, but use the same configuration. If you are using new or experimental Cisco IOS software, consider using the software error protection method.

This section includes:

Configuring Redundant NSPs

If two NSPs are installed in the Cisco 6400, they automatically act as a redundant pair. No configuration is necessary.

Verifying NSP Redundancy

To verify NSP redundancy, use the show redundancy EXEC command:

Switch# show redundancy
NSP A:Primary
NSP B:Secondary
Secondary NSP information:
Secondary is up
Secondary has 131072K bytes of memory.
User EHSA configuration (by CLI config):
secondary-console = off
keepalive = on
config-sync modes:
standard = on
start-up = on
boot-var = on
config-reg = on
calendar = on
Debug EHSA Information:
Primary (NSP A) ehsa state:SANTA_EHSA_PRIMARY
Secondary (NSP B) ehsa state:SANTA_EHSA_SECONDARY
EHSA pins:
peer present = 1
peer state = SANTA_EHSA_SECONDARY
crash status:this-nsp=NO_CRASH(0x1) peer-nsp=NO_CRASH(0x1)
EHSA related MAC addresses:
this bpe mac-addr = 0000.0c00.0003
peer bpe mac-addr = 0000.0c00.0004
Switch#

Synchronizing Redundant NSPs

To ensure that the configuration is consistent between redundant NSPs or NRPs, you can configure automatic synchronization between the two devices. You have the option of synchronizing just the startup configuration, the boot variables, the configuration register, or all three configurations (standard). When configuration is complete, you can disable autoconfiguration using the no command.

To automatically synchronize the configurations between redundant NSPs, complete the following steps beginning in global configuration mode:

Command Purpose
Step 1 

Switch(config)# redundancy

Enters redundancy configuration mode.

Step 2 

Switch(config-r)# main-cpu

Enters main-cpu configuration mode.

Step 3 

Switch(config-r-mc)# auto-sync [standard |
bootvar | config-register | startup-config]

Synchronizes the configuration between redundant NSPs.

Boot variables are ROM monitor (ROMMON) environment variables used to control the booting process. The configuration register, stored in NVRAM, contains startup time parameters for the system. For more information about the booting process, see the Cisco IOS Configuration Fundamentals Configuration Guide.

Example

In the following example, the configuration is synchronized between redundant NSPs:

!
redundancy
main-cpu
auto-sync standard
!

Verifying Synchronized NSPs

To verify that NVRAM and sec-NVRAM contain identical startup configurations, compare the output of the following command entries:

Switch# cd nvram:
Switch# dir
Switch# more startup-config
Switch# cd sec-nvram:
Switch# dir
Switch# more startup-config

The displayed output should be identical.

Erasing Startup Configurations on Redundant NSPs

To erase the startup configuration on redundant NSPs, complete the following steps beginning in EXEC mode:

Command Purpose
Step 1 

Switch# erase nvram:

Erases the primary NSP's startup configuration.

Step 2 

Switch# erase sec-nvram:

Erases the secondary NSP's startup configuration.


Note   If you only erase the startup configuration on the primary NSP, and the primary and secondary NSPs reverse roles, the new primary NSP will use the old startup configuration.

Verifying Erased Startup Configurations

To verify that you erased the startup configuration on redundant NSPs, use the dir nvram: and dir sec-nvram: EXEC commands and check that the startup-config size is zero:

NSP# dir nvram:
Directory of nvram:/
1 -rw- 0 <no date> startup-config
129016 bytes total (129016 bytes free)

You can also use the show startup EXEC command and make sure that a valid configuration file does not appear:

NSP# show startup
%% Non-volatile configuration memory is being written, Try again later

PCMCIA Disk Mirroring

Introduced in Cisco IOS Release 12.1(5)DB, the PCMCIA disk mirroring enables automatic data synchronization between the PCMCIA disks of two redundant NSPs. Disk synchronization is the act of copying data from one disk to another.

Disk mirroring provides full NSP redundancy for the NRP-2, which depends on the NSP for image and file storage. Without disk mirroring, there is no guarantee of NRP-2 support after an NSP failover (user intervention might be required to restore the NRP2 state to that prior to the failover). With disk mirroring enabled, NRP-2 has continued support from the NSP, except during the relatively short NSP failover period.

When PCMCIA disk mirroring is enabled, as it is by default, disk synchronization is initiated each time that:

  • The primary or secondary NSP boots or reloads
  • The secondary NSP is inserted into the Cisco 6400 chassis
  • A PCMCIA disk is inserted into disk slot 0 of the primary or secondary NSP
  • The PCMCIA disk in disk slot 0 of either NSP is formatted
  • A command is entered to:
    • Re-enable disk mirroring (mirror)
    • Explicitly initiate disk synchronization (redundancy sync)
    • Modify or reorganize the files on the disks (copy, rename, delete, mkdir, format)

    • Note   PCMCIA disk mirroring is not supported in Cisco IOS Release 12.1(4)DB and earlier releases. Use the dir, mkdir, and copy EXEC commands to manually copy files from the primary NSP's PCMCIA disks to the secondary NSP's PCMCIA disks.

PCMCIA disk mirroring also introduced new labels for pairs of mirrored disks:

  • mir-disk0—PCMCIA disks in disk slot 0 of both NSPs
  • mir-disk1—PCMCIA disks in disk slot 1 of both NSPs

The mir-disk0 and mir-disk1 labels enable you to perform any integrated file system (IFS) operation (such as copy, rename, and delete) on the same file on both the primary and secondary disks.

Restrictions and Recommendations

  • If an NSP failover occurs during disk synchronization, the file that is being copied is deleted from the receiving disk, instead of only partially copied. This means that the file is no longer available to the NRP-2. The amount of time it takes to complete disk synchronization varies for each system, but depends on the number and sizes of files being copied.
  • Disk mirroring (automatic data synchronization between a pair of disks) is not supported between:
    • Two disks on a single NSP
    • Two disks with mismatched slot numbers (disk0: and disk1:)

You can, however, initiate disk synchronization between disk0: and disk1: on the active NSP, even in a single-NSP system.

  • Cisco recommends that you use PCMCIA disks of the same memory capacity.

Disabling PCMCIA Disk Mirroring

Disk mirroring is enabled by default. To disable disk mirroring, complete the following steps beginning in global configuration mode:

Command Purpose
Step 1 

Switch(config)# redundancy

Enters redundancy configuration mode.

Step 2 

Switch(config-r)# main-cpu

Enters main-cpu configuration mode.

Step 3 

Switch(config-r-mc)# no mirror

Disables data synchronization between the NSP PCMCIA disks.

Example

In the following example, PCMCIA disk mirroring is disabled:

!
redundancy
main-cpu
auto-sync standard
no mirror
!
Verifying that Disk Mirroring is Disabled

To verify that disk mirroring is disabled, use the show redundancy sync-status EXEC command:

Switch# show redundancy sync-status
Disk Mirror is disabled in configuration
Peer Secondary NSP is present
disk1 or sec-disk1 is wrong or missing
Switch#

Enabling PCMCIA Disk Mirroring

If disk mirroring is disabled, and you want to re-enable it, complete the following steps beginning in global configuration mode:

Command Purpose
Step 1 

Switch(config)# redundancy

Enters redundancy configuration mode.

Step 2 

Switch(config-r)# main-cpu

Enters main-cpu configuration mode.

Step 3 

Switch(config-r-mc)# mirror

Enables data synchronization between the NSP PCMCIA disks.

Example

In the following example, PCMCIA disk mirroring is enabled:

!
redundancy
main-cpu
auto-sync standard
mirror
!
Verifying that Disk Mirroring is Enabled

To verify that disk mirroring is enabled, complete one or both of the following steps:


Step 1   Use the show redundancy sync-status EXEC command to check that disk mirroring is enabled:

Switch# show redundancy sync-status
Disk Mirror is enabled in configuration:proper sync
(Mirror threshold is 0 MB:smaller files will be copied blindly)
Peer Secondary NSP is present
disk1 or sec-disk1 is wrong or missing
mir-disk0 (disk0 -> sec-disk0):in sync.
mir-disk1 (disk1 -> sec-disk1):out of sync.
Switch#

Step 2   Use the dir command to verify matching file names and file sizes on the mirrored PCMCIA disks.

Switch# dir disk0:
Switch# dir sec-disk0:
Switch# dir disk1:
Switch# dir sec-disk1:




Specifying the File Size Threshold

By default, when performing disk synchronization (either through disk mirroring or user initiation), the system compares files between the PCMCIA disks. The system does not copy files with matching file names, sizes, and time stamps. You can, however specify a file size threshold below which files are copied without comparison.

To specify the file size threshold, complete the following steps beginning in global configuration mode:

Command Purpose
Step 1 

Switch(config)# redundancy

Enters redundancy configuration mode.

Step 2 

Switch(config-r)# main-cpu

Enters main-cpu configuration mode.

Step 3 

Switch(config-r-mc)# mirror threshold size

Specifies the file size threshold below which files are copied without comparison.

Example—File Size Threshold

In the following example, PCMCIA disk mirroring is enabled with a specified file size threshold of 2 MB:

!
redundancy
main-cpu
auto-sync standard
mirror threshold 2
!
Verifying the File Size Threshold

To verify the file size threshold, use the show redundancy sync-status EXEC command, and check the Mirror Threshold field:

Switch# show redundancy sync-status
Disk Mirror is enabled in configuration:proper sync
(Mirror threshold is 2 MB:smaller files will be copied blindly)
Peer Secondary NSP is present
disk1 or sec-disk1 is wrong or missing
mir-disk0 (disk0 -> sec-disk0):out of sync.
mir-disk1 (disk1 -> sec-disk1):out of sync.
Disk Mirror full sync is in progress (disk0 to sec-disk0, 23%)
Switch#

Specifying to Copy All Files Blindly

Instead of specifying a file size threshold below which files are copied without comparison, you can choose to copy all files blindly (without comparing sizes or time stamps).

To copy all files blindly, complete the following steps beginning in global configuration mode:

Command Purpose
Step 1 

Switch(config)# redundancy

Enters redundancy configuration mode.

Step 2 

Switch(config-r)# main-cpu

Enters main-cpu configuration mode.

Step 3 

Switch(config-r-mc)# mirror all

Specifies to copy all files blindly when performing disk synchronization.

Example—Copying Blindly

In the following example, PCMCIA disk mirroring is enabled and set to copy all files blindly:

!
redundancy
main-cpu
auto-sync standard
mirror all
!
Verifying Blind Copying

To verify blind copying, use the show redundancy sync-status EXEC command to check the configured synchronization type. The first line displayed should end with "full sync" instead of "proper sync."

Switch# show redundancy sync-status
Disk Mirror is enabled in configuration:full sync
(Mirror threshold is 0 MB:smaller files will be copied blindly)
Peer Secondary NSP is present
disk1 or sec-disk1 is wrong or missing
mir-disk0 (disk0 -> sec-disk0):out of sync.
mir-disk1 (disk1 -> sec-disk1):out of sync.
Disk Mirror full sync is in progress (disk0 to sec-disk0, 23%)
Switch#

Initiating PCMCIA Disk Synchronization

Disk synchronization copies the data from one PCMCIA disk to another. To initiate disk synchronization, use one of the following commands in global configuration mode:

Command Purpose
Switch# redundancy sync disk0 [all]1

Copies data from disk0:2 of the primary NSP to disk0: of the secondary NSP.

Switch# redundancy sync disk1 [all]

Copies data from disk1:3 of the primary NSP to disk1: of the secondary NSP.

Switch# redundancy sync disk0 reverse [all]

Copies data from disk0: of the secondary NSP to disk0: of the primary NSP.

Switch# redundancy sync disk1 reverse [all]

Copies data from disk1: of the secondary NSP to disk1: of the primary NSP.

Switch# redundancy sync local [all]

Copies data from disk0: of the primary NSP to disk1: of the primary NSP. Can be used with single-NSP systems.

1Optional all keyword specifies to copy all files blindly (without comparing file sizes and time stamps).

2disk0: = PCMCIA disk in NSP disk slot 0

3disk1: = PCMCIA disk in NSP disk slot 1

Example—Disk Synchronization
Switch# redundancy sync disk0
00:29:52:%DISKMIRROR-6-PROGRS:Disk Sync in Progress (disk0 to sec-disk0, 0%)
Switch#
Example—Reverse Disk Synchronization
Switch# redundancy sync disk0 reverse
00:32:13:%DISKMIRROR-6-PROGRS:Disk Sync in Progress (sec-disk0 to disk0, 0%)
Switch#
Example—Local Disk Synchronization
Switch# redundancy sync local
00:32:13:%DISKMIRROR-6-PROGRS:Disk Sync in Progress (disk0 to disk1, 0%)
Switch#
Verifying Disk Synchronization

To verify disk synchronization, complete one or both of the following steps:


Step 1   Use the show redundancy sync-status EXEC command to check that the disk content is synchronized:

Switch# show redundancy sync-status
Disk Mirror is enabled in configuration:proper sync
(Mirror threshold is 0 MB:smaller files will be copied blindly)
Peer Secondary NSP is present
disk1 or sec-disk1 is wrong or missing
mir-disk0(disk0/sec-disk0):in sync.
mir-disk1(disk1/sec-disk1):out of sync.

Step 2   Use the dir command to verify matching file names and file sizes on the mirrored PCMCIA disks.

Switch# dir disk0:
Switch# dir sec-disk0:
Switch# dir disk1:
Switch# dir sec-disk1:




Performing Mirrored IFS Operations

When disk mirroring is enabled and disk synchronization is complete, avoid performing IFS operations (such as copy, rename, and delete) using the labels disk0:, disk1:, sec-disk0:, or sec-disk1:. Modifying a file using these labels can break disk synchronization without affecting the output of the show redundancy sync-status EXEC command. In other words, the show redundancy sync-status command output can declare disks to be "in sync," even after disk synchronization is broken using the improper labels.

Because the dir command does not modify any files, you can use the dir command with the disk0:, disk1:, sec-disk0:, or sec-disk1: labels at any time to check disk contents, as shown in the previous sections.

Cisco recommends that you perform mirrored IFS operations by using the labels mir-disk0: and mir-disk1:. These new labels target the PCMCIA disks in the specified slot of both NSPs, and ensure that the files affected by the IFS operations are still mirrored.


Note   If you want to save a file on only one PCMCIA disk and not have that file mirrored, use the [sec-]disk0:/non-mirror or [sec-]disk1:/non-mirror directory.

Examples

The following examples show mirrored IFS operations:

Switch# copy tftp://10.1.1.1/test-config mir-disk0:test-config
Switch# rename mir-disk0:test-config mir-disk0:test-config1
Switch# delete mir-disk0:test-config1

The following example shows an intentional nonmirrored IFS operation:

Switch# copy tftp://10.1.1.1/test-config2 sec-disk0:/non-mirror/test-config2

Troubleshooting and Monitoring PCMCIA Disk Mirroring

Use the show redundancy sync-status EXEC command to display all status information on disk mirroring and synchronization.

Use the debug disk-mirror EXEC command to display debug messages for IFS call events, disk write events, and disk synchronization events.

Using NSP Redundancy for Hardware Backup

For simple hardware backup, the redundant NSPs must have the same system image.To ensure that the redundant NSPs run the same image, complete the following steps:


Step 1   Use the show bootvar EXEC command to display the current booting parameters for the primary and secondary NSPs. Check that the secondary NSP is up.

Switch# show bootvar
BOOT variable =
CONFIG_FILE variable =
Current CONFIG_FILE variable =
BOOTLDR variable does not exist
Configuration register is 0x0
Secondary is up.
Secondary BOOT variable =
Secondary CONFIG_FILE variable =
Secondary BOOTLDR variable does not exist
Secondary Configuration register is 0x0

Step 2   Use the dir {bootflash: | disk0: | disk1: | sec-bootflash: | sec-disk0: | sec-disk1:} EXEC command to verify the location and version of the primary and secondary NSP software image.

Switch# dir disk0:
Directory of disk0:/
3 -rw- 628539   Jan 01 2000 00:08:55  c6400s-wp-mz.120-5.DB
109760827 bytes total (108228293 bytes free)
Switch# dir sec-disk0:
Directory of sec-disk0:/
8  -rw- 628224 Jul 01 1999 00:08:55 c6400s-wp-mz.120-4.DB
109760512 bytes total (108228608 bytes free)

Step 3   If the primary and secondary NSPs contain the same image version in the same location, the NSPs are already configured for hardware backup. Do not proceed to the next step.

Step 4   If the secondary NSP does not contain the same image in the same location, use the delete and squeeze EXEC commands to delete the secondary NSP software image.

Switch# delete sec-disk0:c6400s-wp-mz.120-4.DB
Switch# squeeze sec-disk0:

Step 5   Copy the primary NSP image to the same location on the secondary NSP.

Switch# copy disk0:c6400s-wp-mz.120-5.DB sec-disk0:c6400s-wp-mz.120-5.DB




Verifying NSP Redundancy for Hardware Backup

To verify that the NSP redundancy is configured for hardware backup, use the show bootvar and dir EXEC commands from Step 1 and Step 2. Check that both NSPs use the same system image and store the image in identical locations.

Using NSP Redundancy for Software Error Protection

For software error protection, the primary and secondary NSPs should have different system images. Cisco recommends using NSP redundancy for software error protection when you are using new or experimental Cisco IOS software.

To specify different startup images for the primary and secondary NSPs, complete the following steps, beginning in EXEC mode:


Step 1   Use the dir {bootflash: | disk0: | disk1: | sec-bootflash: | sec-disk0: | sec-disk1:} EXEC command to verify the locations and versions of the primary and secondary NSP software images.

Switch# dir disk0:
Directory of disk0:/
3 -rw- 628539   Jan 01 2000 00:08:55  c6400s-wp-mz.120-5.DB