I have gone into the database and can see that the database is empty for the job in question. I think that there is an issue with the insertion of over a million entrees all at once that is giving bacula a hard time. I have found a supporting post here: http://www.backupcentral.com/phpBB2/two-way-mirrors-of-external-mailing-list s-3/bacula-25/bacula-prunes-files-too-early-95935/ but they really didn't get a resolution either. Is this addressed in any of the change logs that someone can remember if so point me to it otherwise I will be searching.
-----Original Message----- From: Doug Forster [mailto:dfors...@part.net] Sent: Thursday, March 19, 2009 5:32 PM To: 'John Drescher' Cc: 'bacula-users' Subject: Re: [Bacula-users] Issue with Restoring a Full which Spanned Tapes. Any ideas about this file mismatch. The incremental backed up 2,340 files and there are only 2,297 files inserted into the tree. Select the Client (1-50): 27 The defined FileSet resources are: 1: Logs 2: System Select FileSet resource (1-2): 2 +--------+-------+-----------+-----------------+---------------------+------ ------+ | jobid | level | jobfiles | jobbytes | starttime | volumename | +--------+-------+-----------+-----------------+---------------------+------ ------+ | 15,572 | F | 1,274,136 | 175,231,135,918 | 2009-03-18 18:23:04 | 000101L2 | | 15,580 | I | 2,340 | 12,357,597,695 | 2009-03-18 22:36:56 | 000101L2 | +--------+-------+-----------+-----------------+---------------------+------ ------+ You have selected the following JobIds: 15572,15580 Building directory tree for JobId 15572 ... Building directory tree for JobId 15580 ... 2 Jobs, 2,297 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: / $ -----Original Message----- From: Doug Forster [mailto:dfors...@part.net] Sent: Thursday, March 19, 2009 4:56 PM To: 'John Drescher' Cc: 'bacula-users' Subject: Re: [Bacula-users] Issue with Restoring a Full which Spanned Tapes. The Retention is set for the Job not on the file. These files should be getting into the database. Conf. JobDefs { Name = "Critical" Type = Backup Level = Full FileSet = "System" Schedule = "Weekly" Storage = PV-124T RescheduleOnError = yes RescheduleInterval = 5 RescheduleTimes = 3 Messages = Standard Pool = Default Priority = 8 Job Retention = 28 days } To run bscan I mounted the correct drive then stoped the bacula-sd and started the bscan with this command. [r...@server ~]# bscan -s -m -P 'Password' -c /etc/bacula/bacula-sd.conf -v -V 000101L2 /dev/nst0 I am running a complete bscan on the files and I saw the system go past the JobID and then not have the values reinserted into the database. Does bscan insert them at the end of the run? Here is the log. 19-Mar 14:55 bscan JobId 0: End of file 19 on device "Drive-1" (/dev/nst0), Volume "000101L2" bscan: bscan.c:506 SOS_LABEL: Found Job record for JobId: 15572 19-Mar 14:56 bscan JobId 0: End of file 20 on device "Drive-1" (/dev/nst0), Volume "000101L2" 19-Mar 14:57 bscan JobId 0: End of file 21 on device "Drive-1" (/dev/nst0), Volume "000101L2" 19-Mar 14:57 bscan JobId 0: End of file 22 on device "Drive-1" (/dev/nst0), Volume "000101L2" 19-Mar 14:58 bscan JobId 0: End of file 23 on device "Drive-1" (/dev/nst0), Volume "000101L2" 19-Mar 14:58 bscan JobId 0: End of file 24 on device "Drive-1" (/dev/nst0), Volume "000101L2" . . . . bscan: bscan.c:688 1,638,400 file records. At file:blk=191:2,680,184 bytes=187,484,033,434 19-Mar 16:31 bscan JobId 0: End of file 192 on device "Drive-1" (/dev/nst0), Volume "000101L2" 19-Mar 16:31 bscan JobId 0: End of file 193 on device "Drive-1" (/dev/nst0), Volume "000101L2" 19-Mar 16:32 bscan JobId 0: End of file 194 on device "Drive-1" (/dev/nst0), Volume "000101L2" bscan: bscan.c:1009 Fileset "System" already exists. bscan: bscan.c:1130 Updated Job termination record for JobId=15572 Level=Full TermStat=T bscan: bscan.c:1219 Created JobMedia record JobId 15572, MediaId 37 19-Mar 16:32 bscan JobId 0: End of file 195 on device "Drive-1" (/dev/nst0), Volume "000101L2" -----Original Message----- From: John Drescher [mailto:dresche...@gmail.com] Sent: Wednesday, March 18, 2009 5:10 PM To: Doug Forster Cc: bacula-users Subject: Re: [Bacula-users] Issue with Restoring a Full which Spanned Tapes. On Wed, Mar 18, 2009 at 6:53 PM, Doug Forster <dfors...@part.net> wrote: > Volretention on all tapes in the pool is 2,419,200 > 28 days for the Job def > I meant File Retention. There is File Retention, Volume Retention, and Job Retention. http://bacula.org/en/rel-manual/Catalog_Maintenance.html#14145 I doubt you have that set. And to me this looks like some type of bug (I may be wrong). One way to recover is to use bscan to reimport the missing file records to your database. Or possibly first use bls to see what actually is on the tapes. http://bacula.org/en/rel-manual/Volume_Utility_Tools.html#20029 John ---------------------------------------------------------------------------- -- Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are powering Web 2.0 with engaging, cross-platform capabilities. Quickly and easily build your RIAs with Flex Builder, the Eclipse(TM)based development software that enables intelligent coding and step-through debugging. Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com _______________________________________________ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users ---------------------------------------------------------------------------- -- Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are powering Web 2.0 with engaging, cross-platform capabilities. Quickly and easily build your RIAs with Flex Builder, the Eclipse(TM)based development software that enables intelligent coding and step-through debugging. Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com _______________________________________________ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users ------------------------------------------------------------------------------ Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are powering Web 2.0 with engaging, cross-platform capabilities. Quickly and easily build your RIAs with Flex Builder, the Eclipse(TM)based development software that enables intelligent coding and step-through debugging. Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com _______________________________________________ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users