[pbs-devel] [PATCH proxmox-backup v7 00/20] add removable datastores

Dietmar Maurer dietmar at proxmox.com
Fri Apr 19 12:10:34 CEST 2024


Reviewed-by: dietmar at proxmox.com

I guess we can commit this. The UI still needs some improvements, but we can do that on top of this series.

> On 19.4.2024 10:58 CEST Hannes Laimer <h.laimer at proxmox.com> wrote:
> 
>  
> These patches add support for removable datastores. All removable
> datastores have a backing-device(a UUID) associated with them. Removable
> datastores work like normal ones, just that they can be unplugged. It is
> possible to create a removable datastore, sync backups onto it, unplug
> it and use it on a different PBS.
> 
> The datastore path is also the mountpoint for the removable datastore.
> By default when creating one through the web UI it will be
> `/mnt/removable-datastores/<UUID>`, using the CLI it is possible to
> specify something else. Since a removable datastore is associated with
> the UUID of a partition, it is technically possible to have two
> removable datastores on the same device, but I don't think there is a
> use-case that couldn't also be done using namespaces.
> 
> When a removable datastore is deleted and 'destroy-data' is set, the
> device has to be plugged in. If 'destroy-data' is not set the datastore
> can be deleted even if the device is not present. Removable datastores
> are automatically mounted when plugged in. At the API service start all
> removable datastores are marked as 'unplugged', unless they are already
> mounted. 
> 
>  
> v7:
>  * drop first two patches, now depends on [1]
>  * improve logging when waiting for tasks
>  * drop `update-datatore-cache` refactoring
>  * fix some commit messages




More information about the pbs-devel mailing list