Bacula-users

[Bacula-users] Error Unable to position to end of data on device Drive-1

2011-12-12 09:35:28
Subject: [Bacula-users] Error Unable to position to end of data on device Drive-1
From: Daniele Eccher <daniele.eccher AT sociale DOT it>
To: bacula-users AT lists.sourceforge DOT net
Date: Mon, 12 Dec 2011 14:31:01 +0100
Hello,

my problem is describe in the object.  When i run the backup the backup go on and end fine. But a new backup on the same tape mark it error and take another tape. 

This is the error on bacula log :

12-Dec 10:40 bak02prdost.recupitalia.it-sd JobId 35: Volume "000101L" previously written, moving to end of data. 
12-Dec 10:41 bak02prdost.recupitalia.it-sd JobId 35: Error: Unable to position to end of data on device "Drive-1" (/dev/nst1): ERR=dev.c:966 ioctl MTIOCGET error on "Drive-1" (/dev/nst1). ER R=Success. 
12-Dec 10:41 bak02prdost.recupitalia.it-sd JobId 35: Marking Volume "000101L" in Error in Catalog. 
12-Dec 10:42 bak02prdost.recupitalia.it-sd JobId 35: Please mount Volume "000103L" or label a new one for:


This is my connfiguration on server:

O.S : CentOS release 5.6
Kernel : 2.6.18-238.12.1.el5 x64 
Bacula Version :  5.0.3 (from rpm).
Library : Spectralogic T50e with LTO-4 Drive FC

I try to run a btape test with good result , this is the output :

=== Forward space files test ===

This test is essential to Bacula.

I'm going to write five files then test forward spacing

btape: btape.c:578 Rewound "Drive-1" (/dev/nst1)
btape: btape.c:1905 Wrote one record of 64412 bytes.
btape: btape.c:1907 Wrote block to device.
btape: btape.c:608 Wrote 1 EOF to "Drive-1" (/dev/nst1)
btape: btape.c:1905 Wrote one record of 64412 bytes.
btape: btape.c:1907 Wrote block to device.
btape: btape.c:1905 Wrote one record of 64412 bytes.
btape: btape.c:1907 Wrote block to device.
btape: btape.c:608 Wrote 1 EOF to "Drive-1" (/dev/nst1)
btape: btape.c:1905 Wrote one record of 64412 bytes.
btape: btape.c:1907 Wrote block to device.
btape: btape.c:1905 Wrote one record of 64412 bytes.
btape: btape.c:1907 Wrote block to device.
btape: btape.c:1905 Wrote one record of 64412 bytes.
btape: btape.c:1907 Wrote block to device.
btape: btape.c:608 Wrote 1 EOF to "Drive-1" (/dev/nst1)
btape: btape.c:1905 Wrote one record of 64412 bytes.
btape: btape.c:1907 Wrote block to device.
btape: btape.c:1905 Wrote one record of 64412 bytes.
btape: btape.c:1907 Wrote block to device.
btape: btape.c:608 Wrote 1 EOF to "Drive-1" (/dev/nst1)
btape: btape.c:1905 Wrote one record of 64412 bytes.
btape: btape.c:1907 Wrote block to device.
btape: btape.c:608 Wrote 1 EOF to "Drive-1" (/dev/nst1)
btape: btape.c:608 Wrote 1 EOF to "Drive-1" (/dev/nst1)
btape: btape.c:578 Rewound "Drive-1" (/dev/nst1)
btape: btape.c:1632 Now forward spacing 1 file.
We should be in file 1. I am at file 1. This is correct!
btape: btape.c:1644 Now forward spacing 2 files.
We should be in file 3. I am at file 3. This is correct!
btape: btape.c:578 Rewound "Drive-1" (/dev/nst1)
btape: btape.c:1657 Now forward spacing 4 files.
We should be in file 4. I am at file 4. This is correct!

btape: btape.c:1675 Now forward spacing 1 more file.
We should be in file 5. I am at file 5. This is correct!

=== End Forward space files test ===


The bacula-sd if configured with :

Autochanger {
  Name = spectra
  Device = Drive-1
  Changer Command = "/usr/lib64/bacula/mtx-changer %c %o %S %a %d"
  Changer Device = /dev/sg2
}

Device {
  Name = Drive-1                      #
  Drive Index = 1
  Media Type = LTO-4
  Archive Device = /dev/nst1
  Changer Device = /dev/sg2
  TWO EOF = yes
  AlwaysOpen = yes;
  AutomaticMount = yes;               # when device opened, read it
  RemovableMedia = yes;
  RandomAccess = no;
  Maximum File Size = 5GB
  SpoolDirectory = /opt/stage/SpoolDirectory 
  Maximum Spool Size = 25GB # 25  Gb of spool
  Alert Command = "sh -c 'tapeinfo -f %c |grep TapeAlert|cat'"
}


I try to use the this on bacula-sd configuration 

# Hardware End of Medium = no

But with this option i can't run the backup. 

The IBM-Drive is on the lastest firmware upgrade (B711).

p.s: I have another server (the same configuration on another library T200) and work fine with lto4.

Anyone can help me? Thank you.




-- 
Daniele Eccher
Gruppo Darco  - ICT Sistemi
Via Ostiense 131/L Corpo B, 00154 Roma
E-mail: daniele.eccher AT sociale DOT it  tel  : +39 06 57060 500 cell : +39 346 1426128

------------------------------------------------------------------------------
Learn Windows Azure Live!  Tuesday, Dec 13, 2011
Microsoft is holding a special Learn Windows Azure training event for 
developers. It will provide a great way to learn Windows Azure and what it 
provides. You can attend the event by watching it streamed LIVE online.  
Learn more at http://p.sf.net/sfu/ms-windowsazure
_______________________________________________
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] Error Unable to position to end of data on device Drive-1, Daniele Eccher <=