SUMMARY: HP DAT & tar

From: Keith Porterfield (kwp@avalanche.com)
Date: Tue Jan 12 1993 - 19:23:01 CST


My original message:

> I have installed an HP35480 DAT drive on an ELC running SunOS 4.1.1b.
> DIP switch settings are as follows: 1-5 = 1, 6-8 = 0 (as recommended
> for Suns in the integration notes from HP). I made the modifications to
> /usr/sys/scsi/targets/stdef.h & st_conf.c (also as recommended in the
> HP notes) which bump up block size to 10240 and retries to 6000. This
> improved speed considerably, but I still can't get more than 2 Gb onto
> a tape with tar.
>
> Anybody out there had any luck with setting up these drives on Suns
> (and getting the built-in compression to work with tar)?
>
> Keith Porterfield, Sysadmin
> kwp@avalanche.com
 
-----

Boy, is my face red! The problem (as kindly pointed out by Marcel Bernards)
is the SunOS 2 Gb filesize limitation. I'm now doing multiple tars to the
same tape (nonrewind) and everything works fine.

I also received a request for the kernel modifications that HP recommends
for using this drive with SunOS. This would seem to be of general interest
as well, since I've found it speeds up throughput considerably.

/usr/kvm/sys/scsi/targets/st_conf.c:

Add the following new device: (note the block size of 10240)

/* HP 4mm Helical Scan */
{
        "HP 4mm DAT", 2, "HP", ST_TYPE_HP1, 10240,
        (ST_VARIABLE | ST_BSF | ST_BSR | ST_LONG_ERASE | ST_AUTODEN_OVERRIDE),
        6000, 6000,
        { 0x00, 0x00, 0x00, 0x00 },
        { 0, 0, 0, 0 }

/usr/kvm/sys/scsi/targets/stdef.h:

Add this define to the list:

#define ST_TYPE_HP1 0x29 /* HP */

-----

Keith Porterfield
Sysadmin, Avalanche Development
kwp@avalanche.com



This archive was generated by hypermail 2.1.2 : Fri Sep 28 2001 - 23:07:21 CDT