Removing or Replacing a Member Switch of a Virtual Chassis Configuration

 
Note

This topic does not apply to Virtual Chassis Fabric (VCF). See Removing a Device From a Virtual Chassis Fabric for VCF information. This topic also does not apply to EX8200 Virtual Chassis.

You can remove or replace a member switch in a Virtual Chassis without disrupting network service on the other member switches. You can retain the existing configuration of the member switch and apply it to a new member switch, or you can free up the member ID and make it available for assignment to a new member switch.

Note

When you add or delete member switches in a Virtual Chassis configuration, internal routing changes might cause temporary traffic loss for a few seconds. Also, if removing a member switch changes a mixed Virtual Chassis into a non-mixed Virtual Chassis, you must remove the mixed mode setting on all member switches of the Virtual Chassis and reboot the Virtual Chassis; network services are disrupted until the Virtual Chassis is up again.

If you want to remove or replace a member switch of a mixed Virtual Chassis that contains EX4200, EX4500, or EX4550 switches, see Removing an EX4200, EX4500, or EX4550 Switch From a Mixed Virtual Chassis (CLI Procedure).

If you want to replace a member switch with a different type of switch that changes the Virtual Chassis from a non-mixed to a mixed Virtual Chassis:

  1. Remove the member switch as described in Remove a Member Switch and Make Its Member ID Available for Reassignment to a Different Switch.

  2. Use the configuration procedure for adding a new switch to an existing Virtual Chassis based on the type of switch you are adding. (See Related Topics at the end of this topic.)

See Understanding Mixed EX Series and QFX Series Virtual Chassis for the combinations of switches that comprise a mixed Virtual Chassis.

Otherwise, to remove or replace a member switch of an EX Series or QFX Series Virtual Chassis, use one of the following procedures that matches what you want to do.

Remove a Member Switch and Make Its Member ID Available for Reassignment to a Different Switch

To remove a switch from a Virtual Chassis without replacing it:

  1. Power off and disconnect the member switch you want to remove from the Virtual Chassis.
  2. If the Virtual Chassis configuration is preprovisioned, on the Virtual Chassis master, remove the removed switch’s member setting from the preprovisioned configuration.
    [edit virtual-chassis]

    user@vc-master# delete member removed-member-id

    If the Virtual Chassis configuration is nonprovisioned, change the mastership-priority values of each member switch as needed to reconfigure the Virtual Chassis roles. See Configuring Mastership of a Virtual Chassis.

  3. (Optional) If removing a member switch leaves only two remaining member switches in the Virtual Chassis, we recommend you disable split detection in a two-member Virtual Chassis. See Disabling Split and Merge in a Virtual Chassis for details.
  4. Commit any configuration changes made in previous steps.
  5. (For a mixed Virtual Chassis only) If removing this member switch changes the Virtual Chassis from a mixed to a non-mixed Virtual Chassis, you must also remove the mixed-mode setting from the Virtual Chassis. See Understanding Mixed EX Series and QFX Series Virtual Chassis for details on the combinations of switches that comprise a mixed Virtual Chassis. You must reboot the Virtual Chassis for the mode change to take effect. To do this, you can include the reboot option with the request virtual-chassis mode mixed disable command that turns off mixed mode, or reboot all member switches of the Virtual Chassis separately when ready to do so, as shown below.
    user@vc-master> request virtual-chassis mode mixed disable all-members
    user@vc-master> request system reboot all-members
  6. When you remove a member switch from a Virtual Chassis configuration, the master keeps that member switch’s member ID in reserve. Use the following command on the Virtual Chassis master to make that member ID available for reassignment:
    user@vc-master> request virtual-chassis recycle member-id member-id
  7. If you want to use the removed switch as a standalone switch, you must remove any Virtual Chassis configuration items and settings on that switch. For a smooth transition to a new role as a standalone switch, we recommend to revert the switch to its default factory configuration using the request system zeroize command, and then apply the configuration items you want on the switch.

    If you do not want to revert to default factory settings, use commands such as the following to remove Virtual Chassis settings for the mode and VCPs from the removed switch:

    1. If the switch was removed from a mixed-mode Virtual Chassis, disable the mixed-mode setting.
      user@switch> request virtual-chassis mode mixed disable
    2. Delete the VCP settings for any ports that were used as VCPs:
      user@switch> request virtual-chassis vc-port delete pic-slot pic-slot port port-number
    3. Reboot the standalone switch for settings such as mode changes to take effect.

Remove, Repair, and Reinstall the Same Switch

If you need to repair a member switch, you can remove it from the Virtual Chassis configuration without disrupting network service for the other member switches. The master stores the configuration for the member ID so that it can be reapplied when the member switch (with the same base MAC address) is reconnected.

To remove, repair, and reinstall the member switch:

  1. Power off and disconnect the member switch to be repaired.
  2. Repair, as necessary.
  3. Reconnect the switch and power it on.

Remove a Member Switch, Replace It with a Different Switch, and Reapply the Old Configuration

If you are unable to repair a member switch, you can replace it with a different member switch of the same type while retaining the previous configuration. The master stores the configuration of the member switch that was removed. When you connect a different member switch, the master assigns a new member ID, but the old configuration is still stored under the previous member ID of the previous member switch.

To remove and replace a switch and reapply the old configuration:

  1. Power off and disconnect the member switch to be replaced.
  2. If the replacement member switch has been previously configured, revert that switch’s configuration to the factory defaults. See the request system zeroize command.

    The replacement member switch should be powered on and running with the factory default configuration at the end of this step.

  3. (Recommended for a QFX5100 Virtual Chassis under certain conditions) When you add or replace a QFX5100-24Q switch that is configured in the Routing Engine role in a QFX5100 Virtual Chassis, if the new switch has two EX4600-EM-8F expansion modules, we recommend that you set the mastership priorities on the routing engine members and the new switch to prevent a mastership switchover to the new switch until after the new switch is completely initialized in the Virtual Chassis.

    Before interconnecting the new switch into the Virtual Chassis in this case, see Adding a New QFX5100-24Q Switch with Two Expansion Modules in a QFX5100 Virtual Chassis for details on why, when, and how you should do this step.

    Note

    You might need to do this even if the new switch has the default factory configuration.

  4. (Required when automatic software update is not enabled on the Virtual Chassis and the new member switch is running a version of Junos OS that is different than the version of Junos OS running on the Virtual Chassis) Ensure that the correct version of Junos OS is or will be installed on the new member switch by performing either of the following tasks:
  5. Connect one link from the replacement member switch to the Virtual Chassis as follows, depending on which type of ports you are using:
    • If you are interconnecting a switch using dedicated Virtual Chassis Ports (VCPs), connect one dedicated VCP on the replacement member switch to a dedicated VCP on another member switch in the Virtual Chassis.

    • If you are interconnecting a switch using optical ports configured as VCPs:

      On the replacement switch, configure the optical ports that you are using to connect to the Virtual Chassis as VCPs. (The optical ports on the existing member switches in the Virtual Chassis where the replacement member switch will be connected should be configured as VCPs as well, if they are not already configured.) To configure an optical port as a VCP:

      user@switch> request virtual-chassis vc-port set pic-slot 1 port port-number

      Connect one configured optical port VCP on the replacement switch to a configured optical port VCP on another member switch in the Virtual Chassis.

      Note

      You can set optical port VCPs on a standalone switch before interconnecting one link into an existing Virtual Chassis, or set optical port VCPs for the switch after interconnecting a link into the existing Virtual Chassis. In either case, you must set the ports as VCPs that are used to interconnect the switch into the Virtual Chassis for the master to detect and complete the process of adding the switch as a member. For more information on setting up VCPs on EX Series switches, see Setting an Uplink Port on an EX Series or QFX Series Switch as a Virtual Chassis Port. For details on which ports can be configured as VCPs in a QFX Series Virtual Chassis, see Understanding Virtual Chassis Components.

  6. Confirm that the new member switch is now included in the Virtual Chassis configuration on switches with a front-panel LCD by checking the display for the member ID. It should show a member ID in the range from 0 through 9.

    If you are using a switch that does not have an LCD interface, confirm the switch is part of the Virtual Chassis configuration by entering the show virtual-chassis command and viewing the output.

  7. Cable the other VCP on the replacement member switch into the Virtual Chassis based on how you planned to interconnect the switch in Step 4.Caution

    If you immediately cable both VCPs on the new switch into the existing Virtual Chassis at the same time, a member switch that was already part of the Virtual Chassis might become nonoperational for several seconds. Network traffic to this switch is dropped during the downtime.

    The member switch will return to the normal operational state with no user intervention, and normal operation of the Virtual Chassis will resume after this downtime.

  8. To update the new member switch’s current member ID to the member ID of the member switch that was removed from the Virtual Chassis configuration:
    • In a nonprovisioned Virtual Chassis, issue the request virtual-chassis renumber command on the master member switch.

    • In a preprovisioned Virtual Chassis, on the master member switch, reconfigure the member information for the new member switch using the [edit virtual-chassis] member configuration statement.

      To use the same member ID as the member that was replaced, associate the new switch’s serial number (on the back of the switch) with the replaced member ID, as follows:

      [edit virtual-chassis]

      user@switch# set member replaced-member-ID serial-number new-member-serial-number

      Note

      You can alternatively use the replace configuration editing command to substitute the serial number of the replacement member switch for the replaced member’s serial number in the existing configuration item for the replaced member.

      To configure the new member switch with a different member ID, associate the new switch’s serial number with the desired member ID and then delete the configuration item for the replaced member switch, as follows:

      [edit virtual-chassis]

      user@switch# set member new-member-ID serial-number new-member-serial-number

      user@switch# delete member replaced-member-ID