Bacula-users

[Bacula-users] wrong SD device displayed

2008-11-22 21:47:38
Subject: [Bacula-users] wrong SD device displayed
From: Maxime <maxime.charpenne AT univ-avignon DOT fr>
To: bacula-users AT lists.sourceforge DOT net
Date: Sun, 23 Nov 2008 03:21:48 +0100
Hello,

Recently I had to restore data from purged volumes that hadn't been 
recycled hopefully. It's files on hard drives.
I rebuild the catalog with bscan.
And I launch restoration jobs.

In bacula-sd.conf, we can find :
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
Device {
   Name = FileStorage1
   Media Type = File
   Archive Device = /bacula/disk01/

   LabelMedia = yes;               # lets Bacula label unlabeled media
   Random Access = Yes;
   AutomaticMount = yes;           # when device opened, read it
   RemovableMedia = no;
   AlwaysOpen = no;
}
 >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
and in bacula-dir.conf
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
Storage {
   Name = backup01c-sd
   Address = backup01c.univ-avignon.fr
   SDPort = 9103
   Password = "xxxxxxxxx"
   Device = FileStorage1
   Media Type = File

TLS Enable = yes
TLS Require = yes
...
}
 >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>

There is also FileStorage2 defined with /bacula/disk02/ partition 
(Storage backup01c-sd2).
*All my old volumes are located on /bacula/disk02/*, but just before 
launching restore job, I could read :
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
The job will require the following
    Volume(s)                 Storage(s)                SD Device(s)
===========================================================================

    Full-0113                 backup01c-sd2             FileStorage2 

    Inc-0263                  backup01c-sd              FileStorage1 

    Inc-0373                  backup01c-sd              FileStorage1 

    Inc-0406                  backup01c-sd              FileStorage1 

    Inc-0412                  backup01c-sd              FileStorage1 

    Inc-0466                  backup01c-sd2             FileStorage2 

    Inc-0486                  backup01c-sd2             FileStorage2 

    Inc-0546                  backup01c-sd2             FileStorage2 

    Inc-0566                  backup01c-sd2             FileStorage2 

    Inc-0072                  backup01c-sd2             FileStorage2 

 >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>

But all volumes had been read from /bacula/disk02/ since job report 
displays :
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
22-Nov 18:35 backup01c-sd JobId 2924: Ready to read from volume 
"Inc-0263" on device "FileStorage2" (/bacula/disk02/).
22-Nov 18:36 backup01c-sd JobId 2924: End of Volume at file 2 on device 
"FileStorage2" (/bacula/disk02/), Volume "Inc-0263"
22-Nov 18:36 backup01c-sd JobId 2924: Ready to read from volume 
"Inc-0373" on device "FileStorage2" (/bacula/disk02/).
22-Nov 18:36 backup01c-sd JobId 2924: End of Volume at file 0 on device 
"FileStorage2" (/bacula/disk02/), Volume "Inc-0373"
22-Nov 18:36 backup01c-sd JobId 2924: Ready to read from volume 
"Inc-0406" on device "FileStorage2" (/bacula/disk02/).
22-Nov 18:37 backup01c-sd JobId 2924: End of Volume at file 2 on device 
"FileStorage2" (/bacula/disk02/), Volume "Inc-0406"
22-Nov 18:37 backup01c-sd JobId 2924: Ready to read from volume 
"Inc-0412" on device "FileStorage2" (/bacula/disk02/).
22-Nov 18:39 backup01c-sd JobId 2924: End of Volume at file 2 on device 
"FileStorage2" (/bacula/disk02/), Volume "Inc-0412"
 >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>

I think bacula is confused because there are non purged volumes named 
Inc-0263, Inc-0373, Inc-0406, and Inc-0412 on FileStorage1 :
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
*list volume=Inc-0406
+---------+------------+-----------+---------+---------------+----------+--------------+---------+------+-----------+-----------+---------------------+
| MediaId | VolumeName | VolStatus | Enabled | VolBytes      | VolFiles 
| VolRetention | Recycle | Slot | InChanger | MediaType | LastWritten 
       |
+---------+------------+-----------+---------+---------------+----------+--------------+---------+------+-----------+-----------+---------------------+
|     406 | Inc-0406   | Used      |       1 | 9,337,460,938 |        0 
|    2,592,000 |       1 |    0 |         0 | File      | 2008-10-21 
08:27:27 |
+---------+------------+-----------+---------+---------------+----------+--------------+---------+------+-----------+-----------+---------------------+
*list volumes jobid=2542
Jobid 2542 used 1 Volume(s): Inc-0406
+-------+------------+---------------------+------+-------+----------+-------------+-----------+
| JobId | Name       | StartTime           | Type | Level | JobFiles | 
JobBytes    | JobStatus |
+-------+------------+---------------------+------+-------+----------+-------------+-----------+
| 2,542 | job_web01c | 2008-11-04 01:48:10 | B    | I     |    2,982 | 
559,944,881 | T         |
+-------+------------+---------------------+------+-------+----------+-------------+-----------+
 >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
Dates don't match...


What brings me to the points :
1) There are purged volumes on a partition (storage device) and non 
purged volumes identically named on the other partition. Is my bacula 
configuration weird or is it a normal state?
2) If everything is fine, bacula console shouldn't have displayed it 
will use volumes from backup01c-sd FileStorage1. So is it a bug?

Thanks for your comments
--
Maxime CHARPENNE
Université d'Avignon et des Pays de Vaucluse - CRI
Tél. : +33 4 90 16 26 05

-------------------------------------------------------------------------
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
<Prev in Thread] Current Thread [Next in Thread>