R
R
Ruslan2016-08-12 13:50:53
FreeBSD
Ruslan, 2016-08-12 13:50:53

How to force bareos-fd 15.2.2 to use LZ4 compression on a FreeBSD 10.3 host?

When running an archive task in bareos 15.2.2, with FileSet: Compression = LZ4 set in the settings, on a FreeBSD 10.3 host, it gives a warning:

Warning: LZ4 compression support requested in fileset but not available on this platform. Disabling...

bareos was installed from ports and the liblz4 library is also installed.
How can I enable LZ4 compression support for bareos-fd on FreeBSD?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
R
Ruslan, 2016-08-15
@freejoins

I will answer myself.
For bareos-fd to work with LZ4/LZ4HC/LZFast compression, you need to build from source and install the fastlzlib library

wget https://github.com/bareos/fastlzlib/archive/master.zip
unzip master.zip
cd fastlzlib-master/
./configure
make
make install

It is strange that it is not compiled and installed with the client itself. And there is no dependency in the ports for this library, just as there is no library itself in the ports.

D
Dkolosus, 2017-01-23
@Dkolosus

Thank you very much for the solution, I’ll add on my own that if the client was installed before installing fastlzlib, you need to remove it with pkg delete -f and install the client from the ports.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question