Mailing List
Home
Linux - General Red Hat Linux discussion list
Enterprise Linux 3 - Discussion of Red Hat Enterprise Linux 3 (Taroon)
Red Hat Linux 9 - Discussion of Red Hat Linux 9 (Shrike)
Installation - Getting started with Red Hat Linux
Red Hat Linux 7.3 - Discussion of Red Hat Linux 7.3 (Valhalla)
Red Hat Linux 8.0 - Discussion of Red Hat Linux 8.0 (Psyche)
Red Hat Linux 7.2 - Discussion of Red Hat Linux 7.2 (Enigma)
Red Hat Linux 7.1 - Discussion of Red Hat Linux 7.1 (Seawolf)
Apache Web Server
Oracle database, Microsoft SQL server ...
Subjects
application/x mplayer2 plugin
RPM error: db4 error(16) from dbenv >remove: Device or resource
   busy
Command stream end of file while reading
X Windows problem (xauth)
Upgrading openoffice 1 1 rpm
FTP: connection refused
FTP: connection refused
mount: /dev/cdrom: is not a valid block device
Dell Precision 650, RedHat 9, no sound
how to trace the cause resulting in the crash of bind server
Virus on the list
UNINSTALL RPM MYSQL
usb pen drives: mounting as a user
broadcom network interface
make mrproper
sendmail configuration on redhat
Couldn 't open PID file /var/run/named/named pid Permission denied
Promise 378 controller
kernel 2 6 and /dev/sound/mixer not found
Problem using up2date
mrtg step by step howto/configuration for a newbie?
Compiling and Installing Kernel 2 6
Can 't locate module ppp0, can 't locate module ppp compress 21
HOW I CAN MAKE BOOTABLE FLOPPY DISKET
Lotus Notes under Wine
/etc/security/limits conf question
Intel E/1000 driver
Command stream end of file while reading
rpm database corrupt
qla2300 modules
 
Search:  
Power your search with and, or, +, -, or "some phrase" operators.
Linux 8.0 - scsi tape drive

Linux 8.0 - scsi tape drive

2004-03-27       - By Mayur Patel

 Back
Reply:     1     2     3     4  


Thanks Cokey !

You got hammer in a nail.

>Well, looks to me like either you don 't have a tape in the drive or it
>doesn 't know there 's a tape there. Did you actually 'load ' a tape? I
>don 't mean put tapes in the cart. and load the cart. into the changer, I
>mean cause the changer to load a tape in the actual tape drive.

I put tapes in the cart but never loaded. :lol

Thanks for direction?


Cokey de Percin <fdepercin@(protected) > wrote:On Thu, 2004-03-25 at 22:12, Mayur Patel wrote:
> HI...
>
> This is my first posting so not sure if posting in correct place or not. Please advise if not.
>
> 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.
>
> can someone please educate how the scsi tape drive installation works in linux ?
>
> can someone please classified below output with his/her suggestion/comments ?
>
> Thanks in advance for your help. I 'd follow up if i need to provide any more information.
>
> thanks again. please help.
>
>
> [BDC root]# mt -f /dev/st0 status
> SCSI 2 tape drive:
> File number=-1, block number=-1, partition=0.
> Tape block size 0 bytes. Density code 0x0 (default).
> Soft error count since last status=0
> General status bits on (50000):
> DR_OPEN IM_REP_EN
>
> [BDC root]# more /proc/scsi/scsi
> Attached devices:
> Host: scsi0 Channel: 00 Id: 03 Lun: 00
> Vendor: HP Model: C1557A Rev: U812
> Type: Sequential-Access ANSI SCSI
> revision: 02
> Host: scsi0 Channel: 00 Id: 03 Lun: 01
> Vendor: HP Model: C1557A Rev: U812
> Type: Medium Changer ANSI SCSI
> revision: 02
> [BDC root]# uname -r
> 2.4.18-14
> [BDC root]# tar cvf /dev/st0 /etc
> tar: Removing leading `/ ' from member names
> etc/
> etc/sysconfig/
> etc/sysconfig/network-scripts/
> etc/sysconfig/network-scripts/ifup-aliases
> tar: /dev/st0: Wrote only 0 of 10240 bytes
> tar: Error is not recoverable: exiting now
>
> [BDC root]# mt -f /dev/nst0 status
> SCSI 2 tape drive:
> File number=-1, block number=-1, partition=0.
> Tape block size 0 bytes. Density code 0x0 (default).
> Soft error count since last status=0
> General status bits on (50000):
> DR_OPEN IM_REP_EN
>
> [BDC root]# mt -f /dev/nst1 status
> /dev/nst1: No such device or address
>
> [BDC root]# mt -f /dev/nst0 status
> SCSI 2 tape drive:
> File number=-1, block number=-1, partition=0.
> Tape block size 0 bytes. Density code 0x0 (default).
> Soft error count since last status=0
> General status bits on (50000):
> DR_OPEN IM_REP_EN
> ****
> File number=-1, block number=-1 < < < < < < < those are negative -1
> Do you Yahoo!?
> http://taxes.yahoo.com/filing.html
> Yahoo! Finance Tax Center
> - File online. File on time.

Well, looks to me like either you don 't have a tape in the drive or it
doesn 't know there 's a tape there. Did you actually 'load ' a tape? I
don 't mean put tapes in the cart. and load the cart. into the changer, I
mean cause the changer to load a tape in the actual tape drive. If
there is a tape in the drive (as opposed to the changer) you should get
this:

gandolf:/# mt -f /dev/nst0 status
SCSI 2 tape drive:
File number=-1, block number=-1, partition=0.
Tape block size 0 bytes. Density code 0x25 (DDS-3). < < < notice this
Soft error count since last status=0
General status bits on (1010000):
ONLINE IM_REP_EN < < < notice this

In order to 'load ' a tape from the changer cart. you need to use the mtx
command (mtx-1.2.16-2 for 7.3) and in order to use it, you need to know
the sg# for the drive & changer.

I use 'sgcheck ' (scsi-1.7.... ) which will give you something like this:

gandolf:/# sgcheck

Assignment of generic SCSI devices,
device host/channel/ID/LUN type(numeric type) vendor model:

/dev/sg0 0/0/0/0 Direct-Access SEAGATE ST34501W
/dev/sg1 1/0/4/0 Sequential-Access HP C1557A
/dev/sg2 1/0/4/1 Medium Changer HP C1557A
/dev/sg3 1/0/5/0 CD-ROM YAMAHA CRW8824S
/dev/sg4 1/0/6/0 CD-ROM TOSHIBA DVD-ROM SD-M1401
/dev/sg5 2/0/1/0 Processor HP C2520A

Note that the drive and the changer have the same scsi id, but different
luns. The changer is usually 1 while the drive is 0.

The syntax to load a tape with mtx is (for my situation):

mtx -f /dev/sg2 load 1 0; this loads the first tape from the
changer into the drive

mtx -f /dev/sg2 status ; gives a status, this:

gandolf:/# mtx -f /dev/sg2 status
Storage Changer /dev/sg2:1 Drives, 6 Slots ( 0 Import/Export )
Data Transfer Element 0:Full (Storage Element 1 Loaded)
Storage Element 1:Empty
Storage Element 2:Full
Storage Element 3:Full
Storage Element 4:Full
Storage Element 5:Full
Storage Element 6:Full

Now that there 's a tape in the actual drive, you cat tar to it in the
normal way.

mtx -f /dev/sg2 unload ; put the tape back

Best

Cokey

--
-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---
F. 'Cokey ' de Percin, DBA Email:
CSC Work - cdeperci@(protected)
Columbia, South Carolina Home - fdepercin@(protected)


--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
Mailscanner thanks transtec Computers for their support.


--
redhat-list mailing list
unsubscribe mailto:redhat-list-request@(protected)?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list


-- ---- ---- ---- ---- ---- -----
Do you Yahoo!?
Yahoo! Finance Tax Center - File online. File on time.
<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@(protected)> </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@(protected) <BR >Columbia, South Carolina Home - fdepercin@(protected) <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@(protected)?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.
--
redhat-list mailing list
unsubscribe mailto:redhat-list-request@(protected)?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list