UNSOLVED

rajshekhar1

updated

15 years ago

R

rajshekhar1

30 Posts

0

2900

April 3rd, 2012 18:00

Naviseccli Snapshot Activate for Multiple Snaps

Is there a way to activate multiple snapshots in one command

naviseccli -address 192.168.207.8 snapview -activatesnapshot session1 -snapshotname snap0,snap7,snap8

Where snap0,snap7,snap8 are Snap LUN's in session1

I am not able to do activate all the snaps together.

  • dynamox

    11 Legend

    •

    20419 Posts

    •

    87439 Points

    1211

    0

    Posted April 3rd, 2012 19:00

  • rajshekhar1

    30 Posts

    1212

    0

    Posted April 4th, 2012 05:00

    Dynamox,

    I am able to start the session , I cannot activate multiple snapshot once the session is created.

    I am able to do start the session as mentioned in the post.

    naviseccli -h IP_CLARiiON snap view -startsession SESSIONNAME -luns XX YY -consistent

    I was wondering if there is a way to activate multiple snaps for a session using single command without using admsnap

  • dynamox

    11 Legend

    •

    20419 Posts

    •

    87439 Points

    1213

    0

    Posted April 4th, 2012 08:00

    i can't test it right now, but if you specified multiple LUNs with -consistent option when you started the session, when you activate the session ..you just specify the session name, not individual LUNs.

  • dynamox

    11 Legend

    •

    20419 Posts

    •

    87439 Points

    1214

    0

    Posted April 4th, 2012 09:00

    Richard,

    it's been a while for me as well, does COFW begins as soon as you start the session ?

  • Storagesavvy

    474 Posts

    1214

    0

    Posted April 4th, 2012 09:00

    Yep, the session is the actual snapshot. Activating just opens the session for read/write access.

    Richard J Anderson

  • rajshekhar1

    30 Posts

    1213

    0

    Posted April 4th, 2012 09:00

    I am trying to do some scripting for automating the snap process. If there is a way to activate the snap's in a single command it would make scripting easy, otherwise I would need to probably run it through a loop , I am going to try to test some options with naviseccli to see if its possible to do in a single command.

    I didn't work with navicli much in the past but looking at some of the options it doesn't look's to be as flexible as symcli

  • Storagesavvy

    474 Posts

    1213

    0

    Posted April 4th, 2012 09:00

    Dynamox, it’s been a while for me on this but even with a single multi-lun session, you need to activate that session to each snapshot, there is one snapshot for each LUN being snapped and presented to the host. However, as I mentioned in my other reply, consistency is maintained within the session, so there is no absolute requirement to activate multiple snapshots simultaneously.

    Richard J Anderson

  • rajshekhar1

    30 Posts

    648

    0

    Posted April 4th, 2012 09:00

    Yes, COFW starts as soon as the session is started.

  • Storagesavvy

    474 Posts

    648

    0

    Posted April 4th, 2012 09:00

    Is there a specific reason you need to activate them all in one command? The reason you can start session in one command is to ensure all of the sessions are write-order consistent. With activate, that is not a concern.

    Richard J Anderson

  • dynamox

    11 Legend

    •

    20419 Posts

    •

    87439 Points

    769

    0

    Posted April 4th, 2012 10:00

    Thanks Richard.

    Rajshekar ..i am afraid you will need to tackle it with some scripting. Like you said, loop through the list of sessions and activate the ones you need.