BEFORE YOU BEGIN

•You know the name of the VSB for which you are creating a file to export.

•You have verified that the bootflash: export-import directory is empty. If files are present in this directory, you must delete them before starting this procedure.

•You must shut down the VSB that you want to backup before creating the file to export. This procedure includes a step for shutting down the VSB and then a step to restart the VSB after creating the file.

Note Multiple files may be created. Do not change the file suffix for numbering purposes. If you change the prefix for one file, then you must change it for all.

SUMMARY STEPS

1. dir export-import

2. (Optional) deletefilename

3. config t

4. virtual-service-blade name

5. shutdown[primary | secondary]

6. show virtual-service-blade summary

7. export [primary | secondary]

8. dir bootflash:export-import

9. no shutdown[primary | secondary]

10. show virtual-service-blade summary

DETAILED STEPS

Command

Purpose

Step 1

dir export-import

Example:

n1010# dir export-import

DOCS-CPPA# dir export-import

Usage for bootflash://sup-local

496164864 bytes used

3495215104 bytes free

3991379968 bytes total

n1010#

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

deletefilename

Example:

n1010-1(config-vsb-config)# delete bootflash:/export-import/1/*.*

n1010-1(config-vsb-config)# delete bootflash:/export-import/1

n1010-1(config-vsb-config)#

Deletes the contents of the folder and the parent folder.

Note Do not delete the export-import folder.

Step 3

config t

Example:

n1010-1# config t

n1010-1(config)#

Enters CLI Global Configuration mode.

Step 4

virtual-service-blade name

Example:

n1010-1(config)# virtual-service-blade vsm-1

n1010-1(config-vsb-config)#

Enters configuration mode for the named virtual service blade.

Step 5

shutdown[primary | secondary]

Example:

n1010-1(config-vsb-config)# shutdown secondary

n1010-1(config-vsb-config)#

Shuts down the VSB you are exporting from.

If a redundant pair of Cisco Nexus 1010s, you must specify whether to shut down the primary or secondary.

Creates a directory named for the slot id of the exported VSB containing a compressed tar image of the VSB.

If exporting from a redundant pair of Cisco Nexus 1010s, you must specify whether exporting from the primary or secondary.

Note The export command does not move the configuration file off of the Cisco Nexus 1010. The export command creates a backup copy that you must then copy to remote storage. There is a separate procedure for this.

Step 8

dir bootflash:export-import

Example:

n1010-1(config-vsb-config)# dir bootflash:export-import

4096 Sep 08 19:12:52 2011 1/

Usage for bootflash://sup-local

310870016 bytes used

3680509952 bytes free

3991379968 bytes total

Displays the contents of the bootflash: export-import directory, including the directory name of the folder containing the compressed tar image of the VSB, for verification.

Note Multiple files may be created. If so, use the first filename in this procedure. Do not change the file suffix for numbering purposes. If you change the prefix for one file, then you must change it for all.

•You are logged in to the CLI of the Cisco Nexus 1010 in EXEC mode.

•You know name of the path to a remote storage location.

•After copying the export backup file, delete the contents, including files and folders, of the export-import directory. Do not delete the export-import folder.

Note Multiple files may be created. If so, 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, then you must change it for all.

•You know the name of the VSB and the path to the remote storage location.

•You have verified that the bootflash: export-import directory is empty. If files are present in this directory, you must delete them before importing a VSB configuration file.

•If an imported VSB role does not match the role of the Nexus1010 on which it is imported, then the VSB role should be changed internally to match the Nexus1010 role.

SUMMARY STEPS

1. dir export-import

2. (Optional) deletefilename

3. copy ftp:filenamebootflash:export-import

4. config t

5. virtual-service-blade name

6. import [primary | secondary]filename

7. show virtual-service-blade summary

8. show virtual-service-blade name name

9. copy running-config startup-config

DETAILED STEPS

Command

Purpose

Step 1

dir export-import

Example:

n1010# dir export-import

DOCS-CPPA# dir export-import

Usage for bootflash://sup-local

496164864 bytes used

3495215104 bytes free

3991379968 bytes total

n1010#

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

(Optional) deletefilename

Example:

n1010-1(config-vsb-config)# delete Vdisk1.img.tar.00

n1010-1(config-vsb-config)#

Deletes the contents of the folder.

Step 3

copy ftp:filenamebootflash:export-import

Example:

n1010# copy ftp:Vdisk1.img.tar.00 bootflash:export-import

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 *****

Copies the exported image file from remote storage into the Cisco Nexus 1010 export-import folder in the bootflash: repository.

•fiename: The name of the export file. Multiple files may have been created. If so, 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, then you must change it for all.

Step 4

config t

Example:

n1010-1# config t

n1010-1(config)#

Enters CLI Global Configuration mode.

Step 5

virtual-service-blade name

Example:

n1010-1(config)# virtual-service-blade vsm-5

n1010-1(config-vsb-config)#

Enters configuration mode for the named virtual service blade.

Step 6

import primary filename

Example:

n1010-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

n1010-1(config-vsb-config)#

Powers off the primary VSB, imports the specified VSB configuration file, and then removes the configuration file from the export-import folder.

•fiename: The name of the export file that you copied from the remote server to the bootflash: repository.

Step 7

show virtual-service-blade summary

Displays a summary of all virtual service blade configurations by type name, such as VSM or NAM.

•This procedure requires you to shutdown the VSM management and control ports to prevent communication with VEMs and vCenter during the recovery. You need to know the IDs of the VSM control and management ports and the VSB serial port.

•This procedure requires you to setup the VSM software. You need to have the following information available for the VSM VSB:

–Admin password

–Domain ID

–HA Role (must be set to the same role as that of the VSM on which it is imported)

–Management 0 IP address

–Management 0 netmask

–Default gateway IP address

For detailed information about setting up the VSM software, see the Cisco Nexus 1000V Getting Started Guide, Release 4.2(1)SV1(5.1)

For detailed information about the vCenter server connection, see the

Step 1 From the Cisco Nexus 1010, shut down the control and management interfaces of the VSM VSB.

config t

interface vethernet slot/port
shut

Example:

n1010-1# config t

n1010-1(config)# interface vethernet1/1

n1010-1(config-if)# shut

The VSM management and control interfaces are no longer communicating with VEMs and vCenter.

Step 2 Verify that the control and management interfaces are down.

show virtual-service-blade name name

Example:

n1010-1(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: 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:

n1010-1(config)#

Step 3 Power on the VSB VSM.

virtual-service-blade nameno shutdown [primary | secondary]

Example:

n1010-1(config)# virtual-service-blade VSM1

n1010-1(config)# no shutdown primary

n1010-1(config)#

Step 4 Log in to Cisco Nexus 1010 serial port of the primary VSM.

Step 5 Erase the startup configuration.

config twrite erase

Example:

n1000v# config t

n1000v(config)# write erase

Warning: This command will erase the startup-configuration.

Do you wish to proceed anyway? (y/n) [n] y

The previous configuration is erased. You will replace it with the previously-saved backup of your running configuration in Step 11.