96
EMC ® SAN Copy Command Line Interface P/N 069001189 REV A14 EMC Corporation Corporate Headquarters: Hopkinton, MA 01748-9103 1-508-435-1000 www.EMC.com

EMC SAN Copy Command Line Interface - Dell EMC Finland · sancopy-settings ... managed by Navisphere management ... Command Line Interface EMC SAN Copy Command Line Interface. EMC

Embed Size (px)

Citation preview

Page 1: EMC SAN Copy Command Line Interface - Dell EMC Finland · sancopy-settings ... managed by Navisphere management ... Command Line Interface EMC SAN Copy Command Line Interface. EMC

EMC® SAN Copy™

Command Line InterfaceP/N 069001189

REV A14

EMC CorporationCorporate Headquarters:

Hopkinton, MA 01748-91031-508-435-1000

www.EMC.com

Page 2: EMC SAN Copy Command Line Interface - Dell EMC Finland · sancopy-settings ... managed by Navisphere management ... Command Line Interface EMC SAN Copy Command Line Interface. EMC

Copyright © 2006 - 2009 EMC Corporation. All rights reserved.

Published August 2009

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

THE INFORMATION IN THIS PUBLICATION IS PROVIDED "AS IS." EMC CORPORATIONMAKES NO REPRESENTATIONS ORWARRANTIES OF ANY KINDWITH RESPECT TOTHE INFORMATION IN THIS PUBLICATION, AND SPECIFICALLY DISCLAIMS IMPLIEDWARRANTIES OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.

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

For the most up-to-date regulatory document for your product line, go to the TechnicalDocumentation and Advisories section on EMC Powerlink.

For the most up-to-date listing of EMC product names, see EMC Corporation Trademarks onEMC.com.

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

2 EMC SAN Copy Command Line Interface

Page 3: EMC SAN Copy Command Line Interface - Dell EMC Finland · sancopy-settings ... managed by Navisphere management ... Command Line Interface EMC SAN Copy Command Line Interface. EMC

Contents

Preface.....................................................................................................7

Chapter 1: Introducing SAN Copy and its Command LineUtilities..................................................................................................9Terminology...........................................................................................................10Introducing SAN Copy software........................................................................13SAN Copy features and benefits.........................................................................14

Storage–system-based data-mover application......................................14Easy-to-use web-based application..........................................................14Use with replication software....................................................................14Simultaneous sessions between multiple storage systems...................15Incremental SAN Copy sessions...............................................................15Integration with EMC SnapView software..............................................15Integration with EMC MirrorView software...........................................16

SAN Copy software components........................................................................16SAN Copy operations overview.........................................................................17

Chapter 2: SAN Copy Configuration Guidelines................................19SAN Copy configuration requirements.............................................................20

Support for thin LUNs................................................................................20Copyingdata betweenCLARiiONstorage systemsorCLARiiON

and Symmetrix storage systems..........................................................20Copying data between LUNs within a CLARiiON storage

system......................................................................................................22Sample SAN Copy configuration..............................................................22

EMC SAN Copy Command Line Interface 3

Page 4: EMC SAN Copy Command Line Interface - Dell EMC Finland · sancopy-settings ... managed by Navisphere management ... Command Line Interface EMC SAN Copy Command Line Interface. EMC

Fibre Channel zoning requirements and recommendations..........................23Zoning recommendations..........................................................................24Single-initiator zoning examples without and with SAN Copy

installed...................................................................................................26Preparing a CLARiiON storage system for a copy session.............................28

Connecting SAN Copy ports to CLARiiON storage groups................29Preparing a Symmetrix storage system for a copy session.............................31

Preparing a Symmetrix storage systemusingEMCControlCenterSAN Manager.........................................................................................31

Preparing a Symmetrix storage system using ESN Manager...............33

Chapter 3: Using the Admhost Utility with SAN Copy.........................35About Admhost for SAN Copy...........................................................................36Admhost SAN Copy command functions.........................................................36Preparing logical units for a SAN Copy session...............................................36

Preparing source and destination logical units for full andincremental sessions..............................................................................36

Chapter 4: SAN Copy CLI Commands................................................39SAN Copy command functions..........................................................................40About Secure CLI..................................................................................................40naviseccli.................................................................................................................41About Classic CLI..................................................................................................45navicli......................................................................................................................45sancopy -create......................................................................................................48sancopy -destinfo...................................................................................................53sancopy -duplicate................................................................................................58sancopy -info..........................................................................................................59sancopy -mark........................................................................................................63sancopy -modify....................................................................................................64sancopy -pause.......................................................................................................71sancopy -remove....................................................................................................72sancopy -resume....................................................................................................73sancopy -settings...................................................................................................75sancopy -start.........................................................................................................77sancopy -stop.........................................................................................................78sancopy -throttle....................................................................................................80

4 EMC SAN Copy Command Line Interface

Contents

Page 5: EMC SAN Copy Command Line Interface - Dell EMC Finland · sancopy-settings ... managed by Navisphere management ... Command Line Interface EMC SAN Copy Command Line Interface. EMC

sancopy -transfer...................................................................................................81sancopy -unmark...................................................................................................82sancopy -updateconnections................................................................................83sancopy -verify.......................................................................................................84

Appendix A: SAN Copy CLI Error Codes.............................................87SAN Copy CLI error codes..................................................................................88

Appendix B: Secure CLI Command Coverage..................................93Secure CLI Command Coverage.........................................................................94

Index.......................................................................................................95

EMC SAN Copy Command Line Interface 5

Contents

Page 6: EMC SAN Copy Command Line Interface - Dell EMC Finland · sancopy-settings ... managed by Navisphere management ... Command Line Interface EMC SAN Copy Command Line Interface. EMC

6 EMC SAN Copy Command Line Interface

Contents

Page 7: EMC SAN Copy Command Line Interface - Dell EMC Finland · sancopy-settings ... managed by Navisphere management ... Command Line Interface EMC SAN Copy Command Line Interface. EMC

Preface

About this manual

Note: Thismanual does not include any content that is specific to FC series or C series storage systems.For this information, refer to the EMC SAN Copy Command Line Interfaces Reference.

This manual describes the two command line interfaces to EMC SAN Copy software: theAdmhost Utility and the command line interface (CLI).

You should read this manual if you will use typed or scripted commands (instead of or inaddition to EMCNavisphereManager software) to configure and run the SANCopy software.

Audience

This guide is part of the EMC SAN Copy (referred to as SAN Copy later in this document)documentation set, and is intended for use by customers and service providers who useEMC Navisphere CLI to set up and manage SAN Copy software.

Organization

This manual contains four chapters and two appendixes as follows:

Introduces terminology and the software products.Chapter 1

Explains the basic requirements, restrictions and configura-tion guidelines for using SAN Copy.

Chapter 2

Explains admhost commands that the operating system usesto manage devices with SAN Copy.

Chapter 3

Describes the CLI commands that SAN Copy uses to man-age SAN Copy sessions.

Chapter 4

Lists and describes the SAN Copy CLI error codes.SAN Copy CLI error codes on page 88

EMC SAN Copy Command Line Interface 7

Page 8: EMC SAN Copy Command Line Interface - Dell EMC Finland · sancopy-settings ... managed by Navisphere management ... Command Line Interface EMC SAN Copy Command Line Interface. EMC

Lists the commands supported in Secure CLI.Appendix B

Related documentation

Related documents include:

◆ The most up-to-date version of the online help, available on the EMC Powerlink website(http://Powerlink.EMC.com) in theNavisphereManagement Suite section of the TechnicalDocumentation and Advisories section.

◆ SAN Copy Release Notes

◆ EMC Admhost Release Notes

Finding current information

The most up-to-date information about the EMC SANCopy software is posted on the EMCPowerlink website. We recommend that you download the latest information before youstart the SAN Copy software. If you purchased this product from an EMC reseller and youcannot access Powerlink, the latest product information should be available from yourreseller.

To access EMC Powerlink, use the following link:

http://Powerlink.EMC.com

After you log in, select Support > Technical Documentation and Advisories and find thefollowing:

◆ EMC Admhost Release Notes

◆ EMC SAN Copy Release Notes

◆ The latest version of this guide that is applicable to your software revision

◆ EMC Installation Roadmap for CLARiiON Storage Systems, which provides a checklist ofthe tasks that youmust complete to install your storage system in a storage area network(SAN) or direct attach configuration

8 EMC SAN Copy Command Line Interface

Preface

Page 9: EMC SAN Copy Command Line Interface - Dell EMC Finland · sancopy-settings ... managed by Navisphere management ... Command Line Interface EMC SAN Copy Command Line Interface. EMC

1

Introducing SAN Copy andits Command Line Utilities

This chapter introduces the EMC SAN Copy software and its commandline utilities: admhost, with commands that the operating system uses tomanage SAN Copy devices; and the CLI, with commands that manageSAN Copy sessions. Major topics are:◆ Terminology on page 10◆ Introducing SAN Copy software on page 13◆ SAN Copy features and benefits on page 14◆ SAN Copy software components on page 16◆ SAN Copy operations overview on page 17

EMC SAN Copy Command Line Interface 9

Page 10: EMC SAN Copy Command Line Interface - Dell EMC Finland · sancopy-settings ... managed by Navisphere management ... Command Line Interface EMC SAN Copy Command Line Interface. EMC

Terminology

MeaningTerm

An executable program that you can run interactively with ascript. It runs on Microsoft Windows NT, Windows 2000, andWindows Server 2003.

Admhost Utility

The state of a copy session that is trying to resume failedsessions.

auto recovery

Memory used for temporary data storage.buffer space

A user-defined time interval that lets an interrupted copysession resume from the last checkpoint, rather than havingto start the session over.

checkpoint interval

EMC® Navisphere® command line interface.CLI

A copy (local mirror) of a LUN. When synchronized, it re-mains a bit-for-bit copy of its source LUN. To access theclone, you must fracture it.Then, after performing the desiredoperations (such as data modeling or backup), you can startsynchronizing it again. Clone functionality is provided withEMC SnapView™ software.

clone

A named set of information used by a CLARiiON® iSCSIinitiator to establish a replication session with an iSCSI target.A connection set consists of a unique user-defined name,credentials usage (connection specific, array-shared ornone), one or more connection paths, and when specified,an optional username and password (secret).

connection set

The network protocol for transferring data from one storagesystem to another. The available choices depend on thestorage systems participating in the copy session. Thechoices may be fibre or iSCSI.

connection type

An algorithm that copies current contents of a source LUNto the reserved LUN pool before it is modified (written to).

copy-on-first-write

CX700, CX600, CX500, CX500i, CX400, CX300, CX200,and CX200LC.

CX series storage system

CX3 model 80 system, CX3 model 40 systems, CX3 model20 systems, and CX3 model 10 systems.

CX3 series storage system

A logical unit to which SAN Copy™ is copying the sourcedata. On a CLARiiON storage system, this device is calleda LUN; on a Symmetrix® system, it is called a volume (canbe a single LUN or a metaLUN).

destination logical unit

In the context of Navisphere 6.X, a group of storage systemsand/or portal servers that you can manage from a singlemanagement application session.You can divide the storagesystems into multiple domains as long as each storage sys-tem or portal is in only one domain.

domain

10 EMC SAN Copy Command Line Interface

Introducing SAN Copy and its Command Line Utilities

Page 11: EMC SAN Copy Command Line Interface - Dell EMC Finland · sancopy-settings ... managed by Navisphere management ... Command Line Interface EMC SAN Copy Command Line Interface. EMC

MeaningTerm

EMC Navisphere Event Monitor.Event Monitor

Sets the session connection type to fibre or iSCSI (if fibrepath could not be found) each time you start or resume asession that failed or was stopped.

fibre preferred

A session that copies all the data on the source logical unitto one or many destination logical units.

full SAN Copy session

EMC Navisphere agent that runs on a storage-system server.host agent

A session that copies only the data that has changed sincethe last copy session.

incremental SAN Copy session

The amount of time it takes to transmit a block of data to itsdestination expressed in milliseconds. By default, latency isset to AUTO (the software computes the latency value).

latency

The bandwidth of the network connection used to transfercopy data.

link bandwidth

A storage device that resides on a storage system, storesdata and is independent of storage-system type. For exam-ple, on a CLARiiON CX series storage system, this deviceis called a LUN; on a CLARiiON AX series storage system,a virtual disk; on a Symmetrix system, a volume. A logicalunit can be a single LUN or a metaLUN.

logical unit (LU)

CLARiiON term for logical unit.LUN

A host agent or SP agent managed by Navisphere manage-ment software.

managed agent

A storage system managed by Navisphere managementsoftware.

managed storage system

EMC Navisphere Manager.Manager

A type of LUN whose capacity is the combined capacities ofall the LUNs that compose it.

metaLUN

An FC4700, FC4500, FC5300, FC5500, FC5700, or C-seriesstorage system.

pre-CX series systems

A storage system with logical units that are participating ina copy session, but that does not own the copy session. Aremote storage system does not need to be running SANCopy software.

This storage system could be a CLARiiON, Symmetrix, orsupported non-CLARiiON storage system.

remote storage system

Terminology 11

Introducing SAN Copy and its Command Line Utilities

Page 12: EMC SAN Copy Command Line Interface - Dell EMC Finland · sancopy-settings ... managed by Navisphere management ... Command Line Interface EMC SAN Copy Command Line Interface. EMC

MeaningTerm

One or more private LUNs that work with SAN Copy to per-form incremental copy operations. The reserved LUN poolis shared by both storage-system SPs before starting an in-cremental SAN Copy session, the pool must contain at leastone LUN for each source LUN that will be participating in anincremental session. For more information, see the Navi-sphere Manager online help.

reserved LUN pool

A private session created by SAN Copy when you start anincremental copy session. The name assigned to the re-served session consists of the copy session name with theprefix ”SANCopy.” No user actions can be performed on areserved session.

reserved session

Storage area network: One or more servers connected toone or more storage systems with Fibre Channel switches.Switch zoning and EMC Access Logix™ software controlserver access to storage systems and LUNs.

SAN

Software running on a SAN Copy storage system that letsyou copy logical unit information between SAN Copy storagesystems and other CLARiiON storage systems, or within astorage system.

SAN Copy

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

SAN Copy port

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

SAN Copy session

The CLARiiON storage system that owns the SAN Copysession. A SAN Copy storage system must be running SANCopy software.You can install SAN Copy on a CX4 series,CX3 series or a CX400, CX500, CX600, CX700 storagesystem, but not on a CX300 or AX series storage system.

SAN Copy storage system

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

snapshot

A logical unit from which SAN Copy copies data. On aCLARiiON storage system, this device is called a LUN (canbe a single LUN or a metaLUN).

source logical unit

EMC Navisphere Agent that runs on the SPs in CX4 series,CX3 series, CX series, and supported AX series storagesystems.

SP agent

Software that runs in a storage system or off-array manage-ment server and lets a person manage it over a network.

storage management server software

12 EMC SAN Copy Command Line Interface

Introducing SAN Copy and its Command Line Utilities

Page 13: EMC SAN Copy Command Line Interface - Dell EMC Finland · sancopy-settings ... managed by Navisphere management ... Command Line Interface EMC SAN Copy Command Line Interface. EMC

MeaningTerm

A parameter that controls the I/O rate for a copy session.You can set the session throttle to a value between 1 and10 where 1 is the lowest rate and 10 is the highest. The de-fault throttle value is 6.

throttle value

A logical unit on an AX series storage system.virtual disk

A logical unit on a Symmetrix storage system.volume

A way to limit access to specific logical units in a storagesystem, thereby increasing security and decreasing networktraffic.

zone

Introducing SAN Copy software

EMC SAN Copy software (referred to as SAN Copy later in this document) runs on a SANCopy storage system (storage system with SAN Copy software enabled). It copies databetweenCLARiiONstorage systems,withinCLARiiONstorage systems, betweenCLARiiONand Symmetrix storage systems, and between CLARiiON and qualified non-EMC storagesystems. SANCopy can copy data directly from a source logical unit on one storage systemto destination logical units on other systems, without using host resources. SAN Copyconnects directly or through a SAN, and also supports protocols that let you use the IPWAN(wide area network) to send data over extended distances. SANCopy can performmultiplecopies—each in its own copy session—simultaneously. The RAID type of the logical unitsparticipating in a copy session does not have to be the same; that is, the source anddestinationlogical units can be different RAID types.

You can use SAN Copy to create full and incremental copies of a source logical unit. Anincremental session copies only the data that has changed since the last copy session. Thiscan significantly reduce the time needed to copy the data, thereby allowing the copy operationto be performedmore frequently and more effectively. Unlike full copy sessions, the sourcelogical unit for an incremental session can remain online during the copy process. Youmust,however, prepare the source logical unit prior to starting the session (see Preparing logicalunits for a SAN Copy session on page 36). Regardless of the type of copy session—full orincremental—the participating logical units must meet certain requirements.

You can use SAN Copy for the following tasks:

◆ One-time data migration◆ Routine copying of data for application testing◆ Content distribution◆ Scheduled updates to multiple databases

To manage SAN Copy sessions, you can use either the UI-based Navisphere Manager(described in theNavisphereManager online help), or the SANCopy command line interfacedescribed in this manual.

Introducing SAN Copy software 13

Introducing SAN Copy and its Command Line Utilities

Page 14: EMC SAN Copy Command Line Interface - Dell EMC Finland · sancopy-settings ... managed by Navisphere management ... Command Line Interface EMC SAN Copy Command Line Interface. EMC

SAN Copy features and benefits

The SANCopy software adds value to customer systems by offering the following features:

◆ Astorage-system-baseddatamover application that uses a SAN rather than host resourcesto copy data resulting in a faster copy process.

◆ 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 withthe source logical unit to continue during the copy process.

◆ Simultaneous sessions that can copy data tomultiple CLARiiON and Symmetrix storagesystems.

◆ Incremental SAN Copy sessions that copy only the data that has changed since the lastupdate.

◆ Integration with EMC SnapView software.

◆ Integration with EMCMirrorView™ software.

Storage–system-based data-mover application

SANCopy is a storage–system-based data-mover application that uses a SANor LAN (localarea network) to copy data between storage systems. Since SAN Copy runs on the storagesystems, this eliminates the need to move data to and from the attached hosts and reserveshost processing resources for users and applications. Since the host is not involved in thecopy process, and the data migration takes place on the SAN, the copy process is muchfaster than the LAN-based, host-involved copy process.

Easy-to-use web-based application

SAN Copy is an integrated part of Navisphere Manager, the easy-to-use, web-basedmanagement tool for CLARiiON storage systems. Manager lets you select the SAN Copysource and destination logical units, create SAN Copy sessions and then manage thesesessions.

Use with replication software

If 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 (fullcopy sessions only), clone, or Symmetrix BCV (business continuation volume) as its source

14 EMC SAN Copy Command Line Interface

Introducing SAN Copy and its Command Line Utilities

Page 15: EMC SAN Copy Command Line Interface - Dell EMC Finland · sancopy-settings ... managed by Navisphere management ... Command Line Interface EMC SAN Copy Command Line Interface. EMC

logical unit — allowing I/O with the source logical units for the snapshot, clone, or BCV tocontinue during the copy process.

Note: 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 systems

SAN Copy lets you have more than one session active at a time. The number of supportedconcurrent active sessions and the number of logical units per session depends on thestorage-system type.

Note: If the destination logical unit is ametaLUN, themetaLUN is considered a single entity. Therefore,the metaLUN counts as one of the maximum destination logical units. For example, if a metaLUNconsists of five LUNs, it counts only as one destination logical unit, not five.

Incremental SAN Copy sessions

The incremental SAN Copy feature lets you copy only the data that has changed since thelast copy session. This significantly reduces the time needed to copy the data, therebyallowing the copy operation to be performed more frequently and more effectively. Unlikefull copy sessions, the source logical unit can remain online during the copy process.

To use the incremental SAN Copy feature:

◆ The source logical unit must reside in a SAN Copy storage system. (This storage systemcannot be a CX300 storage system or an AX-series storage system running NavisphereExpress).

◆ The source logical unit cannot be a SnapView snapshot.

◆ Youmust configure the reserved LUNpool (refer to the EMCNavisphereManager onlinehelp).

Integration with EMC SnapView software

SnapView can be used with SAN Copy to create a snapshot or a clone of the destinationLUN, so that the SnapView replica can be put in the secondary server storage group, ratherthan the SAN Copy destination logical unit. This allows the SAN Copy destination logicalunit to maintain consistency with its source, and be available on an ongoing basis forincremental updates. SAN Copy tracks server writes to the SAN Copy source LUN (for

SAN Copy features and benefits 15

Introducing SAN Copy and its Command Line Utilities

Page 16: EMC SAN Copy Command Line Interface - Dell EMC Finland · sancopy-settings ... managed by Navisphere management ... Command Line Interface EMC SAN Copy Command Line Interface. EMC

example, from the production server); but SAN Copy does not track server writes to theSAN Copy destination LUN (for example, from the secondary server).

Integration with EMC MirrorView software

SAN Copy software lets you create an intra- or inter-storage-system copy of a LUN at anypoint in time; however, do this onlywhen the image state is either synchronized or consistentand the mirror is not updating to the secondary image. The copy is a persistent image thatcan serve for other application purposes while I/O continues to the source LUN. TheMirrorView secondary image is not viewable to any hosts, but you can use SAN Copy tocreate a copy of the secondary image on a secondary storage system to perform dataverification and run parallel processes.

Related to the process of making the MirrorView secondary image unavailable for host I/O,you cannot run SAN Copy full copy sessions on MirrorView secondary images. You can,however, run SAN Copy incremental sessions on MirrorView secondary images.

For more information on MirrorView, refer to the EMC Navisphere Manager online help.

SAN Copy software components

SAN Copy consists of the following software components:

◆ SAN Copy software installed and enabled on a SAN Copy storage system.

Note: All CX series (excluding the CX300), CX3 series, and CX4 series storage systems ship fromthe factory with SAN Copy software installed, but not enabled. To use the SAN Copy softwarefunctionality, the SAN Copy enabler must be installed on the storage system.

◆ The Admhost Utility provides a command line executable that lets you execute certaincommands— lun_activate, lun_deactivate lun_flush, and lun_list when managing SANCopy sessions. TheAdmhostUtility shipswith otherWindows host utilities (for example,the host agent andCLI), and resides on anyWindows hosts connected to storage systemsthat have the SAN Copy software installed and enabled.

◆ User interface (UI) –NavisphereManager, whichmust be installed on at least one storagesystem on the same network as the SAN Copy storage system.

Note: CX4 series, sCX3 series, CX300, CX500, and CX700 storage systems ship from the factorywith Navisphere Manager installed and enabled. CX200, CX400, and CX600 storage systems shipfrom the factory with Navisphere Manager installed, but not enabled. To use the Managerfunctionality on a CX200, CX400, or CX600 storage system, the Manager enabler must be installedon the storage system.

◆ Navisphere command line interface (CLI), which ships as part of the Navisphere HostAgent packages.

16 EMC SAN Copy Command Line Interface

Introducing SAN Copy and its Command Line Utilities

Page 17: EMC SAN Copy Command Line Interface - Dell EMC Finland · sancopy-settings ... managed by Navisphere management ... Command Line Interface EMC SAN Copy Command Line Interface. EMC

SAN Copy operations overview

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

◆ For information about the basic requirements, restrictions and configuration guidelinesfor using SAN Copy — Chapter 2

◆ To learn about admhost commands — Chapter 3◆ To learn about SAN Copy CLI commands — Chapter 4

The following steps explain how to use SAN Copy:

1. Set up SAN Copy. This procedure includes the following tasks:◆ Zoning switches — see Fibre Channel zoning requirements and recommendations

on page 23.◆ Registering SANCopy ports— see Preparing a CLARiiON storage system for a copy

session on page 28 and Preparing a Symmetrix storage system for a copy session onpage 31.

◆ Adding logical units to storage groups and connecting ports to storage groups andvolumes — see Preparing a CLARiiON storage system for a copy session on page 28and Preparing a Symmetrix storage system for a copy session on page 31.

◆ Configuring the reserved LUN pool for incremental SAN Copy sessions — see theNavisphere Command Line Interface Reference.

2. On the SANCopy storage system, create full or incremental SANCopy copy descriptorsusing the sancopy -create or sancopy -create -incremental command (see sancopy-create on page 48).

3. Prepare the source and destination logical units for a SAN Copy session (see Preparinglogical units for a SAN Copy session on page 36 ).

4. For full sessions, proceed to step 5 to start the session.

For incremental sessions, mark any sessions using the sancopy -mark command (seesancopy -mark on page 63).

Note: Once you receive confirmation that the mark operation was successful, you can make thesource logical units available to the host and resume I/O to these logical units. This applies onlyto source logical units participating in incremental copy sessions.

5. On the production host’s storage system, start the SANCopy sessions using the sancopy-start command (see sancopy -start on page 77).

SAN Copy operations overview 17

Introducing SAN Copy and its Command Line Utilities

Page 18: EMC SAN Copy Command Line Interface - Dell EMC Finland · sancopy-settings ... managed by Navisphere management ... Command Line Interface EMC SAN Copy Command Line Interface. EMC

Note: More than one session at a time per source logical unit can be active on a host, provided thesource and destination logical units are unmounted (see step 3 above).

6. Let the copy session complete.

7. On both hosts, make the source logical unit (if not done previously) and destinationlogical units available to the operating system.

Note: 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 LUNsto different storage groups.

With Windows hosts, issue the admhost lun_activate command. This command rescansthe bus for newdevices and assigns a drive letter to all CLARiiON and Symmetrix logicalunits that do not already have one. Use the -l and -d optionswith the admhost lun_activatecommand to assign a drive letter to a LUN with a specific World Wide Name (WWN).

18 EMC SAN Copy Command Line Interface

Introducing SAN Copy and its Command Line Utilities

Page 19: EMC SAN Copy Command Line Interface - Dell EMC Finland · sancopy-settings ... managed by Navisphere management ... Command Line Interface EMC SAN Copy Command Line Interface. EMC

2

SAN Copy ConfigurationGuidelines

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

Major sections are:◆ SAN Copy configuration requirements on page 20◆ Fibre Channel zoning requirements and recommendations on page

23◆ Preparing a CLARiiON storage system for a copy session on page 28◆ Preparing a Symmetrix storage system for a copy session on page 31

EMC SAN Copy Command Line Interface 19

Page 20: EMC SAN Copy Command Line Interface - Dell EMC Finland · sancopy-settings ... managed by Navisphere management ... Command Line Interface EMC SAN Copy Command Line Interface. EMC

SAN Copy configuration requirements

This section describes the configuration requirements and restrictions for copying databetween CLARiiON storage systems, between CLARiiON and Symmetrix storage systems,and within CLARiiON storage systems. Figure 1 shows a sample SAN Copy session thatincludes these configurations.

Support for thin LUNs

SAN Copy sessions support thin LUNs in the following configurations:

◆ Within a storage system running committed FLARE® version 02.29.xx.yy.z or later

◆ Between storage systems running committed FLARE version 02.29.xx.yy.z or later

◆ With certain limitations, storage systems running committed FLAREversion 02.29.xx.yy.zor later (must be the SAN Copy storage system) and storage systems running earlierversions of FLARE

Copying data between CLARiiON storage systems or CLARiiON andSymmetrix storage systems

If you will be copying data between CLARiiON storage systems, or between CLARiiONand Symmetrix storage systems, the requirements in the following sections must be metbefore you start a SAN Copy session.

Note: For full copy sessions, a virtual disk in an AX series storage system can be either a source or adestination logical unit. For incremental sessions, it can be only a destination logical unit.

All copy sessions

Both full and incremental copy sessionsmust meet the following requirements. In addition,incremental sessions must meet the requirements described in Copying data betweenCLARiiON storage systems or CLARiiON and Symmetrix storage systems on page 20:

◆ One of the CLARiiON storage systems participating in the copy session must be a SANCopy storage system.

◆ You must enable the VCM bit on all Symmetrix storage ports participating in the SANCopy session.

◆ For Fibre Channel replication, you must correctly zone SAN Copy initiator ports toremote storage systems so that SAN Copy can have access to these systems (see FibreChannel zoning requirements and recommendations on page 23).

20 EMC SAN Copy Command Line Interface

SAN Copy Configuration Guidelines

Page 21: EMC SAN Copy Command Line Interface - Dell EMC Finland · sancopy-settings ... managed by Navisphere management ... Command Line Interface EMC SAN Copy Command Line Interface. EMC

For iSCSI replication, you must create connection sets. A connection set is a named setof information used by a CLARiiON iSCSI initiator to establish a replication sessionwithan iSCSI target. A connection set consists of a unique user-defined name, method forassigning security credentials (connection specific, array-shared or none), one or moreconnection paths, and when specified, an optional username and password (secret).

Note: SAN Copy ports act as host initiators to the remote storage systems. You can add them tostorage groups and theymust belong to the same zone as the logical units participating in the copysession.

◆ Either the source logical unit, destination logical units or bothmust reside in a SANCopystorage system.

Note: If the source logical unit resides in the SAN Copy storage system, you can copy data to oneor many destination logical units on one or many storage systems. None of the remote storagesystems require the SAN Copy software.If the source logical unit does not reside in the SAN Copy storage system, all destination logicalunits must reside in the storage system that owns the SAN Copy session.

◆ When copying data to a Symmetrix system, use the navicli -lunmapinfo command toobtain the World Wide Name (WWN) of any Symmetrix volumes that you want toinclude in the SAN Copy session. These volumes must be mounted and the NavisphereHost Agent must be installed on the hosts that own the volumes. For the required hostagent version, refer to the SANCopy release notes, available on EMCPowerlink®website(see page 7 in the Preface).

◆ In order for the logical units to participate in a SAN Copy session, you must make thelogical units accessible to the participating SANCopy storage-system port. For example,when copying between CLARiiON storage systems, you must add the initiator port tothe storage group on the remote storage system that includes the participating destinationlogical units.

Note: For AX series storage systems, refer to the Navisphere Express online help for instructionson making virtual disks accessible to the SAN Copy port.For Symmetrix storage systems, refer to your Symmetrix documentation for instructions onmakingvolumes accessible to the SAN Copy port.

Incremental copy sessions

Incremental copy sessionsmustmeet all the requirements for full sessionswith the followingexceptions and additions:

Exception

◆ The source logical unit cannot reside in a remote storage system. It must reside in theSAN Copy storage system.

◆ The source logical unit cannot be a SnapView snapshot.

SAN Copy configuration requirements 21

SAN Copy Configuration Guidelines

Page 22: EMC SAN Copy Command Line Interface - Dell EMC Finland · sancopy-settings ... managed by Navisphere management ... Command Line Interface EMC SAN Copy Command Line Interface. EMC

Additions

◆ You must configure the reserved LUN pool before you start an incremental SAN Copysession. The reserved LUN pool works with SAN Copy to perform incremental SANCopy operations. It consists of one or more private LUNs. Before starting an incrementalSAN Copy session, the pool must contain at least one LUN for each source LUN thatwill be participating in an incremental session. Formore information, see theNavisphereManager online help, packaged with the software and available from Powerlink.

Copying data between LUNs within a CLARiiON storage system

If you will copy data from one LUN to one or many LUNs within the same CLARiiONstorage system, the following requirementsmust bemet before you start a SANCopy session:

Note: You do not need to zone Fibre Channel connections or create iSCSI connection sets when youare copying data within a storage system.

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

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

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

◆ For incremental copy sessions:

• The source logical unit cannot be a SnapView snapshot.

• You must configure the reserved LUN pool before you start an incremental SANCopy session. For more information, see the Navisphere Manager online help,packaged with the software and available from Powerlink.

Sample SAN Copy configuration

Figure 1 on page 23 shows a sample SAN Copy configuration that includes a SAN Copystorage system on the left, and a remote storage system on the right (either a CLARiiON orSymmetrix storage system). LUNs 1, 2, 3, and 4 reside in the SAN Copy storage system andLUNs 5 and 6 reside in the remote storage system.

Within the SAN Copy storage system, the data on LUN 1 is being copied to LUN 2. LUNs1 and 2 must belong to the same SP, and no zoning is required.

An incremental copy session is copying the data on LUN 4 to LUN 6. LUN 4 (the sourceLUN)must reside in a SANCopy storage system. Since the source logical unit is on the SAN

22 EMC SAN Copy Command Line Interface

SAN Copy Configuration Guidelines

Page 23: EMC SAN Copy Command Line Interface - Dell EMC Finland · sancopy-settings ... managed by Navisphere management ... Command Line Interface EMC SAN Copy Command Line Interface. EMC

Copy system, SAN Copy is able to copy LUN 4’s data to many destination LUNs on manystorage systems.

A full copy session is copying the data on LUN 5 to LUN 3. Since the source LUN (LUN 5)does not reside in a SAN Copy storage system, all the destination LUNs for LUN 5 mustreside in the same SAN Copy storage system.

Figure 1. Sample SAN Copy configuration

Fibre Channel zoning requirements and recommendations

Note: Zoning is not required for copying data between LUNs within a CLARiiON storage system.SAN Copy software does not support configurations where a SAN Copy port is zoned to a storagesystem that is not supported by SAN Copy software. Refer to the EMC Support Matrix (ESM) or SANCopy release notes for a list of supported storage systems.Currently, SANCopy andMirrorView software cannot share the same SP port (refer to the SANCopyrelease notes for confirmation).

Each port in a SANCopy storage system is a dual-mode port.When the port is participatingin a SAN Copy session, it acts as an initiator to the remote storage systems and any otherSAN Copy ports in the same zone. When the host initiators are using the port to transferI/O, the port acts as a target to the host initiator. Each time a host initiator registers with theSAN Copy port or the SAN Copy port registers with another SP port, the SAN Copy portconsumes a login resource. If you consume all login resources for the SAN Copy port, theSAN Copy session may not successfully complete on all destination logical units. Werecommend that you follow the single initiator to single remote SP port rule when creatingand configuring SAN Copy zones — include only one SAN Copy port (initiator) and onlyone remote SP port in each zone. For examples of single initiator zoning, refer toSingle-initiator zoning examples without and with SAN Copy installed on page 26.

Fibre Channel zoning requirements and recommendations 23

SAN Copy Configuration Guidelines

Page 24: EMC SAN Copy Command Line Interface - Dell EMC Finland · sancopy-settings ... managed by Navisphere management ... Command Line Interface EMC SAN Copy Command Line Interface. EMC

Zoning recommendations

You can create a variety of SAN Copy zoning configurations. We recommend that youconfigure your zoning so that:

◆ There are redundant connection paths from the SAN Copy ports to the logical units onthe remote storage system.

◆ Each SP on the SAN Copy storage system (SAN Copy port) has access to each SP on theremote storage system.

To accomplish this, we recommend that you create four zones from the SAN Copy storagesystem to the remote storage system. This results in a consistent easy-to-troubleshoot zoningconfiguration.

Remote storage systemSan Copy storage systemZones

SP A port 1SP A port 1Zone 1

SP B port 1SP A port 1Zone 2

SP A port 1SP B port 1Zone 3

SP B port 1SP B port 1Zone 4

If this zoning configuration does notmeet your needs, you can also create your zoning basedon the most important criteria for the SAN Copy session — performance, availability, orpreserving host login resources. The following sections recommend zoning configurationsfor these criteria.

Note: As an absolute minimum, configure one zone that includes a single port on a single SP in theSAN Copy storage system and a single port on a single SP in the remote storage system. Thisconfiguration does not provide high availability for the SAN Copy session or access to logical unitsbelonging to both SPs on the remote storage system.

Performance

If performance is most important, we recommend that you create multiple zones, each witha different SAN Copy port zoned to the same remote SP ports. SAN Copy allows multiplesessions to share a single port, but if multiple ports are available, SAN Copy will spreadmultiple sessions across available SAN Copy ports to maximize total throughput.

Note: This configuration increases performance onlywhen you havemultiple, concurrent copy sessionsrunning. This configuration will not increase performance for a single session.

In Figure 2 on page 25, LUN 1 and LUN 2 on the SAN Copy storage system belong to SPA. Zones 1 and 3 providemultiple connection paths fromLUNs 1 and 2 to the remote storagesystem. In this example, two SAN Copy sessions are running. One session is copying data

24 EMC SAN Copy Command Line Interface

SAN Copy Configuration Guidelines

Page 25: EMC SAN Copy Command Line Interface - Dell EMC Finland · sancopy-settings ... managed by Navisphere management ... Command Line Interface EMC SAN Copy Command Line Interface. EMC

from LUN 3 to LUN 1 using port 0 on SP A of the SAN Copy storage system. The othersession is copying data from LUN 2 to LUN 4 and is using port 1 on SP A.

Figure 2. Recommended zoning based on performance

Availability

For high availabilitywhen youuse SANCopy,we recommend that you configure aminimumof two zones. Each zone should include one port from a different SP in the SANCopy storagesystem and one port from each SP in the remote storage system.

Figure 3 on page 25 shows theminimum recommended high-availability SANCopy zoningconfiguration using zones 1 and 2.

Remote storage systemSAN Copy storage systemZones

SP A port 1 and SP B port 1SP A port 0Zone 1

SP A port 0 and SP B port 0SP B port 0Zone 2

In the following example, three copy sessions are running. The session copying data fromLUN 2 to LUN 4 is using zone 1. The session copying data from LUN 3 to LUN 1 is usingzone 2. The third session, LUN 2 to LUN 1, requires no zoning.

Figure 3. Recommended zoning based on availability

Fibre Channel zoning requirements and recommendations 25

SAN Copy Configuration Guidelines

Page 26: EMC SAN Copy Command Line Interface - Dell EMC Finland · sancopy-settings ... managed by Navisphere management ... Command Line Interface EMC SAN Copy Command Line Interface. EMC

Limiting host login resources

If limiting host login resources is most important because a large number of hosts connectto a remote storage system, zone only necessary SAN Copy ports to that storage system.

The following table describes each zoning configuration:

Remote storage systemSAN Copy storage systemZones

SP A port 1 and SP B port 1SP A port 0Zone 1

SP A port 0 and SP B port 0SP B port 0Zone 2

In Figure 4 on page 26, three copy sessions are running. The session copying data fromLUN2 to LUN 4 is using zone 1. The session copying data from LUN 3 to LUN 1 is using zone 2.The third session, LUN 2 to LUN 1 requires no zoning.

Figure 4. Recommended zoning based on limiting login resources

Single-initiator zoning examples without and with SAN Copy installed

A single-initiator zone includes only one host or SAN Copy initiator.

The two exceptions to the single-initiator rule for SAN Copy are:

◆ Never place more than one SAN Copy port in the same zone unless two SAN Copystorage systems are in the domain, and each storage system is acting as both the SANCopy storage system and the remote storage system to the other.

◆ Never place a SAN Copy port in the same zone as the host unless the host HBA initiatoris connected to the SAN Copy port for the purpose of host I/O.

Figure 5 on page 27 shows an example of single-initiator zoning between a server and twostorage systems for the purpose of data I/O. Neither storage system is a SAN Copy storagesystem. In this example, zone 1 includes the HBA initiator port and a target port on each SPin both storage systems.

26 EMC SAN Copy Command Line Interface

SAN Copy Configuration Guidelines

Page 27: EMC SAN Copy Command Line Interface - Dell EMC Finland · sancopy-settings ... managed by Navisphere management ... Command Line Interface EMC SAN Copy Command Line Interface. EMC

Figure 5. Sample single-initiator zoning without SAN Copy

If you install SANCopy on one of the storage systems in the previous example, change yourzoning to the configuration shown in Figure 6 on page 27. This example shows each SANCopy port in a separate zone with the host initiator (zones 2 and 3). If you keep the zoningas it was in Figure 5 on page 27, additional login resources will be consumed for the ports,even if you are not currently using SAN Copy.

Figure 6. Sample single-initiator zoning with SAN Copy installed

Figure 7 on page 28 shows an example of single-initiator zoning between a server and twostorage systems for the purpose of data I/O and SANCopy data transfer. One of the storagesystems is a SAN Copy storage system. In this example, the hosts are in zones with allnecessary target ports, including SAN Copy ports (zones 1,2, 3 and 6), and the SAN Copyports are in separate zones with the remote ports they must access (zones 4 and 5). The sixzones are configured as follows:

Fibre Channel zoning requirements and recommendations 27

SAN Copy Configuration Guidelines

Page 28: EMC SAN Copy Command Line Interface - Dell EMC Finland · sancopy-settings ... managed by Navisphere management ... Command Line Interface EMC SAN Copy Command Line Interface. EMC

Figure 7. Sample single-initiator zoning with SAN Copy installed and configured

Preparing a CLARiiON storage system for a copy session

If youwill be copying data between CLARiiON storage systems or between CLARiiON andSymmetrix storage systems, follow the SANCopy configuration requirements on SANCopyconfiguration requirements on page 20, and prepare the CLARiiON storage systems asdescribed in the following procedure. You can use logical units (LUNs) in a CLARiiONstorage system as the source or destination of SAN Copy sessions.

If youwill be copying data between LUNswithin a CLARiiON storage system, see Copyingdata between LUNs within a CLARiiON storage system on page 22.

Note: For all sessions, you must install SAN Copy software on at least one of the CLARiiON storagesystems. For incremental copy sessions, the source logical unit must reside in the SAN Copy storagesystem.

1. For Fibre Channel replication, use the native switch management tools to zone at leastone port from an SP on the SAN Copy storage system to one or more SP ports on theparticipating remote storage systems (see Fibre Channel zoning requirements andrecommendations on page 23).

For iSCSI replication, create connection sets. A connection set establishes a replicationsession between an iSCSI initiator and an iSCSI target. A connection set consists of auniqueuser-definedname, optional usernameandpassword (secret),method for assigningsecurity credentials (connection specific, array-shared or none), and one or moreconnection paths. Each connection set should include only one iSCSI initiator.

Note: SAN Copy ports act as host initiators to remote storage systems (storage system withoutSAN Copy software).

28 EMC SAN Copy Command Line Interface

SAN Copy Configuration Guidelines

Page 29: EMC SAN Copy Command Line Interface - Dell EMC Finland · sancopy-settings ... managed by Navisphere management ... Command Line Interface EMC SAN Copy Command Line Interface. EMC

2. Register the SANCopyportswith any other SP ports in the same zone using the navisecclior navicli -h spname sancopy -updateconnections command (see sancopy-updateconnections on page 83).

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

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

naviseccli -h spname -port -list

where spname is the name of an SP in the SAN Copy storage system.

Note: To use this command with navicli, replace naviseccli with navicli.

4. Connect the SAN Copy ports to CLARiiON storage groups (see the next section,Connecting SAN Copy ports to CLARiiON storage groups on page 29).

Connecting SAN Copy ports to CLARiiON storage groups

Note: Each SAN Copy port acts like a host initiator and, therefore, can connect to only one storagegroup at a time in a storage system.

In order for the LUNs to be accessible to the SAN Copy ports, you must connect the SANCopy ports to the storage groups in which the LUNs reside.When connecting to the storagegroup, SAN Copy lets you select all available SP ports with valid connections to the storagegroup, or it lets you select specific ports.

If all participating logical units of a remote storage system already belong to the same storagegroup, you can connect SAN Copy ports to the existing storage group. However, if thelogical units belong to different storage groups, we recommend that you create one or morenew storage groups, place the logical units in these storage groups, and then connect SANCopy ports to them. This is the only time we recommend placing the same logical unit inmore than one storage group.

Note: Some operating systems do not support the same host accessing identical LUNs. Therefore, onceSAN Copy completes the copy session, we recommend that you move any LUN copies to differentstorage groups.

Preparing a CLARiiON storage system for a copy session 29

SAN Copy Configuration Guidelines

Page 30: EMC SAN Copy Command Line Interface - Dell EMC Finland · sancopy-settings ... managed by Navisphere management ... Command Line Interface EMC SAN Copy Command Line Interface. EMC

For more information on the following CLI commands, refer to the EMC Command LineInterface (CLI) Reference.To use the navicli CLI command, replace naviseccli with navicli.

1. Use the following command to create storage groups:

naviseccli -h spname storagegroup -create -gname storagegroupname

2. Use the following command to add LUNs to storage groups:

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

3. Use the following command (with information from the previous naviseccli -port -listcommand) to add the SAN Copy ports to storage groups:

naviseccli -h spname storagegroup -setpath -gname storagegroupname -hbauid

hbawwn -sp a or b -spport portnumber

If the sharing state of the storage group is Dedicated (only a single host can access theLUNs in the storage group), you must also specify one of the following switches; -hosthostname, or -ip ipaddress where:

Figure 8 on page 31 shows a sample storage group configuration for SAN Copy. Theremote storage system includes three storage groups labeled SG 1, SG 2 and SG 3. SG 1and SG 2 provide I/O access to the LUNs from the attached hosts. SG 3 is a SAN Copystorage group.

In this example, we start with two SAN Copy sessions running concurrently. The LUNsin storage group 1 (LUN 1 and LUN 2) are participating in both sessions. Source LUN 1on the SAN Copy storage system is copying data to LUN 1 in SG 1, and LUN 2 in SG 1is copying data to the destination LUN on the SAN Copy system. Since both LUN 1 andLUN 2 belong to the same storage group, you can connect the same SAN Copy portdirectly to this storage group and both sessions can use this SAN Copy port.

In the future, you may want to start a third session that copies data from source LUN 2to LUN 3 using the same SAN Copy port. Since LUN 3 is in a different storage group,we recommend that you create a new storage group (SG 3) for the SAN Copy sessions,and place LUN 1, LUN 2 and LUN 3 in this storage group. This is the only time werecommend placing the same logical unit in more than one storage group.

Note: Some operating systems do not support the same host accessing identical LUNs. Therefore,once SAN Copy completes the copy session, we recommend that you move any LUN copies todifferent storage groups.

30 EMC SAN Copy Command Line Interface

SAN Copy Configuration Guidelines

Page 31: EMC SAN Copy Command Line Interface - Dell EMC Finland · sancopy-settings ... managed by Navisphere management ... Command Line Interface EMC SAN Copy Command Line Interface. EMC

Figure 8. Sample SAN Copy storage group configuration

Preparing a Symmetrix storage system for a copy session

You can use logical units (volumes) in Symmetrix storage systems as the source or destinationof a full SAN Copy session. For incremental sessions, the source logical units must residein a SAN Copy storage system. In order to prepare a Symmetrix storage system for SANCopy sessions, you must follow the SAN Copy configuration requirements and restrictionson SAN Copy configuration requirements on page 20, and use one of the followingprocedures.

Preparing a Symmetrix storage system using EMC ControlCenter SANManager

Note: To complete this procedure, youmust be familiarwithNavisphereManager, EMCControlCenter®SANManager, and Solutions Enabler Device Manager CLI.

1. Use EMC ControlCenter SANManager 5.2 or higher to zone at least one port from anSP on the SAN Copy storage system to one or more FA ports on the participatingSymmetrix storage systems (see FibreChannel zoning requirements and recommendationson page 23).

Preparing a Symmetrix storage system for a copy session 31

SAN Copy Configuration Guidelines

Page 32: EMC SAN Copy Command Line Interface - Dell EMC Finland · sancopy-settings ... managed by Navisphere management ... Command Line Interface EMC SAN Copy Command Line Interface. EMC

Note: You can also use the native switchmanagement tools to zone a CLARiiON SP to one or moreSymmetrix FA ports.

2. Verify that the host:◆ Has access to the Symmetrix volumes that are participating in the SAN Copy session◆ Is running the Navisphere Host Agent◆ Is connected to a CLARiiON storage system in the domain◆ Is part of a portal configuration within the domain. For information about portals,

refer to the Navisphere Manager online help.

3. UseNavisphereManager to register the SANCopyportswith Symmetrix storage systems:

a. In the Storage tree of the Enterprise Storage window, right-click the icon for the SANCopy storage system.

b. Select SAN Copy > Update Connections.

The SAN Copy ports log in to the Symmetrix storage ports.

4. To verify that the SAN Copy ports have registered with the Symmetrix storage system,use the Solutions Enabler CLI command:

symmask -sid symmID list logins

where symmID is the Symmetrix serial ID.

Note: Use the SymmCLI command sympd list -sid to determine the pathname for theVCMdatabase,or run inq on the host, if available.

5. Use the following Solutions Enabler symmask command to assign Symmetrix volumesto the SAN Copy ports:

symmask -sid symmID -wwn clariionSPportWWN add devs SymDevname|SymDevname-dir <#> -p <#>

For example:

symmask -sid 0128 -wwn 11:22:33:44:55:66:77:88 add devs 0014,0015 -dir16a -p 0

32 EMC SAN Copy Command Line Interface

SAN Copy Configuration Guidelines

Page 33: EMC SAN Copy Command Line Interface - Dell EMC Finland · sancopy-settings ... managed by Navisphere management ... Command Line Interface EMC SAN Copy Command Line Interface. EMC

Preparing a Symmetrix storage system using ESN Manager

Note: To complete this procedure, you must be familiar with both Navisphere Manager and ESNManager.

1. Use the native switchmanagement tools to zone at least one port from an SP on the SANCopy storage system to one or more FA ports on the participating Symmetrix storagesystems (see Fibre Channel zoning requirements and recommendations on page 23).

Note: SAN Copy ports act as host initiators to remote storage systems (storage system withoutSAN Copy software).

2. Use ESN Manager version 2.1 to place the CLARiiON SAN Copy ports on the host sideof the topology view.◆ If this is a new installation of the CLARiiON storage system, complete steps a through

d in the following procedure.◆ If ESNManager has already discovered the CLARiiON storage system and it is visible

on the storage side of the topology view, complete steps b through d.

Note: ESNManagerwill not allow theCLARiiONSANCopyports (SP ports being used as initiators)to access the Symmetrix volumes unless the CLARiiON ports are visible on the host side of thetopology view.

a. Configure ESN Manager to discover the CLARiiON storage system.

Once ESNManager discovers the storage system, it places an icon for it on the storageside of the topology view.

b. Use ESN Manager to move the storage system to the host side of the topology view.

i. In the Tools menu, select Options > Out Band.

ii. In the Out-Band dialog box, select the CLARiiON storage system and clear theEnable checkbox.

Icons for the CLARiiON SANCopy ports are displayed as hosts in the topology view.

3. Verify that the host with access to the Symmetrix volumes that are participating in theSAN Copy session is running the Navisphere Host Agent, and is either:◆ Connected to a CLARiiON storage system in the domain

or

Preparing a Symmetrix storage system for a copy session 33

SAN Copy Configuration Guidelines

Page 34: EMC SAN Copy Command Line Interface - Dell EMC Finland · sancopy-settings ... managed by Navisphere management ... Command Line Interface EMC SAN Copy Command Line Interface. EMC

◆ Part of a portal configuration within the domain. For information about portals, seethe online help or the EMC Command Line Interface (CLI) Reference.

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

The SAN Copy ports log in to the Symmetrix storage ports.

5. To verify that the SAN Copy ports have registered with the Symmetrix storage system,use the Symmetrix CLI command:

fpath lshist -d physicaldrive

where physicaldrive is the location of the VCM database on this host.

Note: Use the SymmCLI command fpath lshostdev to determine the pathname for the VCMdatabase, or run inq on the host, if available.

6. Use ESN Manager to assign Symmetrix volumes to the SAN Copy ports.

Note: This is the same as assigning volumes to the host initiator.

7. Use ESNManager to move the CLARiiON storage system back to the storage side of thetopology view.

8. To verify that the SAN Copy port has access to the Symmetrix remote volumes, click theSANCopyport entry and, in the volumes panel,make sure that ESNManager surroundsany volumes that are accessible to the SP port with solid blue squares.

If you are copying data to a third-party storage system, use the third-party storage systemmanagement documentation to:

◆ Verify that the SAN Copy initiator has logged in to the storage system◆ Provide access to the volume on the third-party storage system to the SAN Copy

initiator

34 EMC SAN Copy Command Line Interface

SAN Copy Configuration Guidelines

Page 35: EMC SAN Copy Command Line Interface - Dell EMC Finland · sancopy-settings ... managed by Navisphere management ... Command Line Interface EMC SAN Copy Command Line Interface. EMC

3

Using the Admhost Utilitywith SAN Copy

This chapter explains how to use the Admhost Utility.

Major topics include:◆ About Admhost for SAN Copy on page 36◆ Admhost SAN Copy command functions on page 36◆ Preparing logical units for a SAN Copy session on page 36

EMC SAN Copy Command Line Interface 35

Page 36: EMC SAN Copy Command Line Interface - Dell EMC Finland · sancopy-settings ... managed by Navisphere management ... Command Line Interface EMC SAN Copy Command Line Interface. EMC

About Admhost for SAN Copy

The Admhost Utility is an executable program that you can run interactively with a script.The admhost commands can activate and deactivate the source and destination logical unitsbeing used in a SAN Copy session, and can flush data from operating system buffers toensure that the information on the source logical unit is current.

Note: Currently, Admhost is supported only on the followingMicrosoftWindows platforms:WindowsServer 2003, and Windows 2000. For the supported versions of these operating systems, see the SANCopy Release Notes, or the EMC Admhost Release Notes.

Admhost SAN Copy command functions

Admhost SAN Copy command functions on page 36 lists the admhost commands anddescribes their function in SAN Copy sessions.

Note: TheAdmhostUtility is not supported on aUNIX host. Use the commands your operating systemnormally uses to discover new logical units, flush buffers, and unmount the logical units.

Preparing logical units for a SAN Copy session

Before you start a full SANCopy session, and before youmark an incremental copy session,you must prepare the source and destination logical units that will be participating in thesession. For a SAN Copy session with logical units connected to a Windows server, use theAdmhost Utility. For all other types of servers, use the command specific to the server’soperating system.

Use the following procedures to prepare source and destination logical units for full andincremental sessions.

Preparing source and destination logical units for full and incrementalsessions

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

1. Stop all I/O to the source and destination logical units.

36 EMC SAN Copy Command Line Interface

Using the Admhost Utility with SAN Copy

Page 37: EMC SAN Copy Command Line Interface - Dell EMC Finland · sancopy-settings ... managed by Navisphere management ... Command Line Interface EMC SAN Copy Command Line Interface. EMC

Note: For incremental copy sessions, we strongly recommend that you stop all I/O to the sourcelogical unit, and flush any server buffers prior to starting/marking the session. Once you receiveconfirmation that the mark or start session operation was successful, you can resume I/O to thesource LUN.If you do not stop all I/O and flush the server buffers to the source logical unit, the resultant datacopy will be "crash consistent." This means that the contents of the copy will be similar to thecontents left on a logical unit if the server crashes. You may be required to use the fsck or similarutility to make the data copy mountable. In this situation, the data copy may not contain theunflushed server data.

2. From the servers connected to any destination logical units, flush the host buffers anddisconnect the logical units from the server by doing one of the following:

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

◆ On a Windows Server 2003, or Windows 2000 host, use the following command toflush the host buffers and write the data to disk:

admhost lun_flush -o destination drive letter

For example, to flush the host buffers on drive F:, enter the following command:

admhost lun_flush -o F:

◆ On a Windows Server 2003 or Windows 2000 host, use the following command totake the disk offline:

admhost lun_deactivate -o destination -drive letter

For example, to take drive F: offline, enter the following command:

admhost lun_deactivate -o F:

◆ On a UNIX server, use the unmount command to unmount the file system on anydestination logical units.

◆ On aNetWare server, use the dismount command to dismount the file system on anydestination logical units.

3. From the server connected to the source logical units, deactivate source logical unit, flushthe server buffers and disconnect the source logical units from the server by doing oneof the following:

Note: If you want to maintain read access to the source logical unit, skip this step.

◆ On a Windows Server 2003 or Windows 2000 host, use the following command toflush the host buffers and write the data to disk:

Preparing logical units for a SAN Copy session 37

Using the Admhost Utility with SAN Copy

Page 38: EMC SAN Copy Command Line Interface - Dell EMC Finland · sancopy-settings ... managed by Navisphere management ... Command Line Interface EMC SAN Copy Command Line Interface. EMC

admhost lun_flush -o source -drive letter

For example, to flush the host buffers on drive F:, enter the following command:

admhost lun_flush -o F:

◆ On a Windows Server 2003, or Windows 2000 host, use the following command totake the disk offline:

admhost lun_deactivate -o source -drive letter

For example, to take drive F: offline, enter the following command:

admhost lun_deactivate -o F:

◆ On a UNIX server, use the umount command to unmount the file system on anysource logical units.

◆ On aNetWare server, use the dismount command to dismount the file system on anysource logical units.

38 EMC SAN Copy Command Line Interface

Using the Admhost Utility with SAN Copy

Page 39: EMC SAN Copy Command Line Interface - Dell EMC Finland · sancopy-settings ... managed by Navisphere management ... Command Line Interface EMC SAN Copy Command Line Interface. EMC

4

SAN Copy CLI Commands

This chapter explains the sancopy commands used with naviseccli ornavicli CLI commands to manage the SAN Copy software. Thesecommands function only with a storage system that has the optional SANCopy software installed.

Topics are:◆ SAN Copy command functions on page 40◆ About Secure CLI on page 40◆ naviseccli on page 41◆ About Classic CLI on page 45◆ navicli on page 45◆ sancopy -create on page 48◆ sancopy -destinfo on page 53◆ sancopy -duplicate on page 58◆ sancopy -info on page 59◆ sancopy -mark on page 63◆ sancopy -modify on page 64◆ sancopy -pause on page 71◆ sancopy -remove on page 72◆ sancopy -resume on page 73◆ sancopy -settings on page 75◆ sancopy -start on page 77◆ sancopy -stop on page 78◆ sancopy -throttle on page 80◆ sancopy -transfer on page 81◆ sancopy -unmark on page 82◆ sancopy -updateconnections on page 83◆ sancopy -verify on page 84

EMC SAN Copy Command Line Interface 39

Page 40: EMC SAN Copy Command Line Interface - Dell EMC Finland · sancopy-settings ... managed by Navisphere management ... Command Line Interface EMC SAN Copy Command Line Interface. EMC

SAN Copy command functions

The EMC Navisphere CLI provides one of the two interfaces to the SAN Copy software.The Navisphere Manager UI provides the other. The CLI command is naviseccli sancopyor navicli sancopy and you specify functions with switches.

The sancopy command functions, listed alphabetically, are:

◆ sancopy -create

◆ sancopy -destinfo

◆ sancopy -duplicate

◆ sancopy -info

◆ sancopy -mark

◆ sancopy -modify

◆ sancopy -pause

◆ sancopy -remove

◆ sancopy -resume

◆ sancopy -settings

◆ sancopy -start

◆ sancopy -stop

◆ sancopy -throttle

◆ sancopy -transfer

◆ sancopy -unmark

◆ sancopy -updateconnections

◆ sancopy -verify

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

About Secure CLI

Note: You can target naviseccli sancopy commands to sessions that belong to either storage processor.For example if session1 belongs to SPA, you can issue the naviseccli –h SPBName sancopy –info –namesession1 command to SP B and get the session1 information.

Secure CLI is a comprehensive Navisphere CLI solution that provides one application andone security model for all CLI commands. Secure CLI combines key features of the existing

40 EMC SAN Copy Command Line Interface

SAN Copy CLI Commands

Page 41: EMC SAN Copy Command Line Interface - Dell EMC Finland · sancopy-settings ... managed by Navisphere management ... Command Line Interface EMC SAN Copy Command Line Interface. EMC

Classic (see About Classic CLI on page 45) and Java CLI functionalities. Similar to ClassicCLI, you do not need to install a JRE to run Secure CLI. Secure CLI implements the securityfeatures of Java CLI, providing role-based authentication, audit trails of CLI events, andSSL-based data encryption.

Note: Secure CLI is not supported on all operating systems. Refer to the Host Agent/CLI release notes,available on Powerlink, for a list of supported operating systems. You must be running FLARE®

Operating Environment version 02.19.xxx.5.yyy or higher.

Secure CLI commands run in a commandwindow. Each command consists of the navisecclicommand (and switches) together with another subcommand (and its switches). Thenaviseccli command replaces navicli (Classic CLI) and java-jar navicli.jar (Java CLI) in thecommand line and, in general, preserves the original command syntax and output for scriptcompatibility.

Note: For commands that originated in Classic CLI, some command output may be enhanced; forexample, Secure CLI can retrieve and display information from peer SPs. For Classic CLI commandsthat produce multiple warnings and require multiple confirmations, Secure CLI provides a singlesummary of warnings and a single confirmation.

Formore information on the SecureCLI functionality, refer to theEMCCommand Line Interface(CLI) Reference.

naviseccli

Sends status or configuration requests to a storage system from a command line

PREREQUISITES

Anyone that can log in to the host running Navisphere CLI 6.X or later.

DESCRIPTION

The naviseccli command sends storage-system management and configuration requests toa storage system with the Internet.

CMD switches

The CMD switches are described on the pages that follow.

Spaces in arguments

Normally, each argument to a CLI command consists of numbers, letters, and other validprintable characters for the operating system on which the CLI is running.

If a filename or other argument includes a space, you must enclose the entire string thatincludes the name in quotation marks ("xx xx").

naviseccli 41

SAN Copy CLI Commands

Page 42: EMC SAN Copy Command Line Interface - Dell EMC Finland · sancopy-settings ... managed by Navisphere management ... Command Line Interface EMC SAN Copy Command Line Interface. EMC

SYNTAX

naviseccli -help

naviseccli [-addressIPaddress|NetworkName|-hIPaddress|NetworkName][-AddUserSecurity][-ffilename][-m][-nopoll|-np][-parse|-p][-passwordpassword][-portport][-q][-RemoveUserSecurity][-scope0|1|2|3][-timeout|-ttimeout][-userusername][-v][-xml]CMD [optional_command_switches]

OPTIONS

-help

Displays the help screen and does not start the naviseccli process. To start the naviseccliprocess, use one or more of the switches that follow instead.

-address IPaddress|NetworkName|-h IPaddress|NetworkName

Specifies the IP address or network name of the targeted SP on the desired storagesystem. The default, if you omit this switch, is localhost.

-AddUserSecurity

Directs the CLI to add user security information to the security file on this host. Youmust use the -scope switch to add scope information to the security file. You can usethe -password switch or enter your password into the password prompt (see -password),to supply the required password information to the security file. The -user and-secfilepath switches are optional with this command.

Note: If you specify the -user switch, you can create an alternative username to your host loginname in the security file you create on this host. If you use the -secfilepath switch, you can specifyan alternative location to your default home directory, for the security file on this host. You mustthen use the -secfilepath switch in each subsequent command you issue.

-f filename

Specifies that data be stored in a file.

42 EMC SAN Copy Command Line Interface

SAN Copy CLI Commands

Page 43: EMC SAN Copy Command Line Interface - Dell EMC Finland · sancopy-settings ... managed by Navisphere management ... Command Line Interface EMC SAN Copy Command Line Interface. EMC

-m

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

Note: Only supported for commands that originated in Classic CLI.

-nopoll|-np

Directs the feature provider not to issue a poll request. This switch significantly increasesperformancewhen dealingwith large ormultiple storage systems. The feature providerautomatically polls unless this switch is specified.

Note: When the -nopoll switch is set, get commandsmay return stale data and set commandsmayerase previously changed settings. Use caution when the -nopoll switch is set.

-parse |-p

Directs the CLI to validate the command. The CLI verifies the command syntax anddisplays a message stating whether the command was valid. The CLI takes no otheraction.

-password password

Specifies the password on the storage system you want to log in to. The password isvisible in the command line. Passwords are case sensitive.

If you want to mask the password, and you are not using a security file, you can omitthis switch from the command line. The CLI then prompts you to enter a password. Theinformation you enter into the password prompt is concealed.

Note: You can omit this switch if you are using a security file. See -AddUserSecurity.

-port portnumber

Sets the port number (type) of the storage system. The default is 443. If you choose tochange the default port number, management port 2163 will be supported; however,youwill need to specify the -port switch and number 2163 in every subsequent commandyou issue.

-q

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

Note: Only supported for commands that originated in Classic CLI.

-RemoveUserSecurity

naviseccli 43

SAN Copy CLI Commands

Page 44: EMC SAN Copy Command Line Interface - Dell EMC Finland · sancopy-settings ... managed by Navisphere management ... Command Line Interface EMC SAN Copy Command Line Interface. EMC

Directs the CLI to remove user security information about the current user from thesecurity file on this host.

-scope 0|1|2

Specifies whether the user account on the storage system you want to log in to is local,global, or lightweight directory access protocol (LDAP) where 0 (default) indicatesglobal, 1 indicates local, and 2 indicates LDAP. For authenticationwithin the local securitydirectory, specify global or local scope.

A global account is effective throughout the domain. When the administrator creates aglobal account, the software copies the definition of this account to the domain directory,which makes it accessible on all storage systems in the domain.

A local account is effective on only the storage systems for which the administratorcreates the account. The user can log in to only those storage systems on which he hasa local account.

LDAP maps the username/password entries to an external LDAP or active directoryserver for authentication. Username/password pairs whose roles are not mapped to theexternal directory will be denied access.

-secfilepath filepath

Stores the security file in a file path location you specify. When you create a security fileon a host using the -addusersecurity command, the security file is saved to your defaulthome directory. If you want to store the security file in an alternative location, you canuse the optional -secfilepath switch with the -addusersecurity command.

Note: If you use the -secfilepath switch to set up an alternative path for your security file, youmust use this switch in every subsequent CLI command you issue to ensure the CLI locates thesecurity file.

-timeout |- t timeout

Sets the timeout value in seconds. The default is 600 seconds.

-user username

Specifies the username on the storage system you want to log in to. Usernames are casesensitive. You can omit this if your username has been added to the security file.

Note: You can use this switch when establishing a security file to specify an alternative username.See -AddUserSecurity.

-v

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

44 EMC SAN Copy Command Line Interface

SAN Copy CLI Commands

Page 45: EMC SAN Copy Command Line Interface - Dell EMC Finland · sancopy-settings ... managed by Navisphere management ... Command Line Interface EMC SAN Copy Command Line Interface. EMC

Note: Only supported for commands that originated in Classic CLI.

-xml

Specifies command output in XML format. Use the -o (override switch)when specifying-xml on commands that require confirmation. Otherwise, the XML output will containyour confirmation string.

CMD

One of a set of commands used with the naviseccli command.

About Classic CLI

Note: Starting with the 02.26 and 03.26 releases of FLARE, Classic CLI can be disabled with the NaviUI or a Secure CLI command. Only Secure CLI supports new features. Secure CLI is more secure thanClassic CLI and is the preferred interface. Other than commands issued to host agents, the 02.26 and03.26 versions of Secure CLI include all the same commands as Classic CLI. If you plan to use ClassicCLI commands, you must make sure that Classic CLI is enabled using the Navisphere Manager UI orSecure CLI command. For a list of commands that Secure CLI does not support, refer to Appendix Bin the EMC Command Line Interface (CLI) Reference.

Classic CLI commands run in a command window. Each command consists of the naviclicommand (and switches) togetherwith another subcommand (and its switches). The naviclicommand does nothing when executed by itself. However, when you use it in combinationwith the other commands described in this manual, you can configure and manage anystorage system supported by Navisphere CLI version 6.X.

If a CLI command fails and the CLI does not generate its own error message, it displays anerror message generated by the host agent or SP agent. The CLI generates errors aboutcommand line syntax for commands and options and their values.

navicli

Sends status or configuration requests to the storage system from the command line

PREREQUISITES

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

DESCRIPTION

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

About Classic CLI 45

SAN Copy CLI Commands

Page 46: EMC SAN Copy Command Line Interface - Dell EMC Finland · sancopy-settings ... managed by Navisphere management ... Command Line Interface EMC SAN Copy Command Line Interface. EMC

Before you can use Navisphere SANCopy CLI commands to configure a storage system (asopposed to receive storage-system configuration or status information), you must be aprivileged user in the SP agent configuration file on each SP in the storage system.

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 isrunning. 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 mustenclose 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 -hss1_spa convertEMlog -pathname "G:\logs\c 4.log" -20

RaidAgent environment variables: The 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 naviclicommand. Note that RaidAgentDevice and the -d switch are ignored on CX series andFC4700 storage systems. If you do not set RaidAgentTimeout and omit the -t switch, thedefault timeout value is 240 seconds.

Error codes: The navicli commandmight return any of a numeric sequence of errors explainedin Appendix A of this manual (for SAN Copy errors) or the EMC Command Line Interface(CLI) Reference (for other errors).

SYNTAX

navicli -help

navicli [-ddevice][-ffilename]-hhostname][-help][-m][-np][-p][-ttimeout]-[v|q]CMD [optional-command-switches]

OPTIONS

-help

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

-d device

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

-f filename

46 EMC SAN Copy Command Line Interface

SAN Copy CLI Commands

Page 47: EMC SAN Copy Command Line Interface - Dell EMC Finland · sancopy-settings ... managed by Navisphere management ... Command Line Interface EMC SAN Copy Command Line Interface. EMC

Specifies that data be stored in a file.

-h hostname

Specifies the hostname of the storage-system SP or server. For a CX series storage system,each SP is a host; therefore the hostname is the IP address or network name of thedestination SP. For pre-FC4700 storage systems, the hostname is the server hostnameor network address. The environment variable RaidAgentHost is the default for theserver 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 ascript.

-np

Suppresses polling on initial contact with the agent. This switch significantly increasesperformance when dealing with large or multiple storage systems. The agentautomatically polls unless this switch is specified.

Note: When the -np switch is set, get commands may return stale data and set commands mayerase 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 thestring does not parse correctly, an error message prints to stderr; otherwise a messageverifying that the string parsed correctly prints to stdout.

-q

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

-t timeout

Sets the timeout value. timeout specifies the value in seconds. The default timeout valueis 240 seconds unless the RaidAgentTimeout environment variable (described on thefollowing page) is set differently. The timeout value includes the time allowed for theentire command to execute (includingCLI, agent, and storage-system software executiontime). 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 astorage system. The CMD (command) switches are described on the pages that follow.

navicli 47

SAN Copy CLI Commands

Page 48: EMC SAN Copy Command Line Interface - Dell EMC Finland · sancopy-settings ... managed by Navisphere management ... Command Line Interface EMC SAN Copy Command Line Interface. EMC

EXAMPLE

The following examples show sample environment variable settings:

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

set RaidAgentDevice \\.\A-9162244

set RaidAgentHost server1 (or for CX series/FC4700, ss1_spa)

set RaidAgentTimeout 45

sancopy -create

Creates full and incremental SAN Copy sessions

PREREQUISITES

For naviseccli, you must have a user account on the storage system on which you wantto execute the command.

For navicli, youmust have a username/host entry in theNavisphere SPAgent configurationfile to use this command.

DESCRIPTION

Note: In addition to all the sancopy -create command switches, the sancopy -create -incrementalcommand uses the following optional switches: -changesonly, -linkbw, and -latency (See “Incrementalsessions” on page 71)

The naviseccli or navicli sancopy commandwith the -create switch creates a full SANCopysession. A full session copies all the data on the source LUN to the destination logical units.Whenusedwith the optional -incremental switch, the -create command creates an incrementalSAN Copy session. An incremental session copies only the data that has changed since thelast copy session. This command supports thin LUNs as either source or target in the storagesystems, if the storage system executing the CLI command (or the target storage system) isrunning committed bundle that supports SanCopy with thin LUNs.

Note: 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 lunmapinfoexplained in the CLI reference manual.

48 EMC SAN Copy Command Line Interface

SAN Copy CLI Commands

Page 49: EMC SAN Copy Command Line Interface - Dell EMC Finland · sancopy-settings ... managed by Navisphere management ... Command Line Interface EMC SAN Copy Command Line Interface. EMC

SYNTAX

sancopy-create [-incremental] -namesessionName

-srcwwnsource-lun-wwn|-srclunsource-spsourcelunnumber[-devicedevicename]

-srcportwwndestportwwndestlunnumber

-destwwndest-lun-wwn|-destlunnumberdest-spdestlunnumber|-destportwwndestportwwndestlunnumber [-start][-throttle n][-verify][-o]

OPTIONS

-name sessionName

Specifies the SAN Copy session name. The name can be up to 64 characters and mustbe unique on a per-storage-system basis. The names you create persist until you removethem.

For incremental SANCopy sessions, SANCopy creates a corresponding reserved session.The name assigned to the reserved session consists of the SAN Copy session nameprependedwith the text "SANCopy_". This text is included in the 64-character limit. Forexample, if a SANCopy session has the name june_update, the nameof the correspondingreserved session is SANCopy_june_update.

-srcwwn source-lun-wwn

Note: For incremental sessions, the source LUN cannot be a SnapView snapshot, and it cannot beon a remote system. For incremental sessions, the source LUN must reside in the SAN Copystorage system.

Specifies the World Wide Name (WWN) of the source logical unit (LUN or snapshot)that will participate in the session. For full copy sessions, the source logical unit canreside in either the SANCopy storage system or the remote storage system. If the sourcelogical unit does not reside in the storage system specified by the -h switch all destinationlogical units must reside in the storage system specified with -h.

By default, the connection type for the specified source logical unit will be set tofibrepreferred. This sets the connection type to fibre or iSCSI (if fibre path could not befound) each time you start or resume a session. You can change the connection typeusing one of the following switches: -fibre or -iscsi.

Note: If the source logical unit does not reside in a remote storage system, setting the connectiontype will be ineffective.

-fibre

sancopy -create 49

SAN Copy CLI Commands

Page 50: EMC SAN Copy Command Line Interface - Dell EMC Finland · sancopy-settings ... managed by Navisphere management ... Command Line Interface EMC SAN Copy Command Line Interface. EMC

Sets the source logical unit’s connection type to Fibre

-iscsi

Sets the source logical unit’s connection type to iSCSI

-srclun s ource-sp sourcelunnumber

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

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

By default, the connection type for the specified source logical unit will be set tofibrepreferred. This sets the connection type to fibre or iSCSI (if fibre path could not befound) each time you start or resume a session. You can change the connection typeusing one of the following switches: -fibre or -iscsi.

Note: If the source logical unit does not reside in a remote storage system, setting the connectiontype will be ineffective.

-fibre

Sets the source logical unit’s connection type to Fibre

-iscsi

Sets the source logical unit’s connection type to iSCSI

-device devicename

Note: This command is required for pre-FC4700 storage systems.

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

-srcportwwn srcportwwn srclunnumber

Valid only for specifying source LUNs that reside in supported non-EMCstorage systems.For srcportwwn, specify the World Wide Name of the SP port on the source storagesystem that owns the source LUN; for srclunnumber specify the number of the sourceLUN.

-destwwn dest-lun-wwn

Specifies which logical unit will be the destination of the copy. You can specify morethan one destination logical unit if you want more than one copy of the source logical

50 EMC SAN Copy Command Line Interface

SAN Copy CLI Commands

Page 51: EMC SAN Copy Command Line Interface - Dell EMC Finland · sancopy-settings ... managed by Navisphere management ... Command Line Interface EMC SAN Copy Command Line Interface. EMC

unit. If the destination logical units are not reachable by the client system, and you didnot use the -o function, the CLI will display a warning and ask for confirmation.

By default, the connection type for the specified destination logical unit will be set tofibrepreferred. This sets the connection type to fibre or iSCSI (if a fibre path could notbe found) each time you start or resume a session. You can change the connection typewith one of the following switches: -fibre or -iscsi.

Note: If the destination logical unit does not reside in a remote storage system, setting the connectiontype will be ineffective.

-fibre

Sets the destination logical unit’s connection type to fibre.

-iscsi

Sets the destination logical unit’s connection type to iSCSI.

-destlunnumber dest-sp destlunnumber

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; fordestlunnumber, specify the LUNnumber. Aswith -destwwn, you can specifymore thanone 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 thelogical unit on the SP, it returns an error.

By default, the connection type for the specified destination logical unit will be set tofibrepreferred. This sets the connection type to fibre or iSCSI (if a fibre path could notbe found) each time you start or resume a session. You can change the connection typewith one of the following switches: -fibre or -iscsi.

Note: If the destination logical unit does not reside in a remote storage system, setting the connectiontype will be ineffective.

-fibre

Sets the destination logical unit’s connection type to fibre.

-iscsi

Sets the destination logical unit’s connection type to iSCSI.

-destportwwn destportwwn destlunnumber

Valid only for specifying destination LUNs that reside in supported non-EMC storagesystems. For destportwwn, specify the World Wide Name of the SP port on thedestination storage system that owns the destination LUN; for destlunnumber specifythe number of the destination LUN.

sancopy -create 51

SAN Copy CLI Commands

Page 52: EMC SAN Copy Command Line Interface - Dell EMC Finland · sancopy-settings ... managed by Navisphere management ... Command Line Interface EMC SAN Copy Command Line Interface. EMC

-start

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

-throttle n

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

-verify

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

-o

Suppresses a message asking you to confirm that you want to create a session now.

-incremental

The following optional switches are used only with the sancopy -create -incrementalcommand:

-changesonly

If the source LUN and destination LUNs are synchronized when you create the session,use this switch. When you start the session, SAN Copy will copy only the changes thathave occurred to the source LUN since the initial synchronization, and any subsequentsessions will copy only the changes.

If the source LUN and destination LUNs are not synchronized (or you are unsure of thecopy state), do not use this switch. The first time you run the session, SAN Copy willcopy the entire source LUN to the destination LUNs. Any subsequent sessionswill copyonly the changes.

-linkbw

Specifies the available link bandwidth for the copy session. You can use the entirebandwidth of your network connection for incremental SAN Copy sessions, or you canspecify only a portion of it.

For CX3 series storage systems, the minimum allowable value is .016 Mb/s and themaximumvalue is 4096. For all other CX series storage systems, theminimumallowablevalue is .016 Mb/s and the maximum value is 2048. The default value is .15 mbps/(equivalent to a T1 line).

-latency

The amount of time it takes to transmit a block of data to its destination expressed inmilliseconds. Valid values are auto (SANCopy computes the latency value), or a decimalnumber with no maximum limit. The default value is auto.

52 EMC SAN Copy Command Line Interface

SAN Copy CLI Commands

Page 53: EMC SAN Copy Command Line Interface - Dell EMC Finland · sancopy-settings ... managed by Navisphere management ... Command Line Interface EMC SAN Copy Command Line Interface. EMC

Note: If you create and start incremental sessions, and the copy is performed over a link that isslower than Fibre Channel, SAN Copy uses the link bandwidth and latency values to calculatethe optimum buffer space for the session.

EXAMPLE

Full session example: For SP ss1_spa, the -create command creates a full copy session namedcopy_lun66 that defines source logical unit 66 on this SP and destination logical unit 22 onhost SP ss5_spa . The -start command then starts the copy session and the -throttle commandspecifies a throttle value of 3 for this session. Incremental session example: The commandbelow creates an incremental copy session named copy_77 that defines logical unit 1 on SP10.22.33.44 as the source and logical unit 22 on SP ss5_spa as the destination. The -linkbwcommand specifies a bandwidth value of 100 Mbits/sec., and the latency value defaults toauto.

Note: To use this command with navicli, replace naviseccli with navicli.

naviseccli -h ss1_spa sancopy -create -name copy_lun66 -srclunss1_spa 66 -destlunnumber ss5_spa 22 - start -throttle 3

naviseccli -h 10.22.33.44 sancopy -create -incremental -namecopy_77 -srclun 10.22.33.44 1 -destlunnumber ss5_spa 22 -linkbw 100

OUTPUT

If the version of FLARE software running on the SP does not support this command, acommand is not supported error message is printed to stderr. Other errors are:

DMF_NAME_SPECIFIED_NOT_UNIQUE

DMF_CREATE_PARAMS

DMF_SRCLUN_WWN_AND_NUMBER_SPECIFIED

DMF_DESTLUN_WWN_AND_NUMBER_SPECIFIED

DMF_INVALID_THROTTLE_VALUE

sancopy -destinfo

Displays information about destination logical units for a running session

PREREQUISITES

For naviseccli, you must have a user account on the storage system on which you want toexecute the command.

sancopy -destinfo 53

SAN Copy CLI Commands

Page 54: EMC SAN Copy Command Line Interface - Dell EMC Finland · sancopy-settings ... managed by Navisphere management ... Command Line Interface EMC SAN Copy Command Line Interface. EMC

For navicli, youmust have a username/host entry in theNavisphere SPAgent configurationfile to use this command.

DESCRIPTION

Note: In addition to all the sancopy -destinfo command switches listed above, incremental copysessions use the optional -syncstate switch.

The naviseccli or navicli sancopy command with -destinfo gets session status from thedestination point of view.

Note:If you have only full copy sessions, issuing the -destinfo command with no arguments displays alldestination information for all copy sessions belonging to the specified SP.If you have both full and incremental copy sessions, and you issue the -destinfo command with noarguments, some parameters for full sessions and all parameters specific to incremental sessions willnot be displayed. In order to see all parameters for both full and incremental sessions, you must usethe destinfo -all command.We recommend that you use the -destinfo -all command for both full and incremental sessions.

SYNTAX

sancopy-destinfo [-peer][-descriptoriddescriptorid] | [-namename][-destwwndest-lun-wwn] [-destlunnumberdestsp destlunnumber][-destportwwndestportwwndestlunnumber][-complete][-counts][-failure][-time][-connectiontype][-all]

OPTIONS

-peer

Lists all destination information for the peer SP.

-descriptorid descriptorid | -name name

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

54 EMC SAN Copy Command Line Interface

SAN Copy CLI Commands

Page 55: EMC SAN Copy Command Line Interface - Dell EMC Finland · sancopy-settings ... managed by Navisphere management ... Command Line Interface EMC SAN Copy Command Line Interface. EMC

-destwwn dest-lun-wwn

Used alone, -destwwndisplays theWWNsof all destinations of the descriptors. -destwwnwith a WWN lists the status of the specified destination logical unit.

-destlunnumber destsp destlunnumber

The switch -destlunnumber cannot be used alone. When used with the SP name andLUN number, it displays the status of the specified destination logical unit.

-destportwwn destportwwn lunnumber

The switch -destportwwn displays the status of the specified destination LUN thatresides in a supported non-EMC storage system.

-complete

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

-counts

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

-failure

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

-time

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

-connectiontype

Displays the requested and the actual connection type used for all destination logicalunits participating in the copy session.

Valid values for Requested Connection Type are fibre, iSCSI or fibre preferred. Validvalues for Actual Connection Type are fibre, iSCSI, undetermined and N/A (fordestination logical units within the same storage system).

-all

Displays all destination information for both full and incremental copy sessions belongingto the specified SP.

sancopy -destinfo 55

SAN Copy CLI Commands

Page 56: EMC SAN Copy Command Line Interface - Dell EMC Finland · sancopy-settings ... managed by Navisphere management ... Command Line Interface EMC SAN Copy Command Line Interface. EMC

Note: If you have both full and incremental copy sessions, and you issue the -destinfo commandwith no arguments, some parameters for full sessions and all parameters specific to incrementalsessionswill not be displayed. In order to see all parameters for both full and incremental sessions,use the destinfo -all command.

The following optional switch is used only with incremental sessions:

-syncstate

Displays the state of the data of the specified destination logical unit with respect to thesource logical unit. Valid states are N/A, Inconsistent, and Initial Copy Required.

EXAMPLE

This example displays the output for a full copy session using the -destinfo commandwithoutthe -all switch. In order to display all the information for an incremental copy session, usethe -destinfo -all command.

naviseccli -h dm340c-16a sancopy -destinfo -connection typeCopy Descriptor Name: Std0_1

Copy Descriptor ID: 7202Owner: SPA

Requested Connection Type: Fibre PreferredActual Connection Type: N/A

Requested Connection Type: Fibre PreferredActual Connection Type: N/A

In the example below, the session includes two destination logical units.The requested connection type and the actual connection type are displayedfor both destinations.

naviseccli -h ss1_spa sancopy -destinfo

Copy Descriptor Name: DMHOST7_SAN005_10.6.92.169_00_p000

Copy Descriptor ID: 8

Owner: SPB

Copy Descriptor Type: Incremental

Copy Whole LUN: NO

Source LUN WWN: 60:06:01:60:0E:C2:1C:00:84:C4:31:B2:1C:24:DC:11

Source PortWWN and LUN: N/A

Number of Blocks to Copy: 0

56 EMC SAN Copy Command Line Interface

SAN Copy CLI Commands

Page 57: EMC SAN Copy Command Line Interface - Dell EMC Finland · sancopy-settings ... managed by Navisphere management ... Command Line Interface EMC SAN Copy Command Line Interface. EMC

Size of source LUN: 8388608

Number Of Destinations: 2

Destination LUN WWN:60:06:01:60:61:31:19:00:FD:C8:6D:54:1C:24:DC:11,60:06:01:60:61:31:19:00:6E:F0:C3:61:1C:24:DC:11

Destination PortWWN and LUN: N/A

Session Status: Complete

Initial Throttle: 4

Current Throttle: 4

Transfer Count: 8388608

Percent Complete: 100

Start Time: 06/27/07 10:51:05

Completion Time: 06/27/07 12:55:12

Duration: 2 hr 4 min 7 sec

Failure Status: No Failure

Marked: NO

Mark Time: N/A

Blocks modified since mark: N/A

Link Bandwidth (Mbps): 1.024

Effective Bandwidth (Mbps): 0.719

Latency (msec): Auto

Measured Latency (msec): 6.140

Requested Connection Type: Fibre Preferred

Actual Connection Type: N/A

OUTPUT

If the version of FLARE software running on the SP does not support this command, aCommand is not supported error message is printed to stderr.

sancopy -destinfo 57

SAN Copy CLI Commands

Page 58: EMC SAN Copy Command Line Interface - Dell EMC Finland · sancopy-settings ... managed by Navisphere management ... Command Line Interface EMC SAN Copy Command Line Interface. EMC

sancopy -duplicate

Makes a copy of a copy descriptor

PREREQUISITES

For naviseccli, you must have a user account on the storage system on which you want toexecute the command.

For navicli, youmust have a username/host entry in theNavisphere SPAgent configurationfile to use this command.

DESCRIPTION

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

Note: The sancopy -duplicate command is not supported for incremental SAN Copy sessions.

SYNTAX

sancopy-duplicate-descriptoriddescriptorid|-namename

OPTIONS

-descriptorid descriptorid | -name name

Identifies the descriptor you want to duplicate.

EXAMPLE

This command duplicates SP ss1_spa’s copy descriptor copy_lun_66 and assigns a defaultname to the new descriptor - copy of xxx, where xxx is the name of the descriptor you areduplicating, for example, a copy of copy_lun_66.

naviseccli -h ss1_spa sancopy -duplicate -name copy_lun_66

Note: To use this command with navicli, replace naviseccli with navicli.

OUTPUT

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

58 EMC SAN Copy Command Line Interface

SAN Copy CLI Commands

Page 59: EMC SAN Copy Command Line Interface - Dell EMC Finland · sancopy-settings ... managed by Navisphere management ... Command Line Interface EMC SAN Copy Command Line Interface. EMC

DMF_NAME_AND_UID_SPECIFIED

DMF_NAME_OR_UID_REQUIRED

DMF_UNKNOWN_DESCRIPTOR

sancopy -info

Displays information about copy descriptors

PREREQUISITES

For naviseccli, you must have a user account on the storage system on which you want toexecute the command.

For navicli, youmust have a username/host entry in theNavisphere SPAgent configurationfile to use this command.

DESCRIPTION

Note: In addition to all the sancopy -info command switches listed above, incremental copy sessionsuse the following optional switches: -copywholelun, -markstatus, -srcsize, -link (see “Incrementalsessions” on page 82).

The naviseccli or navicli sancopy commandwith -info displays information on copy sessions.It differs from -destinfo in that -destinfo gets information on the destination logical units.

Note:If you have only full copy sessions, issuing the -info command with no arguments displays alldestination information for all copy sessions belonging to the specified SP.If you have both full and incremental copy sessions, and you issue the -info command with noarguments, some parameters for full sessions and all parameters specific to incremental sessions willnot be displayed. In order to see all parameters for both full and incremental sessions, use the info -allcommand.We recommend that you use the -info -all command for both full and incremental sessions (for outputexamples, see “Examples” on page 83 ).

SYNTAX

sancopy-info [-peer][-descriptoriddescriptorid|-namename][-srcwwn][-length][-numdests][-dests][-sessionstatus]

sancopy -info 59

SAN Copy CLI Commands

Page 60: EMC SAN Copy Command Line Interface - Dell EMC Finland · sancopy-settings ... managed by Navisphere management ... Command Line Interface EMC SAN Copy Command Line Interface. EMC

[-throttle][-counts][-complete][-time][-failure][-duration][-type][-connectiontype][-all]

OPTIONS

-peer

Lists all destination information on the peer SP.

-descriptorid descriptorid

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

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

-name name

Lists the names of all copy descriptors belonging to the specified SPwhen you issue thiscommand without a specific copy descriptor name.

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

-srcwwn

Displays the WWNs of all source logical units.

-length

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

-numdests

Displays the number of destination logical units.

-dests

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

-sessionstatus

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

60 EMC SAN Copy Command Line Interface

SAN Copy CLI Commands

Page 61: EMC SAN Copy Command Line Interface - Dell EMC Finland · sancopy-settings ... managed by Navisphere management ... Command Line Interface EMC SAN Copy Command Line Interface. EMC

-throttle

Displays the current throttle value for the copy session.

-counts

Displays the number of disk blocks transferred.

-complete

Displays the percentage complete of the copy session.

-time

Displays the time when the copy completes.

-failure

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

-duration

Displays the completion time and duration of the session.

-type

Displays the session type - Full or Incremental.

-connectiontype

Displays the requested and the actual connection type used for the source logical unitparticipating in the copy session.

Valid values for Requested Connection Type are fibre, iSCSI or fibre preferred. Validvalues for Actual Connection Type are fibre, iSCSI, undetermined and N/A (for sourcelogical units within the same storage system).

-all

Displays all session information for both full and incremental copy sessions belongingto the specified SP. The following optional switches are used onlywith incremental SANCopy sessions.

-copywholelun

Displays whether the session will copy the entire source logical unit or only changes toit. If Yes, the session copies the entire logical unit; if No, it copies only the changes.

-markstatus

Note: If a session ismarked, SANCopy creates a point-in-time copy of the changes that have takenplace since the last copy session up to the time the session is marked.

sancopy -info 61

SAN Copy CLI Commands

Page 62: EMC SAN Copy Command Line Interface - Dell EMC Finland · sancopy-settings ... managed by Navisphere management ... Command Line Interface EMC SAN Copy Command Line Interface. EMC

Displayswhether the session has beenmarked, and if yes, displays the time of themark,and the number of blocks of data that have changed since themark occurred (these datablocks will not be copied when the session starts).

-srcsize

Displays the size, in blocks, of the source logical unit.

-link

Displays the status of any network link utilization performance parameters as follows:

Link Bandwidth—Link bandwidth of the network connection set when the sessionwascreated. Value is in Mb/sec.

Effective Bandwidth — Actual link bandwidth for the session measured by SAN Copy.

Latency — Displays the latency value set when the session was created or the defaultvalue of Auto. Latency is the amount of time it takes to transmit a block of data to itsdestination expressed in milliseconds.

Measured Latency — The actual measured latency of the session expressed inmilliseconds.

-all

Displays all session information for both full and incremental copy sessions belongingto the specified SP.

Note:You must use the destinfo -all command to display information that is specific to incrementalsessions. We recommend that you use the -destinfo -all command for both full and incrementalsessions.The information displayedwith the -all commandmay change in future revisions of the software.

EXAMPLE

This command displays the status of all copy descriptors for both SPs, but does not includeany information specific to incremental copy sessions.

naviseccli sancopy -info -allThe format is as follows:

OUTPUT

If the version of FLARE software running on the SP does not support this command, aCommand is not supported error message is printed to stderr.

62 EMC SAN Copy Command Line Interface

SAN Copy CLI Commands

Page 63: EMC SAN Copy Command Line Interface - Dell EMC Finland · sancopy-settings ... managed by Navisphere management ... Command Line Interface EMC SAN Copy Command Line Interface. EMC

sancopy -mark

For incremental sessions only--Makes a point-in-time copy of changes to the source logicalunit since the last copy session.

PREREQUISITES

For naviseccli, you must have a user account on the storage system on which you want toexecute the command.

For navicli, youmust have a username/host entry in theNavisphere SPAgent configurationfile to use this command.

DESCRIPTION

The naviseccli or navicli sancopy command with -mark creates a point-in-time copy of thechanges that have taken place since the last copy session up to the time the session ismarked.You can mark the session at any time before you start the session, or SAN Copy will markthe session at the time the session starts.When you start amarked session, all changesmadeto the source LUN up to the time of the mark will be copied to the destination logical units.

Note: Before marking the session, make sure that you prepare the source logical unit as described inthe section, Preparing logical units for a SANCopy session on page 36. Once you receive confirmationthat the mark operation was successful, you can resume I/O to the source logical unit.

SYNTAX

sancopy-mark-descriptoriddescriptorid|-namesessionName

OPTIONS

-descriptorid descriptorid | -name sessionName

Identifies the session you want to mark.

EXAMPLE

This command marks the SAN Copy session named monday. When the session is started,it copies only the changes to the source logical unit that have taken place since the last copysession up to the time of the mark.

naviseccli -h 10.11.22.33 sancopy -mark -name monday

Note: To use this command with navicli, replace naviseccli with navicli.

sancopy -mark 63

SAN Copy CLI Commands

Page 64: EMC SAN Copy Command Line Interface - Dell EMC Finland · sancopy-settings ... managed by Navisphere management ... Command Line Interface EMC SAN Copy Command Line Interface. EMC

OUTPUT

If the version of FLARE software running on the SP does not support this command, aCommand is not supported error message is printed to stderr. Other errors are:

DMF_NAME_AND_UID_SPECIFIED

DMF_NAME_OR_UID_REQUIRED

DMF_UNKNOWN_DESCRIPTOR

sancopy -modify

Changes the definitions for a copy session

PREREQUISITES

For naviseccli, you must have a user account on the storage system on which you want toexecute the command.

For navicli, youmust have a username/host entry in theNavisphere SPAgent configurationfile to use this command.

DESCRIPTION

The naviseccli or navicli sancopy command with -modify changes an existing SAN Copysession. This command will fail if the session has started or is in the paused state. You muststop the session beforemodifying the session. This command supports thin LUNs onlywhenthe storage system executing the CLI command (or the target storage system) is runningcommitted bundle that supports SanCopy with thin LUNs.

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

Youmust include a copy descriptor ID or name and one ormore switches to indicate changes.

Note: If you are modifying an incremental SAN Copy session, the following optional switches areavailable: -copywholelun, -chglinkbw, and -chglatency.

SYNTAX

sancopy -modify -descriptorid descriptor -id | -name name [ -adddestbywwn dest-lun-wwn

][ -adddestbylunnumber destsp destlunnumber ][-adddestbyportwwn destportwwn destlunnumber ][-chgdestconnectiontypebywwn destwwn ][-chgdestconnectiontypebylunnumber destspname destlunmumber][ -chgname newname ][ -chgsrcbylunnumber srcspname srclunnumber ]

64 EMC SAN Copy Command Line Interface

SAN Copy CLI Commands

Page 65: EMC SAN Copy Command Line Interface - Dell EMC Finland · sancopy-settings ... managed by Navisphere management ... Command Line Interface EMC SAN Copy Command Line Interface. EMC

[ -chgsrcbywwn srcwwn ][ -chgsrcbyportwwn srcportwwn srclunnumber ][-chgsrcconnectiontype srcwwn ][ -chgsessiontype ][-o ][-rmdestbylunnumber destsp destlunnumber ][ -rmdestbywwn dest-lun-wwn ][-rmdestbyportwwn destportwwn destlunnumber][ -throttle n ]

OPTIONS

-descriptorid descriptorid | -name name

Identifies the descriptor you want to change.

-adddestbywwn dest-lun-wwn

Adds a destination logical unit to the descriptor by World Wide Name.

By default, the connection type for the specified logical unit will be set to fibrepreferred.This sets the connection type to fibre or iSCSI (if fibre path could not be found) eachtime you start or resume a session. You can change the connection type using one of thefollowing switches: -fibre or -iscsi.

Note: If the logical unit does not reside in a remote storage system, setting the connection typewill be ineffective.

-fibre

Sets the logical unit’s connection type to fibre.

-iscsi

Sets the logical unit’s connection type to iSCSI.

-adddestbylunnumber destsp destlunnumber

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

By default, the connection type for the specified logical unit will be set to fibrepreferred.This sets the connection type to fibre or iSCSI (if fibre path could not be found) eachtime you start or resume a session. You can change the connection type with one of thefollowing switches: -fibre or -iscsi.

Note: If the logical unit does not reside in a remote storage system, setting the connection typewill be ineffective.

sancopy -modify 65

SAN Copy CLI Commands

Page 66: EMC SAN Copy Command Line Interface - Dell EMC Finland · sancopy-settings ... managed by Navisphere management ... Command Line Interface EMC SAN Copy Command Line Interface. EMC

-fibre

Sets the logical unit’s connection type to fibre.

-iscsi

Sets the logical unit’s connection type to iSCSI.

-adddestbyportwwn destportwwn destlunnumber

Adds only destination logical units that reside in supported non-EMC storage systems.For destportwwn, specify theWorldWideName of the SP port on the destination storagesystem that owns the destination LUN; for destlunnumber specify the number of thedestination LUN.

-chgdestconnectiontypebywwn destwwn

Changes the connection type of the destination logical unit using itsWorldWide Name,destwwn.

You can change the connection type of the logical unit using one of the following switches:-fibre, -isci, or -fibrepreferred.

Note: If the destination logical unit does not reside in a remote storage system, setting the connectiontype will be ineffective.

-fibre

Sets the destination logical unit’s connection type to fibre.

-iscsi

Sets the destination logical unit’s connection type to iSCSI.

-fibrepreferred

Sets the destination logical unit’s connection type to fibre or iSCSI (if fibre path couldnot be found).

-chgdestconnectiontypebylunnumber destspname destlunnumber

Changes the connection type of the destination logical unit using its destination SP(specify the SP name or IP address), destspname, and its destination logical unit number,destlunnumber.

You can change the connection type of the logical unit with one of the following switches:-fibre, -isci, or -fibrepreferred.

Note: If the destination logical unit does not reside in a remote storage system, setting the connectiontype will be ineffective.

66 EMC SAN Copy Command Line Interface

SAN Copy CLI Commands

Page 67: EMC SAN Copy Command Line Interface - Dell EMC Finland · sancopy-settings ... managed by Navisphere management ... Command Line Interface EMC SAN Copy Command Line Interface. EMC

-fibre

Sets the destination logical unit’s connection type to fibre.

-iscsi

Sets the destination logical unit’s connection type to iSCSI.

-fibrepreferred

Sets the destination logical unit’s connection type to fibre or iSCSI (if a fibre path couldnot be found).

-chgname newname

Note: Not available for incremental sessions.

Changes the descriptor name to newname.

-chgsrcbylunnumber srcspname srclunnumber

Note: Not available for incremental sessions.

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

By default, the connection type for the specified source logical unit will be set tofibrepreferred. This sets the connection type to fibre or iSCSI (if fibre path could not befound) each time you start or resume a session. You can change the connection typewith one of the following switches: -fibre or -iscsi.

Note:

Note: If the source logical unit does not reside in a remote storage system, setting the connectiontype will be ineffective.

-fibre

Sets the source logical unit’s connection type to fibre.

-iscsi

Sets the source logical unit’s connection type to iSCSI.

-chgsrcbywwn srcwwn

Note: Not available for incremental sessions.

sancopy -modify 67

SAN Copy CLI Commands

Page 68: EMC SAN Copy Command Line Interface - Dell EMC Finland · sancopy-settings ... managed by Navisphere management ... Command Line Interface EMC SAN Copy Command Line Interface. EMC

Changes the source logical unit in the descriptor using the World Wide Name of thenew source logical unit.

By default, the connection type for the specified source logical unit will be set tofibrepreferred. This sets the connection type to fibre or iSCSI (if a fibre path could notbe found) each time you start or resume a session. You can change the connection typewith one of the following switches: -fibre or -iscsi.

Note: If the source logical unit does not reside in a remote storage system, setting the connectiontype will be ineffective.

-fibre

Sets the source logical unit’s connection type to fibre.

-iscsi

Sets the source logical unit’s connection type to iSCSI.

-chgscrbyportwwn srcportwwn srclunnumber

Valid only for changing source logical units that reside in supported non-EMC storagesystems. For srcportwwn, specify the World Wide Name of the SP port on the sourcestorage system that owns the source LUN; for srclunnumber specify the number of thesource LUN.

-chgsrcconnectiontype srcwwn

Changes the connection type of the source logical unit using its World Wide Name(srcwwn).

You can change the connection type of the logical unit with one of the following switches:-fibre, -isci, or -fibrepreferred.

Note: If the logical unit does not reside in a remote storage system, setting the connection typewill be ineffective.

-fibre

Sets the session connection type to fibre.

-iscsi

Sets the session connection type to iSCSI.

-fibrepreferred

For connections between combo storage systems (Fibre Channel and iSCSI), sets theconnection type to fibre, if possible. If not possible, uses iSCSI.

-chgsessiontype

68 EMC SAN Copy Command Line Interface

SAN Copy CLI Commands

Page 69: EMC SAN Copy Command Line Interface - Dell EMC Finland · sancopy-settings ... managed by Navisphere management ... Command Line Interface EMC SAN Copy Command Line Interface. EMC

Changes the type of the SAN Copy session — incremental or full.

If you change the session type from full to incremental, the following optional switchesare available: -changesonly, -linkbw, and -latency.

-changesonly

If the source LUN and destination LUNs are synchronized, use this switch. When youstart the session, SANCopywill copy only the changes that have occurred to the sourceLUN since the initial synchronization, and any subsequent sessions will copy only thechanges.

If the source LUN and destination LUNs are not synchronized (or you are unsure of thecopy state), do not use this switch. The first time you run the session, SAN Copy willcopy the entire source LUN to the destination LUNs. Any subsequent sessionswill copyonly the changes.

-linkbw

Specifies the available link bandwidth for the copy session. You can use the entirebandwidth of your network connection for incremental SAN Copy sessions, or you canspecify only a portion of it. For CX3 series storage systems, the minimum allowablevalue is .016 megabits per second (mbps) and the maximum value is 4096 mbps. For allother CX series storage systems, the minimum allowable value is .016 megabits persecond (mbps) and the maximum value is 2048 mbps. The default value is .15 mbps(equivalent to a T1 line).

-latency

Specifies the latency value for the incremental session. Latency is the amount of time ittakes to transmit a block of data to its destination expressed inmilliseconds. Valid valuesare auto (SANCopy computes the latency value), or a decimal numberwith nomaximumlimit. The default value is auto. Entering a 0 latency value is the equivalent to enteringauto.

Note: If you create and start incremental sessions, and the copy is performed over a link that isslower than Fibre Channel, SAN Copy uses the link bandwidth and latency values to calculatethe optimum buffer space for the session.

-o

Suppresses a confirmation message describing the descriptor.

-rmdestbylunnumber destsp destlunnumber

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

-rmdestbywwn dest-lun-wwn

Removes a destination logical unit from the specified descriptor by World Wide Name.

sancopy -modify 69

SAN Copy CLI Commands

Page 70: EMC SAN Copy Command Line Interface - Dell EMC Finland · sancopy-settings ... managed by Navisphere management ... Command Line Interface EMC SAN Copy Command Line Interface. EMC

-rmdestbyportwwn destportwwn destlunnumber

Valid only for removing destination logical units that reside in supported non-EMCstorage systems. For destportwwn, specify the World Wide Name of the SP port on thedestination storage system that owns the destination LUN; for destlunnumber specifythe number of the destination LUN.

-throttle n

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

For incremental SAN Copy sessions, the following optional switches are available.

-copywholelun

Specifies that SANCopy copy the entire contents of the source logical unit the next timethe session is run.

-chglinkbw

Changes the link bandwidth for the specified session.

For CX3 series storage systems, theminimumallowable value is .016megabits per second(mbps) and the maximum value is 4096 mbps. For all other CX series storage systems,the minimum allowable value is .016 megabits per second (mbps) and the maximumvalue is 2048 mbps. The default value is .15 mbps (equivalent to a T1 line).

-chglatency

Changes the latency value for the specified session. Latency is the amount of time ittakes to transmit a block of data to its destination expressed inmilliseconds. Valid valuesare auto (SANCopy computes the latency value), or a decimal numberwith nomaximumlimit. The default value is auto.

EXAMPLE

For SP ss1_spa, copy descriptor copy_66 is a full copy session. This command adds thedestination logical unit whose World Wide Name is60:06:01:6B:61:09:00:00:6A:6F:9F:ED:0B:A3:D6:11. For SP ss1_spa, copy descriptor copy_77is an incremental copy session. The next time session copy_77 is run, SAN Copy will copythe contents of the entire source LUN to the destinations.

Note: To use this command with navicli, replace naviseccli with navicli.

naviseccli -h ss1_spa sancopy -modify -name copy_66 -adddestbywwn60:06:01:6B:61:09:00:00:6A:6F:9F:ED:0B:A3:D6:11

naviseccli -h ss1_spa sancopy -modify -name copy_77 -copywholelun

70 EMC SAN Copy Command Line Interface

SAN Copy CLI Commands

Page 71: EMC SAN Copy Command Line Interface - Dell EMC Finland · sancopy-settings ... managed by Navisphere management ... Command Line Interface EMC SAN Copy Command Line Interface. EMC

OUTPUT

If the version of FLARE software running on the SP does not support this command, aCommand is not supported error message is printed to stderr. Other errors are:

DMF_NAME_AND_UID_SPECIFIED

DMF_NAME_OR_UID_REQUIRED

DMF_UNKNOWN_DESCRIPTORDMF_INVALID_THROTTLE_VALUE

DMF_REMOVED_DEST_DOESNOT_EXIST

Errors returned from the driver or agent are:

UNKNOWN_DESCRIPTOR_ID

UNKNOWN_DESCRIPTOR_NAME

SESSION_NAME_EXISTS

sancopy -pause

Suspends I/O in an active SAN Copy session

PREREQUISITES

For naviseccli, you must have a user account on the storage system on which you want toexecute the command.

For navicli, youmust have a username/host entry in theNavisphere SPAgent configurationfile to use this command.

DESCRIPTION

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

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

SYNTAX

sancopy-pause-descriptoriddescriptor-id|-namename

OPTIONS

-descriptorid descriptor-id | -name name

Identifies the descriptor whose session you want to pause.

sancopy -pause 71

SAN Copy CLI Commands

Page 72: EMC SAN Copy Command Line Interface - Dell EMC Finland · sancopy-settings ... managed by Navisphere management ... Command Line Interface EMC SAN Copy Command Line Interface. EMC

EXAMPLE

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

naviseccli -h ss1_spa sancopy -pause -name copy_lun_66

Note: To use this command with navicli, replace naviseccli with navicli.

OUTPUT

If the version of FLARE software running on the SP does not support this command, aCommand is not supported error message is printed to stderr. Other errors are:

DMF_NAME_AND_UID_SPECIFIED

DMF_NAME_OR_UID_REQUIREDDMF_UNKNOWN_DESCRIPTOR

Errors returned from the driver or agent are:

UNKNOWN_DESCRIPTOR_ID

UNKNOWN_DESCRIPTOR_NAMEINVALID_SIZE

sancopy -remove

Deletes a copy session.

PREREQUISITES

For naviseccli, you must have a user account on the storage system on which you wantto execute the command.

For navicli, youmust have a username/host entry in theNavisphere SPAgent configurationfile to use this command.

DESCRIPTION

The naviseccli or navicli sancopy command with -remove deletes one or all previouslystored copy sessions. A copy session cannot be removed if it is currently active. An activecopy session must complete the copy first or be stopped.

If you omit the override -o option, the CLI displays a message asking you to confirm theremoval of the copy session.

This command can use only one of the following switches at a time: -descriptorid; -name;-all

72 EMC SAN Copy Command Line Interface

SAN Copy CLI Commands

Page 73: EMC SAN Copy Command Line Interface - Dell EMC Finland · sancopy-settings ... managed by Navisphere management ... Command Line Interface EMC SAN Copy Command Line Interface. EMC

SYNTAX

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

OPTIONS

-descriptorid descriptor-id | -name 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.

EXAMPLE

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

naviseccli -h ss1_spa sancopy -remove -name copy_lun_80

Note: To use this command with navicli, replace naviseccli with navicli.

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

OUTPUT

If the version of FLARE software running on the SP does not support this command, aCommand is not supported error message is printed to stderr. Other errors are:

DMF_NAME_AND_UID_SPECIFIED

DMF_NAME_OR_UID_REQUIRED

DMF_UNKNOWN_DESCRIPTOR

Errors returned from the driver or agent are: UNKNOWN_DESCRIPTOR_ID

sancopy -resume

Continues I/O in a SAN Copy session

PREREQUISITES

For naviseccli, you must have a user account on the storage system on which you want toexecute the command.

sancopy -resume 73

SAN Copy CLI Commands

Page 74: EMC SAN Copy Command Line Interface - Dell EMC Finland · sancopy-settings ... managed by Navisphere management ... Command Line Interface EMC SAN Copy Command Line Interface. EMC

For navicli, youmust have a username/host entry in theNavisphere SPAgent configurationfile to use this command.

DESCRIPTION

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

If the copy session was stopped or failed, the resume commandwill restart the copy sessionfrom the latest checkpoint (explained in the settings command). If the checkpoint feature isdisabled (the checkpoint was set to disable), the copy sessionwill restart from the beginning.

You must specify the descriptor ID or name.

SYNTAX

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

OPTIONS

-descriptorid descriptor-id | -name name

Identifies the descriptor whose session you want to resume.

EXAMPLE

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

naviseccli -h ss1_spa sancopy -resume -name copy_lun_66

Note: To use this command with navicli, replace naviseccli with navicli.

OUTPUT

If the version of FLARE software running on the SP does not support this command, aCommand is not supported error message is printed to stderr. Other error messagesare:

DMF_NAME_AND_UID_SPECIFIED

DMF_NAME_OR_UID_REQUIREDDMF_UNKNOWN_DESCRIPTOR

Errors returned from the driver or agent are:

UNKNOWN_DESCRIPTOR_IDUNKNOWN_DESCRIPTOR_NAMESESSION_ALREADY_IN_PROGRESS

74 EMC SAN Copy Command Line Interface

SAN Copy CLI Commands

Page 75: EMC SAN Copy Command Line Interface - Dell EMC Finland · sancopy-settings ... managed by Navisphere management ... Command Line Interface EMC SAN Copy Command Line Interface. EMC

sancopy -settings

Lists or changes SAN Copy environmental parameters

PREREQUISITES

For naviseccli, you must have a user account on the storage system on which you want toexecute the command.

For navicli, youmust have a username/host entry in theNavisphere SPAgent configurationfile to use this command.

DESCRIPTION

The naviseccli or navicli sancopy command with -settings gets and sets four SAN Copyenvironmental control parameters :

◆ the maximum number of concurrent active sessions◆ a checkpoint interval for session status◆ number of buffers per session◆ buffer size

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

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

SYNTAX

sancopy-settings-list

sancopy -settings [-setmax MaxNumSessions][-setcheckpoint CheckpointInterval][-setbufsize buffersize][-setbufnum buffervalue]

OPTIONS

-list

Displays the current environmental parameter settings.

-setmax maxNumSessions

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

sancopy -settings 75

SAN Copy CLI Commands

Page 76: EMC SAN Copy Command Line Interface - Dell EMC Finland · sancopy-settings ... managed by Navisphere management ... Command Line Interface EMC SAN Copy Command Line Interface. EMC

Maximum no. of sessionsStorage-system type

16 (8 per SP)CX3-series model 80 system, CX3-series model 40 sys-tems, CX600, CX700

8 (4 per SP)CX3-series model 20 systems, CX400, CX500

-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. Bydefault, checkpointing is enabled with a value of 10 minutes.

The SANCopy 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, youcan direct the software to resume (-resume function). It will continue copying from thelast checkpoint, if possible. If checkpointing is disabled, or if resuming is not possible,you can start copying from the beginning.

-setbufsize buffersize

Specifies the maximum buffer size to be used by SANCopy sessions on a Fibre Channelconnection. The default buffer size is 1024 blocks. The minimum buffer size is 64 KB.

-setbufnum buffernumber

Specifies the maximum number of buffers to be used by SAN Copy sessions on a FibreChannel connection. The default number is 4, and the minimum is 1.

EXAMPLE

For SP ss1_spa, this command lists the current value for maximum number of sessions,checkpoint interval, number of buffers per session, and buffer size. For SP ss1_spa, thiscommand changes the checkpoint interval to 45 minutes. For SP ss1_spa, this commandchanges the number of buffers to 3.

Note: To use this command with navicli, replace naviseccli with navicli.

naviseccli -h ss1_spa sancopy -settings -list

naviseccli -h ss1_spa sancopy -settings -setcheckpoint 45

naviseccli -h ss1_spa sancopy -settings -setbufnum 3

OUTPUT

If the version of FLARE software running on the SP does not support this command, aCommand is not supported error message is printed to stderr. Other errors are:

76 EMC SAN Copy Command Line Interface

SAN Copy CLI Commands

Page 77: EMC SAN Copy Command Line Interface - Dell EMC Finland · sancopy-settings ... managed by Navisphere management ... Command Line Interface EMC SAN Copy Command Line Interface. EMC

DMF_LIST_AND_SET_SPECIFIED DMF_INVALID_MAX_SESSION_VALUEDMF_INVALID_CHECKPOINT_INTERVAL_VALVE

Errors returned from driver or agent are:

SESSION_MAX_OVER_LIMIT SESSION_POLL_OVER_LIMIT

sancopy -start

Starts a SAN Copy session based on values in a copy descriptor

PREREQUISITES

For naviseccli, you must have a user account on the storage system on which you want toexecute the command.

For navicli, youmust have a username/host entry in theNavisphere SPAgent configurationfile to use this command.

DESCRIPTION

The naviseccli or navicli sancopy command with -start starts a SAN Copy session with thesource and destination logical unit(s) identified in the copy descriptor. You can start a sessionusing 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.

Note: Before starting a copy session, make sure you prepare the source and destination logical unitsas described in the section, Preparing logical units for a SAN Copy session on page 36 . When youstart a SAN Copy session , SAN Copy automatically allocates and retains additional memory. Thisadditional memory counts against the total replication software memory budget.

SYNTAX

sancopy -start -descriptorid descriptor-id | -name name [ -copywholelun [ -nomark new| all ]]

OPTIONS

-descriptorid descriptor-id | -name name

Identifies the copy descriptor for the session you want to start.

For incremental SAN Copy sessions, the following optional switches are available.

-copywholelun

sancopy -start 77

SAN Copy CLI Commands

Page 78: EMC SAN Copy Command Line Interface - Dell EMC Finland · sancopy-settings ... managed by Navisphere management ... Command Line Interface EMC SAN Copy Command Line Interface. EMC

Specifies that this incremental session will copy the entire contents of the source logicalunit to all the destination logical units. To use this command the session must beunmarked. When you start the session using this command, SAN Copy will mark thesession for you. This command overrides any existing settings for the session.

-nomark new|all

Usedwith the -copywholelun switch, andworks only if the session is not alreadymarked.Specifies that this session will not be marked when it is started. A session run with the-copywholelun -nomark command completesmore quickly, but at the end of the session,the source and destination logical units are inconsistent. To make them consistent, youmust run the session again.

When -nomark is used with the new option, SANCopy starts an unmarked session thatcopies the contents of the source logical unit to any new destinations.

When -nomark is used with the all option, SAN Copy starts an unmarked session thatcopies the contents of the source logical unit to all destinations.

EXAMPLE

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

naviseccli -h ss1_spa sancopy -start -name copy_lun_66

Note: To use this command with navicli, replace naviseccli with navicli.

OUTPUT

If the FLARE software running in the SP does not support the command, the CLI prints aCommand is not supported error message to stderr. Other errors are:

DMF_NAME_AND_UID_SPECIFIED DMF_NAME_OR_UID_REQUIREDDMF_UNKNOWN_DESCRIPTOR

Errors returned from the driver or agent are:

UNKNOWN_DESCRIPTOR_ID UNKNOWN_DESCRIPTOR_NAMESESSION_ALREADY_IN_PROGRESS

sancopy -stop

Stops (terminates) a SAN Copy session

PREREQUISITES

For naviseccli, you must have a user account on the storage system on which you want toexecute the command.

78 EMC SAN Copy Command Line Interface

SAN Copy CLI Commands

Page 79: EMC SAN Copy Command Line Interface - Dell EMC Finland · sancopy-settings ... managed by Navisphere management ... Command Line Interface EMC SAN Copy Command Line Interface. EMC

For navicli, youmust have a username/host entry in theNavisphere SPAgent configurationfile to use this command.

DESCRIPTION

The naviseccli or navicli sancopy command -stop terminates the specified session. Thesession stops automaticallywhen it is complete, so this command is not needed in the normalcourse of SAN Copy operations.

SYNTAX

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

OPTIONS

-descriptorid descriptor-id | -name name

Identifies the descriptor whose session you want to stop.

EXAMPLE

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

naviseccli -h ss1_spa sancopy -stop -name copy_lun_66

Note: To use this command with navicli, replace naviseccli with navicli.

OUTPUT

If the version of FLARE software running on the SP does not support this command, aCommand is not supported error message is printed to stderr. Other error messagesare:

DMF_NAME_AND_UID_SPECIFIED DMF_NAME_OR_UID_REQUIREDDMF_UNKNOWN_DESCRIPTOR

Errors returned from the driver or agent are:

UNKNOWN_DESCRIPTOR_ID UNKNOWN_DESCRIPTOR_NAME

sancopy -stop 79

SAN Copy CLI Commands

Page 80: EMC SAN Copy Command Line Interface - Dell EMC Finland · sancopy-settings ... managed by Navisphere management ... Command Line Interface EMC SAN Copy Command Line Interface. EMC

sancopy -throttle

Changes the I/O rate of an active copy descriptor

PREREQUISITES

For naviseccli, you must have a user account on the storage system on which you want toexecute the command.

For navicli, youmust have a username/host entry in theNavisphere SPAgent configurationfile to use this command.

DESCRIPTION

The naviseccli or navicli sancopy command with -throttle lets you change the throttle of anexisting, running copy descriptor. The new throttle value is valid only while the session isrunning 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 sancopy -create on page 48)

SYNTAX

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

OPTIONS

-descriptorid descriptor-id | -name name

Identifies the descriptor whose throttle value you want to change.

n

Is the new throttle value, ranging from 1 (slowest) to 10 (highest). The default value is6.

EXAMPLE

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

Note: To use this command with navicli, replace naviseccli with navicli.

naviseccli -h ss1_spa sancopy -info -name copy_lun_66

naviseccli -h ss1_spa sancopy -throttle -name copy_lun_66 8

80 EMC SAN Copy Command Line Interface

SAN Copy CLI Commands

Page 81: EMC SAN Copy Command Line Interface - Dell EMC Finland · sancopy-settings ... managed by Navisphere management ... Command Line Interface EMC SAN Copy Command Line Interface. EMC

OUTPUT

If the version of FLARE software running on the SP does not support this command, aCommand is not supported error message is printed to stderr. Other errors are:

DMF_NAME_AND_UID_SPECIFIED DMF_NAME_OR_UID_REQUIREDDMF_INVALID_THROTTLE_VALUE DMF_UNKNOWN_DESCRIPTOR

Errors returned from the driver or agent are:

UNKNOWN_DESCRIPTOR_ID UNKNOWN_DESCRIPTOR_NAME

sancopy -transfer

Transfers a copy descriptor from the peer SP

PREREQUISITES

For naviseccli, you must have a user account on the storage system on which you want toexecute the command.

For navicli, youmust have a username/host entry in theNavisphere SPAgent configurationfile to use this command.

DESCRIPTION

The naviseccli or navicli sancopy command with -transfer moves the specified descriptorfrom 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 usingthat descriptor.

SYNTAX

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

OPTIONS

-descriptorid descriptor-id | -name name

Identifies the descriptor you want to transfer to the working SP.

EXAMPLE

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

naviseccli -h ss1_spb sancopy -transfer -name copy_lun_66

sancopy -transfer 81

SAN Copy CLI Commands

Page 82: EMC SAN Copy Command Line Interface - Dell EMC Finland · sancopy-settings ... managed by Navisphere management ... Command Line Interface EMC SAN Copy Command Line Interface. EMC

Note: To use this command with navicli, replace naviseccli with navicli.

OUTPUT

If the version of FLARE software running on the SP does not support this command, aCommand is not supported error message is printed to stderr. Other errors are:

DMF_NAME_AND_UID_SPECIFIED DMF_NAME_OR_UID_REQUIREDDMF_UNKNOWN_DESCRIPTOR DMF_PEER_SP_ALIVE

Errors returned from the driver or agent are:

UNKNOWN_DESCRIPTOR_ID UNKNOWN_DESCRIPTOR_NAME

sancopy -unmark

For incremental sessions only--Removes the point-in-time copy from amarked incrementalSAN Copy session

PREREQUISITES

For naviseccli, you must have a user account on the storage system on which you want toexecute the command.

For navicli, youmust have a username/host entry in theNavisphere SPAgent configurationfile to use this command.

DESCRIPTION

The naviseccli or navicli sancopy command with -unmark removes the point-in-time copyfrom a marked incremental SAN Copy session.

Note: You cannot unmark a session if any of the session’s destination logical units have failed.

SYNTAX

sancopy -unmark -descriptorid descriptor-id | -name name

OPTIONS

-descriptorid descriptor-id | -name name

Identifies the session you want to unmark.

82 EMC SAN Copy Command Line Interface

SAN Copy CLI Commands

Page 83: EMC SAN Copy Command Line Interface - Dell EMC Finland · sancopy-settings ... managed by Navisphere management ... Command Line Interface EMC SAN Copy Command Line Interface. EMC

EXAMPLE

This command removes the mark from the incremental copy session named monday.

naviseccli -h 10.11.22.33 sancopy -unmark -name monday

Note: To use this command with navicli, replace naviseccli with navicli.

OUTPUT

If the version of FLARE software running on the SP does not support this command, aCommand is not supported error message is printed to stderr. Other errors are:

DMF_NAME_AND_UID_SPECIFIED DMF_NAME_OR_UID_REQUIREDDMF_UNKNOWN_DESCRIPTOR

sancopy -updateconnections

Updates connection and registration information

PREREQUISITES

For naviseccli, you must have a user account on the storage system on which you want toexecute the command.

For navicli, youmust have a username/host entry in theNavisphere SPAgent configurationfile to use this command.

DESCRIPTION

The naviseccli or navicli sancopy command with -updateconnections updates registrationinformation for all attached storage systems.

You should run this command for each SP.

SYNTAX

sancopy -updateconnections

EXAMPLE

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

naviseccli -h ss1_spa sancopy -updateconnections naviseccli -h ss1_spb sancopy -updateconnections

Note: To use this command with navicli, replace naviseccli with navicli.

sancopy -updateconnections 83

SAN Copy CLI Commands

Page 84: EMC SAN Copy Command Line Interface - Dell EMC Finland · sancopy-settings ... managed by Navisphere management ... Command Line Interface EMC SAN Copy Command Line Interface. EMC

sancopy -verify

Ensures that the SAN Copy software can access a logical unit

PREREQUISITES

For naviseccli, you must have a user account on the storage system on which you want toexecute the command.

For navicli, youmust have a username/host entry in theNavisphere SPAgent configurationfile to use this command.

DESCRIPTION

The naviseccli or navicli sancopy commandwith -verify ensures that the SANCopy softwarecan access a logical unit. You should issue the command to both SPs as one SP might haveaccess, where the other does not.

SYNTAX

sancopy -verify -wwn lun-wwn | -lunnumber sp-name lunnumber [-devicedevicename][-log][-iscsi|-fibre]

OPTIONS

-wwn lun-wwn

Specifies the World Wide Name of the logical units. You can specify more than oneWWN.

-lunnumber sp-name lunnumber

An alternate way of specifying a logical unit. For sp-name, specify the SP hostname (orSP IP address). For lunnumber, specify the source or destination logical unit number.You can specify more than one LUN number.

-device devicename

Specifies the storage-systemdevice name. This switch is required for FC4500 and FC5400storage systems. Omit it for CX series storage systems.

-log

Logs events to the SP event log.

Note: If SAN Copy cannot find a LUN on a remote storage system, use these events to helpdetermine the reason.

84 EMC SAN Copy Command Line Interface

SAN Copy CLI Commands

Page 85: EMC SAN Copy Command Line Interface - Dell EMC Finland · sancopy-settings ... managed by Navisphere management ... Command Line Interface EMC SAN Copy Command Line Interface. EMC

-iscsi |-fibre

Specifies which connection type to use to verify the connection. If a connection type isnot specified, fibre is used first to verfiy the connection, and if no connection is found,iSCSI is used.

EXAMPLE

The example below uses the LUN’s World Wide Name to verify that the LUN is reachable,and logs any events to the SP event log. If the LUN is reachable, the software displays thefollowing message:

Storage device is reachable.This example verifies two LUNs using the SP name and LUN number. If one or both LUNsare not reachable, the software displays a message similar to the following:

Error: sancopy command failedError returned from Agent SP A: CPM unable to locate device. Checkthat the device with this WWN exists (0x712ac007)

Note: To use this command with navicli, replace naviseccli with navicli.

naviseccli -h 11.12.13.14 sancopy -verify -wwn60:06:01:FA:2C:09:00:00:2B:89:4C:E9:65:D7:11-log

naviseccli -h 11.12.13.14 sancopy -verify -lunnumber 12.34.56.78 612.34.56.78 12

sancopy -verify 85

SAN Copy CLI Commands

Page 86: EMC SAN Copy Command Line Interface - Dell EMC Finland · sancopy-settings ... managed by Navisphere management ... Command Line Interface EMC SAN Copy Command Line Interface. EMC

86 EMC SAN Copy Command Line Interface

SAN Copy CLI Commands

Page 87: EMC SAN Copy Command Line Interface - Dell EMC Finland · sancopy-settings ... managed by Navisphere management ... Command Line Interface EMC SAN Copy Command Line Interface. EMC

Appendix A

SAN Copy CLI Error Codes

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

Note: For reserved LUN pool error codes, refer to the most recent version of theEMC Navisphere Command Line Interface (CLI) Reference (P/N 300-003-628-A11).

◆ SAN Copy CLI error codes on page 88

EMC SAN Copy Command Line Interface 87

Page 88: EMC SAN Copy Command Line Interface - Dell EMC Finland · sancopy-settings ... managed by Navisphere management ... Command Line Interface EMC SAN Copy Command Line Interface. EMC

SAN Copy CLI error codes

DescriptionError value

This version of FLARE software does not support Open SAN Copy.236

Minimum input requirement for sancopy -create command.237

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

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

Specified destination LUN does not exist.240

Both the destination LUN wwn and number are supplied.241

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

Specified copy descriptor does not exist.243

Cannot list and set environment at the same time.244

Throttle switch must be specified.245

Valid throttles are 1 to 10.246

Valid max session numbers are 1 to 16.247

Valid checkpoint intervals are 5 to 90 and divisible by 5, or disable to set checkpointdisabled.

248

Both the source wwn and number are specified.249

The destination LUN size is less than the source LUN size.250

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

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

Multiple descriptors have the same name.253

Input the same LUN ID as the destination LUN more than one time.254

The specified destination LUN already exists in this descriptor as a destination.255

Copy length should be greater than zero.256

88 EMC SAN Copy Command Line Interface

SAN Copy CLI Error Codes

Page 89: EMC SAN Copy Command Line Interface - Dell EMC Finland · sancopy-settings ... managed by Navisphere management ... Command Line Interface EMC SAN Copy Command Line Interface. EMC

DescriptionError value

The selected source LUN cannot be part of a SAN Copy session as it is either aprivate LUN or is in a transition state.

257

One of the selected destination LUNs cannot be part of the SAN Copy session asit is either a private LUN or is in a transition state.

258

Capacity of at least one of the destination LUNs is smaller than the source LUN.259

Cannot have a SAN Copy session with source LUN on peer SP.260

Cannot have a SAN Copy session with destination LUN on peer SP.261

Invalid LUN number of snapshot name for the switch -srclun.299

Invalid SP name or SP IP address for the switch.300

Cannot duplicate an incremental copy descriptor.301

This command can be used only for an incremental SAN Copy session.302

Cannot mark a session if it is already marked.303

Cannot unmark a session if it is already unmarked.304

Cannot specify -nomark switch if the session is marked.305

Cannot specify -copywholelun switch if the session is marked.306

Source LUN for the incremental descriptor should be on the SP you are targeting.307

Snapshot LUN cannot be a source of an incremental copy descriptor.308

-changesonly switch can be specified only for an incremental copy descriptor.309

-copywholelun switch can be specified only for an incremental copy descriptor.310

-nomark switch can be specified only for an incremental copy descriptor.311

Invalid value specified for -chgtype switch.312

Both -changesonly and -copywholelun switches cannot be specified.313

Invalid value specified for -nomark switch.314

This version of FLARE (Core) software does not support incremental SAN Copy.315

Invalid link bandwidth value.316

SAN Copy CLI error codes 89

SAN Copy CLI Error Codes

Page 90: EMC SAN Copy Command Line Interface - Dell EMC Finland · sancopy-settings ... managed by Navisphere management ... Command Line Interface EMC SAN Copy Command Line Interface. EMC

DescriptionError value

Invalid link bandwidth problem. Valid values are between 0.016 and 2048.317

Invalid latency value.318

Invalid granularity value. Valid values are 2,4,8,16,32, and 64.319

To create an incremental copy descriptor, you must atleast input the followingparameters:

320

◆ switch -name and a given name for the new copy descriptor

◆ switch -srcwwn and its contents or switch -srclun and its contents

◆ switch -destwwn and its contents or switch -destlunnumber and its contents

◆ switch -incremental

◆ switch -linkbw and its value

To modify the descriptor to incremental type, you must provide321

the switch -linkbw and its value.

Cannot change the name of an incremental session.322

Cannot specify latency for a full descriptor.323

Cannot specify granularity for a full copy descriptor.324

Cannot specify link bandwidth for a full copy descriptor.325

Cannot change the source LUN of an incremental session.339

The new descriptor type specified for the descriptor is same as the current descrip-tor type.

340

There are no copy descriptors on this SP.341

Error occurred in removing following descriptors.342

Value of latency cannot be greater than 4294967.343

Invalid autorestart value—use On or Off.354

Specified SAN Copy destination does not exist.363

Source LUN must be on the SAN Copy/E storage system.367

Invalid port WWN or LUN number.368

90 EMC SAN Copy Command Line Interface

SAN Copy CLI Error Codes

Page 91: EMC SAN Copy Command Line Interface - Dell EMC Finland · sancopy-settings ... managed by Navisphere management ... Command Line Interface EMC SAN Copy Command Line Interface. EMC

DescriptionError value

Use only one parameter to change the source LUN: -chgsrcbywwn, -chgsrcbylun,or -chgsrcbyportwwn.

369

Supply either the name or the descriptor ID, not both.407

The specified destination LUN does not exist.410

The new connection type is the same as the current connection type.411

The source LUN is thin. This version of FLARE (Core) software does not supportthin LUNs in a SAN Copy session.

439

One of the destination LUNs is thin. This version of FLARE (Core) software doesnot support thin LUNs in a SAN Copy session.

440

Cannot communicate with the SP. The SP may be unmanageable.441

SAN Copy CLI error codes 91

SAN Copy CLI Error Codes

Page 92: EMC SAN Copy Command Line Interface - Dell EMC Finland · sancopy-settings ... managed by Navisphere management ... Command Line Interface EMC SAN Copy Command Line Interface. EMC

92 EMC SAN Copy Command Line Interface

SAN Copy CLI Error Codes

Page 93: EMC SAN Copy Command Line Interface - Dell EMC Finland · sancopy-settings ... managed by Navisphere management ... Command Line Interface EMC SAN Copy Command Line Interface. EMC

Appendix B

Secure CLI CommandCoverage

This appendix provides a list of commands that are supported by SecureCLI on various storage systems. Unless otherwise noted once supportedall commandswill be supported on all subsequent releases. The commandsthat are not supported on specific systems are also listed.◆ Secure CLI Command Coverage on page 94

EMC SAN Copy Command Line Interface 93

Page 94: EMC SAN Copy Command Line Interface - Dell EMC Finland · sancopy-settings ... managed by Navisphere management ... Command Line Interface EMC SAN Copy Command Line Interface. EMC

Secure CLI Command Coverage

CX4 seriesCX3 seriesCX seriesCommands

6.286.226.19sancopy -create

6.286.226.19sancopy -destinfo

6.286.226.19sancopy -duplicate

6.286.226.19sancopy -info

6.286.226.19sancopy -mark

6.286.226.19sancopy -modify

6.286.226.19sancopy -pause

6.286.226.19sancopy -remove

6.286.226.19sancopy -resume

6.286.226.19sancopy -settings

6.286.226.19sancopy -start

6.286.226.19sancopy -stop

6.286.226.19sancopy -throttle

6.286.226.19sancopy -transfer

6.286.226.19sancopy -unmark

6.286.226.19sancopy -updateconnection

6.286.226.19sancopy -verify

Note: The version number indicates the earliest release that supported the command for each systemtype.

94 EMC SAN Copy Command Line Interface

Secure CLI Command Coverage

Page 95: EMC SAN Copy Command Line Interface - Dell EMC Finland · sancopy-settings ... managed by Navisphere management ... Command Line Interface EMC SAN Copy Command Line Interface. EMC

Index

-create subcommand 48

Aadmhost

about 36admhost utility, defined 10Agent

host, defined 11managed, defined 11SP, defined 12

Bbasic commands 41benefits, SAN Copy 14

CCLARiiONstorage system, preparing for SANCopysession 28CLI subcommands

-create 48-destinfo 53-duplicate 58-info 59-mark 63-modify 64-pause 71-remove 72-resume 73-settings 75-start 77-stop 78-throttle 80-transfer 81-unmark 82

CLI subcommands (continued)-updateconnections 83-verify 84

CLI, environment variablesRaidAgentDevice 48RaidAgentHost 48RaidAgentTimeout 48

clone, SnapView, defined 10command functions, admhost 36copy descriptor

creating (-create) 48getting information (-info) 59

Ddestinfo subcommand 53diagnostics, navicli command 45domain, defined 10duplicate subcommand 58

Eenvironment parameters, setting 75error codes 88

Ffeatures, SAN Copy 14full sessions, defined 11function switches, admhost 36

Iincremental sessions, defined 11info subcommand 59introduction 13

EMC SAN Copy Command Line Interface 95

Page 96: EMC SAN Copy Command Line Interface - Dell EMC Finland · sancopy-settings ... managed by Navisphere management ... Command Line Interface EMC SAN Copy Command Line Interface. EMC

Llogical unit, defined 11LUN pool, reserved, defined 12LUN, destination, information (-destinfo command54

Mmark subcommand 63modify subcommand 64

Nnavicli command 45

command switches, see individual CLIcommands 45diagnostics, see error codes 45format 45

Ppause subcommand 71ports, SAN Copy connecting to CLARiiON storagegroups 29

Rrecommendations

based on availability 25based on performance 24based on preserving host HBA connections 26

remote storage system, defined 11remove subcommand 72requirements, admhost 36reserved LUN pool, defined 12resume subcommand 73

SSAN Copy

basic configuration requirements andrestrictions 20connecting SAN Copy ports to CLARiiONstorage groups 29features and benefits 14zoning requirements and recommendations 23

session, starting 77session, stopping 79sessions

checkpoint interval, defined 10defined 12

sessions (continued)full, defined 11incremental, defined 11preparing CLARiiON storage system for 28preparing logical units 36preparing Symmetrix storage system for 32

set command 45settings environment parameters, setting with CLI75settings subcommand 75snapshot, SnapView, defined 12SnapView

clone, defined 12snapshot, defined 12

software components 16command line interface 16graphical user interface 16SAN Copy 16

software, defined 12source logical units, deactivate

UNIX 37Windows 37

start subcommand 77stop subcommand 78storage system

CLARiiON, preparing for SAN Copy session28SAN Copy, defined 12Symmetrix storage system, preparing for SANCopy session 32Symmetrix, preparing for SAN Copy session32

Tthrottle subcommand 80transfer subcommand 81

Uunmark subcommand 82updateconnections subcommand 83

Vverify subcommand 84

Zzoning

requirements 23

96 EMC SAN Copy Command Line Interface

Index