Bacula-users

Re: [Bacula-users] Is Truncate just broken?

2013-07-30 07:45:55
Subject: Re: [Bacula-users] Is Truncate just broken?
From: Mingus Dew <shon.stephens AT gmail DOT com>
To: Kern Sibbald <kern AT sibbald DOT com>
Date: Tue, 30 Jul 2013 07:41:53 -0400
Dear Kern,
     Thanks for the explanation. I'll have to dig deeper on my end to see what else could be at the root of the issue. As explained, my disk volumes are on ZFS, but again this should not be an issue and was working for me previously. 

Sincerely,
Shon


On Wed, Jul 24, 2013 at 3:35 PM, Kern Sibbald <kern AT sibbald DOT com> wrote:
Hello,

ftruncate did not seem to work over NFS or at least on certain versions,
so I implemented code that if after doing an ftruncate, the file size (via an
fstat) is non-zero, Bacula will delete and recreate the Volume.  This is not
ideal, because it may create it with different permissions and/or owner,
group but it seemed to work.  If you drop the SD's user from root to
bacula, depending on how you have defined your NFS volume permissions,
the SD may be unable do the delete and recreate.

Nothing has changed in that code for many years.

Best regards,
Kern


On 07/22/2013 04:06 PM, Mingus Dew wrote:
Thanks for the reply. Specifically I'm using Bacula 5.2.13 on Solaris 10 x86. My disk backups are stored on ZFS. I saw some old threads about truncate not working right on NFS but then some code changes were made that actually deleted, then recreated the volume instead of using ftruncate. I know this used to work for me, but doesn't seem to anymore. I'm wondering if something happened in more recent Bacula versions that changed this again.

Yours,
Shon 


On Fri, Jul 12, 2013 at 3:53 AM, Radosław Korzeniewski <radoslaw AT korzeniewski DOT net> wrote:
Hello,

2013/7/11 Mingus Dew <shon.stephens AT gmail DOT com>
I don't think I've ever gotten it to work under any circumstance, either manually or automated.


It is working fine, automatic or manually. I use it on a lot of Bacula deployments without problems.

best regards
--
Radosław Korzeniewski
radoslaw AT korzeniewski DOT net



------------------------------------------------------------------------------
See everything from the browser to the database with AppDynamics
Get end-to-end visibility with application monitoring from AppDynamics
Isolate bottlenecks and diagnose root cause in seconds.
Start your free trial of AppDynamics Pro today!
http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk


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


------------------------------------------------------------------------------
Get your SQL database under version control now!
Version control is standard for application code, but databases havent 
caught up. So what steps can you take to put your SQL databases under 
version control? Why should you start doing it? Read more to find out.
http://pubads.g.doubleclick.net/gampad/clk?id=49501711&iu=/4140/ostg.clktrk
_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users