Announcement Banner

rajshekhar1

updated

15 years ago

R

rajshekhar1

30 Posts

0

1882

March 13th, 2012 14:00

Need help with Clariion SNAP and CLONE CLI Scripting

I have a scenario where I need to automate creation of Snaps and clones on a Clariion at particular time each day. I am planning to use shell scripting with navicli to accomplish this. I am not used to navicli , Can someone guide me about the best path. How to do some error checking? If anyone has any basic script that I can use to build on would be really helpful.

Thanks in advance.

Raj

  • dynamox

    11 Legend

    •

    20419 Posts

    •

    87439 Points

    1165

    0

    Posted March 15th, 2012 20:00

    take a look at this paper, Appendix

    White Paper: Using Sybase NonStopIQ and EMC CLARiiON for Backup/Restore, High Availability, and Disaster Recovery - Applied Technology

    you will be able to take advantage of error codes documented in the navicli guide

  • christopher_ime

    6 Operator

    •

    1962 Posts

    838

    1

    Posted March 14th, 2012 19:00

    Raj,

    I only wanted to mention that your scripts will also need to incorporate admsnap commands.  This is also available for download via PowerLink along with a CLI Reference Guide describing the syntax.  Also, look for the same reference guide for Navisphere CLI.

    Also, I wanted to mention a separate licensed software suite called Replication Manager.  It performs many of the tasks that you will be looking to do via the proposed scripts such as creating/expiring/deleting replicas, mounting/unmounting replicas, scheduling, etc.  Replication Manager has both a GUI interface and a robust CLI commandset to manage the environment.  Finally, it also offers features that you won't be able to (easily) do such as:

    1) Application Consistent replicas

    RM uses application (SQL, Exchange, Oracle, and Share Point) aware agents to accomplish this

    2) Ability to present replica to same host as production LUN (may or may not be useful to you)

    Except for VMware, the other OS's do not have the native capability to resignature the volume

  • dynamox

    11 Legend

    •

    20419 Posts

    •

    87439 Points

    837

    0

    Posted March 14th, 2012 21:00

    do you see this icon ?

    3-15-2012 12-50-22 AM.png

  • christopher_ime

    6 Operator

    •

    1962 Posts

    838

    0

    Posted March 14th, 2012 21:00

    By the way, could you share how you are formatting the text that you are replying to in the manner that you do (with the outline and blue shade)?

  • christopher_ime

    6 Operator

    •

    1962 Posts

    838

    0

    Posted March 14th, 2012 21:00

    Thanks Dynamox.  I was thinking native to the OS and knew there were solutions to do so other than RM. 

    However, I wasn't aware how RM does it and knowing that Solutions Enabler is required on each host, I'll assume that it using symntctl.  Good to know.  Thanks!

  • dynamox

    11 Legend

    •

    20419 Posts

    •

    87439 Points

    837

    0

    Posted March 14th, 2012 21:00

    RM is not native solution either

  • dynamox

    11 Legend

    •

    20419 Posts

    •

    87439 Points

    838

    0

    Posted March 14th, 2012 21:00

    Christopher Imes wrote:

    2) Ability to present replica to same host as production LUN (may or may not be useful to you)

    Except for VMware, the other OS's do not have the native capability to resignature the volume

    yes you can, symntctl

  • christopher_ime

    6 Operator

    •

    1962 Posts

    837

    0

    Posted March 14th, 2012 21:00

    dynamox wrote:

    do you see this icon ?

    Nice!  Lol, used every button other than that one.  For some reason ignore it.  Thanks.

  • rajshekhar1

    30 Posts

    837

    0

    Posted March 15th, 2012 06:00

    Chris,

    Thanks for your inputs. RM is not an option as the cleint has decided not to buy it.

    The plan is to hot push data from VMAX to Clariion and then either create clone or snaps on the clariion. They want to automate the process of creation of Snaps and Clones and scripting looks to be the only option. I am trying to figure out how everything is going to work and satisfy client requirements. So I was looking for someone who might have actually scripted something similar so that I can know what points needs to be accounted for to make this solution work.

    Thanks,

    Raj

  • Storagesavvy

    474 Posts

    837

    0

    Posted March 15th, 2012 10:00

    Raj,

    If you are replicating the app from VMAX to CLARiiON then you would need to quiesce the app on the VMAX for the hot push, then run the snap/clone process after the push is complete… Ordered something like the following:

    Quiesce Application on production host (ie: shutdown application or put in hot backup mode)

    Push data to CLARiiON (Open Replicator I assume?)

    Resume Application on production host

    Create Snapshot or clone on CLARiiON

    Mount Snapshot or clone on secondary host

    Make any necessary changes to app data to allow for application start (resignature/rename database, etc)

    Start Application

    There are other ways to do this, with more or less impact to the production application, but this is the basics. The key is to build the scripts so that the timing between all of these pieces is coordinated correctly.

    What application is being replicated?

    As Dynamox and others have noted, Replication Managers’ value is that it handles ALL of this automatically for Oracle, SQL, Exchange, Sharepoint, DB2, SAP, VMware, etc… RM can also chain jobs together to coordinate work across multiple hosts.

    Richard J Anderson