* Matt McManus ([EMAIL PROTECTED]) [20001213 04:00] thus spake:
> 
> I have now got amanda running very happily on my network. I have a query
> about how to turn hardware compression 'off' on my Quantum DLT4000 drive.
> At the moment I use the 'density select' button on the front of the drive,
> but I understand that I am able to do this with the 'tapedev'.

Hello Matt,

I'm assuming you're trying to do this on a linux box...
I use /etc/stinit.def (mt-st tools):

manufacturer=Quantum model="DLT4000" {
scsi2logical=1 can-bsr can-partitions auto-lock
mode1 blocksize=0    compression=0 density=0x82
mode2 blocksize=0    compression=1 density=0x83
mode3 blocksize=1024 compression=0 density=0x82
mode4 blocksize=1024 compression=1 density=0x83}

and then just add 'post-install st /sbin/stinit' in /etc/modules.conf
to run stinit just before the scsi tape module is loaded.
You have to create the proper devices to access the tape:

[hydra]# ls -l /dev/*st0*
crw-rw----    1 root     disk       9, 128 May  5  1998 /dev/nst0
crw-rw----    1 root     disk       9, 224 Dec  3 17:52 /dev/nst0a
crw-rw----    1 root     disk       9, 160 Dec  3 17:52 /dev/nst0l
crw-rw----    1 root     disk       9, 192 Dec  3 17:52 /dev/nst0m
crw-rw----    1 root     disk       9,   0 May  5  1998 /dev/st0
crw-rw----    1 root     disk       9,  96 Dec  3 17:52 /dev/st0a
crw-rw----    1 root     disk       9,  32 Dec  3 17:52 /dev/st0l
crw-rw----    1 root     disk       9,  64 Dec  3 17:52 /dev/st0m

Using /dev/nst0 I got the following tapetype entry:

define tapetype DLT4000 {
    comment "just produced by tapetype program"
    length 19457 mbytes
    filemark 32 kbytes
    speed 1397 kps
}


HTH,
jf

> 
> At the moment my tapedev is "/dev/nst0"
> 
> Will the following work to disable compression: "/dev/nst0 compression 0"
> 
> 
> thanks for the help,
> 
> matt
> 
> 
> ________________________________________________________________________
> Matthew McManus
> Systems Administrator, Proximity
> http://www.proximity.com.au

-- 
"I haven't lost my mind...it's backed up on tape"

Reply via email to