Bacula-users

Re: [Bacula-users] Problems restoring an Exchange plugin backup

2009-06-25 13:42:56
Subject: Re: [Bacula-users] Problems restoring an Exchange plugin backup
From: Berend Dekens <berend AT cyberwizzard DOT nl>
To: bacula-users <bacula-users AT lists.sourceforge DOT net>
Date: Thu, 25 Jun 2009 19:37:19 +0200
Update: I think I found a restore setup that actually restores the
backup. The backup gets cut short when the DB is activated in Exchange
and this also crashes the Bacula FD on the target machine.

The end is "Error: HrESERestoreComplete failed
with error 0xc7ff1004 - Unknown error." at which point the FD crashes.

When I try to mount the store (which is in fact 8GB in size, the same as 
it was before the backup - making me think the data should be there), I 
get an error and the event logs in Windows show this:

"Information Store (5212) Recovery Storage Group: Attempted to attach
database 'C:\Program Files\Exchsrvr\Recovery Storage Group\Mailbox Store
(AXMAIL).edb' but it is a database restored from a backup set on which
hard recovery was not started or did not complete successfully."

So what is still going wrong here?

The complete transcript is down below (bconsole):
Connecting to Director axnet:9101
1000 OK: axnet-dir Version: 3.0.1 (30 April 2009)
Enter a period to cancel a command.
*restore
Automatically selected Catalog: MyCatalog
Using Catalog "MyCatalog"

First you select one or more JobIds that contain files
to be restored. You will be presented several methods
of specifying the JobIds. Then you will be allowed to
select which files from those JobIds are to be restored.

To select the JobIds, you have the following choices:
      1: List last 20 Jobs run
      2: List Jobs where a given File is saved
      3: Enter list of comma separated JobIds to select
      4: Enter SQL list command
      5: Select the most recent backup for a client
      6: Select backup for a client before a specified time
      7: Enter a list of files to restore
      8: Enter a list of files to restore before a specified time
      9: Find the JobIds of the most recent backup for a client
     10: Find the JobIds for a backup for a client before a specified time
     11: Enter a list of directories to restore for found JobIds
     12: Cancel
Select item:  (1-12): 5
Defined Clients:
      ...
      4: axmail-fd
      ...
     10: axemail-fd
Select the Client (1-10): 4
The defined FileSet resources are:
      1: AXMAIL Full Data Set
      2: Exchange
Select FileSet resource (1-2): 2
+-------+-------+----------+---------------+---------------------+-------------------------------+
| JobId | Level | JobFiles | JobBytes      | StartTime           |
VolumeName                    |
+-------+-------+----------+---------------+---------------------+-------------------------------+
|    90 | F     |       13 | 5,313,968,371 | 2009-06-24 15:36:10 |
Deventer_Exchange_Backup_0013 |
|    90 | F     |       13 | 5,313,968,371 | 2009-06-24 15:36:10 |
Deventer_Exchange_Backup_0014 |
|    91 | I     |        5 |     2,671,174 | 2009-06-24 17:28:25 |
Deventer_Exchange_Backup_0014 |
|    92 | I     |        5 |       233,882 | 2009-06-24 18:00:01 |
Deventer_Exchange_Backup_0014 |
|   118 | I     |       17 |    40,099,025 | 2009-06-25 18:00:02 |
Deventer_Exchange_Backup_0014 |
+-------+-------+----------+---------------+---------------------+-------------------------------+
You have selected the following JobIds: 90,91,92,118


Building directory tree for JobId(s) 90,91,92,118 ...
24 files inserted into the tree.

You are now entering file selection mode where you add (mark) and
remove (unmark) files to be restored. No files are initially added, unless
you used the "all" keyword on the command line.
Enter "done" to leave this mode.

cwd is: /
$ mark *
29 files marked.
$ cd "@EXCHANGE/Microsoft Information Store/First Storage Group"
cwd is: /@EXCHANGE/Microsoft Information Store/First Storage Group/
$ unmark Public*
4 files unmarked.
$ lsmark
*C:\Program Files\Exchsrvr\mdbdata\E0002FC5.log
*C:\Program Files\Exchsrvr\mdbdata\E0002FC6.log
*C:\Program Files\Exchsrvr\mdbdata\E0002FC7.log
*C:\Program Files\Exchsrvr\mdbdata\E0002FC8.log
*C:\Program Files\Exchsrvr\mdbdata\E0002FC9.log
*C:\Program Files\Exchsrvr\mdbdata\E0002FCA.log
*C:\Program Files\Exchsrvr\mdbdata\E0002FCB.log
*C:\Program Files\Exchsrvr\mdbdata\E0002FCC.log
*C:\Program Files\Exchsrvr\mdbdata\E0002FCD.log
*C:\Program Files\Exchsrvr\mdbdata\E0002FCE.log
*C:\Program Files\Exchsrvr\mdbdata\E0002FCF.log
*C:\Program Files\Exchsrvr\mdbdata\E0002FD0.log
*C:\Program Files\Exchsrvr\mdbdata\E0002FD1.log
*C:\Program Files\Exchsrvr\mdbdata\E0002FD2.log
*C:\Program Files\Exchsrvr\mdbdata\E0002FD3.log
*C:\Program Files\Exchsrvr\mdbdata\E0002FD4.log
*C:\Program Files\Exchsrvr\mdbdata\E0002FD5.log
*C:\Program Files\Exchsrvr\mdbdata\E0002FD6.log
*Mailbox Store (AXMAIL)/
*C:\Program Files\Exchsrvr\mdbdata\priv1.edb
*C:\Program Files\Exchsrvr\mdbdata\priv1.stm
*DatabaseBackupInfo
$ done
Bootstrap records written to /var/bacula/axnet-dir.restore.17.bsr

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

    Deventer_Exchange_Backup_ File                      FileStorage



25 files selected to be restored.

Run Restore job
JobName:         RestoreFiles
Bootstrap:       /var/bacula/axnet-dir.restore.17.bsr
Where:           /tmp/bacula-restores
Replace:         always
FileSet:         Empty FileSet
Backup Client:   axmail-fd
Restore Client:  axmail-fd
Storage:         File
When:            2009-06-25 18:49:33
Catalog:         MyCatalog
Priority:        10
Plugin Options:  *None*
OK to run? (yes/mod/no): m
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
     13: Plugin Options
Select parameter to modify (1-13): 5
The defined Client resources are:
      1: bartje-fd
      2: nakor-fd
      3: hermione-fd
      4: snape-fd
      5: hagrid-fd
      6: axnet-fd
      7: axweb-fd
      8: axmail-fd
      9: axexact-fd
     10: axklant-fd
     11: axemail-fd
Select Client (File daemon) resource (1-11): 11
Run Restore job
JobName:         RestoreFiles
Bootstrap:       /var/bacula/axnet-dir.restore.17.bsr
Where:           /tmp/bacula-restores
Replace:         always
FileSet:         Empty FileSet
Backup Client:   axmail-fd
Restore Client:  axemail-fd
Storage:         File
When:            2009-06-25 18:49:33
Catalog:         MyCatalog
Priority:        10
Plugin Options:  *None*
OK to run? (yes/mod/no): m
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
     13: Plugin Options
Select parameter to modify (1-13): 10
strip_prefix=*None* add_prefix=*None* add_suffix=*None*
This will replace your current Where value
      1: Strip prefix
      2: Add prefix
      3: Add file suffix
      4: Enter a regexp
      5: Test filename manipulation
      6: Use this ?
Select parameter to modify (1-6): 4
Please enter a valid regexp (!from!to!): !First Storage Group!Recovery
Storage Group!
strip_prefix=*None* add_prefix=*None* add_suffix=*None*
This will replace your current Where value
      1: Strip prefix
      2: Add prefix
      3: Add file suffix
      4: Enter a regexp
      5: Test filename manipulation
      6: Use this ?
Select parameter to modify (1-6): 6
Run Restore job
JobName:        fRestoreFiles
Bootstrap:       /var/bacula/axnet-dir.restore.17.bsr
RegexWhere:      !First Storage Group!Recovery Storage Group!
Replace:         always
FileSet:         Empty FileSet
Backup Client:   axmail-fd
Restore Client:  axemail-fd
Storage:         File
When:            2009-06-25 18:49:33
Catalog:         MyCatalog
Priority:        10
Plugin Options:  *None*
OK to run? (yes/mod/no): yes
Job queued. JobId=124
*
25-Jun 18:50 axnet-dir JobId 124: Start Restore Job
RestoreFiles.2009-06-25_18.50.18_21
25-Jun 18:50 axnet-dir JobId 124: Using Device "FileStorage"
*
25-Jun 18:53 axnet-sd JobId 124: Ready to read from volume
"Deventer_Exchange_Backup_0013" on device "FileStorage" (/mnt/backups).
25-Jun 18:53 axnet-sd JobId 124: Forward spacing Volume
"Deventer_Exchange_Backup_0013" to file:block 0:696.
25-Jun 19:00 axnet-sd JobId 124: End of Volume at file 1 on device
"FileStorage" (/mnt/backups), Volume "Deventer_Exchange_Backup_0013"
25-Jun 19:00 axnet-sd JobId 124: Ready to read from volume
"Deventer_Exchange_Backup_0014" on device "FileStorage" (/mnt/backups).
25-Jun 19:00 axnet-sd JobId 124: Forward spacing Volume
"Deventer_Exchange_Backup_0014" to file:block 0:228.

25-Jun 19:01 axnet-sd JobId 124: End of Volume at file 0 on device
"FileStorage" (/mnt/backups), Volume "Deventer_Exchange_Backup_0014"
25-Jun 19:01 axnet-sd JobId 124: End of all volumes.

25-Jun 19:01 axemail-fd JobId 124: Error: HrESERestoreComplete failed
with error 0xc7ff1004 - Unknown error.
25-Jun 19:01 axnet-dir JobId 124: Fatal error: Network error with FD
during Restore: ERR=Connection reset by peer
25-Jun 19:01 axnet-dir JobId 124: Fatal error: No Job status returned
from FD.
25-Jun 18:50 axnet-dir JobId 124: Warning: bsock.c:129 Could not connect
to Client: axemail-fd on axemail:9102. ERR=Connection refused
Retrying ...

25-Jun 19:01 axnet-dir JobId 124: Error: Bacula axnet-dir 3.0.1
(30Apr09): 25-Jun-2009 19:01:23
   Build OS:               i686-redhat-linux-gnu redhat
   JobId:                  124
   Job:                    RestoreFiles.2009-06-25_18.50.18_21
   Restore Client:         axemail-fd
   Start time:             25-Jun-2009 18:50:20
   End time:               25-Jun-2009 19:01:23
   Files Expected:         25
   Files Restored:         0
   Bytes Restored:         0
   Rate:                   0.0 KB/s
   FD Errors:              0
   FD termination status:  Error
   SD termination status:  OK
   Termination:            *** Restore Error ***

25-Jun 19:01 axnet-dir JobId 124: Begin pruning Jobs.
25-Jun 19:01 axnet-dir JobId 124: No Jobs found to prune.
25-Jun 19:01 axnet-dir JobId 124: Begin pruning Files.
25-Jun 19:01 axnet-dir JobId 124: No Files found to prune.
25-Jun 19:01 axnet-dir JobId 124: End auto prune.


------------------------------------------------------------------------------
_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users