UNIX Settings
Configuring for the Sun Environment
29
Digital UNIX Versions Earlier Than 4.0
System configuration is achieved by modifying the file, cam_data.c. This is located in either /usr/
sys/data or /sys/data, depending on system configuration. Modify it as follows:
1.
Locate the entry for the "TLZ07 - RDAT" drive.
2.
Copy this entry and paste it later in the file, taking care to maintain the syntax of the C source.
3.
Modify the new entry as shown below. Modified sections are shown in bold. See “Configur-
ing Inquiry Strings” on page 27 for information about drive inquiry strings:
/* Seagate DAT Drive "ARCHIVE Python" Inquiry, (Switch 7 off) */
{"
ARCHIVE Python
",
14
, DEV_TLZ07,
(ALL_DTYPE_SEQUENTIAL << DTYPE_SHFT) | SZ_RDAT_CLASS,
(struct pt_info *)ccmn_null_sizes, SZ_NO_BLK, (DEC_MAX_REC - 1),
&tlz07_dens, NO_MODE_TAB, SZ_NO_FLAGS,
NO_OPT_CMDS, SZ_READY_DEF, SZ_NO_QUE,
DD_REQSNS_VAL | DD_INQ_VAL, 36, 64
},
4.
Rebuild the kernel using the doconfig script, and re-boot the system
Configuring for the Sun Environment
Sun OS 4.1.x
To configure SunOS 4.1.x explicitly to use the DAT24 tape drive, modify the stdef.h and st_conf.c
files (in the directory /usr/sys/scsi/ targets), then rebuild the kernel, as described below:
1.
Modify the stdef.h file by adding a define statement for the DAT24 tape drive similar to the
one shown below:
#define ST_TYPE_SEAGATE_DAT <value>
Add this line after the last ST_TYPE_ define statement in the file. <value> should be the next
unused hexadecimal value. This value will depend on the release and number of devices sup-
ported by the system. For example, if the last value for an existing device is 0x2d, then use a
value of 0x2e.
2.
Modify the st_conf.c file by adding the following lines at the end of the device definition list.
See “Configuring Inquiry Strings” on page 27 for information about drive inquiry strings:
/*Seagate DAT support */
{
"Seagate DAT Drive",
14
,"
ARCHIVE
Python
",ST_TYPE_SEAGATE_DAT,10240,
(ST_VARIABLE|ST_BSF|ST_BSR|ST_LONG_ERASE|ST_KNOWS_EOD|ST_LONG_IO),
5000,5000,
{0x0,0x8c,0x8c,0x8c},
{0,0,0,0}
}