Skip to content

Commit

Permalink
Merge pull request #476 from arogge/dev/arogge/master/document-limita…
Browse files Browse the repository at this point in the history
…tions

Document limitations of droplet backend and max block size
  • Loading branch information
arogge committed Apr 8, 2020
2 parents 39fbbdc + b5c2f2f commit f90b922
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 7 deletions.
6 changes: 6 additions & 0 deletions docs/manuals/source/TasksAndConcepts/StorageBackends.rst
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,12 @@ The name and media type must correspond to those settings in the |dir| :ref:`Dir

- :config:option:`sd/device/MediaType`\ = :config:option:`dir/storage/MediaType`\

.. limitation:: Droplet Backend does not support block interleaving

The current implementation has a known Bug that may lead to bogus data on your S3 volumes when you set :config:option:`sd/device/MaximumConccurentJobs` to a value other than 1.
Because of this the default for a backend of type Droplet is set to 1 and the |sd| will refuse to start if you set it to a value greater than 1.


A device for the usage of AWS S3 object storage with a bucket named :file:`backup-bareos` located in EU Central 1 (Frankfurt, Germany), would look like this:

.. code-block:: bareosconfig
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,18 @@
The Storage daemon will always attempt to write blocks of the specified size (in-bytes) to the archive device. As a consequence, this statement specifies both the default block size and the maximum block size. The size written never exceed the given size. If adding data to a block would cause it to exceed the given maximum size, the block will be written to the archive device, and the new data will begin a new block.
The Storage daemon will always attempt to write blocks of the specified size (in bytes) to the archive device.
As a consequence, this statement specifies both the default block size and the maximum block size.
The size written never exceeds the given size.
If adding data to a block would cause it to exceed the given maximum size, the block will be written to the archive device, and the new data will begin a new block.

If no value is specified or zero is specified, the Storage daemon will use a default block size of 64,512 bytes (126 \* 512).



.. warning::

If your are using LTO drives, changing the block size after labeling the tape will result into unreadable tapes.

Please read chapter :ref:`Tapespeed and blocksizes`, to see how to tune this value in a safe manner.

.. limitation:: Setting Maximum Block Size for non-tapes is not supported

This setting has only been tested with tape drives.
The use with every other storage backend is untested and therefore unsupported and discouraged.

.. warning::
After setting this value the device may write volumes with the new setting.
Such volumes can only be read by a device with the same or a larger maximum block size configured.
You must make sure that all devices with the same :config:option:`sd/device/MediaType` have the same value applied.

0 comments on commit f90b922

Please sign in to comment.