Bacula-users

[Bacula-users] Can't restore file spanning across multiple volumes

2011-08-09 05:43:05
Subject: [Bacula-users] Can't restore file spanning across multiple volumes
From: Bartosz Cisek <bartosz.cisek AT nasza-klasa DOT pl>
To: bacula-users AT lists.sourceforge DOT net
Date: Tue, 09 Aug 2011 11:40:17 +0200
Hi!

I try to restore file from backup, but bacula fails. We backup binlog
files  every 15 minutes. There is only one file in each job. All other
files from this day/week can be restored. This one has one difference,
is placed on two Volumes (204 and 255).

I don't konw if this relevant, but our volumes are ordinary files.
Backup was made when in bacula-sd option

Hardware End of File = no

was not set. I added but didn't help. We use bacula 5.0.3. Any ideas
what went wrong?

bconsole> list files jobid=8228320
+---------------------------------+
| Filename                        |
+---------------------------------+
| /var/lib/mysql/mysql-bin.015514 |
+---------------------------------+

bconsole> list jobmedia jobid=8228320
+-----------+----------------------------+------------+-----------+
| JobId     | VolumeName                 | FirstIndex | LastIndex |
+-----------+----------------------------+------------+-----------+
| 8,228,320 | bacula-vtape-backup-000204 |          1 |         1 |
| 8,228,320 | bacula-vtape-backup-000255 |          1 |         1 |
+-----------+----------------------------+------------+-----------+
+-----------+------------------------------+---------------------+------+-------+----------+----------+-----------+
| JobId     | Name                         | StartTime           | Type
| Level | JobFiles | JobBytes | JobStatus |
+-----------+------------------------------+---------------------+------+-------+----------+----------+-----------+
| 8,228,320 | job-hostname-bin-logs        | 2011-08-07 06:03:48 | B
| I     |        1 |  113,188 | T         |
+-----------+------------------------------+---------------------+------+-------+----------+----------+-----------+


08-sie 16:25 sd-backup-3 JobId 8246008: 3307 Issuing autochanger "unload
slot 233, drive 0" command.
08-sie 16:25 sd-backup-3 JobId 8246008: 3304 Issuing autochanger "load
slot 255, drive 0" command.
08-sie 16:25 sd-backup-3 JobId 8246008: 3305 Autochanger "load slot 255,
drive 0", status is OK.
08-sie 16:25 sd-backup-3 JobId 8246008: Ready to read from volume
"bacula-vtape-backup-000255" on device "dev-vtape-backup-drive-0"
(/srv/stor1/bacula-backup/vtape-backup-drive-0).
08-sie 16:25 sd-backup-3 JobId 8246008: Forward spacing Volume
"bacula-vtape-backup-000255" to file:block 1:4294788096.
08-sie 16:25 sd-backup-3 JobId 8246008: End of Volume at file 1 on
device "dev-vtape-backup-drive-0"
(/srv/stor1/bacula-backup/vtape-backup-drive-0), Volume
"bacula-vtape-backup-000255"
08-sie 16:25 sd-backup-3 JobId 8246008: 3307 Issuing autochanger "unload
slot 255, drive 0" command.
08-sie 16:25 sd-backup-3 JobId 8246008: 3304 Issuing autochanger "load
slot 204, drive 0" command.
08-sie 16:25 sd-backup-3 JobId 8246008: 3305 Autochanger "load slot 204,
drive 0", status is OK.
08-sie 16:25 sd-backup-3 JobId 8246008: Ready to read from volume
"bacula-vtape-backup-000204" on device "dev-vtape-backup-drive-0"
(/srv/stor1/bacula-backup/vtape-backup-drive-0).
08-sie 16:25 sd-backup-3 JobId 8246008: Forward spacing Volume
"bacula-vtape-backup-000204" to file:block 0:258294.
08-sie 16:25 sd-backup-3 JobId 8246008: End of Volume at file 0 on
device "dev-vtape-backup-drive-0"
(/srv/stor1/bacula-backup/vtape-backup-drive-0), Volume
"bacula-vtape-backup-000204"
08-sie 16:25 sd-backup-3 JobId 8246008: End of all volumes.
08-sie 16:25 dir-db-bacula JobId 8246008: Bacula dir-db-bacula 5.0.3
(04Aug10): 08-sie-2011 16:25:04
  Build OS:               x86_64-pc-linux-gnu debian 5.0.6
  JobId:                  8246008
  Job:                    job-restore.2011-08-08_16.25.02_13
  Restore Client:         fd-hd-mysql1
  Start time:             08-sie-2011 16:25:04
  End time:               08-sie-2011 16:25:04
  Files Expected:         1
  Files Restored:         0
  Bytes Restored:         0
  Rate:                   0.0 KB/s
  FD Errors:              0
  FD termination status:  OK
  SD termination status:  OK
  Termination:            Restore OK -- warning file count mismatch

08-sie 16:25 dir-db-bacula JobId 8246008: Begin pruning Jobs older than
10 years .
08-sie 16:25 dir-db-bacula JobId 8246008: No Jobs found to prune.
08-sie 16:25 dir-db-bacula JobId 8246008: Begin pruning Jobs.
08-sie 16:25 dir-db-bacula JobId 8246008: No Files found to prune.
08-sie 16:25 dir-db-bacula JobId 8246008: End auto prune.
-- 
Bartosz Cisek
Admin

email: bartosz.cisek AT nasza-klasa DOT pl
tel: +48 519 300 122

Nasza Klasa Sp. z o.o.,
ul. Gen. J. Bema 2, 50-265 Wrocław

Sąd Rejonowy dla Wrocławia - Fabrycznej we Wrocławiu,
VI Wydział Gospodarczy Krajowego Rejestru Sądowego,
nr KRS:0000289629, NIP:898-21-22-104 REGON:020586020,
Kapitał zakładowy: 67 850,00 PLN

------------------------------------------------------------------------------
uberSVN's rich system and user administration capabilities and model 
configuration take the hassle out of deploying and managing Subversion and 
the tools developers use with it. Learn more about uberSVN and get a free 
download at:  http://p.sf.net/sfu/wandisco-dev2dev
_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users