1823064 Members
3046 Online
109645 Solutions
New Discussion юеВ

ultrium 215e in RH7

 
Hendra_3
Occasional Advisor

ultrium 215e in RH7

Hi, I try to mt -f , but failed.

# mt -f /dev/st0 rewind
/dev/st0: No such device

# mt -f /dev/sg0 rewind
/dev/sg0: Permission denied

What's the problem?

I'm running RedHat 7.2, kernel 2.4.7-10

# ls -al /dev/st0 /dev/sg0
crw-rw---- 1 root disk 21, 0 Aug 31 2001 /dev/sg0
crw-rw---- 1 root disk 9, 0 Aug 31 2001 /dev/st0

# cat /proc/scsi/scsi
Attached devices:
Host: scsi0 Channel: 00 Id: 00 Lun: 00
Vendor: COMPAQ Model: BD01874554 Rev: 3B08
Type: Direct-Access ANSI SCSI revision: 02
Host: scsi0 Channel: 00 Id: 01 Lun: 00
Vendor: COMPAQ Model: BD01874554 Rev: 3B07
Type: Direct-Access ANSI SCSI revision: 02

# lsmod
Module Size Used by
st 26240 0 (autoclean) (unused)
sg 28608 0
autofs 11520 0 (autoclean) (unused)
eepro100 17664 1
usb-ohci 18544 0 (unused)
usbcore 51712 1 [usb-ohci]
ext3 64624 5
jbd 40992 5 [ext3]
sym53c8xx 57504 6
sd_mod 11584 6
scsi_mod 95664 4 [st sg sym53c8xx sd_mod]

Thanks.
4 REPLIES 4
Pal Szabo_1
Valued Contributor

Re: ultrium 215e in RH7

Hi!

Just a few quick tips:

1. Try all the st,sg devices
in the /dev directory:

# mt -f /dev/st0 status
# mt -f /dev/st0 status

2. Use the stinit program
to initialize the tape drive.
(/sbin/stinit)

3. I hope, you try the mt commands with root account... ;)



Regards:
Paul
Hendra_3
Occasional Advisor

Re: ultrium 215e in RH7

yes, I login as root.

[root]# mt -f /dev/st0 status
/dev/st0: No such device
[root]# mt -f /dev/st1 status
/dev/st1: No such device
[root]# mt -f /dev/st2 status
/dev/st2: No such device
[root]# mt -f /dev/sg1 status
/dev/sg1: Permission denied
[root]# mt -f /dev/sg0 status
/dev/sg0: Permission denied
[root]# mt -f /dev/sg2 status
/dev/sg2: No such device or address
[root]# ls -al /dev/sg2
crw-rw---- 1 root disk 21, 2 Aug 31 2001 /dev/sg2
[root]# ls -al /dev/sg1
crw-rw---- 1 root disk 21, 1 Aug 31 2001 /dev/sg1

any example for stinit.conf?

i think /proc/scsi/scsi looks strange...

[root]# echo "scsi {remove,add}-single-device" 0 0 3 0 > /proc/scsi/scsi

there is no effect, still shows this...
Host: scsi0 Channel: 00 Id: 00 Lun: 00
Vendor: COMPAQ Model: BD01874554 Rev: 3B08
Type: Direct-Access ANSI SCSI revision: 02
Host: scsi0 Channel: 00 Id: 01 Lun: 00
Vendor: COMPAQ Model: BD01874554 Rev: 3B07
Type: Direct-Access ANSI SCSI revision: 02

Thanks.
Stuart Browne
Honored Contributor

Re: ultrium 215e in RH7

Umm, judging by the contents of your '/proc/scsi/scsi', it would seem that the tape drive isn't being recognised at all.

The only Ultrim drives I know are logically badged HP or Quantum (from memory), and show up something like:

Vendor: HP Model: Ultrium 1-SCSI Rev: E0AD
Type: Sequential-Access ANSI SCSI revision: 03

I'd be going back to making sure the device is recognised at bootup, checking cabling and SCSI ID's.

The two entries showing above appear to be disks, not tape drives.
One long-haired git at your service...
Hendra_3
Occasional Advisor

Re: ultrium 215e in RH7

You are right.
My tape should be in scsi host 1.

now i get this,
Host: scsi1 Channel: 00 Id: 03 Lun: 00
Vendor: HP Model: Ultrium 1-SCSI Rev: N23D
Type: Sequential-Access ANSI SCSI revision: 03

Thanks!
hw