Bacula-users

[Bacula-users] restore job from different devices/media

2008-07-04 06:36:44
Subject: [Bacula-users] restore job from different devices/media
From: Ralf Gross <Ralf-Lists AT ralfgross DOT de>
To: bacula-users AT lists.sourceforge DOT net
Date: Fri, 4 Jul 2008 12:35:57 +0200
Hi,

bacula 2.2.8 on debian etch, amd64, psql 8.1

Today I needed to restore the / fs of a server. I'm using tapes for full
backups and disk volumes for differential and incremental backups.

Everything looked fine until bacula wanted to change the device for the next
volume (full -> diff).



The job will require the following
   Volume(s)                 Storage(s)                SD Device(s)
===========================================================================

   A00049L4                  Neo4100-LTO4-D1           ULTRIUM-TD4-D1
   it-designers-diff-0280    ITD-DISK                  ITD-DISK
   it-designers-diff-0142    ITD-DISK                  ITD-DISK
   it-designers-inc-0125     ITD-DISK                  ITD-DISK
   it-designers-inc-0191     ITD-DISK                  ITD-DISK
   it-designers-inc-0151     ITD-DISK                  ITD-DISK
   it-designers-inc-0128     ITD-DISK                  ITD-DISK
   it-designers-inc-0154     ITD-DISK                  ITD-DISK


bacula needs 1 tape volume (A00049L4i, LTO-4) for the full, 2 disk volumes for
the diff and 5 disk volumes for the inc backups. bacula knows that the volumes
are from different storage devices.


Automatically selected FileSet: xxxxx
+-------+-------+----------+----------------+---------------------+------------------------+
| jobid | level | jobfiles | jobbytes       | starttime           | volumename  
           |
+-------+-------+----------+----------------+---------------------+------------------------+
| 3,027 | F     |  215,376 | 67,883,835,905 | 2008-06-07 03:36:27 | A00049L4    
           |
| 3,544 | D     |   32,141 | 34,546,205,877 | 2008-06-28 03:36:41 | 
it-designers-diff-0280 |
| 3,588 | I     |   17,614 | 13,845,010,524 | 2008-06-30 03:35:20 | 
it-designers-inc-0125  |
| 3,588 | I     |   17,614 | 13,845,010,524 | 2008-06-30 03:35:20 | 
it-designers-inc-0174  |
| 3,607 | I     |    6,917 |  8,652,674,599 | 2008-07-01 03:35:37 | 
it-designers-inc-0175  |
| 3,607 | I     |    6,917 |  8,652,674,599 | 2008-07-01 03:35:37 | 
it-designers-inc-0191  |
| 3,634 | I     |    1,367 |  9,164,937,258 | 2008-07-02 03:35:36 | 
it-designers-inc-0151  |
| 3,634 | I     |    1,367 |  9,164,937,258 | 2008-07-02 03:35:36 | 
it-designers-inc-0152  |
| 3,661 | I     |    1,317 |  8,685,654,584 | 2008-07-03 03:37:32 | 
it-designers-inc-0128  |
| 3,688 | I     |    1,327 |  7,993,696,158 | 2008-07-04 03:36:14 | 
it-designers-inc-0154  |
| 3,688 | I     |    1,327 |  7,993,696,158 | 2008-07-04 03:36:14 | 
it-designers-inc-0291  |
+-------+-------+----------+----------------+---------------------+------------------------+
You have selected the following JobIds: 3027,3544,3588,3607,3634,3661,3688


This is the job output.

04-Jul 11:13 VUMEM004-dir JobId 3699: Start Restore Job 
RestoreFiles.2008-07-04_11.13.04
04-Jul 11:13 VUMEM004-dir JobId 3699: Using Device "ULTRIUM-TD4-D1"
04-Jul 11:13 VU0EA003-sd JobId 3699: Ready to read from volume "A00049L4" on 
device "ULTRIUM-TD4-D1" (/dev/ULTRIUM-TD4-D1).
04-Jul 11:13 VU0EA003-sd JobId 3699: Forward spacing Volume "A00049L4" to 
file:block 1363:0.
04-Jul 11:17 VU0EA003-sd JobId 3699: End of Volume at file 1430 on device 
"ULTRIUM-TD4-D1" (/dev/ULTRIUM-TD4-D1), Volume "A00049L4"
04-Jul 11:17 VU0EA003-sd JobId 3699: acquire.c:116 Changing device. Want Media 
Type="File3" have="LTO4"
  device="ULTRIUM-TD4-D1" (/dev/ULTRIUM-TD4-D1)



The above line indicates the problem. I've no idea what's going on there. LTO-4
is the media type of the tape device, File3 ist the media type of the disk 
device.


04-Jul 11:17 VU0EA003-sd JobId 3699: Alert: smartctl version 5.36 
[x86_64-unknown-linux-gnu] Copyright (C) 2002-6 Bruce Allen
04-Jul 11:17 VU0EA003-sd JobId 3699: Alert: Home page is 
http://smartmontools.sourceforge.net/
04-Jul 11:17 VU0EA003-sd JobId 3699: Alert:
04-Jul 11:17 VU0EA003-sd JobId 3699: Alert: TapeAlert: OK
04-Jul 11:17 VU0EA003-sd JobId 3699: Alert:
04-Jul 11:17 VU0EA003-sd JobId 3699: Alert: Error Counter logging not supported
04-Jul 11:17 VU0EA003-sd JobId 3699: Fatal error: acquire.c:164 No suitable 
device found to read Volume "it-designers-diff-0280"
04-Jul 11:17 VU0EA003-sd JobId 3699: Fatal error: mount.c:635 Cannot open 
Dev="ULTRIUM-TD4-D1" (/dev/ULTRIUM-TD4-D1), Vol=it-designers-diff-0280
04-Jul 11:17 VU0EA003-sd JobId 3699: End of all volumes.


And here it seems that bacula is confused by the devices too.

I can post my config if needed, but backups aren't having problems. So I think
my config is ok.

In the end I could restore the data in 2 steps. First the jobid from tape and
afterwards the jobids from disk. But I think it should (is?) be possible to do
this in one step.

Any ideas what I'm doing wrong here?


Ralf

-------------------------------------------------------------------------
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>