You can use navi cli commands as well as admsnap utility commands on the host (recommended) - admsnap start, stop, flush, activate, deactivate commands.
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:
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
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:
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.
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.
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....
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..
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