Hello, I am running bacula 9.6.9.5 on CentOs 8 with plugin bacula-sd-aligned-driver-9.6.5.so installed, following the configuration documentation "Deduplication Optimized Volumes". I would like to activate deduplication, but I do not succeed:
******************************************************************************************************************************** Here is the result of "zpool status -D bacula", bacula/fsd if a zfs filesystem, containing only 1 tape volume: ******************************************************************************************************************************** #zpool status -D bacula pool: bacula state: ONLINE scan: none requested config: NAME STATE READ WRITE CKSUM bacula ONLINE 0 0 0 sdb ONLINE 0 0 0 errors: No known data errors dedup: DDT entries 38001, size 274B on disk, 146B in core bucket allocated referenced ______ ______________________________ ______________________________ refcnt blocks LSIZE PSIZE DSIZE blocks LSIZE PSIZE DSIZE ------ ------ ----- ----- ----- ------ ----- ----- ----- 1 37.1K 4.64G 4.40G 4.40G 37.1K 4.64G 4.40G 4.40G <= allocated=referenced <= Total 37.1K 4.64G 4.40G 4.40G 37.1K 4.64G 4.40G 4.40G ******************************************************************************************************************************** #ls -lh /bacula/fsd total 4.5G -rw-r----- 1 bacula disk 4.7G Sep 17 14:24 Vol-0004 ******************************************************************************************************************************** #ls -lh /home/aligned total 4.0K -rw-r----- 1 bacula disk 1.0K Sep 17 13:36 Vol-0004.add ******************************************************************************************************************************** # zfs list NAME USED AVAIL REFER MOUNTPOINT bacula 4.42G 51.3G 24K /bacula bacula/fsd 4.40G 51.3G 4.40G /bacula/fsd ******************************************************************************************************************************** # zpool list NAME SIZE ALLOC FREE CKPOINT EXPANDSZ FRAG CAP DEDUP HEALTH ALTROOT bacula 57.5G 4.42G 53.1G - - 0% 7% 1.00x ONLINE - <= DEDUP=1.00 <= ******************************************************************************************************************************** Vol-0004 contains only 3 full backups of the same client, at nearly the same time: ******************************************************************************************************************************** Terminated Jobs: JobId Level Files Bytes Status Finished Name =================================================================== 22 Full 99,765 1.640 G OK 17-sept2020 13:44 Backup-ovn2 23 Full 99,765 1.640 G OK 17-sept2020 14:03 Backup-ovn2 24 Full 99,765 1.640 G OK 17-sept2020 14:23 Backup-ovn2 ******************************************************************************************************************************** Here is the configuration of bacula-sd.conf: ******************************************************************************************************************************** Autochanger { Name = FileChgr3 Device = Dedup-Dev Changer Command = "" Changer Device = /dev/null } Device { Name = Dedup-Dev Device Type = Aligned Media Type = Aligned Maximum Block Size = 128K Minimum Block Size = 0 File Alignment = 128K Padding Size = 512 Minimum Aligned Size = 4K Maximum Concurrent Jobs = 1 Archive Device = /bacula/fsd Aligned Device = /home/aligned LabelMedia = yes; Random Access = Yes; AutomaticMount = yes; RemovableMedia = no; AlwaysOpen = no; } ******************************************************************************************************************************** And the configuration of bacula-dir.conf: ******************************************************************************************************************************** Autochanger { Name = File3 Address = test-ovirt SDPort = 9103 Password = "3mFW984e2nqoLT6hXiVux4mBg78PBBmT2KkGANmoXj Device = FileChgr3 Media Type = Aligned Autochanger = File3 Maximum Concurrent Jobs = 1 } ******************************************************************************************************************************** Here are the messages of the creation of the volume, the right Device is used: ******************************************************************************************************************************** *me 17-Sep 13:36 test-ovirt-dir JobId 22: Start Backup JobId 22, Job=Backup-ovn2.2020-09-17_13.36.30_10 17-Sep 13:36 test-ovirt-dir JobId 22: Created new Volume="Vol-0004", Pool="File", MediaType="Aligned" in catalog. 17-Sep 13:36 test-ovirt-dir JobId 22: Using Device "Dedup-Dev" to write. 17-Sep 13:36 test-ovirt-sd JobId 22: Labeled new Volume "Vol-0004" on Aligned device "Dedup-Dev" (/bacula/fsd). 17-Sep 13:36 test-ovirt-sd JobId 22: Wrote label to prelabeled Volume "Vol-0004" on Aligned device "Dedup-Dev" (/bacula/fsd ******************************************************************************************************************************** I have run bacula-sd.conf in debug mode, the device seems to initiate: ******************************************************************************************************************************** /opt/bacula/bin/bacula-sd -d 99 -f -c /opt/bacula/etc/bacula-sd.conf bacula-sd: address_conf.c:274-0 Initaddr 0.0.0.0:9103 test-ovirt-sd: plugins.c:97-0 load_plugins test-ovirt-sd: plugins.c:133-0 Rejected plugin: want=-sd.so name=bpipe-fd.so len=11 test-ovirt-sd: plugins.c:133-0 Rejected plugin: want=-sd.so name=bacula-sd-aligned-driver-9.6.5.so len=33 test-ovirt-sd: plugins.c:121-0 Failed to find any plugins in /opt/bacula/plugins test-ovirt-sd: stored.c:613-0 calling init_dev FileChgr1-Dev1 test-ovirt-sd: stored.c:615-0 SD init done FileChgr1-Dev1 (0x7f2304001358) test-ovirt-sd: stored.c:613-0 calling init_dev FileChgr2-Dev1 test-ovirt-sd: stored.c:615-0 SD init done FileChgr2-Dev1 (0x7f2304003258) test-ovirt-sd: stored.c:613-0 calling init_dev Dedup-Dev test-ovirt-sd: init_dev.c:437-0 Open SD driver at /opt/bacula/plugins/bacula-sd-aligned-driver-9.6.5.so <= dedup device open <= test-ovirt-sd: init_dev.c:442-0 Lookup "BaculaSDdriver" in driver=aligned test-ovirt-sd: init_dev.c:444-0 Driver=aligned entry point=7f2308ca19f0 test-ovirt-sd: init_dev.c:469-0 SD driver=aligned is already loaded. test-ovirt-sd: stored.c:615-0 SD init done Dedup-Dev (0x7f23040053e8) test-ovirt-sd: bnet_server.c:86-0 Addresses 0.0.0.0:9103 Can somebody give me help ? Thank you Serge UGE
_______________________________________________ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users