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.
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.
@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
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
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.
15 people are following this question.