Hi,
I'm using Bacula version 9.4.2 on Debian 9.8. This server is a virtual
machine on KVM hypervisor.
My Bacula Server was worked properly until yesterday, but now it has
problems of locking of jobs, as the follow:
Running Jobs:
Console connected at 10-abr-19 17:09
Console connected at 10-abr-19 17:17
JobId Type Level Files Bytes Name Status
======================================================================
1852 Back Full 0 0 dns-BackupDiario is waiting for a
mount request
====
part of my Job log:
0-abr 17:09 bkp-dir JobId 1852: Start Backup JobId 1852,
Job=dns-BackupDiario.2019-04-10_17.09.10_05
10-abr 17:09 bkp-dir JobId 1852: Using Device "FileStorageAligned" to write.
10-abr 17:09 bkp-sd JobId 1852: Please mount append Volume "diario0033" or
label a new one for:
Job: dns-BackupDiario.2019-04-10_17.09.10_05
Storage: "FileStorageAligned" (/zfs/Backup)
Pool: PorDia
Media type: File1
I really don't know the reason of this problem and searched a lot in the
Internet, but is very difficult to find the solution.
Apparently looks like OK for me:
mount (disks OK)
zfs on /zfs type zfs (rw,xattr,noacl)
zfs/Backup on /zfs/Backup type zfs (rw,xattr,noacl)
ls /zfs/Backup/ (volumes OK)
diario0009 diario0015
zpool status zfs (ZFS Volumes OK)
pool: zfs
state: ONLINE
scan: scrub repaired 0 in 5h11m with 0 errors on Sun Mar 10 05:35:20 2019
config:
NAME STATE READ WRITE CKSUM
zfs ONLINE 0 0 0
vdb1 ONLINE 0 0 0
errors: No known data errors
zpool list zfs
NAME SIZE ALLOC FREE EXPANDSZ FRAG CAP DEDUP HEALTH ALTROOT
zfs 14,8T 1,12T 13,6T - 4% 7% 2.22x ONLINE -
/etc/init.d/bacula-sd status (OK)
● bacula-sd.service - Bacula Storage Daemon service
Loaded: loaded (/lib/systemd/system/bacula-sd.service; enabled; vendor
preset: enabled)
Active: active (running) since Wed 2019-04-10 17:06:26 -03; 24min ago
Docs: man:bacula-sd(8)
Process: 1515 ExecStartPre=/usr/sbin/bacula-sd -t -c $CONFIG
(code=exited, status=0/SUCCESS)
Main PID: 1604 (bacula-sd)
Tasks: 2 (limit: 4915)
CGroup: /system.slice/bacula-sd.service
└─1604 /usr/sbin/bacula-sd -fP -c /etc/bacula/bacula-sd.conf
Following is my configuration files:
cat bacula-sd.conf
# For Bacula release 9.0.7 (18 April 2018) -- debian 9.4
Storage {
Name = bkp-sd
SDPort = 9103
WorkingDirectory = "/var/lib/bacula"
Pid Directory = "/run/bacula"
Plugin Directory = "/usr/lib/bacula"
Maximum Concurrent Jobs = 1
SDAddress = 192.168.10.14
}
#
# List Directors who are permitted to contact Storage daemon
#
Director {
Name = bkp-dir
Password = "senha"
}
#
# Restricted Director, used by tray-monitor to get the
# status of the storage daemon
#
Director {
Name = bkp-mon
Password = "senha"
Monitor = yes
}
Device {
Name = FileStorageAligned
Device Type = Aligned
Media Type = File1
Archive Device = /zfs/Backup
LabelMedia = yes;
Random Access = Yes;
AutomaticMount = yes;
RemovableMedia = no;
AlwaysOpen = no;
Maximum Concurrent Jobs = 1
Minimum Block Size=0k
Maximum Block Size=128k
File Alignment=128k
Padding Size=512
Minimum Aligned Size=4096
}
Messages {
Name = Standard
director = bkp-dir = all
}
#############################################################
cat storages.conf
Storage {
Name = File
Address = 192.168.10.14
SDPort = 9103
Password = "senha"
Device = FileStorageAligned
#Device = FileStorage
Media Type = File1
#############################################################
cat pools.conf
Pool {
Name = PorSemana
Pool Type = Backup
LabelFormat = semanal
Recycle = yes
AutoPrune = yes
Purge Oldest Volume = Yes
Volume Retention = 30 days
Maximum Volume Bytes = 100G
}
Pool {
Name = PorDia
Pool Type = Backup
LabelFormat = diario
Recycle = yes
AutoPrune = yes
Purge Oldest Volume = Yes
Volume Retention = 7 days
Maximum Volume Bytes = 100G
}
Pool {
Name = PorMes
Pool Type = Backup
LabelFormat = mensal
Recycle = yes
AutoPrune = yes
Purge Oldest Volume = Yes
Volume Retention = 365 days
Maximum Volume Bytes = 100G
}
# Scratch pool definition
Pool {
Name = Scratch
Pool Type = Backup
}
Result of llist volume command in bconsole
poolid: 5
name: PorDia
numvols: 57
maxvols: 0
useonce: 0
usecatalog: 1
acceptanyvolume: 0
volretention: 604,800
voluseduration: 0
maxvoljobs: 0
maxvolbytes: 107,374,182,400
autoprune: 1
recycle: 1
pooltype: Backup
labelformat: diario
enabled: 1
scratchpoolid: 0
recyclepoolid: 0
labeltype: 0
actiononpurge: 0
cacheretention: 0
####################################################
Anybody have an idea how to solve this problem?
Regards,
Márcio Bacci
_______________________________________________
Bacula-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bacula-users