Bacula-users

Re: [Bacula-users] Again: Device is BLOCKED waiting to create a volume for:

2015-08-31 23:34:15
Subject: Re: [Bacula-users] Again: Device is BLOCKED waiting to create a volume for:
From: Ana Emília M. Arruda <emiliaarruda AT gmail DOT com>
To: s.guenther AT in-put DOT de
Date: Tue, 1 Sep 2015 00:29:09 -0300
Hello Stefan,

Both of your jobs (BackupCatalog and Backup job AB01) are trying to use device FileStorage. Is this your only device? If so, you can have concurrent jobs writing in the same mounted volume in this device. You cannot have more than one volume mounted in one specific drive. Also, you no not have "Label Format" configured for your pools. This way bacula will not be able to automatic label your volumes. You will need to do this manually.

You mentioned about using VTLs, can you post the output for "lsscsi -g"?

Best regards,
Ana

On Mon, Aug 31, 2015 at 9:34 AM, Stefan Michael Guenther <s.guenther AT in-put DOT de> wrote:
Hi,

we are using bacula 5.2.6 on a Ubuntu 14.04 LTS.

We have two pools for backups set up like this:


Pool {
  Name = File
  Pool Type = Backup
  Recycle = yes
  AutoPrune = yes
  Volume Retention = 365 days
  Maximum Volume Bytes = 50G
  Maximum Volumes = 10
}

Pool {
  Name = AB01
  Pool Type = Backup
  Recycle = yes
  AutoPrune = yes
  Volume Retention = 10 days
  Maximum Volume Bytes = 1G
  Maximum Volumes = 10
}


SD setup:

Storage {
  Name = server-sd
  SDPort = 9103
  WorkingDirectory = "/var/lib/bacula"
  Pid Directory = "/var/run/bacula"
  Maximum Concurrent Jobs = 20
  SDAddress = 172.26.0.70
}

Director {
  Name = server-dir
  Password = "xxxx"
}

Director {
  Name = server-mon
  Password = "xxxx"
  Monitor = yes
}

Device {
  Name = FileStorage
  Media Type = File
  Archive Device = /media/nas/bacula
  LabelMedia = no
  Random Access = Yes;
  AutomaticMount = yes;
  RemovableMedia = no;
  AlwaysOpen = yes;
}

And volumes for each pool:

*list volumes
Pool: Default
Keine Ergebnisse zu "list" Kommando.
Pool: File
+---------+------------+-----------+---------+----------+----------+--------------+---------+------+-----------+-----------+---------------------+
| MediaId | VolumeName | VolStatus | Enabled | VolBytes | VolFiles | VolRetention | Recycle | Slot | InChanger | MediaType | LastWritten         |
+---------+------------+-----------+---------+----------+----------+--------------+---------+------+-----------+-----------+---------------------+
|       1 | File001    | Append    |       1 |   50,844 |        0 |   31,536,000 |       1 |    0 |         0 | File      | 2015-08-30 23:10:02 |
|       7 | File002    | Append    |       1 |      191 |        0 |   31,536,000 |       1 |    0 |         0 | File      | 0000-00-00 00:00:00 |
+---------+------------+-----------+---------+----------+----------+--------------+---------+------+-----------+-----------+---------------------+
Pool: AB01
+---------+------------+-----------+---------+----------+----------+--------------+---------+------+-----------+-----------+---------------------+
| MediaId | VolumeName | VolStatus | Enabled | VolBytes | VolFiles | VolRetention | Recycle | Slot | InChanger | MediaType | LastWritten         |
+---------+------------+-----------+---------+----------+----------+--------------+---------+------+-----------+-----------+---------------------+
|       2 | AB01001    | Append    |       1 |      637 |        0 |      864,000 |       1 |    0 |         0 | File      | 2015-08-30 22:20:28 |
+---------+------------+-----------+---------+----------+----------+--------------+---------+------+-----------+-----------+---------------------+

When I check the storage, it first tells me, that it is going to us pool "File" istead of the configured pool "AB01".
Then bacula complains, that it wants to create a volume, although there is already one.

*status storage
Speicher automatisch ausgewählt: File
Connecting to Storage daemon File at 172.26.0.70:9103

server-sd Version: 5.2.6 (21 February 2012) x86_64-pc-linux-gnu ubuntu 14.04
Daemon started 30-Aug-15 22:20. Jobs: run=2, running=1.
 Heap: heap=274,432 smbytes=239,960 max_bytes=306,020 bufs=127 max_bufs=131
 Sizes: boffset_t=8 size_t=8 int32_t=4 int64_t=8 mode=0,0

Running Jobs:
Writing: Full Backup job BackupCatalog JobId=11 Volume=""
    pool="File" device="FileStorage" (/media/nas/bacula)
    spooling=0 despooling=0 despool_wait=0
    Files=0 Bytes=0 Bytes/sec=0
    FDReadSeqNo=6 in_msg=6 out_msg=4 fd=6
Writing: Incremental Backup job AB01 JobId=6 Volume=""
    pool="AB01" device="FileStorage" (/media/nas/bacula)
    spooling=0 despooling=0 despool_wait=0
    Files=0 Bytes=0 Bytes/sec=0
    FDSocket closed
====

Jobs waiting to reserve a drive:
   3608 JobId=6 wants Pool="AB01" but have Pool="File" nreserve=1 on drive "FileStorage" (/media/nas/bacula).
====

Terminated Jobs:
 JobId  Level    Files      Bytes   Status   Finished        Name
===================================================================
    10  Full          0         0   Cancel   30-Aug-15 21:51 Server
     8  Full          0         0   Cancel   30-Aug-15 22:19 BackupCatalog
     4  Full          1        78   OK       30-Aug-15 22:20 AB01
     5  Full          1    50.21 K  OK       30-Aug-15 23:10 BackupCatalog
====

Device status:
Device "FileStorage" (/media/nas/bacula) is not open.
    Device is BLOCKED waiting to create a volume for:
       Pool:        File
       Media type:  File
====

Used Volume status:
====

And bacule should have access to the virtual tape on the NAS:

root@server:~# ls -l /media/nas/bacula/ -a
insgesamt 84
drwxrwxrwx 2 root   root  4096 Aug 30 22:21 .
drwxrwxrwx 4 root   root  4096 Aug  5 18:46 ..
-rw-r----- 1 bacula tape   637 Aug 30 22:19 AB01001
-rw-r----- 1 bacula tape 50844 Aug 30 23:09 File001
-rw-r----- 1 bacula tape   191 Aug 30 22:21 File002


Well, what's wrong with our configuration?

Thanks for any hints/suggestions,

Stefan


------------------------------------------------------------------------------
_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users

------------------------------------------------------------------------------
_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users
<Prev in Thread] Current Thread [Next in Thread>