Files that are written to B2 should be OK, assuming they were written without error to begin with. B2's object (rather than hierarchical) storage only allows for writing the entire file at once and is not block storage. There should be no partial files. If the write fails, then the file won't be there at all. This is also why it cannot be mounted, in the traditional sense. There has to be a layer that uses local block storage to cache all of the block writes and then when the local block storage file is closed, upload the completed file to B2.

I see no reason the vchanger/OpenDedup method wouldn't work. The problem I have with it is that each write to a volume file creates a new version of that volume file. The old versions would not be in sync with the Bacula catalog's idea of what is on that volume, so would be wasted B2 space, and in B2 the old versions have to be manually deleted. For that reason, and because vchanger allows a dynamic and unlimited number of slots, I would set MaximumVolumeJobs = 1 for the pools with volumes in B2 and add and label volume files in vchanger when more are needed. Note that there will still be at least 2 versions in B2 of each volume file, one when the volume is labeled, then one when the data is written. The first version with just the volume label is still wasted space, but is small enough not to matter.


On 6/8/2019 8:14 PM, sruckh--- via Bacula-users wrote:
Next up I went with vchanger ( http://bit.ly/2E297eg ) and OpenDedup ( http://bit.ly/2ETFaxF ).  In this solution I use OpenDedup to mount my Backblaze bucket to my local file-system, and use the vchanger script to act as my autochanger for my virtual volumes.  Again, I am not 100% I completely have a handle of the mounted SDFS (backblaze volume). For example, it uses your local file system for speed.  So I have not tested the scenario if my local volume disappeared.  I am not 100% certain if I would be able to 100% recover using only the files (virtual tape volumes) that are in the cloud.


_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users

Reply via email to