-
Notifications
You must be signed in to change notification settings - Fork 95
Backup et restore persistent volume #2052
Comments
@jraboeuf, thanks for trying out the the vDVS plugin could you describe the use case you are attempting with the Veeam backup. Can you also say how you configured Veeam to take a snapshot. Is it for a specific VMDK or set of VMDKs for the containers on a docker host. vDVS volumes are independent volumes and hence not sure that Veeam will snapshot and backup those. |
May I add my two cents to the question. There is a need for backing up persistent volumes as there is a need to backup any type of data. The data may have been deleted by accident or the user may want to restore the data as it was at a specific date. How do we do that ? |
@govint it is not clear what's vSphere support for backup of independent disks. So far I could find none. Veem does not support it. I cannot really use vsphere-storage-for-docker if I cannot do regular backups of it. How are we supposed to backup these? What's the proposed "official" solution? One wants to use vsphere-storage-for-docker in a docker cluster, so that it's available regardless what node in the cluster an app is scheduled to. In this respect vsphere-storage-for-docker performs admirably. But since these volumes is the only state the apps have it's extremely valuable and needs to be backed up. |
echoing the statements above. We want to build an enterprise solution and need backup for the persistent volumes. The point of having persistent data is so it's always there and useable but if not backed up (with of course ability to restore!) consistently there is great potential for loss of data and outages/customer dissatisfaction. does VMware have a solution or recommendation? |
I'm with the above. I'm really eager to try this out for real but without backup and restore I have a hard time using this for real. Any ideas? From VMware? From the community? |
My only way to Backup/Restore files in persistent volume with vDVS is give a constraints to containers on 1 host and only possible to restore simple files not DB :( |
This is just what I have been thinking about last couple of days. Would be great to have some backup strategy. |
Presently, the plugin only implements the docker plugin interface and can create and attach these volumes only to containers. The vSphere features for backup, supported for VMDKs, may not apply for these volumes (at least not wholly). There is no way presently, to make snaps of individual container volumes (snapshotting the whole VM seems just wrong if multiple volumes are in use and don't need to be snap'ed).
|
@govint One can back up a VM without downtime. Stopping the app sounds severe. If I do daily backups the app will have to be down for a few minutes a day, which is especially problematic with databases. I understand that there is not better solution right now and I thank you for your thoughts. |
Thinking this thru a bit more, possible approaches could be as below. Backup volume data on unmount:
To reduce the amount of backed up data to exactly what the application wants, the user provides volume create time options to specify a) a backup command and b) a restore command that is run by the volume plugin when it creates a backup or restores from a backup. This approach can at best restore to the point when the volume was last unmounted (or the application stopped running). These aren't incremental either as there is no way to figure what blocks changed since the last backup anyway. Does this work better than no backups? |
So the apps would need to unmount a volume to trigger a backup ? Mmm not sure it helps. Can we expect the following to be fixed ? It would also help I believe |
@chris7444 can you fix the link please? |
issue 2065 |
@chris7444, I don't believe we can take a clone of a volume when its still in use. Then again, how is app data consistency handled if volume data is copied over arbitrarily. |
@govint It is up to the application to decide this. Many applications have what it takes to recover data from "crash consistent" backups. Who is stopping a DB today or unmounting the FS that contains the data to take a backup or snapshot ? |
Yes it is axectly my use case, how to backup DB with no stop container who attach volumes ? |
OK, verified that the clone of a volume won't happen unless the source volume is not in use. We can do the clone of a container volume provided all containers that are presently using the volume are paused, the volume is cloned and then containers are resumed. Which should allow a PIT copy of the container volume to be created. Which could actually be scripted vs. needing any code to handle this in the plugin. The container volumes are configured as independent disks to the VM and as such hot cloning isn't possible and needs the volume to not be in use. |
@govint Let me make sure I understand user wants to clone volume X
is that it ? |
My bad, I should have verified the flow first. This will need some changes on the ESX host side to handle the clone. Let me make those changes, try it out first. |
I'll post a change to allow taking a hot clone of a container volume, user should be able to pause container - clone volume - resume container. Cloned volume would be a PIT backup of the container volume. With the fixes in #2077 merged this should be doable now. |
Hello,
I begin with vDVS and I would like to know how to backup and restore properly a persistent docker volume.
I already tried snapshot or Veeam Backup but a restore doesn't work
Have you a good methode ?
Thx in advance
Jeremie
The text was updated successfully, but these errors were encountered: