MaxVolumeBytes vs Volume Capacity

38 views
Skip to first unread message

Evert Meulie

unread,
Jun 16, 2023, 2:08:27 AM6/16/23
to bareos-users
Hi everyone,

I'm trying to inform bareos of the capacity of the tapes in my drive, which is (at least) 18TB.

I've tried adding 'MaxVolumeBytes = 18 TB' to /etc/bareos/bareos-sd.d/device/tapedrive-0.conf , but that gives a 'Config error: Keyword "MaximumVolumeBytes" not permitted in this resource.'
An AI which shall remain nameless then pointed me to 'Volume Capacity'. This configuration directive isn't documented that well , but I tried it anyway. Lo and behold, my error went away! 🤓

My question: Is Volume Capacity indeed the directive I should use to indicate the capacity of my tape drive?

Philipp Storz

unread,
Jun 16, 2023, 2:53:26 AM6/16/23
to bareos...@googlegroups.com
Hello Evert,

Am 16.06.23 um 08:08 schrieb Evert Meulie:
> Hi everyone,
>
> I'm trying to inform bareos of the capacity of the tapes in my drive, which is (at least) 18TB.
>
> I've tried adding 'MaxVolumeBytes = 18 TB' to /etc/bareos/bareos-sd.d/device/tapedrive-0.conf , but
> that gives a 'Config error: Keyword "MaximumVolumeBytes" not permitted in this resource.'

This is true, please check the documentation:
https://docs.bareos.org/Configuration/Director.html#config-Dir_Pool_MaximumVolumeBytes

This is a directive that can be set in the pool resource in the director configuration.

> An AI which shall remain nameless then pointed me to 'Volume Capacity'. This configuration directive
> isn't documented that well <https://docs.bareos.org/Configuration/StorageDaemon.html>, but I tried
> it anyway. Lo and behold, my error went away! 🤓
>
> My question: Is Volume Capacity indeed the directive I should use to indicate the capacity of my
> tape drive?

You should not set this directive at all when using tape drives. Bareos will always fill the tape
with as many data as possible.
As the tape drives have hardware compression, it depends on the data being written to the tape how
much will really fit on the tape.

The directive is useful if you are using disk volumes and want to limit the size of the volume files
being created in the filesystem.
>
> --
> You received this message because you are subscribed to the Google Groups "bareos-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to
> bareos-users...@googlegroups.com <mailto:bareos-users...@googlegroups.com>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/bareos-users/0997e6d1-6da3-4505-8c63-c72fced730f4n%40googlegroups.com <https://groups.google.com/d/msgid/bareos-users/0997e6d1-6da3-4505-8c63-c72fced730f4n%40googlegroups.com?utm_medium=email&utm_source=footer>.

--
Mit freundlichen Grüßen

Philipp Storz philip...@bareos.com
Bareos GmbH & Co. KG Phone: +49 221 63 06 93-92
http://www.bareos.com Fax: +49 221 63 06 93-10

Sitz der Gesellschaft: Köln | Amtsgericht Köln: HRA 29646
Geschäftsführer: Stephan Dühr, J. Steffens, P. Storz

Reply all
Reply to author
Forward
0 new messages