Hello,

Richard White wrote:

I have some interesting problems with my tape drives. The Bacula system has three 
"identical" drives: they are all VXA-1 drives. One is mounted interally and two 
are in a RakPak, which is connected to the external SCSI bus. The ID of the internal 
drive is 4 and the external drives are 8 and 9.

When I used the default device definitions of /dev/nst0, /dev/nst1 and /dev/nst2, I got 
mixed results. I complained about that in an earlier post, and "corrected" it 
by changing them to /dev/st0, 1 and 2.

At this point, Bacula works, to a point. That is, the internal drive works all 
the time. There is a problem with the external drives, though. I can mount and 
unmount tapes and even start backups. Those backups fail, however, with this 
kind of message:

18-Jul 16:51 lbackup-sd: Ready to append to end of Volume "Week_2B" at file=3.
18-Jul 16:55 lbackup-sd: GIS_Two.2005-07_18.16.51.42 Error: block.c:552 Write 
error at 3:48 on device /dev/st1.

There are additional error lines which I will post if they are important.

When I try mt -f /dev/st1 rewind I get:

/dev/st1: No such device or address

When I run ./btape -c bacula-sd.conf /dev/st1 I get:

Tape block granularity is 1024 bytes.
btape: butil.c:258 Using device: "/dev/st1" for writing.
19-Jul 11:29 btape: Fatal Error at device.c:295 because:
dev.c:289 stored: unable to open device /dev/st1: ERR=No such device or address
19-Jul 11:29 btape: Fatal Error at device.c:288 because:
dev open failed: dev.c:289 stored: unable to open device /dev/st1: ERR=No such 
device or address

19-Jul 11:29 btape: btape Fatal error: butil.c:167 Cannot open /dev/st1

So, there is something wrong with the way I am identifying these tape devices. 
Bacula can mount, unmount and even write to them up to a point. The last two 
unsuccessful backups put 592,030,570 bytes and 750,959,576 bytes on them, 
respectively, before quitting. If I can just identify them correctly, I am 
confident that they will work for me.

Well, basically something is seriously wrong with your system...

In your place, I'd do the following:
- Boot into singel-user mode (usually you supply S as an option on the boot loders command line, I think) - Verify the tape devices are recognized by your SCSI drivers - they should show up in dmesg output, and in /proc/scsi/scsi - Verify if your SCSI HBA needs some special options for the devices (see /usr/src/linux/Documentation directory) - Make sure the proper device nodes exist (should be /dev/st[0-2] and /dev/nst[0-2] and three /dev/sg? entries). this might depend on the setup of devfs, but I can't help you with that...)
- Check the tape drives using the manufacturers test program.
- Check the cabling, especially cable length and termination.
- Check the drives with an unused tape and using dd or tar to fill a tape and measure the speed. Depending on compression and the data you use, you should get results you can compare to the drive specs. Do this one drive at a time. - Use btape to check the drive access using baculas methods, again one drive at a time. - Restart the computer and verify the drives show up again in /proc/scsi/scsi - Always watch he system log for SCSI errors, SCSI driver messages or st driver messages.

Especially if the drives can't be accessed under their "names" like /dev/nst2 there is something broken... might be a case for your system integrator or hardware service, after all...

Arno

Tks n rgds,
Richard White CNE6
Network Engineer
Mason County, Washington
360-427-5501
[EMAIL PROTECTED]



-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


--
IT-Service Lehmann                    [EMAIL PROTECTED]
Arno Lehmann                  http://www.its-lehmann.de


-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users

Reply via email to