Exporting and Importing a Virtual Service Blade

Similar documents
VSB Backup and Recovery

Configuring Virtual Service Blades

Installing and Configuring VXLAN Gateway

Working with Configuration Files

Cisco Nexus 1000V Software Upgrade Guide, Release 4.0(4)SV1(3d)

Configuring System Port Profiles

Cisco Nexus 1100 Series Virtual Services Appliances

Using the Cisco NX-OS Setup Utility

Using the Cisco NX-OS Setup Utility

Performing Software Maintenance Upgrades (SMUs)

Cisco Prime Network Analysis Module (Cisco Prime NAM) for Nexus 1110 Installation and Configuration Guide

Send document comments to

Send document comments to name List name. The range of valid values is 1 to 64.

Upgrading the Cisco VSG and the Cisco Prime NSC

Cisco Nexus 1000V Software Upgrade Guide, Release 4.2(1)SV1(4a)

Upgrading or Downgrading the Cisco Nexus 3500 Series NX-OS Software

Send document comments to

Configuring Virtual Blades

Performing Software Maintenance Upgrades

Configuring sflow. Information About sflow. sflow Agent. This chapter contains the following sections:

Deploying Cisco Nexus Data Broker Embedded for OpenFlow

Nexus 9500 Spine Supervisor Failure Recovery

Maintenance Tasks CHAPTER

Configuring DHCP Snooping

Cisco Prime Network Services Controller 3.0 CLI Configuration Guide

Virtual Services Container

Cisco Nexus 1000V for KVM Interface Configuration Guide, Release 5.x

Maintenance Tasks. About A/B Partition CHAPTER

Software Images. About Software Images. Dependent Factors. Send documentation comments to CHAPTER

Configuring Virtual Ethernet Interfaces

Configuring NetFlow. Information About NetFlow. What is a Flow. This chapter contains the following sections:

Configurations for the Layer 3 Switch Router

Using the Offline Diagnostic Monitor Menu

GRP Redundant Processor Support

Virtual Services Container

Installing and Configuring Licenses

Firmware Management. Overview of Firmware. This chapter includes the following sections:

Maintenance Tasks CHAPTER

Configuring Layer 3 Interfaces

Managing Virtual Machines

Configuring Layer 3 Interfaces

Cisco IOS File System Commands

Configuring Administrative Operations

Available Commands CHAPTER

B Commands. bandwidth (interface) Send document comments to

Cisco Nexus 1000V for KVM Security Configuration Guide, Release 5.x

Platform Administration

Consolidated Packages and SubPackages Management

Configuring an IP ACL

GSS Administration and Troubleshooting

Maintaining the System Software

Configuring the MAC Address Table

Migration of Existing NSM Server from standalone to an Extended HA environment

Backup and Restore Operations

Configuring Virtual Port Channels

Configuring Administrative Operations

Configuration Import/Export

Configuring Virtual Port Channels

Command-Line Interfaces

Performing Maintenance Operations

Configuring DNS. Finding Feature Information. Information About DNS Clients. DNS Client Overview

Managing GSS User Accounts Through a TACACS+ Server

Configuring VM-FEX. Information About VM-FEX. VM-FEX Overview. VM-FEX Components. This chapter contains the following sections:

Backup and Restore Operations

Configuring Online Diagnostics

Using the Device File Systems, Directories, and Files

Configuring Online Diagnostics

Configuring User Accounts and RBAC

Performing Software Maintenance Upgrades

Cisco Nexus 9000 Series FPGA/EPLD Upgrade Release Notes, Release 7.0(3)F1(1)

Configuring the Scheduler

Cisco Network Academy CCNA 1 Introduction to Networks

Consolidated Packages and SubPackages Management

Managing Virtual Machines Using the Cisco SRE-V CLI

Managing GSS User Accounts Through a TACACS+ Server

Installing the Cisco Nexus 1000V Software Using ISO or OVA Files

No Service Password-Recovery

Configuring IPv4. Finding Feature Information. This chapter contains the following sections:

This table describes the supervisor module options for switches in the Cisco MDS 9000 Family.

Dr. Tom Hicks. Computer Science Department Trinity University

Configuring Static and Dynamic NAT Translation

Discovering Network Devices

Configuration Import/Export

Configuring Local SPAN and ERSPAN

Managing the ACE Software

Enabling vtracker. This chapter contains the following sections:

SSL VPN Reinstallation

IR829 AP803 Access Point Module

Transferring Files Using HTTP or HTTPS

Password Recovery Procedure for the Catalyst 5500 Supervi

Configuring WCCPv2. Information About WCCPv2. Send document comments to CHAPTER

Configuring Virtual Port Channels

Configuring Virtual Port Channels

Data Center Network Manager (DCNM) with SFTP Switch Configuration Backup

Cisco Nexus 1000V Installation and Upgrade Guide, Release 5.2(1)SV3(1.4)

Troubleshooting 1240AG Series Lightweight Access Points

Smart Install Concepts

Troubleshooting Initial Startup Problems

Troubleshooting Lightweight Access Points

#include /opt/cscocnsie/templates/ethernet_setup.cfgtpl. Now, you could centralize all the administration for Ethernet configuration in one file.

Transcription:

This chapter contains the following sections: Information About, page 1 Guidelines and Limitations for, page 1 Exporting a Virtual Service Blade, page 2 Importing a Virtual Service Blade, page 5 Verifying the Export and Import of a Virtual Service Blade, page 8 Feature History for Export and Import, page 9 Information About Exporting and Importing a Virtual Service Blade You can export or import a virtual service blade (VSB) on the Cisco Nexus Cloud Services Platform by creating a copy of the VSB backup file. You can store this backup file remotely to use as a recovery mechanism, or when you need to move a VSB between two Cisco Nexus Cloud Services Platforms. Guidelines and Limitations for Exporting and Importing a Virtual Service Blade VSB import and export guidelines are as follows: You can create multiple export files with this process. Do not change the file suffix for numbering purposes. If you change the prefix for one file, you must change it for all files. You must shut down the VSB before creating the file to export. The bootflash export-import directory must be empty before you can create an export file or copy the file from external storage. 1

Exporting a Virtual Service Blade Exporting a Virtual Service Blade You can create a backup copy of a VSB, store it remotely, and then reimport it to either recover a virtual supervisor module (VSM), or move a VSB between Cisco Nexus Cloud Services Platforms. Exporting a Virtual Service Blade Backup File Before You Begin Log in to the CLI of the Cisco Nexus Cloud Services Platform in EXEC mode. Know the name of the VSB for which you are creating a file to export. Enter the copy running-config startup-config command to save the running configuration before you begin this procedure. Verify that the bootflash: export-import directory is empty. If there are files in this directory, you must delete them before starting this procedure. Shut down the VSB that you want to back up before creating the file to export. This procedure includes a step for shutting down the VSB, and then a step for restarting the VSB after creating the file. Procedure Step 1 Command or Action switch # dir Displays the contents of the export-import directory for verification that the directory is empty. If there is anything in this directory, you must use the next step to delete it before proceeding. Step 2 switch (config-vsb-config) # delete foldername (Optional) Deletes the VSB compressed tar file and the folder that was created for export. Step 3 switch # configure terminal Enters global configuration mode. Step 4 Step 5 Step 6 switch (config) # virtual-service-blade name switch (config-vsb-config) # shutdown [primary secondary] switch (config-vsb-config) # show virtual-service-blade summary Enters the configuration mode for the named VSB. Shuts down the VSB that you are exporting from. If you have a redundant pair of Cisco Nexus Cloud Services Platforms, you must specify whether to shut down the primary or secondary. (Optional) Displays the summary VSB configuration for verification. Step 7 switch (config-vsb-config) # export [primary secondary] Creates a directory named for the slot ID of the exported VSB that contains a compressed tar image of the VSB. 2

Exporting a Virtual Service Blade Backup File Step 8 Command or Action switch (config-vsb-config) # dir If you are exporting from a redundant pair of Cisco Nexus Cloud Services Platforms, you must specify whether you are exporting from the primary or secondary. Note The export command does not move the configuration file off of the Cisco Nexus Cloud Services Platform. It creates a backup copy that you must then copy to the remote storage location. Displays the contents of the bootflash: export-import directory, including the directory name of the folder that contains the compressed tar image of the VSB for verification. You need this folder name in Step 11. Step 9 Step 10 switch (config-vsb-config) # no shutdown [primary secondary] switch (config-vsb-config) # show virtual-service-blade summary Powers on the VSB that was powered off when creating the file for export. If you have a redundant pair of Cisco Nexus Cloud Services Platforms, you must specify primary or secondary. (Optional) Displays the VSB configuration for verification. Step 11 switch (config-vsb-config) # dir /directory-name Displays the contents of the Cisco Nexus Cloud Services Platform export folder, including the filename of the VSB compressed tar image. Note You identified this folder name in Step 8. You can create multiple export files. Do not change the file suffix for numbering purposes. If you change the prefix for one file, you must change it for all files. This example shows how to create a VSB backup file: switch# dir Usage for bootflash://sup-local 496164864 bytes used 3495215104 bytes free 3991379968 bytes total switch-1(config-vsb-config)# delete bootflash:/export-import/1/*.* switch-1(config-vsb-config)# delete bootflash:/export-import/1 switch-1(config-vsb-config)# switch-1# configure terminal switch-1(config)# virtual-service-blade vsm-1 switch-1(config-vsb-config)# shutdown secondary switch-1(config-vsb-config)# show virtual-service-blade summary Name Role State Nexus1010-Module VSM1 PRIMARY VSB POWERED ON Nexus1010-PRIMARY VSM1 SECONDARY VSB POWERED OFF Nexus1010-SECONDARY 3

Copying the Exported Virtual Service Blade to an External Storage Location Example of a successful completion of a VSB switch-1(config-vsb-config)# export secondary Note: export started.. Note: please be patient.. Note: please be patient.. Note: please be patient.. Note: export completed...switch-1(config-vsb-config)# Example of an error condition while exporting a VSB switch-1(config-vsb-config)# export primary ERROR: Please clean export-import directory first, then proceed. Example of an error condition while exporting a secondary VSB switch-1(config-vsb-config)# export secondary ERROR: Cannot export active virtual-service-blade, please shut and retry. switch-1(config-vsb-config)# dir 4096 Sep 08 19:12:52 2011 1/ Usage for bootflash://sup-local 310870016 bytes used 3680509952 bytes free 3991379968 bytes total switch-1(config-vsb-config)# no shutdown secondary switch-1(config-vsb-config)# show virtual-service-blade summary Name Role State Nexus1010-Module VSM1 PRIMARY VSB POWERED ON Nexus1010-PRIMARY VSM1 SECONDARY VSB POWERED ON Nexus1010-SECONDARY switch-1(config-vsb-config)# dir /1 279955021 Sep 08 19:13:21 2011 Vdisk1.img.tar.00 Usage for bootflash://sup-local 310870016 bytes used 3680509952 bytes free 3991379968 bytes total Copying the Exported Virtual Service Blade to an External Storage Location You can copy the exported VSB to a remote storage location and then delete the folder created for this purpose from the Cisco Nexus Cloud Services Platform. Before You Begin You have created a file to export and you know the name of this file and the name of the folder that it resides in. Note You can create multiple files. If you do, use the first filename in this procedure. Do not change the file suffix for numbering purposes. If you change the prefix for one file, you must change it for all files. Log in to the CLI of the Cisco Nexus Cloud Services Platform in EXEC mode. Know the name of the path to a remote storage location. 4

Importing a Virtual Service Blade After copying the export backup file, delete the contents, including the files and folders, of the export-import directory. Do not delete the export-import folder. Procedure Step 1 Step 2 Command or Action switch # copy /folder-name/filename ftp: switch # delete /folder-name Copies the VSB image from the Cisco Nexus Cloud Services Platform export-import folder to a remote storage location. Deletes the VSB compressed tar file and the folder that was created for export. Step 3 switch # dir Displays the contents of the export-import directory for verification. This example shows how to copy a VSB file to an external location: switch# copy /1/Vdisk1.img.tar.00 ftp: Enter vrf (If no input, current vrf 'default' is considered): Enter hostname for the ftp server: 10.78.109.51 Enter username: administrator Password: ***** Transfer of file Completed Successfully ***** switch# delete bootflash:/export-import/1/vdisk1.img.tar.00 switch# delete bootflash:/export-import/1 switch# dir switch# Importing a Virtual Service Blade You can import a previously saved backup copy of a VSB from a remote storage location to the Cisco Nexus Cloud Services Platform. Before You Begin Log in to the CLI of the active Cisco Nexus Cloud Services Platform in EXEC mode. Create and save a copy of the VSB configuration in a remote storage location. Note You can create multiple VSB configuration files. If you do, use only the first filename with the import command. Do not change the file suffix for numbering purposes. If you change the prefix for one file, you must change it for all files. Know the name of the VSB and the path to the remote storage location. Verify that the folder is empty. If there are files in this directory, you must delete them before importing a VSB configuration file. 5

Importing a Virtual Service Blade If an imported HA VSB role does not match the role of the Cisco Nexus Cloud Services Platform on which it is imported, change the HA VSB role internally to match the Cisco Nexus Cloud Services Platform. Procedure Step 1 Step 2 Step 3 Step 4 Step 5 Step 6 Command or Action switch # dir switch (config-vsb-config) # delete foldername switch # copy ftp: filename switch # configure terminal switch (config) # virtual-service-blade name switch (config-vsb-config) # import primary filename Displays the contents of the folder for verification that the directory is empty. If there is anything in this directory, you must use the next step to delete it before proceeding. (Optional) Deletes the VSB compressed tar file and the directory created for export. Copies the exported image file from a remote storage location into the Cisco Nexus Cloud Services Platform export-import directory in the folder. filename The name of the export file. Multiple files might have been created. If so, copy these files into the folder and use only the first filename with the import command. Do not change the file suffix for numbering purposes. If you change the prefix for one file, you must change it for all files. Enters global configuration mode. Enters configuration mode for the named VSB. Powers off the primary VSB, imports the specified VSB configuration file, and then removes the configuration file from the bootflash:import-export folder. filename The name of the export file that you copied from the remote server to the bootflash:repository. Step 7 switch (config-vsb-config)# show virtual-service-blade summary (Optional) Displays a summary of all VSB configurations by type name. Verify that the primary VSB is powered off. Step 8 Step 9 Complete the following tasks: switch # no shutdown primary filename See Configuring Port Channels. See Assigning Uplinks to a VSB Interface. Powers on the primary VSB and imports the primary VSB configuration. filename The name of the imported primary VSB. 6

Importing a Virtual Service Blade Step 10 Step 11 Command or Action switch (config-vsb-config) # show virtual-service-blade name name switch (config-vsb-config) # copy running-config startup-config (Optional) Displays the VSB information for verification. From the command output, make a note of the control and management VSB Ethernet interfaces. Saves the running configuration persistently through reboots and restarts by copying it to the startup configuration. This example shows how to import a VSB backup file: switch# dir bootflash export-import switch# dir export-import Usage for bootflash://sup-local 496164864 bytes used 3495215104 bytes free 3991379968 bytes total switch# switch-1(config-vsb-config)# delete Vdisk1.img.tar.00 switch-1(config-vsb-config)# switch# copy ftp:vdisk1.img.tar.00 Enter vrf (If no input, current vrf 'default' is considered): Enter hostname for the ftp server: 10.78.109.51 Enter username: administrator Password: ***** Transfer of file Completed Successfully ***** switch-1# configure terminal switch-1(config)# virtual-service-blade VSM1 switch-1(config-vsb-config)# import primary Vdisk1.img.tar.00 Note: import started.. Note: please be patient.. Note: Import cli returns check VSB status for completion switch-1(config-vsb-config)# show virtual-service-blade summary Name Role State Nexus1010-Module VSM1 PRIMARY VSB POWERED OFF Nexus1010-PRIMARY VSM1 SECONDARY VSB POWERED ON Nexus1010-SECONDARY switch-1(config)# virtual-service-blade VSM1 switch-1(config)# no shutdown primary switch-1(config-vsb-config)# show virtual-service-blade name VSM1 virtual-service-blade VSM1 Description: Slot id: 1 Host Name: Management IP: VSB Type Name : VSM-1.1 vcpu: 1 Ramsize: 2048 Disksize: 3 Heartbeat: 0 HA Admin role: Primary HA Oper role: NONE Status: VSB POWERED OFF Location: PRIMARY SW version: VsbEthernet1/1/1: control vlan: 1306 state: up 7

Verifying the Export and Import of a Virtual Service Blade VsbEthernet1/1/2: management vlan: 1304 state: up VsbEthernet1/1/3: packet vlan: 1307 state: up Interface: internal vlan: NA state: up HA Admin role: Secondary HA Oper role: NONE Status: VSB POWERED ON Location: SECONDARY SW version: VSB Info: switch-1(config-vsb-config)# copy running-config startup-config Verifying the Export and Import of a Virtual Service Blade To verify the export and import, use the following commands: Command dir /folder-name show virtual-service-blade summary show virtual-service-blade [name name] Displays the contents of the export-import directory. Displays the redundancy state (active or standby) and the redundancy role (primary or secondary) for each VSB. Displays the configuration for a specific VSB. This example shows an export-import directory: switch-1(config-vsb-config)# dir /1 279955021 Sep 08 19:13:21 2011 Vdisk1.img.tar.00 Usage for bootflash://sup-local 310870016 bytes used 3680509952 bytes free 3991379968 bytes total This example shows how to display summary information for a VSB: switch-1(config-vsb-config)# show virtual-service-blade summary Name Role State Nexus1010-Module VSM1 PRIMARY VSB POWERED OFF Nexus1010-PRIMARY VSM1 SECONDARY VSB POWERED ON Nexus1010-SECONDARY This example shows how to display information for a named VSB: switch# show virtual-service-blade name VSM1 virtual-service-blade VSM1 Description: Slot id: 1 Host Name: Management IP: VSB Type Name : VSM-1.1 vcpu: 1 Ramsize: 2048 Disksize: 3 8

Feature History for Export and Import Heartbeat: 0 HA Admin role: Primary HA Oper role: NONE Status: VSB POWERED OFF Location: PRIMARY SW version: VsbEthernet1/1/1: control vlan: 1306 state: down VsbEthernet1/1/2: management vlan: 1304 state: down VsbEthernet1/1/3: packet vlan: 1307 state: up Interface: internal vlan: NA state: up HA Admin role: Secondary HA Oper role: NONE Status: VSB POWERED ON Location: SECONDARY SW version: VSB Info: switch-1(config)# Feature History for Export and Import This section provides the feature release history. Feature Name VSB export and import Releases 4.2(1)SP1(3) Feature Information This feature was introduced. 9

Feature History for Export and Import 10