Can I retain volumes when I delete Cyclecloud cluster ?

哲司 石田 1 Reputation point
2020-07-04T09:52:01.193+00:00

I would like to retain volumes (Disks) which contain important data when I delete cluster.
Even if I set persistent parameter to true, volumes are deleted.

Azure CycleCloud
Azure CycleCloud
A Microsoft tool for creating, managing, operating, and optimizing high-performance computing (HPC) and big compute clusters in Azure.
57 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Leon Laude 85,596 Reputation points
    2020-07-04T13:24:44.81+00:00

    Hi,

    By default, a volume will be created when the instance is started, and deleted when the instance is terminated. If you want to preserve the data on the volume even after the instance is terminated you will have to make it a persistent volume.

    More information here:
    https://learn.microsoft.com/en-us/azure/cyclecloud/how-to/add-disk?view=cyclecloud-7

    Best regards,
    Leon

    0 comments No comments

  2. 哲司 石田 1 Reputation point
    2020-07-07T03:57:30.103+00:00

    Thank you so much Leon-san.

    I regret that I didn't expain what I want to do exactly.

    First, I want to attach a virtual disk which was already made to master node. This disk contain applications and datas, so we can avoid to install those one when we deploy a cluster.

    To do so, I added following configurations into a template.

        # Voleme for Applications
        [[[volume apps]]]
        VolumeId = ${AppsDisk}
        Mount = apps
        Persistent = true
    

    In this example, ${AppDisk} is a resource ID of existing virtual disk.

    When I deployed a cyclecloud cluster, I found an existing disk are attached on master node properly. But when I delete this cluster, this disk was deleted too.

    So I suppose persistent option is invalit for the existing disks.

    0 comments No comments