emc san cli administrator's guide

78
EMC Corporation Corporate Headquarters: Hopkinton, MA 01748-9103 (800) 424-EMC2 http://www.EMC.com EMC SAN Copy Command Line Interfaces ADMINISTRATOR’S GUIDE P/N 069001189 REV A01

Upload: sunit-borah

Post on 26-Mar-2015

302 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: EMC SAN CLI Administrator's Guide

EMC CorporationCorporate Headquarters: Hopkinton, MA 01748-9103(800) 424-EMC2http://www.EMC.com

EMC SAN Copy Command Line Interfaces

ADMINISTRATOR’S GUIDEP/N 069001189

REV A01

Page 2: EMC SAN CLI Administrator's Guide

EMC SAN Copy Command Line Interfaces Administrator’s Guideii

Copyright © 2003 EMC Corporation. All rights reserved.Published February, 2003

EMC believes the information in this publication is accurate as of its publication date. The information is subject to change without notice.

THE INFORMATION IN THIS PUBLICATION IS PROVIDED "AS IS." EMC CORPORATION MAKES NO REPRESENTATIONS OR WARRANTIES OF ANY KIND WITH RESPECT TO THE INFORMATION IN THIS PUBLICATION, AND SPECIFICALLY DISCLAIMS IMPLIED WARRANTIES OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.

Use, copying, and distribution of any EMC software described in this publication requires an applicable software license.

Trademark InformationEMC2, EMC, CLARiiON, Navisphere, and Symmetrix are registered trademarks and PowerPath, Access Logix, MirrorView, SAN Copy, and SnapView are trademarks of EMC Corporation.

All other trademarks used herein are the property of their respective owners.

Page 3: EMC SAN CLI Administrator's Guide

EMC SAN Copy Command Line Interfaces Administrator’s Guide iii

Preface.............................................................................................................................. v

Chapter 1 Introducing SAN Copy and Its Command Line UtilitiesFinding Current Information ......................................................... 1-2Terminology...................................................................................... 1-3Introducing SAN Copy Software .................................................. 1-5SAN Copy Features and Benefits .................................................. 1-7SAN Copy Software Components................................................. 1-9SAN Copy Operations Overview................................................ 1-10

Chapter 2 SAN Copy Configuration GuidelinesSAN Copy Configuration Requirements and Restrictions ........ 2-2SAN Copy Zoning Requirements and Recommendations........ 2-4

Requirements ............................................................................ 2-4Recommendations .................................................................... 2-4

Making Logical Units Accessible to the SAN Copy Port ........... 2-5Registering SAN Copy Ports With Target Systems............. 2-5Connecting SAN Copy Ports to CLARiiON Storage Groups........................................................................................ 2-6Connecting SAN Copy Ports to Symmetrix Volumes......... 2-7

Chapter 3 Using the admhost Utility with SAN CopyAbout admhost for SAN Copy ...................................................... 3-2admhost SAN Copy Command Functions .................................. 3-3

admhost Function Switches ................................................... 3-5Preparing Logical Units for a SAN Copy Session....................... 3-6

Contents

Page 4: EMC SAN CLI Administrator's Guide

EMC SAN Copy Command Line Interfaces Administrator’s Guideiv

Contents

Chapter 4 SAN Copy CLI CommandsNavicli SAN Copy Command Functions..................................... 4-2About Navisphere CLI Commands .............................................. 4-4navicli ................................................................................................ 4-4sancopy -create................................................................................. 4-8sancopy -destinfo........................................................................... 4-11sancopy -duplicate......................................................................... 4-13sancopy -info .................................................................................. 4-14sancopy -modify ............................................................................ 4-17sancopy -pause............................................................................... 4-20sancopy -remove............................................................................ 4-21sancopy -resume ............................................................................ 4-23sancopy -settings............................................................................ 4-25sancopy -start ................................................................................. 4-27sancopy -stop.................................................................................. 4-28sancopy -throttle ............................................................................ 4-29sancopy -transfer ........................................................................... 4-31sancopy -updateconnections........................................................ 4-32sancopy -verify............................................................................... 4-33

Appendix A SAN Copy Error CodesSAN Copy Error Codes ................................................................. A-2

Index................................................................................................................................ i-1

Page 5: EMC SAN CLI Administrator's Guide

EMC SAN Copy Command Line Interfaces Administrator’s Guide v

Preface

This manual describes the two command line interfaces to EMC SAN Copy™ software: the admhost utility and the CLI (Command Line Interface).

You should read this manual if you will use typed or scripted commands (instead of or in addition to EMC ControlCenter Navisphere Manager) to configure and run the SAN Copy software. This manual assumes that you are familiar with the operating system running on the servers you will manage and with storage-system components and configurations.

How This Manual Is Organized

Chapter 1 Introduces terminology and the software products.

Chapter 2 Explains the basic requirements, restrictions and configuration guidelines for using SAN Copy.

Chapter 3 Explains admhost commands that the operating system uses to manage devices with SAN Copy.

Chapter 4 Describes the CLI commands that SAN Copy uses to manage SAN Copy sessions.

Appendix A Describes SAN Copy error codes.

Page 6: EMC SAN CLI Administrator's Guide

vi EMC SAN Copy Command Line Interfaces Administrator’s Guide

Preface

Related ManualsEMC SAN Copy 1.X for EMC ControlCenter Navisphere 6.X Administrator’s Guide (P/N 069001188)

EMC ControlCenter Navisphere Manager 6.X Administrator’s Guide (P/N 069001125)

EMC Storage Systems CX400-Series and CX-600-Series Storage System Configuration Planning Guide (P/N 014003113)

EMC FC4700-2 Storage System Configuration Planning Guide (P/N 014003087)

Conventions Used in This ManualThis manual uses the following format conventions:

This typeface

Indicates text (including punctuation) that you type verbatim, all commands, pathnames, filenames, and directory names. It indicates the name of a dialog box, field in a dialog box, menu, menu option, or button.

This typeface Represents variables for which you supply the values; for example, the name of a directory or file, your username or password, and explicit arguments to commands.

This typeface

Represents a system response (such as a message or prompt), a file or program listing.

x -> y Represents a menu path. For example, Operations -> Poll All Storage Systems tells you to select Poll All Storage Systems on the Operations menu.

[ ] Encloses optional entries.

| Separates alternative parameter values; for example:LUN-name | LUN-number means you can use either the LUN-name or the LUN-number.

Page 7: EMC SAN CLI Administrator's Guide

EMC SAN Copy Command Line Interfaces Administrator’s Guide vii

Preface

Where to Get Help For questions about technical support and service, contact your service provider.

If you have a valid EMC service contract, contact EMC Customer Service at:

Follow the voice menu prompts to open a service call, then select CLARiiON® Product Support.

Sales and CustomerService Contacts

For the list of EMC sales locations, please access the EMC home page at:

http://www.emc.com/contact/

For additional information on the EMC products and services available to customers and partners, refer to the EMC Powerlink Web site at:

http://powerlink.emc.com

Your Comments Your suggestions will help us continue to improve the accuracy, organization, and overall quality of the user publications. Please send a message to [email protected] with your opinions of this guide.

United States: (800) 782-4362 (SVC-4EMC)

Canada: (800) 543-4782 (543-4SVC)

Worldwide: (508) 497-7901

Page 8: EMC SAN CLI Administrator's Guide

viii EMC SAN Copy Command Line Interfaces Administrator’s Guide

Preface

Page 9: EMC SAN CLI Administrator's Guide

Introducing SAN Copy and Its Command Line Utilities 1-1

1Invisible Body Tag

This chapter introduces the SAN Copy™ software and its command line utilities: admhost, with commands that the operating system uses to manage SAN Copy devices; and the CLI, with commands that manage SAN Copy sessions. Major topics are

◆ Finding Current Information ...........................................................1-2◆ Terminology........................................................................................1-3◆ Introducing SAN Copy Software.....................................................1-5◆ SAN Copy Features and Benefits ....................................................1-7◆ SAN Copy Software Components ...................................................1-9◆ SAN Copy Operations Overview ..................................................1-10

Introducing SAN Copyand Its Command Line

Utilities

Page 10: EMC SAN CLI Administrator's Guide

1-2 EMC SAN Copy Command Line Interfaces Administrator’s Guide

Introducing SAN Copy and Its Command Line Utilities

Finding Current InformationTo ensure that you have the most up-to-date information about the EMC SAN Copy software, EMC posts the release notes for this software on the EMC Powerlink website. We recommend that you download a copy of the release notes before you start the SAN Copy software.

Accessing EMCPowerlink

To access EMC Powerlink use the following url:

http://powerlink.emc.com

After you log in, select Support (or Services) → Document Library → CLARiiON → CLARiiON Fibre Channel Storage → CLARiiON FC Software, and find the EMC SAN Copy and Admhost Release Notes (P/N 085090685).

Page 11: EMC SAN CLI Administrator's Guide

Terminology 1-3

Introducing SAN Copy and Its Command Line Utilities

Terminology

Term Meaning

Access Logix™ option See shared storage system.

admhost utility The admhost utility is an executable program that you can run interactively via script. It runs on Microsoft Windows NT®, and Windows® 2000.

checkpoint interval A user-defined time interval that lets SAN Copy resume an interrupted session from the last checkpoint, rather than having to start the session over.

CLI EMC ControlCenter™ Navisphere® Command Line Interface.

clone A copy (local mirror) of a LUN. When synchronized, it remains a bit-for-bit copy of its source LUN. To access the clone, you must fracture it. Then, after performing the desired operations (such as data modeling or backup), you can start synchronizing it again. Clone functionality is provided with EMC SnapView™ software.

copy descriptor A set of parameters you create under a unique name that specifies the source and destination devices and other settings for a SAN Copy session. Each copy descriptor is stored in an SP. You start a session using the copy descriptor.

destination logical unit A logical unit to which SAN Copy is copying the source data. On a CLARiiON® storage system, this device is called a LUN; on a Symmetrix® system, it is called a volume.

domain In the context of Navisphere 6.X, a group of storage systems and/or portal servers that you can manage from a single management application session. You can divide the storage systems into multiple domains as long as each storage system or portal is in only one domain.

Event Monitor EMC ControlCenter Navisphere Event Monitor.

Host Agent EMC Navisphere Agent that runs on a storage-system server.

logical unit A storage device that resides on a storage system, stores data and is independent of storage-system type. For example, on a CLARiiON storage system, this device is called a LUN; on a Symmetrix system, a volume.

LUN CLARiiON term for logical unit.

managed Agent A Host Agent or SP Agent managed by Navisphere management software.

managed storage system A storage system managed by Navisphere management software.

Manager EMC ControlCenter Navisphere Manager.

portal A server or storage system through which you manage one or more storage systems using Navisphere 6.X. Generally the managed systems are legacy systems such as FC4500s and FC5300s.

Page 12: EMC SAN CLI Administrator's Guide

1-4 EMC SAN Copy Command Line Interfaces Administrator’s Guide

Introducing SAN Copy and Its Command Line Utilities

Term Meaning

pre-FC4700 systems An FC4500, FC5300, FC5500, FC5700, or C-Series storage system.

SAN Storage Area Network: One or more servers connected to one or more storage systems via Fibre Channel switches. Switch Zoning and EMC Access Logix software control server access to storage systems and LUNs.

SAN Copy Software running on a SAN Copy storage system that lets you copy logical unit information between SAN Copy storage systems and other storage systems, or within a storage system.

SAN Copy port An SP port initiator on a SAN Copy storage system that is participating in a SAN Copy session.

SAN Copy session A descriptor that stores all data pertaining to a unique copy process, such as session name, session ID, source and destination logical units, and session status. You must start the session to begin the copy process.

SAN Copy storage system A storage system with SAN Copy software installed. For example, you can install SAN Copy on a CX400, CX600, or FC4700-Series storage system (refer to the SAN Copy release notes for a complete list of supported storage systems)

shared storage system A storage system with the EMC Access Logix™ option, which provides data access control (Storage Groups). A shared storage system is always a RAID Group storage system.

snapshot A point-in-time image of a LUN. A snapshot occupies no disk space, but appears as a normal LUN to secondary hosts. Snapshot functionality is provided with EMC SnapView software.

source logical unit A logical unit from which SAN Copy copies data. On a CLARiiON storage system, this device is called a LUN.

SP Agent EMC Navisphere Agent that runs on the SPs in a CX-Series or FC4700-Series storage systems.

Storage Management Server software

Software that runs in a storage system or portal server and lets a person manage it over a network.

target storage system A storage system with logical units that are participating in a SAN Copy session, but is not running SAN Copy software.

throttle value This parameter controls the I/O rate for a SAN Copy session. You can set the session throttle to a value between 1 and 10 where 1 is the lowest rate and 10 is the highest. The default throttle value is 6.

unshared storage system A storage system without the EMC Access Logix option.

volume A logical unit on a Symmetrix® storage system.

zone A zone limits access to specific logical units in a storage system.; thereby increasing security and decreasing network traffic.

Page 13: EMC SAN CLI Administrator's Guide

Introducing SAN Copy Software 1-5

Introducing SAN Copy and Its Command Line Utilities

Introducing SAN Copy SoftwareEMC SAN Copy software (referred to as SAN Copy later in this document) runs on a SAN Copy storage system (storage system with SAN Copy installed). SAN Copy can copy data between CLARiiON storage systems, within CLARiiON storage systems, and between CLARiiON and Symmetrix storage systems. It can copy data directly from a source logical unit on one storage system to destination logical units on another, without using host resources. SAN Copy can perform multiple copies — each in its own copy session — simultaneously. The RAID type of the logical units participating in a copy session do not have to be the same; that is, the source and destination logical units can be different RAID types.

SAN copy creates a complete copy of the source logical unit. Therefore, the source and destination logical units must be

◆ the same size, or the destination logical unit must be larger.

◆ accessible by the same operating system.

◆ inactive (offline and/or unmounted) during the copy process. No writes to the source logical unit (unless you use replication software), and no application I/O with the destination logical unit can occur during the copy session.

◆ owned by the same SP, for a copy within one storage system.

SAN Copy runs in the storage-system storage processors (SPs), not on host servers. The host reserves processing resources for production applications while the SPs undertake the task of copying data.

You can use SAN Copy for the following tasks:

◆ One-time data migration

◆ Routine copying of data for application testing

◆ Content distribution

To manage SAN Copy sessions, you can use the SAN Copy Command Line Interface (described in this manual), or the GUI based Navisphere Manager described in EMC SAN Copy for EMC ControlCenter Navisphere 6.X Administrator’s Guide, P/N 069001188.

Page 14: EMC SAN CLI Administrator's Guide

1-6 EMC SAN Copy Command Line Interfaces Administrator’s Guide

Introducing SAN Copy and Its Command Line Utilities

Figure 1-1 shows two logical units being copied to two different storage systems. One SAN Copy session is copying LUN 15 in the CX600 storage system to volume 32 in the Symmetrix storage system. The second SAN Copy session is copying LUN 6 in the FC5300 storage system to LUN 14 in the CX600 storage system.

In this example, SAN Copy software is required only on the CX600 storage system. All copy processing occurs in the SPs, freeing the servers for applications and other tasks.

Figure 1-1 Sample SAN Copy Sessions Between Storage Systems

For an example of two LUNs being copied within the same CLARiiON storage system, see Figure 2-2 on page 2-3.

Server Server Server

LUN 14LUN 15

Volume 32

Volume 33

EMC2448

LUN 6

CX-Series orFC4700-SeriesStorage System

SymmetrixStorage System

Switch Fabric Switch Fabric

FC5300 Storage System

Page 15: EMC SAN CLI Administrator's Guide

SAN Copy Features and Benefits 1-7

Introducing SAN Copy and Its Command Line Utilities

SAN Copy Features and BenefitsThe SAN Copy software has the following features:

◆ A storage-system based data mover application that uses a SAN (Storage Area Network) to copy data between storage systems.

◆ An easy-to-use web-based application for configuring and managing SAN Copy.

◆ Software that you can use in conjunction with replication software, allowing I/O with the source logical unit to continue during the copy process.

◆ Simultaneous sessions that can copy data to multiple CLARiiON and Symmetrix storage systems

Storage-System Based Data-Mover ApplicationSAN Copy is a storage-system based data-mover application that uses a SAN (Storage Area Network) to copy data between storage systems. Since SAN Copy runs on the storage systems, this eliminates the need to move data to and from the attached hosts and reserves host processing resources for users and applications. Since the host is not involved in the copy process, and the data migration takes place on the SAN, the copy process is much faster than the LAN-based, host-involved copy process.

Easy-to-use Web-Based ApplicationSAN Copy is an integrated part of Navisphere Manager, the easy-to-use web-based management tool for CLARiiON storage systems. Manager lets you select the SAN Copy source and destination logical units, create SAN Copy sessions and then manage these sessions.

Page 16: EMC SAN CLI Administrator's Guide

1-8 EMC SAN Copy Command Line Interfaces Administrator’s Guide

Introducing SAN Copy and Its Command Line Utilities

Use with Replication SoftwareIf the storage system containing the source logical unit has device replication technology, such as EMC SnapView™ or EMC TimeFinder™ software, SAN Copy can use a snapshot, clone, or Symmetrix BCV (business continuation volume) as its source logical unit — allowing I/O with the source logical units for the snapshot, clone or BCV source logical unit to continue during the copy process.

You must fracture a SnapView clone before using it as a source LUN in a SAN Copy session. For more details, refer to the SnapView documentation and online help.

Simultaneous Sessions Between Multiple Storage SystemsSAN Copy lets you have more than one session active at the same time. The number of supported concurrent active sessions and the number of logical units per session depends on the storage-system type.

Storage-System Type

Maximum Number of Concurrent Sessions per System

Maximum Number of Destination Logical Units per Session

CX400 8 50

CX600 16 100

FC4700 Series 16 100

Page 17: EMC SAN CLI Administrator's Guide

SAN Copy Software Components 1-9

Introducing SAN Copy and Its Command Line Utilities

SAN Copy Software ComponentsSAN Copy consists of the following software components:

◆ Software that provides the SAN Copy functionality, and resides on a SAN Copy storage system.

◆ Graphical User Interface (GUI) - Navisphere® Manager, which you must order separately.

◆ Navisphere Command Line Interface (CLI) and Host Agent, which ship as part of the Navisphere Host Agent package.

Page 18: EMC SAN CLI Administrator's Guide

1-10 EMC SAN Copy Command Line Interfaces Administrator’s Guide

Introducing SAN Copy and Its Command Line Utilities

SAN Copy Operations OverviewThe following steps explain how to use SAN Copy.

1. Set up SAN Copy. This procedure may include steps for zoning switches, registering SAN Copy initiator ports, adding logical units to Storage Groups, and connecting the SAN Copy ports to Storage Groups and volumes.

• For zoning requirements, see SAN Copy Zoning Requirements and Recommendations on page 2-4.

• For registering SAN Copy ports, see Registering SAN Copy Ports With Target Systems on page 2-5.

• For adding logical units to Storage Groups and connecting ports to Storage Groups and volumes, see Connecting SAN Copy Ports to CLARiiON Storage Groups on page 2-6 and Connecting SAN Copy Ports to Symmetrix Volumes on page 2-7.

2. On the SAN Copy storage system, create a SAN Copy copy descriptor. This descriptor includes the source and destination logical units that will participate in a SAN Copy session., and all needed parameters for the SAN Copy session.

To create a SAN Copy descriptor, use the CLI command sancopy -create (see page 4-8).

3. On the host that connects to the destination logical unit, make sure the destination logical unit is unmounted.

With Windows hosts, you can issue the admhost lun_deactivate command, which makes the logical unit invisible to the operating system, essentially unmounting it. The admhost commands are explained in Chapter 3.

With UNIX hosts, you must unmount the file system(s) on the logical unit.

4. On the host that connects to the source logical unit, make sure the source logical unit is unmounted.

On a Windows host connected to the source logical unit, issue the command admhost flush (if you want to allow reads from the source) or admsnap lun_deactivate (to dismount the source and make it inaccessible).

Page 19: EMC SAN CLI Administrator's Guide

SAN Copy Operations Overview 1-11

Introducing SAN Copy and Its Command Line Utilities

If the system containing the source logical unit has device replication technology, such as EMC SnapView or EMC Timefinder, SAN Copy can use a snapshot, clone or Symmetrix BCV (business continuation volume) as its source logical unit -- allowing I/O with the source for the snapshot, clone and BCV to continue during the copy process. For more details, refer to the SnapView or TimeFinder documentation and online help.

CAUTION!The admhost flush command does not prevent write access to the source logical unit. You must quiesce all writes to the source logical unit prior to starting and during a SAN Copy session in order to prevent data loss or data corruption. If you need to keep writing to the source logical unit, use a SnapView snapshot or a Symmetrix BCV as the SAN Copy source logical unit.

5. On the production host’s storage system, start a SAN Copy session.

Use the CLI sancopy -start command, or you can specify -start in the sancopy -create command (see page 4-27).

More than one session at a time per source logical unit can be active on a host, provided the source and destination logical units are unmounted (steps 3 and 4 above).

6. Let the copy session complete.

7. On both hosts, make both the source and destination logical units available to the operating system.

Some operating systems do not support access by the same host to identical LUNs. Therefore, once SAN Copy completes the copy session, we recommend that you move any identical LUNs to different Storage Groups.

With Windows hosts, you can issue the admhost lun_activate command, which mounts the drive and returns a drive letter you can use for future operations (see page 3-2).

With UNIX hosts, admhost lun_activate does nothing. It is provided for script compatibility only. Use the commands your operating system normally uses to discover new logical units.

For future SAN Copy sessions that use the CLI and/or admhost (possibly in a command script), you need only steps 3 through 7.

Page 20: EMC SAN CLI Administrator's Guide

1-12 EMC SAN Copy Command Line Interfaces Administrator’s Guide

Introducing SAN Copy and Its Command Line Utilities

What Next? Depending on your needs, go to one of the following chapters:

◆ To learn about admhost commands — Chapter 3

◆ To learn about SAN Copy CLI commands — Chapter 4.

Page 21: EMC SAN CLI Administrator's Guide

SAN Copy Configuration Guidelines 2-1

2Invisible Body Tag

This chapter lists the basic requirements, restrictions and configuration guidelines for using SAN Copy.

Major sections are

◆ SAN Copy Configuration Requirements and Restrictions ..........2-2◆ SAN Copy Zoning Requirements and Recommendations ..........2-4◆ Making Logical Units Accessible to the SAN Copy Port .............2-5

SAN CopyConfiguration

Guidelines

Page 22: EMC SAN CLI Administrator's Guide

2-2 EMC SAN Copy Command Line Interfaces Administrator’s Guide

SAN Copy Configuration Guidelines

SAN Copy Configuration Requirements and RestrictionsThis section describes the configuration requirements and restrictions for copying data between CLARiiON storage systems, between CLARiiON and Symmetrix storage systems, and within CLARiiON storage systems.

If you will be copying data between CLARiiON storage systems, or between CLARiiON and Symmetrix storage systems, the following requirements must be met before you start a SAN Copy session.

◆ One of the storage systems participating in the copy session must be a SAN Copy storage system.

◆ You must correctly zone SAN Copy ports to target storage systems so that SAN Copy can have access to these systems (see SAN Copy Zoning Requirements and Recommendations on page 2-4).

SAN Copy ports act as host initiators to the target storage systems.

◆ Either the source logical unit, destination logical units or both must reside on a SAN Copy storage system.

If the source logical unit resides in the SAN Copy storage system, you can copy data to one or many destination logical units on one or many storage systems. None of the target storage systems require the SAN Copy software.

If the source logical unit does not reside in the SAN Copy storage system on which you are creating the session, you must select all destination logical units from the storage system that owns the session.

◆ When copying data to a Symmetrix system, use the navicli -lunmapinfo command to obtain the World Wide Name (WWN) of any Symmetrix volumes that you want to include in the SAN Copy session. The Navisphere Host Agent must be installed on the hosts that own the volumes. For the required Host Agent revision, refer to the SAN Copy release notes, available on Powerlink (see Finding Current Information on page 1-2).

◆ In order for logical units to participate in a SAN Copy session, they must be accessible to the participating SAN Copy port. See Making Logical Units Accessible to the SAN Copy Port on page 2-5.

Page 23: EMC SAN CLI Administrator's Guide

SAN Copy Configuration Requirements and Restrictions 2-3

SAN Copy Configuration Guidelines

If you will be copying data from one LUN to one or many LUNs within the same CLARiiON storage system, the following requirements must be met before you start a SAN Copy session.

◆ The storage system must be a SAN Copy storage system.

◆ The source and all destination LUNs participating in a copy session must belong to the same SP.

If you need to copy between LUNs owned by different SPs, you must trespass either the source or destination LUNs before starting the session.

Figure 2-2 shows LUN 12 being copied to LUN 23 and LUN 14 being copied to LUN 25 within the same CLARiiON storage system.

Figure 2-2 Sample SAN Copy Session Within a CLARiiON

Server

CX-Series orFC4700-SeriesStorage System

Switch Fabric

LUN 25

LUN 23

LUN 14

LUN 12

EMC2450

Page 24: EMC SAN CLI Administrator's Guide

2-4 EMC SAN Copy Command Line Interfaces Administrator’s Guide

SAN Copy Configuration Guidelines

SAN Copy Zoning Requirements and RecommendationsThis section describes basic SAN Copy zoning requirements and recommendations.

Zoning is not required for copying data within a CLARiiON storage system

Requirements

Currently, SAN Copy and MirrorView™ software cannot share the same SP port (refer to the SAN Copy release notes for confirmation).

◆ Zone at least one port from each SP of the SAN Copy storage system to any other storage systems participating in SAN Copy sessions.

◆ Zone each participating SAN Copy port to one or more ports of each SP in the target storage systems.

◆ Create a single zone that includes multiple SAN Copy and target SP ports; create multiple zones with a single SAN Copy/target SP port; or a create a mixture of both zone types.

Recommendations

◆ If performance is most important, zone multiple SAN Copy ports to a target storage system. SAN Copy allows multiple sessions to share a single port, but, if there are multiple ports available, SAN copy will spread multiple sessions across available SAN Copy ports to maximize total throughput.

◆ If preserving host HBA connections is most important because there are a large number of hosts connecting to a target storage system, zone only necessary SAN Copy ports to that storage system. Each SAN Copy port zoned to a target SP port registers itself as an initiator with that SP port, thereby reducing the available host HBA connections.

◆ If availability is most important, zone multiple SAN Copy ports to a target storage system. A SAN Copy session will fail if the port/path used by the session fails. However, if other ports/paths are available, you can re-start the session.

Page 25: EMC SAN CLI Administrator's Guide

Making Logical Units Accessible to the SAN Copy Port 2-5

SAN Copy Configuration Guidelines

Making Logical Units Accessible to the SAN Copy PortBefore you can use SAN Copy to copy data between storage systems, SAN Copy ports must have access to participating logical units in the target storage systems. To make this happen, you must register each selected SAN Copy port to ports of the target storage systems. Once the registration process is complete, you can connect the SAN Copy port to a Storage Group on the target CLARiiON storage system, or to volumes on a Symmetrix storage system.

Registering SAN Copy Ports With Target SystemsTo register SAN Copy ports, do the following:

1. Make sure that you zone the SAN Copy ports with the correct ports on target storage systems that will participate in a copy session (see SAN Copy Zoning Requirements and Recommendations on page 2-4).

2. Register the SAN Copy ports with any other SP ports in the same zone using the navicli -h spname sancopy -updateconnections command (see page 4-32).

If the target system is a CLARiiON storage system, the SAN Copy ports register with each storage system, and the software adds a record for each SAN Copy port to the storage system’s host initiator table. Navisphere Manager displays an entry for each registered SAN Copy port in the Connectivity Status dialog box, and the SAN Copy Summary dialog box.

If the target system is a Symmetrix storage system, the SAN Copy ports log in to each storage system and register their WWNs with the VCM database. ESN Manager displays each registered SAN Copy port as a host entry.

3. Verify that the SAN Copy ports are connected and registered with any storage systems that will participate in a copy session using the following command for each SP on the SAN Copy storage system:

navicli -h spname -port -list where spname is the name of an SP in the SAN Copy storage system.

Page 26: EMC SAN CLI Administrator's Guide

2-6 EMC SAN Copy Command Line Interfaces Administrator’s Guide

SAN Copy Configuration Guidelines

Connecting SAN Copy Ports to CLARiiON Storage GroupsIf all participating logical units of a target storage system already belong to the same Storage Group, you can connect SAN Copy ports to the existing Storage Group. However, if the logical units belong to different Storage Groups, we recommend that you create one or more new Storage Groups, place the logical units in these Storage Groups, and then connect SAN Copy ports to them. This is the only time we recommend placing the same logical unit in more than one Storage Group.

For more information on the following CLI commands, refer to EMC ControlCenter Navisphere Command Line Interface (CLI) Administrator’s Guide, P/N 069001038.

1. Use the following command to create Storage Groups:

navicli -h spname storagegroup -create -gname storagegroupname

2. Use the following command to add LUNs to Storage Groups:

navicli -h spname storagegroup -addhlu -gname storagegroupname -hlu hlunnumber -alu alunnumber

3. Use the following command (with information from the previous navicli -port -list command) to add the SAN Copy ports to Storage Groups:

navicli -h spname storagegroup -setpath -gname storagegroupname-hbauid hbawwn -sp a or b -spport portnumber where

spname is the IP address of the SP on the storage system to which the Storage Group belongs.

storagegroupname is the name of the Storage Group to which you want to connect

hbawwn is the World Wide Name of the SAN Copy port (from the -portlist command)

a or b is the SP that owns the Storage Group

portnumber is the the ID of the SP port hat owns the Storage Group (from the -portlist command)

Page 27: EMC SAN CLI Administrator's Guide

Making Logical Units Accessible to the SAN Copy Port 2-7

SAN Copy Configuration Guidelines

If the sharing state of the Storage Group is Dedicated (only a single host can access the LUNs in the Storage Group), you must also specify one of the following switches; -host hostname, or -ip ipaddress where

What Next? You are now ready to create SAN Copy descriptors (see sancopy -create on page 4-8).

Connecting SAN Copy Ports to Symmetrix Volumes

Use ESN Manager to assign Symmetrix volumes to the SAN Copy port entries. This is the same as assigning volumes to the host initiator.

You are now ready to create SAN Copy descriptors (see sancopy -create on page 4-8).

hostname is the name of the host that has access to the LUNs in the Storage Group

ipaddress is the IP address of the host that has access to the LUNs in the Storage Group

Page 28: EMC SAN CLI Administrator's Guide

2-8 EMC SAN Copy Command Line Interfaces Administrator’s Guide

SAN Copy Configuration Guidelines

Page 29: EMC SAN CLI Administrator's Guide

Using the admhost Utility with SAN Copy 3-1

3Invisible Body Tag

This chapter explains how to use the admhost utility.

◆ About admhost for SAN Copy ........................................................3-2◆ admhost SAN Copy Command Functions.....................................3-3◆ Preparing Logical Units for a SAN Copy Session .........................3-6

Using the admhostUtility with SAN Copy

Page 30: EMC SAN CLI Administrator's Guide

3-2 EMC SAN Copy Command Line Interfaces Administrator’s Guide

Using the admhost Utility with SAN Copy

About admhost for SAN CopyThe admhost utility is an executable program that you can run interactively via script. It runs on Microsoft Windows NT, and Windows® 2000.

The admhost commands can activate and deactivate the source and destination logical units being used in a SAN Copy session, and flush data from operating system buffers to ensure that the information on the source logical unit is current.

Currently, admhost is only supported on the following Microsoft® Windows platforms: Windows NT and Windows 2000. For the supported versions of these operating systems, see the SAN Copy and admhost Software Release Notes.

Page 31: EMC SAN CLI Administrator's Guide

admhost SAN Copy Command Functions 3-3

Using the admhost Utility with SAN Copy

admhost SAN Copy Command FunctionsTable 3-1 lists the admhost commands and describes their functions in SAN Copy sessions.

Table 3-1 admhost Functions and Descriptions

Function Description Syntax and Examples

admhost lun_activate On a Windows NT or Windows 2000 host, the admhost lun_activate command tells the operating system to scan for new copy LUNs and to mount each one (make it available to Windows). The software assigns a drive letter to every new device it finds. Use admhost lun_activate on the hosts connected to both the source and destination LUNs after a copy completes to make the LUN available/visible to the hosts. If you omit switches, lun_activate simply scans for new devices and assigns drive letters to any new LUNs that have a proper file system type on them. The software assigns the drive letters according to the next available drive letter on the Windows hosts.If you include the -l and -d switches, you can change the specified LUN WWN to a drive letter.

The admhost command is not supported on a UNIX® host. Use the commands your operating system normally uses to discover new LUNs.

admhost lun_activate [-l lun-worldwidename] [-d drive-letter]

Examples:admhost lun_activate Scanning for new devices. Completed scanning for new devices.

admhost lun_activate -l 60:06:01:EF:74:60:00:00:CD:BD:FE:45:77:9D:D7:11 -d v: Scanning for new devices.

Successfully assigned v: to CLARiiON LUN 60:06:01:EF:74:60:00:00:CD:BD:FE:45:77:

9D:D6:11.

Completed scanning for new devices.

admhost lun_deactivate

On a Windows NT or Windows 2000 host, admhost lun_deactivate flushes all host buffers, unmounts the LUN, and removes the drive letter assigned by admhost lun_activate. It essentially dismounts a mounted LUN. With Windows, use admhost lun_deactivate (or flush) command on the host that connects to the destination LUN before starting a copy session.

The admhost command is not supported on a UNIX host. Use the sync command to flush buffers. Then unmount the file system on the copy LUN.

admhost lun_deactivate -o drive-letter

Example:admhost lun_deactivate -o F: Deactivated the CLARiiON device on F:

Page 32: EMC SAN CLI Administrator's Guide

3-4 EMC SAN Copy Command Line Interfaces Administrator’s Guide

Using the admhost Utility with SAN Copy

Function Description Syntax and Examples

admhost flush On a Windows host, the command flushes all data and clears all buffers. However, unlike admhost lun_deactivate, it does not remove the drive letter, and allows reads from the LUN to continue. Use admhost flush or admhost lun_deactivate for a source LUN before starting a SAN Copy session to ensure that all cached data has been written to disk.

The admhost command is not supported on a UNIX® host. Use the commands your operating system normally uses to flush buffers.

admhost lun_flush -o drive-letter

Examples:admhost lun_flush -o F: Flushed F:.

admhost lun_list On a Windows host, admhost lun_list displays the mapping information of the host devices such as drive letters or physical drives and their corresponding LUN worldwide names (WWNs). You can use admhost lun_list with the -l switch to display the current drive letter mapped to the specified LUN WWN or use the -d switch to display the LUN WWN mapped to the specified drive. Using admhost lun_list and lun_activate in sequence, you can obtain the lun wwn info and change the drive letter currently mapped to the desired drive with admhost lun_activate.

admhost lun_list[[-l lun-world-wide-name] [-d drive-letter | physicaldrive]][-a driveletter | physicaldrive]

Examples:admhost lun_list F:=>60:06:01:EF:74:60:00: 00:A2:0D:40:24:C2:B5:D6:11

H: => 60:06:01:EF:74:60:00:00:CD:BD:FE:45:77:9D:D6:11

admhost lun_list -a driveletterF:=>60:06:01:EF:74:60:00: 00:A2:0D:40:24:C2:B5:D6:11

admhost lun_list -a physicaldrive PhysicalDrive1 => 60:06:01:EF:74:60:00:00:A2:0D: 40:24:C2:B5:D6:11

PhysicalDrive2 => 60:06:01:EF:74:60:00:00:CD:BD: FE:45:77:9D:D6:11

admhost help This command displays admhost usage information admhost help

Page 33: EMC SAN CLI Administrator's Guide

admhost SAN Copy Command Functions 3-5

Using the admhost Utility with SAN Copy

admhost Function Switches

What Next? Before you start a SAN Copy session, complete the steps described in the next section, Preparing Logical Units for a SAN Copy Session.

-a drive-letter | physicaldrive Displays mapping information. In lun_list, use -a in conjunction with -l to display all LUN mapping information with either drive letters or physical drives.When used with -d, the -a switch is ignored.

-d drive-letter | physicaldrive Changes device mapping or displays mapping information. In admhost lun_activate, the -d switch used with -l lets you change the specified LUN WWN to a desired drive letter. In admhost lun_activate, you can use only drive letter format.In admhost lun_list, you can use either a drive letter or a physical drive specifier.

-l lun-worldwidename Displays the drive associated with a worldwide name (WWN)

In admhost lun_list, displays the drive mapped to a WWN. For the name, use the following format: XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX

XX should be digits 0-9 and/or letters A-F. Place an extra 0 in front of any single digit or a single character; for example, 01:02:03:04:0A…

-o drive-letter | physicaldrive Identifies the output drive. In admhost lun_deactivate, you can use only drive letter format.

Page 34: EMC SAN CLI Administrator's Guide

3-6 EMC SAN Copy Command Line Interfaces Administrator’s Guide

Using the admhost Utility with SAN Copy

Preparing Logical Units for a SAN Copy SessionBefore you start a SAN Copy session, you must prepare the source and destination logical units that will be participating in the session. For a SAN Copy session with logical units connected to a Windows server, use the admhost utility. For all other types of servers, use the command specific to the server’s operating system.

CAUTION!You must follow this procedure explicitly to avoid data loss or data corruption.

1. From the hosts connected to any destination logical units, flush the host buffers and disconnect the destination logical units from the host by doing one of the following:

If the destination logical units are not mounted, ignore this step.

• On a Windows 2000 or Windows NT® host, use the following command:

admhost lun_deactivate -o destination-drive letter

For example, to flush the host buffers and disconnect any logical units on drive D:, enter the following command:

admhost lun_deactivate -o D:

• On a UNIX® host, unmount the file system on any destination logical units.

• On a Novell NetWare® host, use the dismount command on the volume to dismount the file system.

2. From the host connected to the source logical unit, stop all I/O to the source logical unit.

In addition to a LUN or volume, SAN Copy can use a SnapView snapshot, a fractured clone, or a TimeFinder BCV (business continuation volume) as its source logical unit — allowing I/O with the source logical units for the snapshot, clone or BCV source logical unit to continue during the copy process

3. From the host connected to the source logical unit, flush the host buffers and disconnect the source logical unit from the host by doing one of the following.

Page 35: EMC SAN CLI Administrator's Guide

Preparing Logical Units for a SAN Copy Session 3-7

Using the admhost Utility with SAN Copy

If you want to maintain read access to the source logical unit, skip step 3, and proceed to step 4.

• On a Windows 2000 or Windows NT host, use the following command:

admhost lun_deactivate -o source-drive letter

For example, to flush the host buffers and disconnect any logical units on drive D:, enter the following command:

admhost lun_deactivate -o D:

• On a UNIX host, unmount the source logical unit.

4. If you want to maintain read access to the source logical unit, do one of the following:

CAUTION!Neither of the following steps prevents write access to the source logical unit. You must quiesce all writes to the source logical unit prior to starting and during a SAN Copy session in order to prevent data loss or data corruption. If you need to keep writing to a source logical unit, use a SnapView snapshot or a Symmetrix BCV as the source logical unit.

• On a Windows 2000 or Windows NT host, use the following command:

admhost flush -o source-drive letter

For example, to flush the host buffers and maintain read access to logical units on drive D:, enter the following command:

admhost flush -o D:

• On a UNIX host, unmount and then mount the source logical unit.

What Next? For an explanation of SAN Copy CLI commands, continue to Chapter 4.

Page 36: EMC SAN CLI Administrator's Guide

3-8 EMC SAN Copy Command Line Interfaces Administrator’s Guide

Using the admhost Utility with SAN Copy

Page 37: EMC SAN CLI Administrator's Guide

SAN Copy CLI Commands 4-1

4Invisible Body Tag

This chapter explains the CLI commands that manage SAN Copy software.

The commands in this chapter function only with a storage system that has the optional SAN Copy software installed.

Topics are

◆ Navicli SAN Copy Command Functions .......................................4-2◆ sancopy -create ...................................................................................4-8◆ sancopy -destinfo ............................................................................. 4-11◆ sancopy -duplicate ...........................................................................4-13◆ sancopy -info.....................................................................................4-14◆ sancopy -modify...............................................................................4-17◆ sancopy -pause .................................................................................4-20◆ sancopy -remove ..............................................................................4-21◆ sancopy -resume...............................................................................4-23◆ sancopy -settings..............................................................................4-25◆ sancopy -start....................................................................................4-27◆ sancopy -stop ....................................................................................4-28◆ sancopy -throttle...............................................................................4-29◆ sancopy -transfer..............................................................................4-31◆ sancopy -updateconnections ..........................................................4-32◆ sancopy -verify .................................................................................4-33

SAN Copy CLICommands

Page 38: EMC SAN CLI Administrator's Guide

4-2 EMC SAN Copy Command Line Interfaces Administrator’s Guide

SAN Copy CLI Commands

Navicli SAN Copy Command FunctionsThe EMC ControlCenter Navisphere CLI provides one of the two interfaces to the SAN Copy software. The Navisphere Manager GUI provides the other. The CLI command is navicli sancopy and you specify functions with switches.

The sancopy command functions, listed alphabetically, are

◆ navicli sancopy -create

◆ navicli sancopy -destinfo

◆ navicli sancopy -duplicate

◆ navicli sancopy -info

◆ navicli sancopy -modify

◆ navicli sancopy -pause

◆ navicli sancopy -remove

◆ navicli sancopy -resume

◆ navicli sancopy -settings

◆ navicli sancopy -start

◆ navicli sancopy -stop

◆ navicli sancopy -throttle

◆ navicli sancopy -transfer

◆ navicli sancopy -updateconnections

◆ navicli sancopy -verify

The sancopy CLI functions are listed functionally, in the order you would perform them, in the following table.

Page 39: EMC SAN CLI Administrator's Guide

Navicli SAN Copy Command Functions 4-3

SAN Copy CLI Commands

Table 4-1 Navicli sancopy Command Functions, Listed in Order of Use

Command Description

Essential Functions (in Order Performed)

navicli sancopy -create Creates a SAN Copy copy descriptor

navicli sancopy -start Starts a SAN Copy session based on copy descriptor information

Optional Status Functions (Alphabetically)

navicli sancopy -destinfo Displays information on a particular session from the destination point of view

navicli sancopy -info Displays information on all SAN Copy sessions or displays attributes for a particular session.

navicli sancopy -stop Stops a SAN Copy session

navicli sancopy -verify Ensures that the SAN Copy software can access a logical unit

Optional Reconfiguration Functions (Alphabetically)

navicli sancopy -duplicate Creates a duplicate copy descriptor

navicli sancopy -modify Changes parameters in a copy descriptor

navicli sancopy -pause Pauses a SAN Copy session

navicli sancopy -remove Deletes a copy descriptor

navicli sancopy -resume Continues a paused, stopped or failed session

navicli sancopy -throttle Changes the throttle (execution rate) of an existing, running session.

navicli sancopy -transfer Transfers control of a copy descriptor to the peer SP

navicli sancopy -settings Gets or sets environmental control parameters

navicli sancopy -updateconnections Updates storage-system registration information

Page 40: EMC SAN CLI Administrator's Guide

4-4 EMC SAN Copy Command Line Interfaces Administrator’s Guide

SAN Copy CLI Commands

About Navisphere CLI CommandsYou run EMC Navisphere CLI from a command window. Each command consists of the navicli command (and switches) together with another subcommand (and its switches). The navicli command does nothing when executed by itself. However, when used in combination with the other CLI commands, you can configure and manage any of the storage systems supported by Navisphere CLI version 6.X.

The CLI commands begin with the command navicli, described as follows.

navicliSends status or configuration requests to the storage system via the command line

Before you can use Navisphere SAN Copy CLI commands to configure a storage system (as opposed to receive storage-system configuration or status information), you must be a privileged user in the SP Agent configuration file on each SP in the storage system.

Description The navicli command sends storage-system management and configuration requests to a Navisphere Agent running on a local or remote host. The Agent then sends the request to the specified storage system.

User Access Anyone that can log in to the host running the Navisphere CLI can use navicli.

Format Use the navicli command as follows:

navicli -helpor navicli [-d device] [-h hostname] [-help] [-m] [-np] [-p] [-t timeout] -[v|q] CMD [optional-command-switches]

where the navicli switches are

-help

Displays the help screen and does not start the navicli process.

Page 41: EMC SAN CLI Administrator's Guide

navicli 4-5

SAN Copy CLI Commands

-d device

Specifies the communication channel to the storage system, for pre-FC4700 SPs only. (A CX-Series or FC4700-Series SP is a host that you specify with the -h switch. The CLI ignores the -d switch for CX-Series or FC4700-Series.)

-h hostname

Specifies the hostname of the storage-system SP or server. For a CX-Series or FC-Series storage system, each SP is a host; therefore the hostname is the IP address or network name of the destination SP. For pre-FC4700 storage systems, the hostname is the server hostname or network address. The environment variable RaidAgentHost is the default for the server if the -h switch is not present. The -h switch overrides the RaidAgentHost setting. If RaidAgentHost is not set and the -h switch is not present, the local hostname is used.

-m

Suppresses output except for values. This option is most useful when used as part of a script.

-np

Suppresses polling on initial contact with the Agent. This switch significantly increases performance when dealing with large or multiple storage systems. The Agent automatically polls unless this switch is specified.

When the -np switch is set, get commands may return stale data and set commands may erase previously changed settings. Use caution when the -np switch is set.

-p

Parses the entered CMD (command) without making a network call to the API. If the string does not parse correctly, an error message prints to stderr; otherwise a message verifying that the string parsed correctly prints to stdout.

-q

Suppresses error messages. This switch is useful when included as part of a script.

Page 42: EMC SAN CLI Administrator's Guide

4-6 EMC SAN Copy Command Line Interfaces Administrator’s Guide

SAN Copy CLI Commands

-t timeout

Sets the timeout value. timeout specifies the value in seconds. The default timeout value is 240 seconds unless the RaidAgentTimeout environment variable (described on the following page) is set differently.The timeout value includes the time allowed for the entire command to execute (including CLI, Agent, and storage-system software execution time). The timeout applies to all commands except firmware.

-v

Enables verbose error descriptions. This is the default unless -q is specified.

CMD

One of a set of commands used with the navicli command to configure and manage a storage system. The CMD (command) CMD switches are described on the pages that follow.

Spaces in Arguments Normally, each argument to a CLI command is composed of numbers, letters, and other valid printable characters for the operating system on which the CLI is running. For example:

navicli -h ss1_spa convertEMlog -pathname G:\logs\c4.log -20

If a filename or other argument (such as a Storage Group name) includes a space, you must enclose the entire string that includes the name in quotation marks ("xx xx"). For example, if the filename in the above were c 4.log, the valid command line would be

navicli -h ss1_spa convertEMlog -pathname "G:\logs\c 4.log" -20

RaidAgent Environment VariablesThe environment variables RaidAgentHost, RaidAgentDevice, and RaidAgentTimeout contain default values for the server, the device, and the timeout values respectively if you omit the -h, -d, and -t switches from the navicli command. Note that RaidAgentDevice and the -d switch are ignored on CX-Series and FC-4700 storage systems. If you do not set RaidAgentTimeout and omit the -t switch, the default timeout value is 240 seconds.

Examples The following examples show sample environment variable settings.

The commands in the following examples must be executed from the root directory.

Page 43: EMC SAN CLI Administrator's Guide

navicli 4-7

SAN Copy CLI Commands

set RaidAgentDevice \\.\A-9162244 set RaidAgentHost server1 (or for CX-Series/FC4700, ss1_spa) set RaidAgentTimeout 45

Error Codes The navicli command might return any of a numeric sequence of errors explained in Appendix A of this manual (for SAN Copy errors) or the CLI Reference manual, P/N 069001038 (for other errors).

Page 44: EMC SAN CLI Administrator's Guide

4-8 EMC SAN Copy Command Line Interfaces Administrator’s Guide

SAN Copy CLI Commands

sancopy -createCreates a copy descriptor for use in SAN Copy sessions

Description The navicli sancopy command with -create creates a copy descriptor that you can use to start, stop, and otherwise manipulate SAN Copy sessions. The destination logical unit(s) must exist when you execute this command.

By default a descriptor does not start a session unless you specify the -start switch.

For information on logical units accessible to the host use the basic CLI command lunmapinfo explained in the CLI reference manual.

User Access You must have a username/host entry in the Navisphere SP Agent configuration file to use this command.

Format Use the sancopy -create command with navicli (described on page 4-4) as follows:

sancopy -create -name descriptor-name

-srcwwn source-lun-wwn | -srclun source-sp sourcelunnumber] [-device devicename]-destwwn dest-lun-wwn | -destlunnumber dest-sp destlunnumber] [-device devicename]

[-start] [-throttle n] [-verify] [-o]

where

-name descriptor-name

Specifies the SAN Copy descriptor name. The name can be up to 64 characters and must be unique on a per storage system basis. The descriptors you create persist until you remove them.

Page 45: EMC SAN CLI Administrator's Guide

sancopy -create 4-9

SAN Copy CLI Commands

-srcwwn source-lun-wwn

Specifies the WWN (worldwide name) of the source logical unit (LUN or snapshot). The source logical unit does not need to exist on the storage system specified by the -h switch. If it does not exist, SAN Copy assumes that the copy is to destination logical units on the storage system specified with -h.

-srclun source-sp sourcelunnumber

This is an alternate way of adding a source logical unit entry to the copy descriptor. For source-sp, specify the SP hostname (or SP IP address) that owns the source logical unit. For sourcelunnumber, specify the logical unit number.

For pre-FC4700 storage systems, if you use the -srclun source-sp sourcelunnumber function, you must use -device devicename.

-device devicename

Specifies the device name of the source LUN or destination LUN.

-destwwn dest-lun-wwn

Specifies which logical unit will be the destination of the copy. You can specify more than one destination logical unit if you want more than one copy of the source logical unit. If all destination logical units do not exist on the storage system specified with -h, then the source logical units must exist on that storage system. If the destination logical units are not reachable, and you did not use the -o function, by the client system, the CLI will print a warning and ask for confirmation.

-destlunnumber dest-sp destlunnumber

This is an alternate way of adding a destination LUN entry to the copy descriptor. For dest-sp, specify the SP hostname (or SP IP address) that owns the destination logical unit; for destlunnumber, specify the LUN number. As with -destwwn, you can specify more than one destination logical unit if you want more than one copy of the source logical unit.

If you specify the -verify function, and the software cannot reach the SP or find the logical unit on the SP, it returns an error.

Page 46: EMC SAN CLI Administrator's Guide

4-10 EMC SAN Copy Command Line Interfaces Administrator’s Guide

SAN Copy CLI Commands

-start

Starts a SAN Copy session using this copy descriptor. By default, the create command does not start a session.

-throttle n

Specifies the I/O rate of the copy. The maximum value is 10 and the minimum value is 1. If you omit this switch, the default value is 5.

-verify

Verifies that SAN Copy can access all of the logical units specified in the -create command.

-o

Suppresses any confirmation message that the descriptor was created successfully.

Conventions andRecommendations

None.

Example navicli -h ss1_spa sancopy -create -name copy_lun66 -srclun ss1_spa 66 -destlunnumber ss5_spa 22 -start -throttle 3

For SP ss1_spa, the -create command creates a copy descriptor named copy_lun66 that defines source logical unit 66 on this SP and destination logical unit 22 on host SP ss5_spa. The -start command then starts the copy session and the -throttle command specifies a throttle value of 3 for this session.

Output If the version of Base software running on the SP does not support this command, a Command is not supported error message is printed to stderr. Other errors are

DMF_NAME_SPECIFIED_NOT_UNIQUEDMF_CREATE_PARAMSDMF_SRCLUN_WWN_AND_NUMBER_SPECIFIEDDMF_DESTLUN_WWN_AND_NUMBER_SPECIFIEDDMF_INVALID_THROTTLE_VALUE

Page 47: EMC SAN CLI Administrator's Guide

sancopy -destinfo 4-11

SAN Copy CLI Commands

sancopy -destinfoDisplays information about destination logical units for a running session

Description The navicli sancopy command with -destinfo gets session status from the destination point of view. Issuing this command with no arguments displays all destination information for all copy descriptors belonging to the specified SP.

User Access You must have a username/host entry in the Navisphere SP Agent configuration file to use this command.

Format Use sancopy -destinfo with navicli (described on page 4-4) as follows:

sancopy -destinfo [-peer][-descriptorid [descriptorid]] |[-name [name]][-destwwn [dest-lun-wwn]] |[-destlunnumber destsp destlunnumber][-complete] [-counts] [-failure] [-time]

where

-complete

Displays the percentage complete of the copy session when any destination logical unit(s) failed. Displays N/A when there is no failure.

-counts

Displays the number of disk blocks transferred when any destination logical units failed. Displays N/A when there is no failure.

-descriptorid [descriptorid] | -name [name]

Used alone, -descriptorid or -name displays descriptor IDs or names of all copy descriptors of the specified SP; -descriptorid with an ID or -name with a name lists the status (WWN, failure status, transfer count, percent complete and failure time) of all destinations of the copy descriptor.

-destwwn [dest-lun-wwn]

Used alone, -destwwn displays the WWNs of all destinations of the descriptors. -destwwn with a WWN lists the status of the specified destination logical unit.

Page 48: EMC SAN CLI Administrator's Guide

4-12 EMC SAN Copy Command Line Interfaces Administrator’s Guide

SAN Copy CLI Commands

-destlunnumber destsp destlunnumber

The switch -destlunnumber can not be used alone. When used with the SP name and LUN number, it displays the status of the specified destination logical unit.

-failure

Displays failure status or No Failure for destination logical unit(s). For more information, also use the -time, -counts, and/or -complete switches.

-peer

Lists all destination information on the peer SP.

-time

Displays the time when any destination logical unit(s) failed. Displays N/A when there is no failure.

Conventions andRecommendations

None.

Examples navicli -h ss1_spa sancopy -destinfo

Copy Descriptor ID 1Destination LUN WWN:

60:06:01:6B:61:09:00:00:6A:6F:9F:ED:0B:A3:D6:11Failure Status: No FailureTransfer Count at Failure N/APercent Complete at Failure N/A

Copy Descriptor ID: 2Destination LUN WWN:

60:06:01:6B:61:09:00:00:6A:6F:9F:ED:0B:A3:D6:11Failure Status: Destination LUN is fullTransfer Count at Failure: 90Percent Complete at Failure: 12Failure Time at Failure: 08/06/02 12:34:19

This display shows the status of the two SAN Copy copy descriptors belonging to SP ss1_spa. The first descriptor shows no failure, the second shows a failure.

Output If the version of Base Software running on the SP does not support this command, a Command is not supported error message is printed to stderr.

Page 49: EMC SAN CLI Administrator's Guide

sancopy -duplicate 4-13

SAN Copy CLI Commands

sancopy -duplicateMakes a copy of a copy descriptor

Description The navicli sancopy command with -duplicate makes a copy of an existing copy descriptor. You can then modify the copy as needed (-modify). The copy descriptor that you want to duplicate can be part of an active SAN Copy session. You do not need to stop the copy descriptor before duplicating it.

User Access You must have a username/host entry in the Navisphere SP Agent configuration file to use this command.

Format Use sancopy -duplicate with navicli (described on page 4-4) as follows:

sancopy -duplicate -descriptorid descriptorid| -name name

where

-descriptorid descriptorid | -name name

Either -descriptorid or -name identifies the descriptor you want to duplicate.

Conventions andRecommendations

None.

Example navicli -h ss1_spa sancopy -duplicate -name copy_lun_66

This command duplicates SP ss1_spa’s copy descriptor copy_lun_66 and assigns a default name to the new descriptor - copy of xxx, where

xxx is the name of the descriptor you are duplicating. For example,copy of copy_lun_66.

Output If the version of Base Software running on the SP does not support this command, a Command is not supported error message is printed to stderr. Other errors are

DMF_NAME_AND_UID_SPECIFIEDDMF_NAME_OR_UID_REQUIREDDMF_UNKNOWN_DESCRIPTOR

Page 50: EMC SAN CLI Administrator's Guide

4-14 EMC SAN Copy Command Line Interfaces Administrator’s Guide

SAN Copy CLI Commands

sancopy -infoDisplays information about copy descriptors

Description The navicli sancopy command with -info displays information on copy descriptors. It differs from -destinfo in that -destinfo gets information on the destination logical units.

Issuing this command with no arguments displays all information on all copy descriptors of the specified SP.

User Access You must have a username/host entry in the Navisphere SP Agent configuration file to use this command.

Format Use sancopy -info with navicli (described on page 4-4) as follows:

sancopy -info [-peer] [-descriptorid descriptorid | -name name] [-srcwwn] [-length] [-numdests] [-destwwn] [-sessionstatus] [-throttle] [-counts] [-complete] [-time] [-failure]

where

-complete

Displays the percentage complete of the copy session.

-counts

Displays the number of disk blocks transferred.

-descriptorid descriptorid

Lists the descriptor IDs of all sessions belonging to the specified SP when you issue this command without a specific descriptor ID.

Lists the status of the specified session when you issue this command with a specific descriptor ID.

-dests

Displays the WWNs of all destinations logial units in the specified descriptor.

-failure

Displays failure status or No Failure for the copy descriptor’s source and destination logical units.

Page 51: EMC SAN CLI Administrator's Guide

sancopy -info 4-15

SAN Copy CLI Commands

-length

Displays the number of blocks to copy. Displays N/A if the descriptor was created using the source WWN.

-name name

Lists the names of all copy descriptors belonging to the specified SP when you issue this command without a specific copy descriptor name.

Lists the status of the specified copy descriptor when you issue this command with a name.

-numdests

Displays the number of destination logical units.

-peer

Lists all destination information on the peer SP.

-sessionstatus

Displays the status of the session associated with the copy descriptor: not started, complete, stop, pause, or failed.

-srcwwn

Displays the WWNs of all source logical units.

-throttle

Displays the current throttle value for the copy session.

-time

Displays the time when the copy completes.

Conventions andRecommendations

None.

Page 52: EMC SAN CLI Administrator's Guide

4-16 EMC SAN Copy Command Line Interfaces Administrator’s Guide

SAN Copy CLI Commands

Example navicli -h ss1_spa sancopy -info

For SP ss1_spa, this -info command displays the status of all copy descriptors. The format is as follows:

Copy Descriptor ID:Descriptor ID.Copy Descriptor Name:Descriptor name. Source LUN WWN: 16-byte worldwide name

of source logical unit (-srcwwn).Number of Blocks to Copy:Number of blocks to copy

(-length).Number of Destinations: Number of destination logical units

to be copied to (-numdests) Destination LUN WWN: 16-byte worldwide name of

destination logical unit (-destwwn).Session Status: Success, Stop, pause, failed.

(-sessionstatus).Initial Throttle: Starting throttle value (-throttle).

Current Throttle: Current throttle value for currentrunning copy descriptor (-throttle).

Transfer Count: Number of blocks copied (-counts).Percent Complete: Percent completion (-complete).Completion Time: Time that the session completed (-time).Failure Status: Source and destination failure status:

No failure or Failure (-failure).

Output If the version of Base Software running on the SP does not support this command, a Command is not supported error message is printed to stderr.

Page 53: EMC SAN CLI Administrator's Guide

sancopy -modify 4-17

SAN Copy CLI Commands

sancopy -modifyChanges the definitions in a copy descriptor

Description The navicli sancopy command with -modify changes an existing copy descriptor. This command will fail if the descriptor has started or is in the paused state. The session must be stopped for modifications to be done.

The new descriptor information will not take effect until you start a new session using the descriptor.

You must include a copy descriptor ID or name and one or more switches to indicate changes.

User Access You must have a username/host entry in the Navisphere SP Agent configuration file to use this command.

Format Use sancopy -modify with navicli (described on page 4-4) as follows:

sancopy -modify -descriptorid descriptor-id | -name name [-adddestbywwn dest-lun-wwn] [-adddestbylunnumber destsp destlunnumber] [-chgname newname] [-chgsrcbywwn srcwwn] [-chgsrcbylunnumber srcspname srclunnumber] [-o][-rmdestbywwn dest-lun-wwn] [-rmdestbylunnumber destsp destlunnumber][-throttle n]

where

-adddestbylunnumber destsp destlunnumber

Adds a destination logical unit to the descriptor by destination SP (specify the SP name or IP address) and destination logical unit number.

-adddestbywwn dest-lun-wwn

Adds a destination logical unit to the descriptor by worldwide name.

-chgname newname

Changes the descriptor name to newname.

Page 54: EMC SAN CLI Administrator's Guide

4-18 EMC SAN Copy Command Line Interfaces Administrator’s Guide

SAN Copy CLI Commands

-chgsrcbylunnumber srcspname srclunnumber

Changes the source logical unit in the descriptor owned by source SP (for srcspname, specify the SP name or IP address) and source logical unit number.

-chgsrcbywwn srcwwn

Changes the source logical unit in the descriptor by the new source logical unit’s worldwide name.

-descriptorid descriptorid | -name name

Either -descriptorid or -name identifies the descriptor you want to change.

-o

Suppresses a confirmation message describing the descriptor.

-rmdestbylunnumber destsp destlunnumber

Removes a destination logical unit from the specified descriptor by destination SP (specify the SP name or IP address) and destination logical unit number.

-rmdestbywwn dest-lun-wwn

Removes a destination logical unit from the specified descriptor by worldwide name.

-throttle n

Changes the I/O rate to n (valid values 1 through 10). The original default value is 5. To change the throttle value of an active session, use the command sancopy -throttle.

Conventions andRecommendations

None.

Example navicli -h ss1_spa sancopy -modify -name copy_66 -adddestbywwn 60:06:01:6B:61:09:00:00:6A:6F:9F:ED:0B:A3:D6:11

For SP ss1_spa, copy descriptor copy_66, this command adds the destination logical unit whose worldwide name is 60:06:01:6B:61:09:00:00:6A:6F:9F:ED:0B:A3:D6:11.

Page 55: EMC SAN CLI Administrator's Guide

sancopy -modify 4-19

SAN Copy CLI Commands

Output If the version of Base Software running on the SP does not support this command, a Command is not supported error message is printed to stderr. Other errors are

DMF_NAME_AND_UID_SPECIFIEDDMF_NAME_OR_UID_REQUIREDDMF_UNKNOWN_DESCRIPTORDMF_INVALID_THROTTLE_VALUEDMF_REMOVED_DEST_DOESNOT_EXIST

Errors returned from the driver or Agent are

UNKNOWN_DESCRIPTOR_IDUNKNOWN_DESCRIPTOR_NAME SESSION_NAME_EXISTS

Page 56: EMC SAN CLI Administrator's Guide

4-20 EMC SAN Copy Command Line Interfaces Administrator’s Guide

SAN Copy CLI Commands

sancopy -pauseSuspends I/O in an active SAN Copy session

Description The navicli sancopy command with -pause pauses an existing SAN Copy session. You must specify the descriptor ID or name.

To continue the paused session, use the sancopy -resume function.

User Access You must have a username/host entry in the Navisphere SP Agent configuration file to use this command.

Format Use sancopy -pause with navicli (described on page 4-4) as follows:

sancopy -pause -descriptorid descriptor-id | -name name

where

-descriptorid descriptorid | -name name

Either -descriptorid or -name identifies the descriptor whose session you want to pause.

Conventions andRecommendations

None.

Example navicli -h ss1_spa sancopy -pause -name copy_lun_66

For SP ss1_spa, this command pauses the session with the copy_lun_ 66 descriptor.

Output If the version of Base Software running on the SP does not support this command, a Command is not supported error message is printed to stderr. Other errors are

DMF_NAME_AND_UID_SPECIFIEDDMF_NAME_OR_UID_REQUIREDDMF_UNKNOWN_DESCRIPTOR

Errors returned from the driver or Agent are

UNKNOWN_DESCRIPTOR_IDUNKNOWN_DESCRIPTOR_NAME INVALID_SIZE

Page 57: EMC SAN CLI Administrator's Guide

sancopy -remove 4-21

SAN Copy CLI Commands

sancopy -removeDeletes a copy descriptor

Description The navicli sancopy command with -remove deletes one or all previously stored copy descriptor(s). A copy descriptor cannot be removed if it is currently active. An active copy descriptor must complete the copy first or be stopped.

If you omit the override -o option, the CLI displays a message to confirm the removal of the copy descriptor(s). This command must have only one of following switches attached:

-descriptorid-name-all

User Access You must have a username/host entry in the Navisphere SP Agent configuration file to use this command.

Format Use sancopy -remove with navicli (described on page 4-4) as follows:

sancopy -remove -descriptorid descriptor-id|-name name|-all [-o]

where

-descriptorid descriptorid | -name name | -all

Either -descriptorid or -name identifies the descriptor you want to remove

-all directs the CLI to remove all descriptors on the SP

-o suppresses a message confirming the removal of the descriptor.

Conventions andRecommendations

None.

Example navicli -h ss1_spa sancopy -remove -name copy_lun_80

Do you really want to remove the copy descriptor(y/n)[n]? y y

For SP ss1_spa, this command deletes the copy descriptor named copy_lun_80.

Page 58: EMC SAN CLI Administrator's Guide

4-22 EMC SAN Copy Command Line Interfaces Administrator’s Guide

SAN Copy CLI Commands

Output If the version of Base Software running on the SP does not support this command, a Command is not supported error message is printed to stderr. Other errors are

DMF_NAME_AND_UID_SPECIFIEDDMF_NAME_OR_UID_REQUIREDDMF_UNKNOWN_DESCRIPTOR

Errors returned from the driver or Agent are

UNKNOWN_DESCRIPTOR_ID

Page 59: EMC SAN CLI Administrator's Guide

sancopy -resume 4-23

SAN Copy CLI Commands

sancopy -resumeContinues I/O in a SAN Copy session

Description The navicli sancopy command with -resume resumes an existing SAN Copy session that was paused, stopped or failed. If the copy session was paused, it will start at the paused point.

If the copy session was stopped or failed, the resume command will restart the copy session from the latest checkpoint (explained in the settings command). In case the checkpoint feature is disabled (the checkpoint was set to disable), the copy session will restart from the beginning.

You must specify the descriptor ID or name.

User Access You must have a username/host entry in the Navisphere SP Agent configuration file to use this command.

Format Use sancopy -resume with navicli (described on page 4-4) as follows:

sancopy -resume -descriptorid descriptor-id | -name name

where

-descriptorid descriptorid | -name name

Either -descriptorid or -name identifies the descriptor whose session you want to resume.

Conventions andRecommendations

None.

Example navicli -h ss1_spa sancopy -resume -name copy_lun_66

For SP ss1_spa, this command resumes the sancopy_lun_66 copy session.

Output If the version of Base Software running on the SP does not support this command, a Command is not supported error message is printed to stderr. Other error messages are

DMF_NAME_AND_UID_SPECIFIEDDMF_NAME_OR_UID_REQUIREDDMF_UNKNOWN_DESCRIPTOR

Page 60: EMC SAN CLI Administrator's Guide

4-24 EMC SAN Copy Command Line Interfaces Administrator’s Guide

SAN Copy CLI Commands

Errors returned from the driver or Agent are

UNKNOWN_DESCRIPTOR_IDUNKNOWN_DESCRIPTOR_NAME SESSION_ALREADY_IN_PROGRESS

Page 61: EMC SAN CLI Administrator's Guide

sancopy -settings 4-25

SAN Copy CLI Commands

sancopy -settingsLists or changes SAN Copy environmental parameters

Description The navicli sancopy command with -settings gets and sets two SAN Copy environmental control parameters:

◆ the maximum number of concurrent active sessions, and◆ a checkpoint interval for session status

To find the current settings, use the -list switch; to change a setting, omit -list and specify the setting.

If you do not change the setting specifications, the software uses default values.

User Access You must have a username/host entry in the Navisphere SP Agent configuration file to use this command.

Format Use sancopy -settings with navicli (described on page 4-4) as follows:

sancopy -settings -list

or

sancopy - settings [-setmax MaxNumSessions][-setcheckpoint CheckpointInterval]

where

-list

Displays the current environmental parameter settings.

-setmax maxNumSessions

Sets the maximum number of SAN Copy sessions. The maximum number of sessions depends on the storage system type.

Storage-System Type Maximum No. of Sessions

FC4700-2, FC4700, CX600 16 (8 per SP)

CX400 8 (4 per SP)

Page 62: EMC SAN CLI Administrator's Guide

4-26 EMC SAN Copy Command Line Interfaces Administrator’s Guide

SAN Copy CLI Commands

-setcheckpoint CheckpointInterval

Sets the checkpoint interval in minutes (values 5, 10, 15, 20, 25, 30, 35, 40, 45, 50, 55, 60, 65, 70, 75, 80, 85, or 90) or, with the literal Disable, disables the checkpoint feature. By default, checkpointing is enabled with a value of 10 minutes.

The SAN Copy software can track the progress of a copy session by checkpoint interval. If a session fails while checkpointing is enabled, then after correcting the problem you can direct the software to resume (-resume function). It will continue copying from the last checkpoint, if possible. If checkpointing is disabled, or if resuming is not possible, the software will start copying from the beginning.

Conventions andRecommendations

None.

Examples navicli -h ss1_spa sancopy -settings -list

For SP ss1_spa, this command lists the current value for maximum number of sessions and the checkpoint interval.

navicli -h ss1_spa sancopy -settings -setcheckpoint 45

For SP ss1_spa, this command changes the checkpoint interval to 45 minutes.

Output If the version of Base Software running on the SP does not support this command, a Command is not supported error message is printed to stderr. Other errors are

DMF_LIST_AND_SET_SPECIFIEDDMF_INVALID_MAX_SESSION_VALUEDMF_INVALID_CHECKPOINT_INTERVAL_VALVE

Errors Returned From Driver or Agent are

SESSION_MAX_OVER_LIMITSESSION_POLL_OVER_LIMIT

Page 63: EMC SAN CLI Administrator's Guide

sancopy -start 4-27

SAN Copy CLI Commands

sancopy -startStarts a SAN Copy session based on values in a copy descriptor

Description The navicli sancopy command with -start starts a SAN Copy session with the source and destination logical unit(s) identified in the copy descriptor. You can start a session using the descriptor ID or name.

The command works only when issued to the SP that owns the copy descriptor.

The sancopy -info command provides useful information for the sancopy -start command.

User Access You must have a username/host entry in the Navisphere SP Agent configuration file to use this command.

Format Use sancopy -start with navicli (described on page 4-4) as follows:

sancopy -start -descriptorid descriptor-id | -name name

where

-descriptorid descriptorid | -name name

Either -descriptorid or -name identifies the copy descriptor for the session you want to start.

Conventions andRecommendations

None.

Example navicli -h ss1_spa sancopy -start -name copy_lun_66

For SP ss1_spa, this command starts a copy session based on the copy descriptor named copy_lun_66.

Output If the Base Software running in the SP does not support the command, the CLI prints a Command is not supported error message to stderr. Other errors are

DMF_NAME_AND_UID_SPECIFIEDDMF_NAME_OR_UID_REQUIREDDMF_UNKNOWN_DESCRIPTOR

Errors returned from the driver or Agent are

UNKNOWN_DESCRIPTOR_IDUNKNOWN_DESCRIPTOR_NAME SESSION_ALREADY_IN_PROGRESS

Page 64: EMC SAN CLI Administrator's Guide

4-28 EMC SAN Copy Command Line Interfaces Administrator’s Guide

SAN Copy CLI Commands

sancopy -stop Stops (terminates) a SAN Copy session

Description The navicli sancopy command -stop terminates the specified session. The session stops automatically when it is complete, so this command is not needed in the normal course of SAN Copy operations.

User Access You must have a username/host entry in the Navisphere SP Agent configuration file to use this command.

Format Use sancopy -stop with navicli (described on page 4-4) as follows:

sancopy -stop -descriptorid descriptor-id | -name name

where

-descriptorid descriptorid | -name name

Either -descriptorid or -name identifies the descriptor whose session you want to stop.

Conventions andRecommendations

None.

Example navicli -h ss1_spa sancopy -stop -name copy_lun_66

For SP ss1_spa, this command stops the copy session with the copy descriptor name copy_lun_66.

Output If the version of Base Software running on the SP does not support this command, a Command is not supported error message is printed to stderr. Other error messages are

DMF_NAME_AND_UID_SPECIFIEDDMF_NAME_OR_UID_REQUIREDDMF_UNKNOWN_DESCRIPTOR

Errors returned from the driver or Agent are

UNKNOWN_DESCRIPTOR_IDUNKNOWN_DESCRIPTOR_NAME

Page 65: EMC SAN CLI Administrator's Guide

sancopy -throttle 4-29

SAN Copy CLI Commands

sancopy -throttleChanges the I/O rate of an active copy descriptor

Description The navicli sancopy command with -throttle lets you change the throttle of an existing, running copy descriptor. The new throttle value is valid only while the session is running and will not change the value in the descriptor database.

To change the throttle value of an existing copy descriptor that is not running, use the -sancopy -modify -throttle command (see page 4-17)

User Access You must have a username/host entry in the Navisphere SP Agent configuration file to use this command.

Format Use sancopy -throttle with navicli (described on page 4-4) as follows:

sancopy -throttle -descriptorid descriptor-id | -name name n

where

-descriptorid descriptor-id | -name name

Either -descriptorid or -name identifies the descriptor whose throttle value you want to change.

n

is the new throttle value, ranging from 1 (slowest) to 10 (highest)

-Conventions andRecommendations

None.

Examples navicli -h ss1_spa sancopy -info -name copy_lun_66 (For SP ss1_spa descriptor copy_lun_66, this command displays information, including throttle information.

navicli -h ss1_spa sancopy -throttle -name copy_lun_66 8

For SP ss1_spa descriptor copy_lun_66, these commands get information (including throttle value), then change the throttle value to 8.

Page 66: EMC SAN CLI Administrator's Guide

4-30 EMC SAN Copy Command Line Interfaces Administrator’s Guide

SAN Copy CLI Commands

Output If the version of Base Software running on the SP does not support this command, a Command is not supported error message is printed to stderr. Other errors are

DMF_NAME_AND_UID_SPECIFIEDDMF_NAME_OR_UID_REQUIREDDMF_INVALID_THROTTLE_VALUEDMF_UNKNOWN_DESCRIPTOR

Errors returned from the driver or Agent are

UNKNOWN_DESCRIPTOR_IDUNKNOWN_DESCRIPTOR_NAME

Page 67: EMC SAN CLI Administrator's Guide

sancopy -transfer 4-31

SAN Copy CLI Commands

sancopy -transfer Transfers a copy descriptor from the peer SP

Description The navicli sancopy command with -transfer moves the specified descriptor from the peer SP to the SP you specify in the command.

After transferring the copy descriptor, you can start a new session on the working SP using that descriptor.

User Access You must have a username/host entry in the Navisphere SP Agent configuration file to use this command.

Format Use sancopy -transfer with navicli (described on page 4-4) as follows:

sancopy -transfer -descriptorid descriptor-id | -name name

where

-descriptorid descriptorid | -name name

Either -descriptorid or -name identifies the descriptor you want to transfer to the working SP.

Conventions andRecommendations

None.

Example navicli -h ss1_spb sancopy -transfer -name copy_lun_66

This command transfers the copy descriptor copy_lun_66 to the SP named ss1_spb.

Output If the version of Base Software running on the SP does not support this command, a Command is not supported error message is printed to stderr. Other errors are

DMF_NAME_AND_UID_SPECIFIEDDMF_NAME_OR_UID_REQUIREDDMF_UNKNOWN_DESCRIPTORDMF_PEER_SP_ALIVE

Errors returned from the driver or Agent are

UNKNOWN_DESCRIPTOR_IDUNKNOWN_DESCRIPTOR_NAME

Page 68: EMC SAN CLI Administrator's Guide

4-32 EMC SAN Copy Command Line Interfaces Administrator’s Guide

SAN Copy CLI Commands

sancopy -updateconnectionsUpdates connection and registration information

Description The navicli sancopy command with -updateconnections updates registration information for all attached storage systems.

You should run this command for each SP.

User Access You must have a username/host entry in the Navisphere SP Agent configuration file to use this command.

Format Use sancopy -updateconnections with navicli (described on page 4-4) as follows:

sancopy -updateconnections

Conventions andRecommendations

None.

Examples navicli -h ss1_spa sancopy -updateconnections navicli -h ss1_spb sancopy -updateconnections

These commands update connections on both SPs, ss1_spa and ss1_spb.

Page 69: EMC SAN CLI Administrator's Guide

sancopy -verify 4-33

SAN Copy CLI Commands

sancopy -verifyEnsures that the SAN Copy software can access a logical unit

Description The navicli sancopy command with -verify ensures that the SAN Copy software can access a logical unit. You should issue the command to both SPs as one SP might have access, where the other does not.

User Access You must have a username/host entry in the Navisphere SP Agent configuration file to use this command.

Format Use sancopy -verify with navicli (described on page 4-4) as follows:

sancopy -verify -wwn lun-wwn | -lunnumber sp-name lunnumber [-device devicename]

where

-wwn lun-wwn

Specifies the worldwide name of the logical unit.

-lunnumber sp-name lunnumber

Is an alternate way of specifying a logical unit. For sp-name, specify the SP hostname (or SP IP address). For lunnumber, specify the source or destination logical unit number.

-device devicename

Specifies the storage-system device name. This switch is required for FC4500 and FC5400 storage systems. Omit it for FC4700-Series and CX-Series storage systems.

Conventions andRecommendations

None.

Page 70: EMC SAN CLI Administrator's Guide

4-34 EMC SAN Copy Command Line Interfaces Administrator’s Guide

SAN Copy CLI Commands

Examples navicli -h 11.12.13.14 sancopy -verify -lunnumber 12.34.56.78 22

Storage device is reachable.

navicli -h 11.12.13.14 sancopy -verify -lunnumber 12.34.56.78 6

Error: sancopy command failed

Error returned from AgentSP A: CPM unable to locate device. Check that the device with this WWN exists (0x712ac007)

Page 71: EMC SAN CLI Administrator's Guide

SAN Copy Error Codes A-1

AInvisible Body Tag

This appendix lists the SAN Copy error codes returned by the CLI. The numbers proceed sequentially.

SAN Copy Error Codes

Page 72: EMC SAN CLI Administrator's Guide

A-2 EMC SAN Copy Command Line Interfaces Administrator’s Guide

SAN Copy Error Codes

SAN Copy Error Codes

Error Value Description

227 Insert test event failed.

230 Cannot unbind logical unit because it is in use as an active Hot Spare.

231 Cannot unbind logical unit because a feature of the storage system is using it.

232 Cannot unbind logical unit because it contains a Storage Group.

233 Logical unit is in a Storage Group.

234 This version of Core Software does not support SAN Copy.

235 Minimum input requirement for SAN Copy -create command.

236 Both the name and uid for a copy descriptor are supplied.

237 The name or uid of a copy descriptor is required.

238 Both the destination logical unit WWN and number are supplied.

239 Specified destination logical unit does not exist.

240 The specified copy descriptor name is not unique to this SP.

241 Specified copy descriptor does not exist.

242 Cannot list and set environment at the same time.

243 Throttle switch must be specified.

244 Valid throttle values are 1 to 10.

245 Valid max session numbers are 1 to 16.

246 Valid checkpoint intervals are number 5 to 90 and divisible by 5 or the word disable to disable the checkpoint feature.

247 Both the source logical unit WWN and number are specified.

248 The destination logical unit size is less than the source logical unit size.

249 The peer SP is alive. This command works only if the peer SP is down.

250 Either source or all destinations must be on the host SP.

251 Multiple descriptors have the same name.

Page 73: EMC SAN CLI Administrator's Guide

SAN Copy Error Codes A-3

SAN Copy Error Codes

Error Value Description

252 Cannot display logical unit WWN and update logical unit map info at the same time.

253 Input the same logical unit ID as the destination logical unit more than one time.

254 The specified destination logical unit already exists in this descriptor as the destination.

Page 74: EMC SAN CLI Administrator's Guide

A-4 EMC SAN Copy Command Line Interfaces Administrator’s Guide

SAN Copy Error Codes

Page 75: EMC SAN CLI Administrator's Guide

EMC SAN Copy Command Line Interfaces Administrator’s Guide i-1

A-a switch (admhost) 3-5Access Logix, defined 1-4activate command (admhost) 3-3admhost

about 3-2activate command 3-3command functions 3-2deactivate command 3-3flush command 3-4help command 3-4list command 3-4requirements 3-2session overview 4-2

admhost utilitydefined 1-3

AgentHost, defined 1-3managed, defined 1-3SP, defined 1-4

arguments, spaces in 4-6

Bbenefits, SAN Copy 1-7

CCLI subcommands

-create 4-8-destinfo 4-11-duplicate 4-13-info 4-14-modify 4-17

-pause 4-20-remove 4-21-resume 4-23-settings environment parameters, setting

with CLI 4-25-start 4-27-stop 4-28-throttle 4-29-transfer 4-31-updateconnections 4-32-verify 4-33

CLI, environment variablesRaidAgentDevice 4-6RaidAgentHost 4-6RaidAgentTimeout 4-6

CLI, RaidAgent environment variables 4-6clone, SnapView, defined 1-3command functions, admhost 3-2command line format, spaces in 4-6copy descriptor

creating (-create) 1-10, 4-8getting information (-info) 4-14

-create subcommand 4-8

D-d switch (admhost) 3-5deactivate command (admhost) 3-3destination logical units

deactivatefor NetWare 3-6for UNIX 3-6for Windows 3-6

-destinfo subcommand 4-11

Index

Page 76: EMC SAN CLI Administrator's Guide

EMC SAN Copy Command Line Interfaces Administrator’s Guidei-2

Index

diagnostics, navicli command 4-7domain, defined 1-3-duplicate subcommand 4-13

Eenvironment parameters, setting 4-25error codes for SAN Copy subcommands A-2

Ffeatures, SAN Copy 1-7flush command (admhost), about 3-4function switches, admhost 3-5, 3-7

Hhelp command (admhost) 3-4

I-info command 4-14

L-l switch (admhost) 3-5list command (admhost), about 3-4logical unit

defined 1-3making accessible to the SAN Copy port

initiator 2-5LUN

destination, information (-destinfo command) 4-11

lun_activate command (admhost) 3-3lun_deactivate command (admhost) 3-3lun_flush command (admhost) 3-4lun_list command (admhost) 3-4

M-modify subcommand 4-17

Nnavicli command 4-4

command switches, see individual CLI subcommands

diagnostics, see error codesformat 4-4

O-o switch (admhost) 3-5

P-pause subcommand 4-20portal, defined 1-3ports, SAN Copy

connecting to CLARiiON Storage Groups 2-6connecting to Symmetrix volumes 2-7registering 2-5

Powerlink 1-2

RRaidAgent environment variables 4-6RaidAgent environment variables, CLI 4-6-remove subcommand 4-21requirements, admhost 3-2-resume subcommand 4-23

SSAN Copy

configuration requirements and restrictions 2-2

connecting SAN Copy ports to CLARiiON Storage Groups 2-6

connecting SAN Copy ports to Symmetrix volumes 2-7

error codes A-2features and benefits 1-7introduction 1-5making logical units accessible to the SAN

Copy ports 2-5operations overview 4-2registering SAN Copy ports with target

systems 2-5session overview 4-2sessions

checkpoint interval, defined 1-3defined 1-4preparing logical units 3-6

software components 1-9software, defined 1-4zoning requirements and recommendations

2-4sancopy CLI subcommand, see Chapter 4

Page 77: EMC SAN CLI Administrator's Guide

i-3EMC SAN Copy Command Line Interfaces Administrator’s Guide

Index

session, starting 4-27session, stopping 4-28set command 4-7-settings subcommand 4-25shared storage, defined 1-4snapshot, SnapView, defined 1-4SnapView

clone, defined 1-3snapshot, defined 1-4

software componentscommand line interface 1-9graphical user interface 1-9SAN Copy 1-9

source logical unitsdeactivate

Unix 3-6Windows 3-6

stop I/O 3-6spaces in arguments 4-6-start subcommand 4-27

-stop subcommand 4-28storage system

SAN Copy, defined 1-4shared, defined 1-4

switchesadmhost 3-5CLI, see individual command

T-throttle subcommand 4-29-transfer subcommand 4-31

Uunshared storage systems, defined 1-4-updateconnections subcommand 4-32

V-verify subcommand 4-33

Page 78: EMC SAN CLI Administrator's Guide

EMC SAN Copy Command Line Interfaces Administrator’s Guidei-4

Index