Hello,

I'm working on the project to replace an old Bacula 9.4 by the latest version 13.0.3, and I plan to use ZFS deduplication on the storages. Backups will be stored on disks with virtual drives.
This server is installed on Debian 11.

So no problem with the installations on each servers, I used the official packages available here :
https://bacula.org/packages/5f1e8eef.../binary-amd64/

This is my storage configuration on the Director:

Storage {
Name = STR-pbckall004
Address = domain.com
SDPort = 9103
Password = "************************"
Maximum Concurrent Jobs = 30
Device = CHR-home
Media Type = Aligned
Autochanger = yes
}

This is the configuration in the file bacula-sd.conf :

Storage {
Name = pbckall004-sd
SDPort = 9103
WorkingDirectory = "/opt/bacula/working"
Pid Directory = "/opt/bacula/working"
Plugin Directory = "/opt/bacula/plugins"
Maximum Concurrent Jobs = 30
}

Director {
Name = pbckall004-dir
Password = "*************************"
}

Autochanger {
Name = CHR-home
Device = DEV-dedup-DRV1
Changer Command = /dev/null
Changer Device = /dev/null
}

Device {
Name = DEV-dedup-DRV1
Device Type = Aligned
Media Type = Aligned
Archive Device = /zfs/bacula
LabelMedia = yes
Random Access = yes
AutomaticMount = yes
RemovableMedia = yes
AlwaysOpen = no
Autochanger = yes
Drive Index = 0
Volume Poll Interval = 15
Maximum Concurrent Jobs = 1
Minimum Block Size=0K
Maximum Block Size=128K
File Alignment=128K
Padding Size=512
Minimum Aligned Size=4096
}

Aligned plugin is installed and present on the storage :

drwxr-xr-x 2 bacula bacula 4096 18 janv. 10:02 .
drwxr-xr-x 11 root root 4096 16 janv. 10:48 ..
-rwxrwxrwx 1 bacula bacula 15800 3 mai 2023 bacula-sd-aligned-driver-13.0.3.so
-rw-r--r-- 1 root root 79456 3 mai 2023 bpipe-fd.so

And the ZFS configuration :

zfs list
NAME USED AVAIL REFER MOUNTPOINT
zfs 46.8G 1.37T 24K /zfs
zfs/bacula 46.6G 1.37T 46.6G /zfs/bacula

zfs get recordsize
NAME PROPERTY VALUE SOURCE
zfs recordsize 128K default
zfs/bacula recordsize 128K default

Status storage :

*status storage=STR-pbckall004
Connecting to Storage daemon STR-pbckall004 at pbckall004.speedmedia.host:9103

pbckall004-sd Version: 13.0.3 (02 May 2023) x86_64-pc-linux-gnu-bacula-enterprise debian 11.2
Daemon started 18-janv2024 15:18. Jobs: run=1, running=0.
Ulimits: nofile=1024 memlock=unlimited status=nofile
Heap: heap=270,336 smbytes=209,133 max_bytes=385,720 bufs=138 max_bufs=163
Sizes: boffset_t=8 size_t=8 int32_t=4 int64_t=8 mode=0,0 newbsr=0
Crypto: fips=N/A crypto=OpenSSL 1.1.1k 25 Mar 2021
Res: ndevices=1 nautochgr=1

Running Jobs:
Director connected using TLS at: 18-janv2024 15:49
No Jobs running.
====

Jobs waiting to reserve a drive:
====

Terminated Jobs:
JobId Level Files Bytes Status Finished Name
===================================================================
175 Incr 1 57.54 M OK 18-janv2024 13:17 Backup_rbddall003_binlogs
176 Incr 0 0 Error 18-janv2024 13:52 Backup_pbckall004
177 Incr 0 0 Error 18-janv2024 14:17 Backup_lwebsms001_binlogs
178 Incr 0 0 Error 18-janv2024 14:17 Backup_rbddall003_binlogs
179 Incr 0 0 Error 18-janv2024 14:25 Backup_pbckall004
180 Incr 0 0 Error 18-janv2024 14:28 Backup_pbckall004
181 Incr 54 173.6 M OK 18-janv2024 14:32 Backup_pbckall004
182 Incr 0 0 Error 18-janv2024 15:17 Backup_lwebsms001_binlogs
183 Incr 0 0 Error 18-janv2024 15:17 Backup_rbddall003_binlogs
184 Incr 0 0 Error 18-janv2024 15:45 Backup_pbckall004
====

Device status:
Autochanger "CHR-home" with devices:
DEV-dedup-DRV1

Device "DEV-dedup-DRV1" is not open or does not exist.
==
====

Used Volume status:
====

====

It looks like the aligned plugin is not loaded during the SD service restart. And when i start a job, the job ends with a fatal error :
Storage daemon "STR-pbckall004" didn't accept Device "CHR-home" because: 3924 Device "CHR-home" not in SD Device resources or no matching Media Type or is disabled.

Any help will be great.

Thanks.

Regards,