Search code examples
kubernetespersistent-volumespersistent-storagekubernetes-pvc

How to change the default name of auto snapshot taken by linstor?


I am able to capture the snapshots of resource-definition using below commands linstor rd sp pvc-00 AutoSnapshot/RunEvery 15 which captures a snapshot of given resource-definition(pvc-00) after every 15 minutes..

 ResourceName  ┊ SnapshotName
 pvc-006       ┊ autoSnap00071

the snapshot is by default getting captured with the name autoSnap00071 , is there a way where i can manually provide a name to snapshots?

Thanks in advance


Solution

  • As @ghernadi mentioned in this comment

    Currently Linstor does not support any kind of renaming action. If you really have to do this, you have two options:

    • NOT RECOMMENDED: you do it manually by editing the database (NOT
      recommended, as you have to be very careful to update all references to the changed name)
    • a bit "more" recommended: delete your current database (or perform "lostNode" commands for the affected nodes) and recreate using migration everything with the new storage pool names.

    Note: we do have internal discussions if and how we could provide renaming actions. That means this situation might be easier to resolve in (far) future

    This is an Open issue you can follow this github link for more feature enhancements. You can also raise a comment under this link or else you can raise a new feature request .

    Refer to this official Linstor documentation for more information.