Bacula-users

Re: [Bacula-users] [Bacula-devel] bacula 2.4.1b1 waiting for already mounted volume

2008-07-04 07:18:25
Subject: Re: [Bacula-users] [Bacula-devel] bacula 2.4.1b1 waiting for already mounted volume
From: Nils Blanck-Wehde <nils.blanck-wehde AT backofficeservice DOT biz>
To: bacula-users AT lists.sourceforge DOT net
Date: Fri, 04 Jul 2008 13:18:04 +0200
Hi,
I was talking about an backup job that backups the catalog to tape every hour. It uses a 4-Volume pool with a max-jobcount of one and a retention period of 3 hours. This way one volume is recycled and used again every hour.
I didn't actually see bacula loading tape CNV762 from slot 2, I wasn't in the room at the time. From the logs I see that the previous run of this backup job was correctly written to tape CNV761 from slot #1.
When I came back bacula had started the next run of this job (which logically could only use tape CNV762 as it was the only recycleable volume in the pool) tape CNV762 was already loaded and simultaniously bacula started asking for me to load the required tape.
In the mean time I dropped the catalog to start over again. Maybe it was a one-timer.

Just to round this up, here is the untruncated output of *list volumes (I had it still on my screen):
Pool: Weekly_Full_Backup_to_DLT
+---------+------------+-----------+---------+---------------+----------+--------------+---------+------+-----------+-----------+---------------------+
| MediaId | VolumeName | VolStatus | Enabled | VolBytes      | VolFiles | VolRetention | Recycle | Slot | InChanger | MediaType | LastWritten         |
+---------+------------+-----------+---------+---------------+----------+--------------+---------+------+-----------+-----------+---------------------+
|      28 | CNV762     | Recycle   |       1 |             1 |        0 |       10,800 |       1 |    2 |         1 | DLT-VS1   | 2008-07-01 19:46:59 |
|      29 | CNV763     | Used      |       1 | 3,982,261,248 |        4 |       10,800 |       1 |    3 |         1 | DLT-VS1   | 2008-07-03 08:13:07 |
|      30 | CNV764     | Used      |       1 | 3,545,837,568 |        4 |       10,800 |       1 |    4 |         1 | DLT-VS1   | 2008-07-01 22:53:25 |
|      43 | CNV761     | Used      |       1 | 3,982,841,856 |        4 |        3,600 |       1 |    1 |         1 | DLT-VS1   | 2008-07-03 18:15:11 |
+---------+------------+-----------+---------+---------------+----------+--------------+---------+------+-----------+-----------+---------------------+
*

Could someone please tell me what's the problem of my tape-drive being /dev/st0?

Best regards, Nils

Arno Lehmann schrieb:
Hi,

04.07.2008 11:08, Kern Sibbald wrote:
  
On Friday 04 July 2008 10:50:52 Arno Lehmann wrote:
    
Hi,

04.07.2008 10:27, Kern Sibbald wrote:
      
If you are new to Bacula and/or you are having support problems, you will
probably get much better answers from the bacula-users list.  See
www.bacula.org -> Support.  The bacula-devel list is specifically for
development issues or issues that are clearly known to be a beta problem.
        
Well, we have discussed this issue at -users and I recommended to ask
here :-)

The Bacula version running is 2.4.1b1, upgraded from 2.4.0.

With 2.4.0, no problems.

After the upgrade the mentioned problem arose.

I trim the report below a bit to better show what I think is problematic.

Without further checking, I got the impression that the volume
selection / reservation seems to be involved - and I believe you did
some work there.

My conclusion: Looks like a new "feature" of the reworked SD code, and
you might prefer to know about it before releasing a 2.4.2 based on
this version...

      
However, be aware that the information you sent is not complete enough
for them to give a good answer.  I suspect that you either lost or forgot
to define the slot numbers in the catalog.
        
Assuming Nils didn't manually modify the catalog, Bacula itself lost
the slot numbers :-)

      
 Since your volume listing is
clipped, I cannot confirm it.

Thanks for trying the beta version -- good luck on getting it going.

Best regards,

Kern

On Friday 04 July 2008 09:49:11 Nils Blanck-Wehde wrote:
        
Hello,
          
...

      
Bacula started a job that's supposed to be stored on tape, chose exactly
the right volume "CNV762" from the pool, purged and recycled it.
          
This seems to indicate it's a backup job he's running, not a restore. 
If a restore triggered recycling of the volume it's going to use we're 
in deep trouble ;-)

  
The
    
tape was even loaded correctly from the right slot into the drive.
          
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Bacula knew about the slot.

      
Here's *list volumes of that pool:
|      28 | CNV762     | Recycle   |       1 |             1 |        0
|       10,800 |
|      29 | CNV763     | Used      |       1 | 3,982,261,248 |        4
|       10,800 |
|      30 | CNV764     | Used      |       1 | 3,545,837,568 |        4
|       10,800 |
|      43 | CNV761     | Used      |       1 | 3,982,841,856 |        4
|        3,600 |

+---------+------------+-----------+---------+---------------+----------
+--

Now, the job is waiting for the right volume to be mounted, which is
already in the drive.
The storage-device's status is:

Device status:
Autochanger "QS3DLT" with devices:
  "DLT-Drive-1" (/dev/st0)
Device "FileStorage_SATA-RAID1-MD1" (/var/bacula/File-Storage) is not
open. Device "DLT-Drive-1" (/dev/st0) open but no Bacula volume is
currently mounted.
   Device is BLOCKED waiting for mount of volume "CNV762",
      Pool:        Weekly_Full_Backup_to_DLT
      Media type:  DLT-VS1
   Slot 2 is loaded in drive 0.
   Total Bytes Read=322,560 Blocks Read=5 Bytes/block=64,512
   Positioned at File=0 Block=0
Device "DVD Writer" (/dev/hda) is not open.
====

In Use Volume status:
CNV762 on device "DLT-Drive-1" (/dev/st0)
   Reader=0 writers=0 devres=1 volinuse=1
          
All the information needed is there - CNV762 is in DLT-Drive-1,
DLT-Drive-1 wants this volume.

Arno
      
Oh, I forgot to mention one thing.  Using a /dev/st0 with an autochanger is 
very likely to get you into trouble.

    
I overlooked this... right.

But directly after a volume is loaded it shouldn't matter much, I 
believe :-)

Arno

  

--

 

BackOfficeService - Beratung und Service für Ihre IT -

 

Anschrift:

Niederkastenholzer Str. 40

53881 Euskirchen

Telefon:   +49 2255 953204

Fax:          +49 2255 953208

Mobil:      +49 177 3397547

Bankverbindung:

Raiffeisenbank Rheinbach Voreifel eG

Kto. Nr. 340286014 (BLZ 370 696 27)

Online:

info@backofficeservice.biz

www.backofficeservice.biz

 

-------------------------------------------------------------------------
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
_______________________________________________
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>