<DIV><FONT size=2><FONT size=2>
<P>Thanks Cokey !</P>
<P>You got hammer in a nail.</P>
<P>>Well, looks to me like either you don't have a tape in the drive or it<BR>>doesn't know there's a tape there. Did you actually 'load' a tape? I<BR>>don't mean put tapes in the cart. and load the cart. into the changer, I<BR>>mean cause the changer to load a tape in the actual tape drive. </P></FONT>
<P>I put tapes in the cart but never loaded. :lol</P>
<P>Thanks for direction…</P></FONT><BR><BR><B><I>Cokey de Percin <fdepercin@sc.rr.com></I></B> wrote:
<BLOCKQUOTE class=replbq style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #1010ff 2px solid">On Thu, 2004-03-25 at 22:12, Mayur Patel wrote:<BR>> HI...<BR>> <BR>> This is my first posting so not sure if posting in correct place or not. Please advise if not.<BR>> <BR>> I want to use HP DAT 24X6 SCSI tape drive with Linux 8.0. I've attached the tape drive with linux but getting following error.<BR>> <BR>> can someone please educate how the scsi tape drive installation works in linux ?<BR>> <BR>> can someone please classified below output with his/her suggestion/comments ?<BR>> <BR>> Thanks in advance for your help. I'd follow up if i need to provide any more information.<BR>> <BR>> thanks again. please help.<BR>> <BR>> <BR>> [BDC root]# mt -f /dev/st0 status<BR>> SCSI 2 tape drive:<BR>> File number=-1, block number=-1, partition=0.<BR>> Tape block size 0 bytes. Density code 0x0 (default).<BR>> Soft error count!
 since
 last status=0<BR>> General status bits on (50000):<BR>> DR_OPEN IM_REP_EN<BR>> <BR>> [BDC root]# more /proc/scsi/scsi<BR>> Attached devices:<BR>> Host: scsi0 Channel: 00 Id: 03 Lun: 00<BR>> Vendor: HP Model: C1557A Rev: U812<BR>> Type: Sequential-Access ANSI SCSI<BR>> revision: 02<BR>> Host: scsi0 Channel: 00 Id: 03 Lun: 01<BR>> Vendor: HP Model: C1557A Rev: U812<BR>> Type: Medium Changer ANSI SCSI<BR>> revision: 02<BR>> [BDC root]# uname -r<BR>> 2.4.18-14<BR>> [BDC root]# tar cvf /dev/st0 /etc<BR>> tar: Removing leading `/' from member names<BR>> etc/<BR>> etc/sysconfig/<BR>> etc/sysconfig/network-scripts/<BR>> etc/sysconfig/network-scripts/ifup-aliases<BR>> tar: /dev/st0: Wrote only 0 of 10240 bytes<BR>> tar: Error is not recoverable: exiting now<BR>> <BR>> [BDC root]# mt -f /dev/nst0 status<BR>> SCSI 2 tape drive:<BR>> File number=-1, block number=-1, partition=0.<BR>> Tape block size 0 b!
ytes.
 Density code 0x0 (default).<BR>> Soft error count since last status=0<BR>> General status bits on (50000):<BR>> DR_OPEN IM_REP_EN<BR>> <BR>> [BDC root]# mt -f /dev/nst1 status<BR>> /dev/nst1: No such device or address<BR>> <BR>> [BDC root]# mt -f /dev/nst0 status<BR>> SCSI 2 tape drive:<BR>> File number=-1, block number=-1, partition=0.<BR>> Tape block size 0 bytes. Density code 0x0 (default).<BR>> Soft error count since last status=0<BR>> General status bits on (50000):<BR>> DR_OPEN IM_REP_EN<BR>> ****<BR>> File number=-1, block number=-1 <<<<<<< those are negative -1<BR>> Do you Yahoo!?<BR>> http://taxes.yahoo.com/filing.html<BR>> Yahoo! Finance Tax Center<BR>> - File online. File on time.<BR><BR>Well, looks to me like either you don't have a tape in the drive or it<BR>doesn't know there's a tape there. Did you actually 'load' a tape? I<BR>don't mean put tapes in the cart. and load the cart. !
into the
 changer, I<BR>mean cause the changer to load a tape in the actual tape drive. If<BR>there is a tape in the drive (as opposed to the changer) you should get<BR>this:<BR><BR>gandolf:/# mt -f /dev/nst0 status<BR>SCSI 2 tape drive:<BR>File number=-1, block number=-1, partition=0.<BR>Tape block size 0 bytes. Density code 0x25 (DDS-3). <<< notice this<BR>Soft error count since last status=0<BR>General status bits on (1010000):<BR>ONLINE IM_REP_EN <<< notice this<BR><BR>In order to 'load' a tape from the changer cart. you need to use the mtx<BR>command (mtx-1.2.16-2 for 7.3) and in order to use it, you need to know<BR>the sg# for the drive & changer. <BR><BR>I use 'sgcheck' (scsi-1.7.... ) which will give you something like this:<BR><BR>gandolf:/# sgcheck<BR><BR>Assignment of generic SCSI devices,<BR>device host/channel/ID/LUN type(numeric type) vendor model:<BR><BR>/dev/sg0 0/0/0/0 Direct-Access SEAGATE ST34501W<BR>/dev/sg1 1/0/4/0 Sequential-Access HP
 C1557A<BR>/dev/sg2 1/0/4/1 Medium Changer HP C1557A<BR>/dev/sg3 1/0/5/0 CD-ROM YAMAHA CRW8824S<BR>/dev/sg4 1/0/6/0 CD-ROM TOSHIBA DVD-ROM SD-M1401<BR>/dev/sg5 2/0/1/0 Processor HP C2520A<BR><BR>Note that the drive and the changer have the same scsi id, but different<BR>luns. The changer is usually 1 while the drive is 0.<BR><BR>The syntax to load a tape with mtx is (for my situation):<BR><BR>mtx -f /dev/sg2 load 1 0; this loads the first tape from the <BR>changer into the drive<BR><BR>mtx -f /dev/sg2 status ; gives a status, this:<BR><BR>gandolf:/# mtx -f /dev/sg2 status<BR>Storage Changer /dev/sg2:1 Drives, 6 Slots ( 0 Import/Export )<BR>Data Transfer Element 0:Full (Storage Element 1 Loaded)<BR>Storage Element 1:Empty<BR>Storage Element 2:Full<BR>Storage Element 3:Full<BR>Storage Element 4:Full<BR>Storage Element 5:Full<BR>Storage Element 6:Full<BR><BR>Now that there's a tape in the actual drive, you cat tar to it in the<BR>normal way.<BR><BR>mtx -f /dev/sg2 unload ; put !
the tape
 back<BR><BR>Best<BR><BR>Cokey<BR><BR>-- <BR>------------------------------------------------------------------<BR>F. 'Cokey' de Percin, DBA Email:<BR>CSC Work - cdeperci@csc.com<BR>Columbia, South Carolina Home - fdepercin@sc.rr.com<BR><BR><BR>-- <BR>This message has been scanned for viruses and<BR>dangerous content by MailScanner, and is<BR>believed to be clean.<BR>Mailscanner thanks transtec Computers for their support.<BR><BR><BR>-- <BR>redhat-list mailing list<BR>unsubscribe mailto:redhat-list-request@redhat.com?subject=unsubscribe<BR>https://www.redhat.com/mailman/listinfo/redhat-list</BLOCKQUOTE></DIV><p><hr size=1><font face=arial size=-1>Do you Yahoo!?<br>
<a href="http://taxes.yahoo.com/filing.html"><b>Yahoo! Finance Tax Center</a></b> - File online. File on time.