Bacula-users

[Bacula-users] ioctl MTWEOF error

2009-12-02 17:47:11
Subject: [Bacula-users] ioctl MTWEOF error
From: Brent Kearney <brentk AT birs DOT ca>
To: bacula-users AT lists.sourceforge DOT net
Date: Wed, 2 Dec 2009 15:43:45 -0700
Hello,

I'm running bacula 2.2.8 on an amd64 server with Solaris 10 (thank you CSW). 

I can use the SCSI-attached HP Ultrium LTO2 drive with tar, mt, etc, without 
any problems.  Also, bacula's btape utility tests the tape successfully:

 # btape -v -c ./bacula-sd.conf /dev/rmt/0bn
Tape block granularity is 1024 bytes.
btape: butil.c:285 Using device: "/dev/rmt/0bn" for writing.
btape: btape.c:372 open device "HPUltriumLTO2" (/dev/rmt/0bn): OK
*test

=== Write, rewind, and re-read test ===

I'm going to write 1000 records and an EOF
then write 1000 records and an EOF, then rewind,
and re-read the data to verify that it is correct.

This is an *essential* feature ...

btape: btape.c:831 Wrote 1000 blocks of 64412 bytes.
btape: btape.c:505 Wrote 1 EOF to "HPUltriumLTO2" (/dev/rmt/0bn)
btape: btape.c:847 Wrote 1000 blocks of 64412 bytes.
btape: btape.c:505 Wrote 1 EOF to "HPUltriumLTO2" (/dev/rmt/0bn)
btape: btape.c:856 Rewind OK.
1000 blocks re-read correctly.
Got EOF on tape.
1000 blocks re-read correctly.
=== Test Succeeded. End Write, rewind, and re-read test ===
... and so on ...

However, when bacula does a real backup, after writing the data to tape, it 
seems to fail to write an EOF marker, so that tape can no longer be appended 
to.   Here is the output:

02-Dec 12:06 temple-dir JobId 2: Start Backup JobId 2, 
Job=temple-var.2009-12-02_11.45.05
02-Dec 12:06 temple-dir JobId 2: Using Device "HPUltriumLTO2"
02-Dec 12:06 temple-sd JobId 2: Spooling data ...
02-Dec 12:10 temple-sd JobId 2: Job write elapsed time = 00:03:35, Transfer 
rate = 15.81 M bytes/second
02-Dec 12:10 temple-sd JobId 2: Committing spooled data to Volume "20091202". 
Despooling 3,404,724,899 bytes ...
02-Dec 12:16 temple-sd JobId 2: Error: block.c:569 Write error at 7:9455 on 
device "HPUltriumLTO2" (/dev/rmt/0bn). ERR=I/O error.
02-Dec 12:16 temple-sd JobId 2: Error: Error writing final EOF to tape. This 
Volume may not be readable.
dev.c:1669 ioctl MTWEOF error on "HPUltriumLTO2" (/dev/rmt/0bn). ERR=I/O error.
02-Dec 12:16 temple-sd JobId 2: End of medium on Volume "20091202" 
Bytes=7,526,034,432 Blocks=116,660 at 02-Dec-2009 12:16.
02-Dec 12:18 temple-sd JobId 2: Job temple-var.2009-12-02_11.45.05 waiting. 
Cannot find any appendable volumes.

I have tried using different (brand new) LTO cartridges, and I get the same 
results - btape succeeds, but the actual backup fails.  Any help with this 
would be very much appreciated.

Thanks,
Brent




------------------------------------------------------------------------------
Join us December 9, 2009 for the Red Hat Virtual Experience,
a free event focused on virtualization and cloud computing. 
Attend in-depth sessions from your desk. Your couch. Anywhere.
http://p.sf.net/sfu/redhat-sfdev2dev
_______________________________________________
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>
  • [Bacula-users] ioctl MTWEOF error, Brent Kearney <=