Can't make backup

18 views
Skip to first unread message

Anton Kiryushkin

unread,
Oct 29, 2020, 10:07:45 AM10/29/20
to bareos-users
Hello.

I try to use virtual autochanger which available via vchanger utility.
I used it several times before, but this time there is something which I can't understand.

Below I will copy the configuration of my SD part of the system.

Here the vchanger configuration:

Storage Resource = "hd-mnt2"
User = bareos
group = bareos
work dir = "/mnt2/bareos/data"
logfile = "/var/log/vchanger/virtual-mnt2.log"
bconsole = "/usr/sbin/bconsole"
bconsole config = /etc/bareos/bconsole.conf
Magazine = "/mnt2/bareos/storage"
log level = 7

˙Here autochanger configuration:
Autochanger {
    Name = hd-mnt2
    Changer Device = "/etc/bareos/Virtual-vchanger-mnt2.conf"
    Changer Command = "/usr/bin/vchanger %c %o %S %a %d"
    Device = hd-mnt2-0_0000, hd-mnt2-0_0001, hd-mnt2-0_0002, hd-mnt2-0_0003, hd-mnt2-0_0004, hd-mnt2-0_0005
}
Device {
    Name = hd-mnt2-0_0000
    Device Type = File
    Media Type = File
    Archive Device = /mnt2/bareos/storage/hd-mnt2-0_0000
    AutomaticMount = yes # when device opened, read it
    AlwaysOpen = yes
    RemovableMedia = yes
    Autochanger = yes
    Drive Index = 0
    Maximum Concurrent Jobs = 50 # Allow 5 jobs in /
    Volume Poll Interval = 15
    Label Media = yes
    Autoselect = yes
}
and so on.

After I have created those files, I made the volumes via the command:
vchanger /etc/bareos/Virtual-vchanger-mnt2.conf createvols 0 6

The volumes have created, but, the command of bconsole `label barcodes` DON'T label the volumes.
Okay, I labelled the volumes by my hand, one by one.
I could start the backup, it wrote the whole volume and when it reaches the amount of the volume it wrote:
29-Oct 09:58 bareos-sd-on-SRV JobId 7113: 3307 Issuing autochanger "unload slot 1, drive 1" command.
29-Oct 09:58 bareos-sd-on-SRV JobId 7113: 3304 Issuing autochanger "load slot 1, drive 1" command.
29-Oct 09:58 bareos-sd-on-SRV JobId 7113: 3305 Autochanger "load slot 1, drive 1", status is OK.
29-Oct 09:58 bareos-sd-on-SRV JobId 7113: Warning: Director wanted Volume "hd-mnt2-0_0000".
    Current Volume "hd-mnt2-0_0001" not acceptable because:
    1998 Volume "hd-mnt2-0_0001" catalog status is Full, but should be Append, Purged or Recycle.

What the hell? There are 6 volumes as well as volume hd-mnt2-0_0000. I can see it on the disk, but the Director can't use it. Why?
Reply all
Reply to author
Forward
0 new messages