question

69458688 avatar image
0 Votes"
69458688 asked prmanhas-MSFT commented

Can I retain volumes when I delete Cyclecloud cluster ?

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
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

@69458688 Any updates on the issue?

Please 'Accept as answer' if it helped, so that it can help others in the community looking for help on similar topics

0 Votes 0 ·
LeonLaude avatar image
0 Votes"
LeonLaude answered

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://docs.microsoft.com/en-us/azure/cyclecloud/how-to/add-disk?view=cyclecloud-7


Best regards,
Leon

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

69458688 avatar image
0 Votes"
69458688 answered

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.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.