Bacula-users

Re: [Bacula-users] bacula wants me to mount already mounted volume

2008-08-08 10:22:44
Subject: Re: [Bacula-users] bacula wants me to mount already mounted volume
From: Nils Blanck-Wehde <nils.blanck-wehde AT backofficeservice DOT biz>
Date: Fri, 08 Aug 2008 16:22:18 +0200
Hi Brian,
I am using 2.4.2 on CentOS 5.2
I found out that issuing "update slots" can solve the issue.
It looks like even if bacula itself chose the right volume, loaded it from the right slot into the right drive, it sometimes seems to forget what it just loaded. When that happens, I do "update slots" and after some seconds bacula starts writing to the already loaded tape. Sometimes it takes an unload, reload, update slots to fix things.
But this is just my impression. It would take more detailed investigation to tell what "really" happened. I turned debugging on so maybe next time I'll be able to narrow down the issue.

I really don't think that this is a general problem because in this case the mailing list would be flooded with bugreports. Maybe its some kind of rare communication problem between bacula and mtx / mt or something similar.

Regards, Nils

Brian Debelius schrieb:
> I still think this is a bug.  No one believes me... :(
>
> Ryan Novosielski wrote:

Nils Blanck-Wehde wrote:
 
>>> Hello list,
>>>
>>> I am running bacula 2.4.2 on CentOS 5.2
>>>
>>> I can't get backups to tape work again. They worked well for weeks now
>>> and I did not touch any config-file....
>>> Right now it looks like bacula is waiting for a volume, that's already
>>> in the drive:
>>>
>>> 07-Aug 11:42 company_bacula-dir JobId 216: Using Device "DLT-Drive-1"
>>> 07-Aug 11:42 company_bacula-sd JobId 216: 3301 Issuing autochanger
>>> "loaded? drive 0" command.
>>> 07-Aug 11:42 company_bacula-sd JobId 216: 3302 Autochanger "loaded?
>>> drive 0", result is Slot 8.
>>> *messages
>>> 07-Aug 11:44 company_bacula-sd JobId 216: Please mount Volume "CNV768"
>>> or label a new one for:
>>>     Job:          Fileserver_Lexware_Exchange_to_Tape.2008-08-07_11.42.14
>>>     Storage:      "DLT-Drive-1" (/dev/nst0)
>>>     Pool:         Weekly_Full_Backup_to_DLT
>>>     Media type:   DLT-VS1
>>>
>>>
>>> This is the output of "list volumes":
>>>
>>> Pool: Weekly_Full_Backup_to_DLT
>>> +---------+------------+-----------+---------+----------------+----------+--------------+---------+------+-----------+-----------+---------------------+
>>> | MediaId | VolumeName | VolStatus | Enabled | VolBytes       | VolFiles
>>> | VolRetention | Recycle | Slot | InChanger | MediaType |
>>> LastWritten         |
>>> +---------+------------+-----------+---------+----------------+----------+--------------+---------+------+-----------+-----------+---------------------+
>>> |      11 | CNV762     | Purged    |       1 | 31,852,800,000 |       32
>>> |    4,233,600 |       1 |    2 |         1 | DLT-VS1   | 2008-07-20
>>> 04:03:14 |
>>> |      12 | CNV763     | Purged    |       1 |        129,024 |        1
>>> |    4,233,600 |       1 |    3 |         1 | DLT-VS1   | 2008-07-21
>>> 13:12:19 |
>>> |      13 | CNV764     | Purged    |       1 | 32,039,949,312 |       33
>>> |    4,233,600 |       1 |    4 |         1 | DLT-VS1   | 2008-07-22
>>> 04:04:08 |
>>> |      14 | CNV765     | Purged    |       1 | 32,240,130,048 |       33
>>> |    4,233,600 |       1 |    5 |         1 | DLT-VS1   | 2008-07-23
>>> 04:04:55 |
>>> |      15 | CNV766     | Purged    |       1 | 32,438,375,424 |       33
>>> |    4,233,600 |       1 |    6 |         1 | DLT-VS1   | 2008-07-24
>>> 04:06:35 |
>>> |      16 | CNV767     | Purged    |       1 | 32,641,846,272 |       33
>>> |    4,233,600 |       1 |    7 |         0 | DLT-VS1   | 2008-07-25
>>> 04:10:36 |
>>> |      17 | CNV768     | Recycle   |       1 |              1 |        0
>>> |    4,233,600 |       1 |    8 |         1 | DLT-VS1   | 2008-07-09
>>> 10:25:56 |
>>> |      18 | CNV760     | Cleaning  |       1 |              0 |        0
>>> |    4,233,600 |       1 |   16 |         1 |           | 0000-00-00
>>> 00:00:00 |
>>> |     163 | CNV761     | Recycle   |       1 |              1 |        0
>>> |    4,233,600 |       1 |    1 |         1 | DLT-VS1   | 2008-08-03
>>> 13:25:16 |
>>> +---------+------------+-----------+---------+----------------+----------+--------------+---------+------+-----------+-----------+---------------------+
>>> *
>>>
>>> To me this looks like bacula knows, that slot 8 contains volume "CNV768"
>>> and it knows that slot 8 ist loaded into the drive (which it is). Still
>>> it wants me to load Volume "CNV768". What am I missing?
>>>
>>> Another thing that I don't quite understand is why bacula asks me to
>>> label new volumes if I can't provide volume CNV768, all other tapes are
>>> marked purged to.
>>>
>>> I would be very glad if someone could spread some light...
>>>     
Maybe a stupid question, but did you try issuing a mount command on the
right drive?

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users