The only time ftruncate returns EINVAL is if the file size is negative which
is not the case here.
So that error means that some system call that ftruncate made failed with an
error that the C runtime didn't expect, unknown error codes are mapped to
EINVAL.
So the most likely guilty party is antivirus software.
Do you have an anti-virus package running?
If so which one?
Are you using its autoprotect feature?
Can you try disabling autoprotect for the directory where the backups are
stored?
-----Original Message-----
From: Kern Sibbald [mailto:kern < at > si...]
Sent: Tuesday, March 06, 2007 1:54 AM
To: bacula-users < at > li...
Cc: Silver Salonen; Robert Nelson
Subject: Re: [Bacula-users] Unable to truncate volume
On Tuesday 06 March 2007 10:19, Silver Salonen wrote:
On Tuesday 13 February 2007 18:45, Brian Debelius wrote:
Windows.
Ok I have 5 volumes. full-0000 through full-0004. They all were
migrated last night. When I run the backups today, 0000 and 0001 were
recylced ok. 0002 and 0003 were recycled but could not be truncated.
0004 was recycled ok
one comment: it would be nice if a volume fails to be recycled, that
a
new volume is created and the backup automatically continues instead
of
failing without a backup as long as there are no other options in the
conf that would prevent this.
here is the log of 0002 and 0003
3-Feb 10:19 comp0-dir: No prior Full backup Job record found.
13-Feb 10:19 comp0-dir: No prior or suitable Full backup found in
catalog.
Doing FULL backup.
13-Feb 11:03 comp0-dir: Start Backup JobId 21,
Job=comp1.2007-02-13_10.19.25 13-Feb 11:03 comp0-dir: Recycled volume
"full-0002"
13-Feb 11:03 comp1-fd: ClientRunBeforeJob: run command "ntbackup
backup
systemstate /F c:\comp1_systemstate.bkf"
13-Feb 11:08 comp0-sd: comp1.2007-02-13_10.19.25 Fatal
error: ../../stored/label.c:448 Truncate error on device "FileStorage0"
(d:
\bacula\): ERR=../../stored/dev.c:1942 Unable to truncate
device "FileStorage0" (d:\bacula\). ERR=Invalid argument
13-Feb 11:08 comp0-sd: Marking Volume "full-0002" in Error in Catalog.
13-Feb 11:08 comp0-sd: comp1.2007-02-13_10.19.25 Fatal error: Job 21
canceled.
13-Feb 11:08 comp1-fd: comp1.2007-02-13_10.19.25 Fatal
error: ../../filed/job.c:1752 Bad response to Append Data command.
Wanted
3000 OK data
, got 3903 Error append data
13-Feb 10:19 comp0-dir: No prior Full backup Job record found.
13-Feb 10:19 comp0-dir: No prior or suitable Full backup found in
catalog.
Doing FULL backup.
13-Feb 11:08 comp0-dir: Start Backup JobId 22,
Job=comp2.2007-02-13_10.19.30 13-Feb 11:08 comp0-dir: Recycled volume
"full-0003"
13-Feb 11:08 comp2-fd: ClientRunBeforeJob: run command "ntbackup
backup
systemstate /F c:\comp2_systemstate.bkf"
13-Feb 11:14 comp0-sd: comp2.2007-02-13_10.19.30 Fatal
error: ../../stored/label.c:448 Truncate error on device "FileStorage0"
(d:
\bacula\): ERR=../../stored/dev.c:1942 Unable to truncate
device "FileStorage0" (d:\bacula\). ERR=Invalid argument
13-Feb 11:14 comp0-sd: Marking Volume "full-0003" in Error in Catalog.
13-Feb 11:14 comp0-sd: comp2.2007-02-13_10.19.30 Fatal error: Job 22
canceled.
13-Feb 11:14 comp2-fd: comp2.2007-02-13_10.19.30 Fatal
error: ../../filed/job.c:1752 Bad response to Append Data command.
Wanted
3000 OK data
, got 3903 Error append data
Hi.
I've got the same problem.
In my case:
* DIR is running on FreeBSD-5.3
* SD is running on Windows Server 2003 SP1
* FD is running on another Windows Server 2003 SP1.
I used Bacula 2.0.0 everywhere and when the problem occured, I upgraded
all
of them to 2.0.2, but the problem remained.
Log:
======================
05-Mar 23:05 bsdserv-dir: No prior Full backup Job record found.
05-Mar 23:05 bsdserv-dir: No prior or suitable Full backup found in
catalog. Doing FULL backup.
05-Mar 23:06 bsdserv-dir: Start Backup JobId 1371,
Job=winserv1.2007-03-05_23.05.05
05-Mar 23:06 bsdserv-dir: Recycled volume "winserv1-full-0003"
05-Mar 23:06 winserv1-fd: ClientRunBeforeJob: run
command "C:/bacula/systemstate.bat"
05-Mar 23:06 winserv1-fd: ClientRunBeforeJob: Could Not Find
c:\documents
and settings\administrator\systemstate.bkf
05-Mar 23:23 winserv2-sd: winserv1.2007-03-05_23.05.05 Fatal
error: ../../stored/label.c:448 Truncate error on device "device-
winserv1"
(F:\Bacula\winserv1): ERR=../../stored/dev.c:1942 Unable to truncate
device "device-winserv1" (F:\Bacula\winserv1). ERR=Invalid argument
05-Mar 23:23 winserv2-sd: Marking Volume "winserv1-full-0003" in Error
in
Catalog.
05-Mar 23:23 winserv2-sd: ekk.2007-03-05_23.05.05 Fatal error: Job 1371
canceled.
05-Mar 23:23 winserv1-fd: ekk.2007-03-05_23.05.05 Fatal
error: ../../filed/job.c:1752 Bad response to Append Data command.
Wanted
3000 OK data, got 3903 Error append data
======================
How should I deal with this problem?
This appears to be a Win32 SD "bug" -- you need to ask Robert Nelson to
help
you. He is the only developer familiar with and using that configuration.
Silver
------------------------------------------------------------------------
-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share
your opinions on IT & business topics through brief surveys-and earn
cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Bacula-users mailing list
Bacula-users < at > li...
https://lists.sourceforge.net/lists/listinfo/bacula-users