On Mon, 9 Jul 2007 10:45:11 +0100 (BST)
Alan Brown <[EMAIL PROTECTED]> wrote:

> On Sun, 8 Jul 2007, Ken Gunderson wrote:
> 
> > I've got an Overland ARCvault12 w/single LTO-2 drive.  SCSI
> > controller is an LSI using mpt driver (wh/seems to be a pos and not
> > something i'd user again).  btape "test" and "fill" complete but when I
> > run successive backups the tape never changes - same result w/both
> > mtx-changer and rc-chio-changer.  Both scripts work correctly
> > from command line.
> 
> Try running them as the bacula user.
> 
> 9 out of 10 times this is a permissions problem.
> 

Thanks for the suggestion.  The scripts are 0550 and root:bacula
so should run fine by bacula user.  Default install of fbsd bacula port
creates bacula user with nologin shell so one cannot simply su to
bacula.  Replacing with a login shell the scripts run fine from command
line as bacula user.

Yesterday I did an mt erase on the tapes in first two slots and reran
btape tests.  btape reports:

Wrote blk_block=3160000, dev_blk_num=8500 VolBytes=203,857,855,488
rate=19650.8 KB/s 09-Jul 05:38 btape: End of Volume "TestVolume1" at
296:10032 on device "Drive-1" (/dev/nsa0). Write of 64512 bytes got 0.
btape: btape.c:2343 Last block at: 296:10031 this_dev_block_num=10032
btape: btape.c:2377 End of tape 298:0. VolumeCapacity=203,956,687,872.
Write rate = 19639.5 KB/s 09-Jul 05:38 btape: End of medium on Volume
"TestVolume1" Bytes=203,956,687,872 Blocks=3,161,531 at 09-Jul-2007
05:38. 09-Jul 05:39 btape: 3307 Issuing autochanger "unload slot 1,
drive 0" command. 09-Jul 05:40 btape: 3304 Issuing autochanger "load
slot 2, drive 0" command. 09-Jul 05:41 btape: 3305 Autochanger "load
slot 2, drive 0", status is OK. 09-Jul 05:41 btape: 3301 Issuing
autochanger "loaded? drive 0" command. 09-Jul 05:41 btape: 3302
Autochanger "loaded? drive 0", result is Slot 2. 09-Jul 05:41 btape:
Fatal Error at dev.c:1670 because: dev.c:1669 Attempt to WEOF on
non-appendable Volume 09-Jul 05:41 btape: 3301 Issuing autochanger
"loaded? drive 0" command. 09-Jul 05:41 btape: 3302 Autochanger
"loaded? drive 0", result is Slot 2. Wrote Volume label for volume
"TestVolume2". 09-Jul 05:41 btape: Wrote label to prelabeled Volume
"TestVolume2" on device "Drive-1" (/dev/nsa0) 09-Jul 05:41 btape: New
volume "TestVolume2" mounted on device "Drive-1" (/dev/nsa0) at
09-Jul-2007 05:41. Done writing 0 records ... Wrote End of Session
label. Wrote state file last_block_num1=10031 last_block_num2=11


05:41:37 Done filling tapes at 0:13. Now beginning re-read of first
tape ... 09-Jul 05:41 btape: 3307 Issuing autochanger "unload slot 2,
drive 0" command. 09-Jul 05:42 btape: 3304 Issuing autochanger "load
slot 1, drive 0" command. 09-Jul 05:43 btape: 3305 Autochanger "load
slot 1, drive 0", status is OK. 09-Jul 05:43 btape: 3301 Issuing
autochanger "loaded? drive 0" command. 09-Jul 05:43 btape: 3302
Autochanger "loaded? drive 0", result is Slot 1. 09-Jul 05:43 btape:
Ready to read from volume "TestVolume1" on device
"Drive-1" (/dev/nsa0). Rewinding. Reading the first 10000 records from
0:0. 10000 records read now at 1:5084
Reposition from 1:5084 to 296:10031
Reading block 10031.

The last block of the first tape matches.

09-Jul 08:25 btape: 3307 Issuing autochanger "unload slot 1, drive 0"
command. 09-Jul 08:27 btape: 3304 Issuing autochanger "load slot 2,
drive 0" command. 09-Jul 08:28 btape: 3305 Autochanger "load slot 2,
drive 0", status is OK. 09-Jul 08:28 btape: 3301 Issuing autochanger
"loaded? drive 0" command. 09-Jul 08:28 btape: 3302 Autochanger
"loaded? drive 0", result is Slot 2. 09-Jul 08:28 btape: Ready to read
from volume "TestVolume2" on device "Drive-1" (/dev/nsa0). Reposition
from 0:0 to 0:1 Reading block 1.

The first block on the second tape matches.

Reposition from 0:2 to 0:11
Reading block 11.

The last block on the second tape matches. Test succeeded.

Why the "Fatal Error at dev.c:1670 because: dev.c:1669 Attempt to WEOF
on non-appendable Volume"?  mt erase should have erased any previous
label params, no?  

-- 
Best regards,

Ken Gunderson
GPG Key -- 9F5179FD

"Never hold discussions with the monkey when the organ grinder is in
the room." - Sir Winston Churchill

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Bacula-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bacula-users

Reply via email to