[Samba] vfs_shadow_copy2: unmount snapshot while user is restoring from it

Volker Lendecke Volker.Lendecke at SerNet.DE
Thu Feb 11 15:16:03 UTC 2016

On Wed, Feb 10, 2016 at 12:56:31PM +0200, Alex Lyakas wrote:
> Hi Jeremy,
> The use case is that we want to automatically rotate the snapshots.
> For example, we want to keep 24 hourly snapshots, and every hour we
> create a new snapshot and unmount the oldest one. But since customers
> can be restoring from the oldest snapshot right now, it is not
> deterministic when we will be able to unmount the oldest snapshot. So
> at that moment we want all active restore operations to abort with an
> error, and then we unmount. This problem should be common to all
> storage vendors using the shadow copy module with mounted snapshots.

So you want to fail the restore with a potentially corrupted file? I'd
call having to wait until the restore completed much more
user-friendly. Or I am missing a big piece of the picture.


SerNet GmbH, Bahnhofsallee 1b, 37081 Göttingen
phone: +49-551-370000-0, fax: +49-551-370000-9
AG Göttingen, HRB 2816, GF: Dr. Johannes Loxen
http://www.sernet.de, mailto:kontakt at sernet.de

More information about the samba mailing list