Bacula-users

Re: [Bacula-users] Fatal error: label.c:464 Truncate error on device - ERR=No such file or directory

2014-07-30 02:28:20
Subject: Re: [Bacula-users] Fatal error: label.c:464 Truncate error on device - ERR=No such file or directory
From: Stefan Lamby <s.lamby AT interconcept DOT de>
To: bacula-users AT lists.sourceforge DOT net
Date: Wed, 30 Jul 2014 08:22:15 +0200 (CEST)
Hello List.
 
I followed the advice you gave and updated director and sd to the most current version to avoid this truncate error I reported before (see below).
Too sad, we do have the same issue again.
Do you have any more advice?
 
Thank you!
Stefan
 
This is the current log:
 
29-Jul 23:30 backnix05-dir JobId 11992: Start Backup JobId 11992, Job=extranix-system-full-nas.2014-07-29_23.30.00_45
29-Jul 23:30 backnix05-dir JobId 11992: Max configured use duration=604,800 sec. exceeded. Marking Volume "bkp-nas-0280" as Used.
29-Jul 23:40 backnix05-dir JobId 11992: There are no more Jobs associated with Volume "bkp-nas-0275". Marking it purged.
29-Jul 23:40 backnix05-dir JobId 11992: All records pruned from Volume "bkp-nas-0275"; marking it "Purged"
29-Jul 23:40 backnix05-dir JobId 11992: Recycled volume "bkp-nas-0275"
29-Jul 23:40 backnix05-dir JobId 11992: Using Device "nas_01" to write.
29-Jul 23:47 extranix-fd JobId 11992: DIR and FD clocks differ by 388 seconds, FD automatically compensating.
29-Jul 23:41 backnix05-sd JobId 11992: Fatal error: label.c:509 Truncate error on file device "nas_01" (/nas01_backup/backup): ERR=file_dev.c:205 Unable to truncate device "nas_01" (/nas01_backup/backup). ERR=No such file or directory

29-Jul 23:41 backnix05-sd JobId 11992: Marking Volume "bkp-nas-0275" in Error in Catalog.
29-Jul 23:41 backnix05-sd JobId 11992: Fatal error: Job 11992 canceled.
29-Jul 23:47 extranix-fd JobId 11992: Fatal error: job.c:2390 Bad response to Append Data command. Wanted 3000 OK data
, got 3903 Error append data:

29-Jul 23:41 backnix05-dir JobId 11992: Error: Bacula backnix05-dir 7.0.4 (04Jun14):
  Build OS:               i686-pc-linux-gnu suse 11.4
  JobId:                  11992
  Job:                    extranix-system-full-nas.2014-07-29_23.30.00_45
  Backup Level:           Incremental, since=2014-07-28 23:30:00
  Client:                 "extranix-fd" 5.2.6 (21Feb12) x86_64-unknown-linux-gnu,suse,5.x
  FileSet:                "FS Linux System" 2011-11-10 23:30:00
  Pool:                   "NAS01_POOL" (From Run Pool override)
  Catalog:                "IcCatalog" (From Client resource)
  Storage:                "NAS01_STORAGE_BACKNIX" (From Job resource)
  Scheduled time:         29-Jul-2014 23:30:00
  Start time:             29-Jul-2014 23:40:43
  End time:               29-Jul-2014 23:41:18
  Elapsed time:           35 secs
  Priority:               10
  FD Files Written:       0
  SD Files Written:       0
  FD Bytes Written:       0 (0 B)
  SD Bytes Written:       0 (0 B)
  Rate:                   0.0 KB/s
  Software Compression:   None
  VSS:                    no
  Encryption:             no
  Accurate:               no
  Volume name(s):         
  Volume Session Id:      161
  Volume Session Time:    1405621444
  Last Volume Bytes:      1 (1 B)
  Non-fatal FD errors:    1
  SD Errors:              1
  FD termination status:  Error
  SD termination status:  Error
  Termination:            *** Backup Error ***
Stefan Lamby <s.lamby AT interconcept DOT de> hat am 18. Juli 2014 um 11:24 geschrieben:

 
Kern Sibbald <kern AT sibbald DOT com> hat am 18. Juli 2014 um 10:37 geschrieben:

On 07/17/2014 08:41 PM, Stefan Lamby wrote:
Got the point.
I'll think about buying 2 more SATA HDs using software raid to store the precious Volumes on those.
That should work well.
Btw., using md, is there something wrong with using it in partnership with bacula?
What is md?

Ooops. My bad. I was using a short form for the device name linux is using for a software raid. They are called md0, md1, and so on. Again, thank you so much for all the valuable input you gave.

Have a nice weekend!
Greetz Stefan

 


Kern

Cheers,
Stefan
Kern Sibbald <kern AT sibbald DOT com> hat am 17. Juli 2014 um 19:38 geschrieben:

On 07/17/2014 10:38 AM, Stefan Lamby wrote:
You wrote writing Volumes directly to a CIFS mount is not really a good idea for a number of reasons.
What do you recommend as best practice instead?

Write your Volumes to a natively mounted (not network mount) Linux filesystem.


Best regards,
Kern

 
Best regards,
Stefan
 
Kern Sibbald <kern AT sibbald DOT com> hat am 10. Juli 2014 um 17:36 geschrieben:

Unfortunately, neither CIFS nor NFS include a truncate() function, and this problem was not noticed because not many people write Volumes directly to a CIFS/NFS mount.  Doing so is not really a good idea for a number of reasons reasons. 

Any way, once it was discovered (quite a long time ago), I fixed it by "emulating" a truncate.  Consequently, I suspect that if you upgrade to a more recent version of Bacula, it will probably work.

Best regards,
Kern

On 07/10/2014 01:22 PM, Stefan Lamby wrote:
Hello List.
 
Once a week I got this error, when performing a backup.
19 out of 20 backup jobs work well, one fails.
The nas_01 device is a small 1 TB NAS, mounted via fstab:
//192.168.1.9/Volume_1 /nas01_backup    cifs    soft,username=******,password=******,uid=107,gid=107   0 0
 
The /nas01_backup/backup/ directory exists on the device and other jobs are using it successfully.
 
Here is the output of the status mail:
 
13-Jun 23:39 backnix05-dir JobId 11348: Start Backup JobId 11348, Job=extranix-bkpdir-full-nas.2014-06-13_23.30.00_57
13-Jun 23:39 backnix05-dir JobId 11348: Using Device "nas_01"
13-Jun 23:39 backnix05-sd JobId 11348: Fatal error: label.c:464 Truncate error on device "nas_01" (/nas01_backup/backup): ERR=dev.c:2023 Unable to truncate device "nas_01" (/nas01_backup/backup). ERR=No such file or directory

13-Jun 23:39 backnix05-sd JobId 11348: Marking Volume "bkp-nas-0265" in Error in Catalog.
13-Jun 23:39 backnix05-sd JobId 11348: Fatal error: Job 11348 canceled.
13-Jun 22:40 extranix-fd JobId 11348: Fatal error: job.c:2390 Bad response to Append Data command. Wanted 3000 OK data
, got 3903 Error append data
 
Do you have any advice/idea?
 
Thank you very much.
Stefan


------------------------------------------------------------------------------
Open source business process management suite built on Java and Eclipse
Turn processes into business applications with Bonita BPM Community Edition
Quickly connect people, data, and systems into organized workflows
Winner of BOSSIE, CODIE, OW2 and Gartner awards
http://p.sf.net/sfu/Bonitasoft


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

 


------------------------------------------------------------------------------
Want fast and easy access to all the code in your enterprise? Index and
search up to 200,000 lines of code with a free copy of Black Duck
Code Sight - the same software that powers the world's largest code
search on Ohloh, the Black Duck Open Hub! Try it now.
http://p.sf.net/sfu/bds


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

 

 

 
------------------------------------------------------------------------------
Want fast and easy access to all the code in your enterprise? Index and
search up to 200,000 lines of code with a free copy of Black Duck
Code Sight - the same software that powers the world's largest code
search on Ohloh, the Black Duck Open Hub! Try it now.
http://p.sf.net/sfu/bds_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users

 
------------------------------------------------------------------------------
Infragistics Professional
Build stunning WinForms apps today!
Reboot your WinForms applications with our WinForms controls. 
Build a bridge from your legacy apps to the future.
http://pubads.g.doubleclick.net/gampad/clk?id=153845071&iu=/4140/ostg.clktrk
_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users