UNSOLVED

dtp1

updated

17 years ago

D

dtp1

32 Posts

0

5299

April 29th, 2010 08:00

Looking for navicli commands to start/stop snap sessions

I am looking for the navicli commands that will start/stop/refresh snapshot sessions.

  • nandas

    6 Operator

    •

    1473 Posts

    1625

    1

    Posted April 29th, 2010 09:00

    Please take a look at the following doc available on Powerlink -

    Home > Support > Technical Documentation and Advisories > Software ~ S ~ Documentation > SnapView > General Reference

    EMC ® SnapView™ ReferenceCLI  Command Line Interface

    http://powerlink.emc.com/km/live1/en_US/Offering_Technical/Technical_Documentation/069001181_a17.pdf

    You can use navi cli commands as well as admsnap utility commands on the host (recommended) - admsnap start, stop, flush, activate, deactivate commands.

    Hope this helps,
    Sandip

  • 1628

    1

    Posted April 29th, 2010 10:00

    I went down this road a few years ago. We wanted to automate snapshot LUNs to aid application test/development environment refreshing. Used to take hours to copy data from prod to test/development. Now snapshoting allows data to move between prod and test/dev LUNs at disk speed. It has prooved very reliable over the years.

    As for your question, your not going to be able to use navicli alone. navicli lacks the functionality to start and stop snapshots. Instead  EMC gave us "ADMSNAP." You will need to download and install the software. Choose the version that matches your hosts:

    https://powerlink.emc.com/nsepn/webapps/btg548664833igtcuup4826/km/appmanager/km/secureDesktop?_nfpb=true&_pageLabel=servicesDownloadsTemplatePg&internalId=0b01406680020311&_irrt=true

    Once you have the software installed, browse to the installation folder ("C:\program files\emc\navisphere admsnap" for x32 windows boxes). Then try this to start and stop Snapshot sessions:

    >admsnap start -s session-name -o drive-letter

    >admsnap stop -s session-name -o drive-letter

    Since your title only asked how to start and stop snap session, that is all the code I gave you. Our scripts are much more complex using the 'flush' and 'activate' commands. If your interested in learning how to use ADMSNAP, check out the ADMSNAP Admin Guide from Powerlink

    https://powerlink.emc.com/nsepn/webapps/btg548664833igtcuup4826/km/live1//en_US/Legacy_Conversion/PL_Support/Doc_Library/60010393.pdf

    If your team struggles to build complex snapshot scripts consider purchasing EMC Replication Manager. If your interested here is the link to the admin guide:

    https://powerlink.emc.com/nsepn/webapps/btg548664833igtcuup4826/km/live1/en_US/Offering_Technical/Technical_Documentation/300-010-265.pdf?mtcs=ZXZlbnRUeXBlPUttQ2xpY2tDb250ZW50RXZlbnQsZG9jdW1lbnRJZD0wOTAxNDA2NjgwNGVhN2U5LG5hdmVOb2RlPVNvZndhcmVEb3dubG9hZHMtMQ__

  • dtp1

    32 Posts

    1628

    0

    Posted April 29th, 2010 11:00

    Does admsnap install with navicli?

  • AranH1

    2163 Posts

    1628

    1

    Posted April 29th, 2010 11:00

    No, it is a separate installer. Look in the software downloads section under SnapView.

  • RRR

    6 Operator

    •

    5739 Posts

    1628

    0

    Posted May 5th, 2010 03:00

    naviseccli -User -Password -Scope 0 -h snapview -startsession -snapshotname

    naviseccli -User -Password -Scope 0 -h snapview -activatesnapshot -snapshotname

    So first you create (define) a snapshot on a LUN. It's only a definition, a name, nothing else happens here.

    Then you start a session and you name the session. In this session you have to refer to the snapshot you created on the LUN.

    After a session has started, you can activate it to make it visible to a host you attached this LUN to in a storage group.

    You don't have to present a snapshot to a host to be able to use it. If you only need to be able to revert back to a certain point in time, it doesn't have to be presented to a host at all and you can skip the activation of the session. If you need to be able to access the data frmo that point in time, you need to present the snapshot to a host.

  • dtp1

    32 Posts

    1628

    0

    Posted May 6th, 2010 08:00

    Also, when we installed navi on this AIX server, it didn't install navicli but naviescli?  Should navicli been installed?  Was there a broken link?

  • dtp1

    32 Posts

    1628

    0

    Posted May 6th, 2010 08:00

    I am getting this error message when issuing the admsnap commands

    + /usr/admsnap/admsnap stop -s Fresieb Test -o /dev/hdisk39

    An error occurred while stopping session "Fresieb Test" on device "/dev/rhdisk39".

    Error: 0xE100802D (This session name does not exist on this device)

  • AranH1

    2163 Posts

    1628

    0

    Posted May 6th, 2010 09:00

    Just use naviseccli.

    Also if you are having problems with admsnap you can try and just use the 'naviseccli snapview' commands as RRR pointed out. You don't have to use admsnap anymore for managing snapshot sessions. I have a few scripts that use only 'naviseccli snapview' for managing the sessions.

  • RRR

    6 Operator

    •

    5739 Posts

    1629

    0

    Posted May 7th, 2010 04:00

    I never used admsnap, but I know it has a feature that allows you to flush cache buffers on the OS. This is only useful when you're pointing at snapview sessions that affect local LUN's. With my naviseccli commands you can point to any LUN, even if it's not on the hosts you're working from.

    Does this make sence ? It's friday, so I'm almost in weekend-mode....

  • Tharuman

    1 Rookie

    •

    3 Posts

    275

    0

    Posted July 29th, 2010 02:00

    I was reading somewhere that snapview and sancopy do not work with the navicli any longer. So with Release 24 and above, I have to use naviseccli. Is this true? Can anyone confirm on this? Thanks in advance..