Configuring a stack

Supported stacking topologies for HP 2920 switches are:

  • chain (not recommended)

  • ring (recommended)

For additional information on hardware configuration, see the HP 2920 Switch Installation and Getting Started Guide.

Creating a stack

Ways to create a stack:

  • The deterministic method — by the sequence in which switches are booted. You choose which member becomes Commander.

  • The plug-and-go method — the stacking process determines which switch is the Commander. (Install a Stacking Module in each HP 2920 switch in the stack, enable stacking on each switch, connect them together in the desired stacking topology using stacking cables and power-on the switches.)

Using the deterministic method

  1. Install a Stacking Module into an HP 2920 switch and then boot the switch, as described in the HP 2920 Switch Installation and Getting Started Guide.

  2. Make sure that stacking is enabled for the switch:

    1. Enter the show stacking command.

    2. If stacking is disabled, enter stacking enable (in global config context). This command causes the switch to reboot.

  3. When the switch finishes booting, enter the show stacking command again. The switch now has the status of Commander, a Member ID of 1 (one) and a default priority of 128.

    show stacking output

    HP Stack 2920#: show stacking
    Stack ID : NO ID - will merge upon connectivity
    MAC Address : 1cc1de-4d48c0
    Stack Topology : No Stack Formed
    Stack Status : No Stack Formed
    Uptime : 0d 0h 5m
    Software Version : WB.15.11
    Mbr
    ID  Mac Address   Model                                 Pri Status
    --- ------------- ------------------------------------- --- -------
    1   1cc1de-4d48c0 HP J9729A 2920-48G-PoE+-4SFP+ Switch  128 Commander
    
  4. To generate a stack ID, enter the following command:

    HP Switch(config)#:stacking set-stack
    
  5. (Optional) To have this switch retain its function as Commander through stack boots and other situations, increase its priority. The switch with the highest priority becomes Commander when all switches are booted simultaneously. Default priority is 128; priority can be set to any value between 1 and 255. For example, to increase a switch stacking priority to 255, enter the following command:

    HP Switch(config)#: stacking member 1 priority 255
    
  6. (Optional) Pre-configure the stack for the other switches that become members of the stack. You can assign a member number and a priority by using the following command for each switch:

    HP Switch(config)#: stacking member <n> type <JxxxxA> [mac <MAC-address>]

    where:

    • n is the stacking member number for the switch

    • JxxxxA is the product number of the switch (required). Any HP 2920 model can be installed and assume this configuration. When you specify a value for this parameter, then only a switch of this specific model type can assume this configuration

    • (Optional) MAC-address can be specified if you want a specific switch to assume this provisioned configuration. If this value is entered, then the type value for the switch that has this MAC address must be correct, or a configuration error is logged and the switch is not allowed to join the stack.

  7. (Optional) You can pre-configure a priority for the member switch with the following command:

    HP Switch(config)# stacking member <n> priority <x>

    where:

    • n is the stacking member number for the switch

    • x is the priority (1 – 255, default 128); must be less than the priority assigned to the Commander. Priority for the Standby should be the second highest in the stack. Member switches can remain at the default priority of 128.


    [NOTE: ]

    NOTE: Configure the stacking type and priority with separate commands; for example.

    HP Switch(config)# stacking member 4 type J9726A

    HP Switch(config)# stacking member 4 priority 100


  8. Connect the stacking cables to the module ports for the desired stacking topology. For example, plug ports 1 and 2 in a ring.

  9. Install, but do not boot, Stacking Modules into the other switches that will be members of the stack.


    [NOTE: ]

    NOTE: HP recommends that you create a ring topology for maximum throughput and resiliency of the stack. A chain topology is not recommended because any hardware or software failure in the stack causes lost ports, which increases the amount of time for recovery of full stack operation due to multiple reboots. See the HP 2920 Installation and Getting Started Guide for supported topologies.


  10. Boot the Standby and Member switches. The second switch booted becomes the Standby; the remaining switches become Members when booted.

  11. When all switches are booted, enter the show stacking command to confirm that the stack is operating correctly. The following example shows four switches in a chain topology.

Four switches in a chain topology

HP Stack 2920#: show stacking
  Stack ID         : 00031cc1-de4d48c0
  MAC Address      : 1cc1de-4d48c9
  Stack Topology   : Chain
  Stack Status     : Active
  Uptime           : 1d 2h 35m
  Software Version : WB.15.11

   Mbr
   ID  Mac Address   Model                                  Pri Status
   --- ------------- -------------------------------------- --- ---------
   1   1cc1de-4d48c0 HP J9726A 2920-48G-PoE+-4SFP+ Switch   250 Commander
   2   1cc1de-4d8680 HP J9727A 2920-24G-PoE+-2SFP+ Switch   230 Standby
   3   1cc1de-4e3180 HP J9728A 2920-48G-PoE+-4SFP+ Switch   128 Member
   4   78acc0-3c2180 HP J9729A 2920-48G-4SFP+ Switch        128 Member

Plug-and-go method

  1. Install, but do not connect with stacking cables, a Stacking Module in each HP 2920 switch that will be in the stack, as described in the HP 2920 Switch Installation and Getting Started Guide.

  2. Make sure that stacking is enabled for each switch.

    1. Determine this by connecting a console to each switch and entering the command show stacking from the switch CLI.

    2. If stacking is disabled, enter the command stacking enable, which causes the switch to reboot.


    [NOTE: ]

    NOTE: By default, stacking is enabled on all HP 2920 switches when a Stacking Module is installed before the switch is powered up for the first time, but if the switches were powered up without a Stacking Module installed, stacking is disabled


    If you are connecting stacking cables during/after switch boot, then multiple stacks can form (plug-and-go method).

  3. Connect the stacking cables between the switches to form the desired stacking topology, then power on all switches.

When the switches that are stacked together complete booting up, one of the switches is elected as the Commander, one of the switches is elected as the Standby, the remaining switches become Members of the stack, and the stack becomes fully operational.

To find out the roles of the switches in the stack, connect a console to any switch and enter the show stacking command. You can use the MAC address and other information in the display to determine the role of each of the switches.

Adding a switch to a stack as a new member

HP Networking stacking enables adding switches to the stack while the stack is operational, so long as the maximum number of four switches in the stack is not exceeded.

  1. Provision[] the stack for the new switch with the following command:

    HP Switch(config)#: stacking member <n> type <JxxxxA> [mac <MAC-address>]

    where:

    • n is the stacking member number for the switch

    • JxxxxA is the product number of the switch (required). Any HP 2920 model can be installed and assume this provisioned configuration. If you specify a value for this parameter, then only a switch of this specific model type can assume this provisioned configuration

    • (Optional) MAC-address can be specified if you want a specific switch to assume this provisioned configuration. If this value is entered, then the type value for the switch that has this MAC address must be correct, or a configuration error is logged and the switch is not allowed to join the stack.

  2. (Optional) You can pre-configure a priority for the member switch by entering this command:

    HP Switch(config)#: stacking member n priority 100
    

    Where:

    • n is the stacking member number for the switch.

    • x is the priority (1 - 255, but should be less than the priority assigned to the Commander — the priority for the Standby should be the second highest in the stack; member switches can be left at the default priority value of 128).


    [NOTE: ]

    NOTE:

    • You must configure the stacking type and priority separately.

    • When the new switch has been provisioned in the stack, a complete configuration can be applied to the switch even before it is physically connected to the stack, connected to the network, and powered up.




  3. Power on the new switch. The new switch does not become a member of the stack unless stacking has been enabled on the switch.

  4. Install a Stacking Module into the new switch, connect the switch into the stack using the stacking cables, and form the desired stacking topology.

  5. When the switch has finished booting, establish a console session with it and, from the config context, issue the command to enable stacking:

    HP Switch(config)#: stacking enable
    

    This causes the switch to reboot. When the reboot is complete, the switch is a member of the stack with the attributes that you provisioned for it.

  6. Confirm that the switch is now a member of the stack by issuing a show stacking command from a console session with any of the switches in the stack. The command output should show that the new switch is a Standby or Member of the stack with the member number and priority that you assigned to it.

When you add the switch to the stack, the following occurs:

  • The Stack Revision Number is incremented by one.

  • The Commander verifies that the new switch has the same switch software as the other switches in the stack, and downloads the software to the new switch if it does not. When downloading new software, there is an automatic reboot.

  • The Commander assigns the Stack ID and a Member ID to the new switch.

  • A stack ID is assigned, even if the switch is later disconnected from the stack.

  • The member's console is automatically redirected to the Commander.

  • The OOBM IP address for that member is no longer reachable.

Removing a switch from the stack

You can remove a switch from the stack to be redeployed in another part of the network. The procedures vary depending on whether the switch is Commander of the stack or not.

Removing a Member or the Standby

  1. Establish a console session with the stack using a direct console cable connection or telnet [or equivalent command line tool]. If using the console cable, connect it to the Standby.

  2. Enter the following command to remove the switch from the stack:

    HP Stack 2920(config)#: stacking member <n> remove

    This causes the switch to lose its complete configuration and be removed from the stack configuration. A subsequent show stacking command issued to the stack will show that the removed switch no longer exists in the stack.

  3. Power down the removed switch.

  4. Disconnect the stacking cables from the removed switch and from the other switches in the stack.

Removing the Commander

  1. Establish a console session with the stack using a direct console cable connection, telnet or equivalent. If using the console cable, connect it to a switch other than the Commander

  2. Enter the following command to force Commander status over to the Standby switch:

    HP Stack 2920(config)#: redundancy switchover

    This causes the Standby switch to take the role of the Commander and for a new Standby to be selected from the remaining member switches. The former Commander becomes a Member of the stack.

  3. To remove the former Commander from the stack:

    HP Stack 2920(config)#: stacking member <n> remove

    where n is the member number of the former Commander.

  4. Power down the removed switch.

  5. Disconnect the stacking cables from the removed switch and from the other switches in the stack.

Re-numbering stack members

If you did not provision the stack for the switches when you first created the stack, members may not have acquired the desired member numbers; the stack members can be renumbered as described in the next example.

A four-member stack is used in the following example with switches A, B, C, and D. These switches are members 1, 2, 3, and 4, respectively. Switch B acquired member number 3 and switch C acquired member number 2.

To renumber stack members:

  1. In the global config context, enter the remove command option for switch B (member 3) and switch C (member 2):

    HP Stack 2920(config)#: stack member 3 remove HP Stack 2920(config)#: stack member 2 remove
    

    All configurations on the removed member switch are deleted, not just the stacking configuration.

  2. Enter the following command:

    HP Stack 2920(config)#: stack member 2 type <B's type> mac-address <B's MAC address>

    This command clears the MAC address of the member 2 configuration to allow switch C’s MAC address to be entered in the next command, without a duplicate MAC address occurring in the stack.

  3. Reboot switch B (new member 2) and then reboot switch C (new member 3).

  4. To confirm that each switch now has the desired member number, enter the show stacking command.

Restoring the operation of a stack

Restoring operation after power cord disconnection

If a power cord becomes disconnected from one of the switches in the stack, the stack operation is affected; stacking status of the switch that lost power is “Missing” but its record is retained in the stack configuration. The effect of the power loss depends on the role of the switch in the stack:

  • If the Commander loses power, the Standby switch takes over as the Commander and one of the member switches in the stack is elected as the new Standby.

  • If the Standby loses power, one of the member switches in the stack is elected as the new Standby.

  • For any switch that loses power, all its network ports and stacking ports are non-operational until power is restored to the switch and it rejoins the stack. This affects the stacking topology.

  • Reconnecting the power cord restores the operation of the switch; however, if the topology has 3 or more members and the switch was either the Commander or the Standby, it returns in a different role. In a 2-member stack, a Standby that reboots rejoins as Standby.

Restoring operation after disconnecting a stacking cable

If a stacking cable becomes disconnected from one of the switches in the stack, the effect depends on the stacking topology in use:

  • Ring—There is little effect. The stack topology is temporarily changed to a chain topology. To recover, simply reconnect the stacking cable; this restores the ring topology and the previous stack configuration.

  • Chain—The following occur:

    • The smaller section (fragment) of the stack caused by the disconnection becomes Inactive (the Stack Status value shown in the output of the show stacking command is Inactive.

    • If the two resulting fragments are the same size, the fragment that contains the Commander will be Active, and the other fragment becomes Inactive.


      [CAUTION: ]

      CAUTION: This only occurs when OOBM is enabled and configured for all members of the stack. If OOBM is not enabled and configured for all members of the stack, then each fragment will be Active. See OOBM and active and inactive fragments for more information.


    • Both fragments will have a Commander and a Standby selected (if there is more than one switch in each fragment).

    • When the stacking cable is reconnected to reform the chain:

      • The Commander and Standby of the Active fragment retain those roles for the resulting stack. If the original Commander was not in that fragment, then the stack will have a new Commander when the stack is reformed.

      • The switches in the Inactive fragment reboot and assume their new roles in the reformed chain.

Replacing a failed stack member

If a Stack Member fails, the effect on the stack depends on which member failed.

  • If the Commander fails, the Standby switch takes over as the Commander and one of the Member switches in the stack is elected as the new Standby. All network ports and stacking ports on the failed switch become non-operational.

  • If the Standby fails, one of the Member switches in the stack is elected as the new Standby. All network ports and stacking ports on the failed switch become non-operational.

  • If a Member fails, all network ports and stacking ports on that switch become non-operational.

If a Stack Member fails:

  1. Physically remove the Stack Member from the stack.

  2. Replace the failed Stack Member.


    [NOTE: ]

    NOTE: HP recommends using the same type (product or "J" number) switch as a replacement since all configuration information is retained.


  • If you are using the same type switch as a replacement:

    1. Provision the new switch using the stacking member N command.

    2. Reconnect all Ethernet ports as they were on the failed switch.

  • If you are using a different type switch as a replacement:

    1. Remove the failed switch from the stack configuration using the stacking member N remove command.

    2. Provision the new switch using the stacking member N command.

    3. Reconnect Ethernet ports and create a new stack configuration on the new switch.

If the replacement switch uses a different version of software, it will be updated automatically to match the software version running on the stack.

Replacing a failed stacking module

Replacing a failed stacking module is simpler than replacing a Stack Member since the switch configuration itself does not change. In this case, there is no need to re-provision the switch as a member of the stack. After you replace the stacking module, if the switch that experienced the module failure was Commander or Standby, the election of a new Commander and Standby is the same as described in Electing a Standby.

Merging stack fragments

When two fragments have the same stack-id, the merge of the fragments is almost always allowed regardless of the merge policy. The Commander and Standby of the merged stack are selected based on the election rules. All switches in the previously inactive fragment or fragments reboot, and join the Active fragment as Members.

If both fragments are Inactive, then an election process occurs: the two (or more) Commanders in the fragments are compared, and the Commander is selected using the following criteria:

  1. Highest Stack Rev.

  2. If the stack rev is the same for both, then choose the switch with the highest configured priority.

  3. If the priorities are the same for both, then choose the switch with the highest OS revision.

  4. If the OS revisions are the same, then choose the switch with the longest uptime.

  5. If the uptimes are the same, then choose the switch with the lowest MAC address.

Downloading new software to the stack

The stack is essentially a single switch with the Commander unit controlling the management functionality, so the process of loading new software is identical to the process for a standalone HP 2920. (See “File Transfers” in the Management and Configuration Guide for information on downloading software.)

After new software is loaded on the Commander, the Commander installs the software on all the stack members; the loading process can take some time.

To load the new software:

  1. Load the new software onto the Commander using TFTP, USB, Xmodem, or equivalent.

  2. Once the new software is loaded, establish a console session with the stack and enter the following command:

    HP Stack 2920#: boot system

    This causes the entire stack to be rebooted. Each unit is booted from its image unless you specify otherwise with options to this command. Make sure that you boot from the image to which you downloaded (that is, primary or secondary). If you add a new member to an existing stack, the Commander updates the new switch’s software to match the current stack software. Multiple versions of software are not supported across stack members.

  3. Confirm that the new software has been loaded on each stack member by entering the member-context command for each member. From the stack member context, view the switch software version that is running on that switch with a show flash or show version command.

    Syntax:

    member-context stack-member

    Sets the CLI context so that subsequent commands apply to the specified stack member.



[] Provisioning a switch configures a switch in a stack before the switch is connected into the stack. Once such a switch configuration has been created in the stack, a complete network configuration can be created for it, even if the switch is not physically present in the stack.