Primary Storage

 View Only
  • 1.  Automated snapshots on Storwize

    Posted Fri April 08, 2022 08:39 AM
    Hi,

    ??Is there any way to build my own scripts to connect to Storwize and
    take snapshots for a given list of volumes ??? I know that some of the
    backup vendors have their software integrated with Storwize so there is
    an API for that but I want to use my own scripts to take snapshots for
    some volumes every night.

    ??Thanks.


  • 2.  RE: Automated snapshots on Storwize

    IBM Champion
    Posted Mon April 11, 2022 03:25 AM
    Of course you can.
    just create a script with proper commands to execute and schedule it via operating systems scheduler (cron etc)

    ------------------------------
    NEZIH BOYACIOGLU
    ------------------------------



  • 3.  RE: Automated snapshots on Storwize

    User Group Leader
    Posted Tue April 12, 2022 06:32 AM

    Spectrum Virtualize provides a Rest API as well as a CLI that can be accessed via  (with key) that can be used to script this.

    Here is some useful documentation:

    https://www.ibm.com/docs/fr/flashsystem-7x00/8.3.x?topic=7200-spectrum-virtualize-restful-api
    https://www.ibm.com/docs/fr/flashsystem-7x00/8.3.x?topic=interface-setting-up-ssh-client
    https://www.ibm.com/docs/fr/flashsystem-7x00/8.3.x?topic=interface-using-cli

    Cheers



    ------------------------------
    Evelyn Perez
    ------------------------------



  • 4.  RE: Automated snapshots on Storwize

    Posted Thu May 26, 2022 09:07 AM
    How yo proceed with the script? Need any help?

    Good to know tip:
    When you do it, make sure, that both volumes (source and target) has the same preferred owner.
    First you need to check the preferred owner node of the source volume, then when you create the target volume, you should set the same preferred node.

    Should you failed to do this, you can change it later.

    This is not a must, but a recommendation from Storage Insight.

    regards,

    ------------------------------
    Istvan Buda
    ------------------------------



  • 5.  RE: Automated snapshots on Storwize

    Posted Thu May 26, 2022 11:56 AM
    Hi,
     Yes, the script was easy to build , it just connect to the storage via ssh and execute stop/start for some consistency groups. However , it's much easier to use the 'snapshot protect + CSM' combo when restoring the snapshots so I will try to use this feature if I can upgrade the firmware on all the storage involved.

    ------------------------------
    Adrian Nicolae
    ------------------------------