The proper mechanism for this is obtained by "man stinit" under recent
versions of Linux; Solaris has an analogous mechanism.  Other systems
probably also have it, but I don't know for sure.  To use hardware
compression, just refer to the device name that has the compression
enabled.

For instance, on my tape server, my /etc/stinit.def looks like:

# The common definitions that can usually be used
{buffer-writes read-ahead async-writes }

# Seagate AIT
manufacturer=SEAGATE model="AIT" {
can-bsr can-partitions scsi2logical auto-lock
mode1 blocksize=0 density=0x30 compression=0    # native, no compression
mode2 blocksize=0 density=0x30 compression=1    # native, w/ compression
}

Under Linux, you will almost certainly need to use "mknod" to create
appropriate devices; mine (on a SCSI interface) look like:

crw-rw-rw-   1 root     disk       9, 128 May  5  1998 /dev/nst0
crw-rw-rw-   1 root     root       9, 160 Dec 11  1999 /dev/nst0c
crw-rw-rw-   1 root     disk       9,   0 May  5  1998 /dev/st0
crw-rw-rw-   1 root     root       9,  32 Dec 11  1999 /dev/st0c

(Actual backups are done on a different machine & drive; these are for
illustration only.)

        Cheers,
        Marty
--
Marty Shannon, RHCE, Independent Computing Consultant
mailto:[EMAIL PROTECTED]

Reply via email to