Bacula-users

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

2015-01-08 06:07:53
Subject: Re: [Bacula-users] Fatal error: label.c:464 Truncate error on device - ERR=No such file or directory
From: David Gierlich <David.Gierlich AT shell DOT com>
To: bacula-users AT lists.sourceforge DOT net
Date: Thu, 8 Jan 2015 03:44:34 -0700 (MST)
Hello all,
I am using Bacula v5.2.6.

My Storage Daemon runs on the same machine like the Director and writes to a
NAS that is mounted via SSHFS. I had the some trouble with exactly this
truncate error shown below.

Writing to a volume on Directors HDD and truncating works, but not with the
external NAS.

I figured out that SSHFS has an option "-o workaround=truncate" that allows
truncate.
Before every Job, with a simple script I am checking via "RunBeforeJob"
wheater the NAS is mounted or not. If not, another script containing the
sshfs command including option "-o workaround=truncate" mounts the NAS.

Now recyling etc. works fine.


Kind regards,
David


Stefan Lamby wrote
> 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 &lt;

> s.lamby@

> &gt; hat am 18. Juli 2014 um 11:24
>> geschrieben:
>> 
>> 
>> 
>>   > > Kern Sibbald &lt;

> kern@

> &gt; 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 &lt;

> kern@

> &gt; &lt;mailto:

> kern@

> &gt;
>> > >        > > > > 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 &lt;

> kern@

> &gt; &lt;mailto:

> kern@

> &gt; 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
>> > >       

> [email protected]

>> > > &lt;mailto:

> [email protected]

> &gt;
>> > >       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
>> > >       

> [email protected]

>> > > &lt;mailto:

> [email protected]

> &gt;
>> > >       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
>>  

> [email protected]

>>  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

> [email protected]

> https://lists.sourceforge.net/lists/listinfo/bacula-users





--
View this message in context: 
http://bacula.10910.n7.nabble.com/Fatal-error-label-c-464-Truncate-error-on-device-ERR-No-such-file-or-directory-tp78684p80278.html
Sent from the Bacula - Users mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Dive into the World of Parallel Programming! The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net
_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users

<Prev in Thread] Current Thread [Next in Thread>
  • Re: [Bacula-users] Fatal error: label.c:464 Truncate error on device - ERR=No such file or directory, David Gierlich <=