Primary Storage

 View Only
  • 1.  Best practice approach Safeguarded Copy recovery using REST API

    Posted Mon May 20, 2024 10:19 AM

    Hello,

    I am testing the recovery of Safeguarded Copies using the Internal Scheduler on FlashSystem. Which REST API endpoints are recommended for recovering a specific snapshot? 

    Thanks,

    Jack



    ------------------------------
    Jack Wilkins
    ------------------------------


  • 2.  RE: Best practice approach Safeguarded Copy recovery using REST API

    Posted Tue May 21, 2024 02:23 AM

    Hello Jack,

    the REST API basically is an interface to the CLI commands.

    So, depending on the concrete goal you want to achieve, /restorevolume or /restorefromsnapshot might be the endpoints you are looking for.

    Command reference in IBM Docs:

    Generally, for exploring the features and capabilities of the RESTful API you might want to have a look at the built-in REST Explorer.

    You can reach the same by navigating with a browser to https://<FlashSystem_IP_or_hostname>:7443/rest/explorer

    IBM Docs reference for the REST API:



    ------------------------------
    Best regards, 

    Christian Schroeder
    IBM Storage Virtualize Support with Passion
    ------------------------------



  • 3.  RE: Best practice approach Safeguarded Copy recovery using REST API

    Posted Tue May 21, 2024 03:16 AM
    Edited by Jack Wilkins Tue May 21, 2024 05:08 AM


    Hi Christian,

    Thank you for your response, it's much appreciated.

    I reviewed the REST Explorer but couldn't find the correct commands. Instead of restoring, which I believe overwrites the source volumes, I would like to create an additional thin-clone copy of the snapshot. This is similar to how Copy Services Manager (CSM) creates a secondary copy of an immutable snapshot in seconds using a bitmap. CSM provides two options; Restore (overwrite) and Recover (second copy). It's the equivalent of the Recover command I'm not too sure, please. 

    Cheers,

    Jack



    ------------------------------
    Jack Wilkins
    ------------------------------



  • 4.  RE: Best practice approach Safeguarded Copy recovery using REST API

    Posted Tue May 21, 2024 11:39 AM

    Hi Jack,

    I suppose, I understood what you need now.

    To be honest, I'd need to dig a bit deeper into the SGC technique myself to learn, whether CSM-like snapshot restore or recover operation can be triggered the way you are asking for.

    If there is a way via native CLI / ssh, the REST API endpoints basically would be the same.

    Hope to be back with you with some update in a bit, or maybe someone else can contribute something.



    ------------------------------
    Best regards, 

    Christian Schroeder
    IBM Storage Virtualize Support with Passion
    ------------------------------



  • 5.  RE: Best practice approach Safeguarded Copy recovery using REST API

    Posted Wed May 22, 2024 05:05 AM
      |   view attached

    Hi Christian,

    I've attached a screenshot. It appears the command to use moving forward is 'mkvolumegroup'.

    Thanks,

    Jack



    ------------------------------
    Jack Wilkins
    ------------------------------