Re: [Bacula-users] restoreing from a concurrent backup

2009-04-16 Thread Graham Keeling
On Wed, Apr 15, 2009 at 09:34:30PM +0200, Andreas Schuldei wrote:
 tonight i ran my very first concurrent backup and the backup time went
 down nicely. yay.
 
 when trying to restore something from the backup i got this:
...
   Files Expected: 1
   Files Restored: 0

Hello,

I found a very serious bacula bug a few months ago that has only been fixed
properly recently (I believe that 2.4.0 would have been affected), to do with
overlapping jobs both trying to use a single volume at the same time.

Did you have two jobs write to a single volume at the same time?


--
Stay on top of everything new and different, both inside and 
around Java (TM) technology - register by April 22, and save
$200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco.
300 plus technical and hands-on sessions. Register today. 
Use priority code J9JMT32. http://p.sf.net/sfu/p
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] restoreing from a concurrent backup

2009-04-16 Thread Julien Cigar
Hello,

Do you have the same problem as this one :
http://www.nabble.com/file-count-mismatch-tt19508099.html ?

(It's an old post of mine, but I never received any feedback)

Julien

On Thu, 2009-04-16 at 09:03 +0100, Graham Keeling wrote:
 On Wed, Apr 15, 2009 at 09:34:30PM +0200, Andreas Schuldei wrote:
  tonight i ran my very first concurrent backup and the backup time went
  down nicely. yay.
  
  when trying to restore something from the backup i got this:
 ...
Files Expected: 1
Files Restored: 0
 
 Hello,
 
 I found a very serious bacula bug a few months ago that has only been fixed
 properly recently (I believe that 2.4.0 would have been affected), to do with
 overlapping jobs both trying to use a single volume at the same time.
 
 Did you have two jobs write to a single volume at the same time?
 
 
 --
 Stay on top of everything new and different, both inside and 
 around Java (TM) technology - register by April 22, and save
 $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco.
 300 plus technical and hands-on sessions. Register today. 
 Use priority code J9JMT32. http://p.sf.net/sfu/p
 ___
 Bacula-users mailing list
 Bacula-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/bacula-users
-- 
Julien Cigar
Belgian Biodiversity Platform
http://www.biodiversity.be
Université Libre de Bruxelles (ULB)
Campus de la Plaine CP 257
Bâtiment NO, Bureau 4 N4 115C (Niveau 4)
Boulevard du Triomphe, entrée ULB 2
B-1050 Bruxelles
Mail: jci...@ulb.ac.be
@biobel: http://biobel.biodiversity.be/person/show/471
Tel : 02 650 57 52


--
Stay on top of everything new and different, both inside and 
around Java (TM) technology - register by April 22, and save
$200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco.
300 plus technical and hands-on sessions. Register today. 
Use priority code J9JMT32. http://p.sf.net/sfu/p
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] restoreing from a concurrent backup

2009-04-16 Thread Andreas Schuldei
On Thu, Apr 16, 2009 at 10:03 AM, Graham Keeling gra...@equiinet.com wrote:
 On Wed, Apr 15, 2009 at 09:34:30PM +0200, Andreas Schuldei wrote:
 tonight i ran my very first concurrent backup and the backup time went
 down nicely. yay.

 when trying to restore something from the backup i got this:
 ...
   Files Expected:         1
   Files Restored:         0

 Hello,

 I found a very serious bacula bug a few months ago that has only been fixed
 properly recently (I believe that 2.4.0 would have been affected), to do with
 overlapping jobs both trying to use a single volume at the same time.

 Did you have two jobs write to a single volume at the same time?

yes, most likely that happend. i do have less volumes after the
concurrent backup compared to the sequential. but there was a way to
work around that, wasnt there?

--
Stay on top of everything new and different, both inside and 
around Java (TM) technology - register by April 22, and save
$200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco.
300 plus technical and hands-on sessions. Register today. 
Use priority code J9JMT32. http://p.sf.net/sfu/p
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] restoreing from a concurrent backup

2009-04-16 Thread Andreas Schuldei
On Thu, Apr 16, 2009 at 10:33 AM, Julien Cigar jci...@ulb.ac.be wrote:
 Do you have the same problem as this one :
 http://www.nabble.com/file-count-mismatch-tt19508099.html ?

no, mine is differnt: the byte count for the restored data was 0 for
me, and i checked the restore location and it was not created and
there were no files created.

--
Stay on top of everything new and different, both inside and 
around Java (TM) technology - register by April 22, and save
$200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco.
300 plus technical and hands-on sessions. Register today. 
Use priority code J9JMT32. http://p.sf.net/sfu/p
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] restoreing from a concurrent backup

2009-04-15 Thread John Drescher
On Wed, Apr 15, 2009 at 3:34 PM, Andreas Schuldei
schuldei+bacula-us...@spotify.com wrote:
 Hi!

 tonight i ran my very first concurrent backup and the backup time went
 down nicely. yay.

 when trying to restore something from the backup i got this:

 ==

 15-Apr 15:00 lettuce.spotify.net-dir JobId 17536: Start Restore Job
 RestoreFiles.2009-04-15_15.00.51
 15-Apr 15:00 lettuce.spotify.net-dir JobId 17536: Using Device FileStorage3
 15-Apr 15:00 lettuce.spotify.net-sd JobId 17536: Ready to read from
 volume File-1521 on device FileStorage3
 (/var/backups/bacula/unit_03/backups/).
 15-Apr 15:00 lettuce.spotify.net-sd JobId 17536: Forward spacing
 Volume File-1521 to file:block 0:210.
 15-Apr 15:01 lettuce.spotify.net-sd JobId 17536: End of Volume at file
 0 on device FileStorage3 (/var/backups/bacula/unit_03/backups/),
 Volume File-1521
 15-Apr 15:01 lettuce.spotify.net-sd JobId 17536: End of all volumes.
 15-Apr 15:01 lettuce.spotify.net-dir JobId 17536: Bacula
 lettuce.spotify.net-dir 2.4.0 (04Jun08): 15-Apr-2009 15:01:04
  Build OS:               x86_64-pc-linux-gnu debian 4.0
  JobId:                  17536
  Job:                    RestoreFiles.2009-04-15_15.00.51
  Restore Client:         angie.lon.spotify.net-fd
  Start time:             15-Apr-2009 15:00:10
  End time:               15-Apr-2009 15:01: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

 15-Apr 15:01 lettuce.spotify.net-dir JobId 17536: Begin pruning Jobs.
 15-Apr 15:01 lettuce.spotify.net-dir JobId 17536: No Jobs found to prune.
 15-Apr 15:01 lettuce.spotify.net-dir JobId 17536: Begin pruning Files.
 15-Apr 15:01 lettuce.spotify.net-dir JobId 17536: No Files found to prune.
 15-Apr 15:01 lettuce.spotify.net-dir JobId 17536: End auto prune.

 ===

 i restored like this (transscript from bconsole):

 ===

 No file specification given.
 $ find *
 /var/
 /var/backups/
 /var/backups/bacula/
 /var/backups/bacula/postgres/
 /var/backups/bacula/postgres/postgres_globals_2009_04_15_01_53_39.gz
 /var/backups/bacula/postgres/postgres_postgres_2009_04_15_01_53_39.gz
 /var/backups/bacula/postgres/postgres_template1_2009_04_15_01_53_39.gz
 /var/backups/bacula/postgres/postgres_users_2009_04_15_01_53_39.gz
 /var/backups/bacula/postgres/postgres_users2_2009_04_15_01_55_07.gz
 $ mark /var/backups/bacula/postgres/postgres_users_2009_04_15_01_53_39.gz
 No files marked.
 $ cd /var/backups/bacula/postgres/
 cwd is: /var/backups/bacula/postgres/
 $ makr postgres_users_2009_04_15_01_53_39.gz
 Invalid command. Enter done to exit.
 $ mark postgres_users_2009_04_15_01_53_39.gz
 1 file marked.
 $ done
 Storage  not found, using Storage lettuce.spotify.net-sd from
 MediaType File.
 Bootstrap records written to
 /var/lib/bacula/lettuce.spotify.net-dir.restore.3.bsr

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

   File-1521


 1 file selected to be restored.

 Run Restore job
 JobName:         RestoreFiles
 Bootstrap:       /var/lib/bacula/lettuce.spotify.net-dir.restore.3.bsr
 Where:           /tmp/bacula-restores
 Replace:         always
 FileSet:         Full Set
 Backup Client:   angie.lon.spotify.net-fd
 Restore Client:  angie.lon.spotify.net-fd
 Storage:         lettuce.spotify.net-sd
 When:            2009-04-15 14:45:47
 Catalog:         backup
 Priority:        10
 OK to run? (yes/mod/no): mod
 Parameters to modify:
     1: Level
     2: Storage
     3: Job
     4: FileSet
     5: Restore Client
     6: When
     7: Priority
     8: Bootstrap
     9: Where
    10: File Relocation
    11: Replace
    12: JobId
 Select parameter to modify (1-12): 9
 Please enter path prefix for restore (/ for none): /var/backups/restore
 Run Restore job
 JobName:         RestoreFiles
 Bootstrap:       /var/lib/bacula/lettuce.spotify.net-dir.restore.3.bsr
 Where:           /var/backups/restore
 Replace:         always
 FileSet:         Full Set
 Backup Client:   angie.lon.spotify.net-fd
 Restore Client:  angie.lon.spotify.net-fd
 Storage:         lettuce.spotify.net-sd
 When:            2009-04-15 14:45:47
 Catalog:         backup
 Priority:        10
 OK to run? (yes/mod/no): yes
 Job queued. JobId=17536
 *
 15-Apr 15:00 lettuce.spotify.net-dir JobId 17536: Start Restore Job
 RestoreFiles.2009-04-15_15.00.51
 15-Apr 15:00 lettuce.spotify.net-dir JobId 17536: Using Device FileStorage3
 15-Apr 15:00 lettuce.spotify.net-sd JobId 17536: Ready to read from
 volume File-1521 on device FileStorage3
 (/var/backups/bacula/unit_03/backups/).
 15-Apr 15:00 lettuce.spotify.net-sd JobId 17536: Forward spacing
 Volume File-1521 to file:block 0:210.
 *
 15-Apr 15:01 

Re: [Bacula-users] restoreing from a concurrent backup

2009-04-15 Thread Andreas Schuldei
On Wed, Apr 15, 2009 at 9:51 PM, John Drescher dresche...@gmail.com wrote:
 On Wed, Apr 15, 2009 at 3:34 PM, Andreas Schuldei
 schuldei+bacula-us...@spotify.com wrote:
 Hi!

 tonight i ran my very first concurrent backup and the backup time went
 down nicely. yay.

 when trying to restore something from the backup i got this:

 ==

 15-Apr 15:00 lettuce.spotify.net-dir JobId 17536: Start Restore Job
 RestoreFiles.2009-04-15_15.00.51
 15-Apr 15:00 lettuce.spotify.net-dir JobId 17536: Using Device FileStorage3
 15-Apr 15:00 lettuce.spotify.net-sd JobId 17536: Ready to read from
 volume File-1521 on device FileStorage3
 (/var/backups/bacula/unit_03/backups/).
 15-Apr 15:00 lettuce.spotify.net-sd JobId 17536: Forward spacing
 Volume File-1521 to file:block 0:210.
 15-Apr 15:01 lettuce.spotify.net-sd JobId 17536: End of Volume at file
 0 on device FileStorage3 (/var/backups/bacula/unit_03/backups/),
 Volume File-1521
 15-Apr 15:01 lettuce.spotify.net-sd JobId 17536: End of all volumes.
 15-Apr 15:01 lettuce.spotify.net-dir JobId 17536: Bacula
 lettuce.spotify.net-dir 2.4.0 (04Jun08): 15-Apr-2009 15:01:04
  Build OS:               x86_64-pc-linux-gnu debian 4.0
  JobId:                  17536
  Job:                    RestoreFiles.2009-04-15_15.00.51
  Restore Client:         angie.lon.spotify.net-fd
  Start time:             15-Apr-2009 15:00:10
  End time:               15-Apr-2009 15:01: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

 15-Apr 15:01 lettuce.spotify.net-dir JobId 17536: Begin pruning Jobs.
 15-Apr 15:01 lettuce.spotify.net-dir JobId 17536: No Jobs found to prune.
 15-Apr 15:01 lettuce.spotify.net-dir JobId 17536: Begin pruning Files.
 15-Apr 15:01 lettuce.spotify.net-dir JobId 17536: No Files found to prune.
 15-Apr 15:01 lettuce.spotify.net-dir JobId 17536: End auto prune.

 ===

 i restored like this (transscript from bconsole):

 ===

 No file specification given.
 $ find *
 /var/
 /var/backups/
 /var/backups/bacula/
 /var/backups/bacula/postgres/
 /var/backups/bacula/postgres/postgres_globals_2009_04_15_01_53_39.gz
 /var/backups/bacula/postgres/postgres_postgres_2009_04_15_01_53_39.gz
 /var/backups/bacula/postgres/postgres_template1_2009_04_15_01_53_39.gz
 /var/backups/bacula/postgres/postgres_users_2009_04_15_01_53_39.gz
 /var/backups/bacula/postgres/postgres_users2_2009_04_15_01_55_07.gz
 $ mark /var/backups/bacula/postgres/postgres_users_2009_04_15_01_53_39.gz
 No files marked.
 $ cd /var/backups/bacula/postgres/
 cwd is: /var/backups/bacula/postgres/
 $ makr postgres_users_2009_04_15_01_53_39.gz
 Invalid command. Enter done to exit.
 $ mark postgres_users_2009_04_15_01_53_39.gz
 1 file marked.
 $ done
 Storage  not found, using Storage lettuce.spotify.net-sd from
 MediaType File.
 Bootstrap records written to
 /var/lib/bacula/lettuce.spotify.net-dir.restore.3.bsr

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

   File-1521


 1 file selected to be restored.

 Run Restore job
 JobName:         RestoreFiles
 Bootstrap:       /var/lib/bacula/lettuce.spotify.net-dir.restore.3.bsr
 Where:           /tmp/bacula-restores
 Replace:         always
 FileSet:         Full Set
 Backup Client:   angie.lon.spotify.net-fd
 Restore Client:  angie.lon.spotify.net-fd
 Storage:         lettuce.spotify.net-sd
 When:            2009-04-15 14:45:47
 Catalog:         backup
 Priority:        10
 OK to run? (yes/mod/no): mod
 Parameters to modify:
     1: Level
     2: Storage
     3: Job
     4: FileSet
     5: Restore Client
     6: When
     7: Priority
     8: Bootstrap
     9: Where
    10: File Relocation
    11: Replace
    12: JobId
 Select parameter to modify (1-12): 9
 Please enter path prefix for restore (/ for none): /var/backups/restore
 Run Restore job
 JobName:         RestoreFiles
 Bootstrap:       /var/lib/bacula/lettuce.spotify.net-dir.restore.3.bsr
 Where:           /var/backups/restore
 Replace:         always
 FileSet:         Full Set
 Backup Client:   angie.lon.spotify.net-fd
 Restore Client:  angie.lon.spotify.net-fd
 Storage:         lettuce.spotify.net-sd
 When:            2009-04-15 14:45:47
 Catalog:         backup
 Priority:        10
 OK to run? (yes/mod/no): yes
 Job queued. JobId=17536
 *
 15-Apr 15:00 lettuce.spotify.net-dir JobId 17536: Start Restore Job
 RestoreFiles.2009-04-15_15.00.51
 15-Apr 15:00 lettuce.spotify.net-dir JobId 17536: Using Device FileStorage3
 15-Apr 15:00 lettuce.spotify.net-sd JobId 17536: Ready to read from
 volume File-1521 on device FileStorage3
 (/var/backups/bacula/unit_03/backups/).
 15-Apr 15:00 lettuce.spotify.net-sd JobId 17536: Forward spacing