UNSOLVED

JoeyTMann

updated

17 years ago

J

JoeyTMann

1 Rookie

•

53 Posts

0

23832

November 19th, 2009 09:00

equallogic arrays iscsicli.exe scripting

First off I am terrible at scripting but I am hoping someone else has done something like this. I'd like to mount snapshots of my array's luns on a backup server and run my backups from those. Any help or examples would be greatly appreciated.

 

Jason

  • Dev Mgr

    6 Operator

    •

    9308 Posts

    •

    3 Points

    992

    0

    Posted November 19th, 2009 11:00

    Which OSes are we talking about here? (source and backup server)

  • dormi98

    4 Posts

    992

    0

    Posted December 4th, 2009 04:00

    I am facing the same problem.

    I got Auto Snapshot Manager for Microsoft working to create a Snapshot every day. I did that on all servers that use a volume of the equallogic. How can I automatically mount this snapshots on my backup server? Of course it is no problem to do that manually, but that's not the solution for a backup routine.

    All Servers run Windows Server 2008.

  • Dev Mgr

    6 Operator

    •

    9308 Posts

    •

    3 Points

    992

    0

    Posted December 4th, 2009 15:00

    I'm no scripting guru, but here are some steps/commands:

     

    - iscsicli ListTargets -> lists the possible targets visible from your backup server

    Now somehow you have to capture part of this output the volume name with the added date and timestamp generated by it being a snapshot.

     

    Then use this to log onto this target:

    - iscsicli LoginTarget iqn.2001-05.com.equallogic:complete_snapshot_iqnname T group-IP 3260 * * * 0x2 * * * * * * * 0 * 0

     

    Hopefully this helps some, or others may be able to provide some info about how to take part of the output from one command and include that in the next command.

  • dormi98

    4 Posts

    992

    0

    Posted December 11th, 2009 00:00

    OK I found the solution.

    It's not too difficult.

    I did it this way:

    Creating Snapshots with the Autosnapshot Manager and then copy the created .bcd file to the backup server. On the backup Server the bcd file is renamed (the name is always another one) so ren *.bcd servername.bcd helps. Then the command:
    asmcli -mount -document="PATH:\servername.bcd" -location=H:\
    mounts the snapshot as drive H:
    Now you can run your tape backup and finally use asmcli -unmount -location=H:\ to unmount the snapshot again.