Bacula-users

Re: [Bacula-users] Bacula BLOCKED waiting for mount

2015-08-02 22:23:12
Subject: Re: [Bacula-users] Bacula BLOCKED waiting for mount
From: Michael Schwager <mschwager AT mochotrading DOT com>
To: "Bacula-users AT lists.sourceforge DOT net" <bacula-users AT lists.sourceforge DOT net>
Date: Sun, 2 Aug 2015 21:17:09 -0500
...Curiously, I marked "EPW681L3" as "Full" status from bconsole, and it change the next tape to "Recycle" Status. Why is Bacula setting tapes to "Recycle" status? It never used to do that. The again, I was never on level 7.0.5 before either...

|      17 | EPW681L3   | Full      |       1 |               1 |        0 |    7,776,000 |       1 |    0 |         0 | LTO-3     | 2015-04-25 08:08:59 |
|      26 | EPW683L3   | Recycle   |       1 |               1 |        0 |    7,776,000 |       1 |    0 |         0 | LTO-3     | 2015-05-02 09:04:19 |




- Mike Schwager
  Linux Network Engineer, Mocho Trading LLC
  312-646-4783 Phone    312-637-0011 Cell    312-957-9804 Fax


On Sun, Aug 2, 2015 at 5:43 PM, Michael Schwager <mschwager AT mochotrading DOT com> wrote:
Hello,
We are running Bacula 7.0.5 on CentOS 7.0. This weekend, one of our full stores blocked waiting on a tape. However I was trying to enjoy the nice Chicago weather and trying not to think about work, so needless to say our backup failed.

Starngely, we have another tape that SHOULD be available. Tapes in this pool are set to recycle after 90 days, and 90 days ago from today is May 4th.
​ We have a tape that was last written to on March 28. So why would Bacula block on the unavailable tape? Can I set it to fail and move on if a tape is not available? I will never be able to satisfy Bacula over the weekend- I would rather it fail than hold everything up.

Thanks. ​Here's some Bacula queries; first my client entry from bacula-dir.conf:
Client {
  Name = fscluster2-backup
...
  File Retention = 3 months
  Job Retention = 3 months
  AutoPrune = yes                     # Prune expired Jobs/Files
}


​Here's what status jobs says:​

Device "HP_LTO-3" (/dev/nst0) is not open.
    Device is BLOCKED waiting for mount of volume "EPW681L3",
       Pool:        Tape
       Media type:  LTO-3
    Drive 0 is not loaded.
==
​...​

Used Volume status:
Reserved volume: EPW681L3 on tape device "HP_LTO-3" (/dev/nst0)
    Reader=0 writers=1 reserves=0 volinuse=0
====

​But list media shows a volume in the changer which was last written to on March 28; much older than 90 days. Why didn't Bacula use it?​


*list media
Automatically selected Catalog: MyCatalog
Using Catalog "MyCatalog"
Pool: Tape
+---------+------------+-----------+---------+-----------------+----------+--------------+---------+------+-----------+-----------+---------------------+
| MediaId | VolumeName | VolStatus | Enabled | VolBytes        | VolFiles | VolRetention | Recycle | Slot | InChanger | MediaType | LastWritten         |
+---------+------------+-----------+---------+-----------------+----------+--------------+---------+------+-----------+-----------+---------------------+
|      16 | EPW680L3   | Full      |       1 | 557,867,971,584 |      145 |    7,776,000 |       1 |    1 |         1 | LTO-3     | 2015-03-28 07:11:04 |
|      17 | EPW681L3   | Recycle   |       1 |               1 |        0 |    7,776,000 |       1 |    0 |         0 | LTO-3     | 2015-04-25 08:08:59 |
​...​

|      46 | EPW692L3   | Full      |       1 | 532,896,215,040 |      163 |    7,776,000 |       1 |    2 |         1 | LTO-3     | 2015-08-01 09:13:24 |
|      47 | EPW693L3   | Full      |       1 | 420,250,650,624 |      105 |    7,776,000 |       1 |    8 |         1 | LTO-3     | 2015-08-01 11:55:27 |
​...​

|      68 | ERX840L3   | Full      |       1 | 508,789,241,856 |      130 |    7,776,000 |       1 |    5 |         1 | LTO-3     | 2015-07-25 10:08:25 |
+---------+------------+-----------+---------+-----------------+----------+--------------+---------+------+-----------+-----------+---------------------+

*status slots
Automatically selected Storage: LTO-3
​...​

3306 Issuing autochanger "list" command.
 Slot |   Volume Name    |   Status  |     Media Type       |      Pool          |
------+------------------+-----------+----------------------+--------------------|
    1 |         EPW680L3 |      Full |                LTO-3 |               Tape |
    2 |         EPW692L3 |      Full |                LTO-3 |               Tape |
    3 |         EPW732L3 |    Append |                LTO-3 |           WORM-CRM |
    4 |         EPW730L3 |    Append |                LTO-3 |           WORM-CRM |
    5 |         ERX840L3 |      Full |                LTO-3 |               Tape |
    6 |         EPW733L3 |    Append |                LTO-3 |        WORM-Onsite |
    7 |         EPW729L3 |    Append |                LTO-3 |        WORM-Onsite |
    8 |         EPW693L3 |      Full |                LTO-3 |               Tape |


- Mike Schwager
  Linux Network Engineer, Mocho Trading LLC
  312-646-4783 Phone    312-637-0011 Cell    312-957-9804 Fax




This message is for the named person(s) use only. It may contain confidential proprietary or legally privileged information. No confidentiality or privilege is waived or lost by any mistransmission. If you receive this message in error, please immediately delete it and all copies of it from your system, destroy any hard copies of it and notify the sender. You must not, directly or indirectly use, disclose, distribute, print, or copy any part of this message if you are not the intended recipient. Mocho Trading LLC reserves the right to monitor all e-mail communications through its networks. Any views expressed in this message are those of the individual sender, except where the message states otherwise and the sender is authorized to state them to be the views of any such entity.
------------------------------------------------------------------------------
_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users