Bacula-users

Re: [Bacula-users] what does btape actually do?

2014-03-26 17:16:27
Subject: Re: [Bacula-users] what does btape actually do?
From: Radosław Korzeniewski <radoslaw AT korzeniewski DOT net>
To: Randy Schultz <schulra AT earlham DOT edu>
Date: Wed, 26 Mar 2014 22:11:03 +0100
Hello,

2014-03-24 15:52 GMT+01:00 Randy Schultz <schulra AT earlham DOT edu>:
Hiya,

I'm testing a second setup and accidentally ran across something interesting.

I have a Sun SL-24 hooked to a FreeBSD box.  Before starting a btape test I
had:

   sudo -u bacula /usr/local/share/bacula/mtx-changer /dev/pass5 listall 1
   /dev/sa1 0
   D:0:F:16:000095L3
   D:1:E
   S:1:F:000134L3
   S:2:F:000133L3
   S:3:F:000132L3
   S:4:F:000135L3
   S:5:F:000128L3
   S:6:F:000129L3
   S:7:F:000130L3
   S:8:F:000131L3
   S:9:F:000124L3
   S:10:F:000125L3
   S:11:F:000126L3
   S:12:F:000127L3
   S:13:F:000138L3
   S:14:F:000099L3
   S:15:F:000098L3
   S:16:E
   S:17:F:000137L3
   S:18:F:000140L3
   S:19:F:000097L3
   S:20:F:000094L3
   S:21:F:000136L3
   S:22:F:000139L3
   S:23:F:000096L3
   S:24:F:000093L3


I wanted to run the test on drive 0 but typo'd and ran on drive 1:

   sudo -u bacula btape -c /usr/local/etc/bacula/bacula-sd.conf /dev/nsa1

yes all the tests passed!

Are you sure that tape library drive index 0 is system device /dev/nsa0?
What mt -f /dev/nsa0 status show to you?
I bet that /dev/nsa1 is a drive index 0 and /dev/nsa0 is a drive index 1.
 
 It was not until the autochanger test that bacula
even noticed drive 1 had no tape.

I do not understand your statement. In your log we can see:
sudo -u bacula btape -c /usr/local/etc/bacula/bacula-sd.conf /dev/nsa0
Tape block granularity is 1024 bytes.
btape: butil.c:290 Using device: "/dev/nsa0" for writing.
24-Mar 10:20 btape: Fatal Error at device.c:298 because:
dev open failed: dev.c:513 Unable to open device "SL24-0" (/dev/nsa0): ERR=Device not configured

24-Mar 10:20 btape JobId 0: Fatal error: butil.c:195 Cannot open "SL24-0" (/dev/nsa0)
mandos#  sudo -u bacula btape -c /usr/local/etc/bacula/bacula-sd.conf /dev/nsa1
Tape block granularity is 1024 bytes.
btape: butil.c:290 Using device: "/dev/nsa1" for writing.
btape: btape.c:477 open device "SL24-1" (/dev/nsa1): OK

Which shows that /dev/nsa0 reports error and /dev/nsa1 is working fine.
 
 So it would seem that btape said it wrote
data to a tape that did not exist.  What am I missing?


YMMV but all is working as expected but you do not checked what drive is what device in your system.

best regards
--
Radosław Korzeniewski
radoslaw AT korzeniewski DOT 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>