1829148 Members
2199 Online
109986 Solutions
New Discussion

Re: tape drive

 
SOLVED
Go to solution
Fadia Almarei
Super Advisor

tape drive

Dear All
i have to connect anew tape drive to my redhat 9 linux server,the server is a dell server and the tape connected using a scsi controller ,i try to define it using kudzu command to detect new hardware ,but it does not recognize it.what should i do rather than restarting the server
fadia.marei
25 REPLIES 25
Steven E. Protter
Exalted Contributor

Re: tape drive

RH 9 has a graphical tool for browsing hardware.

Its built into the menuing system GUI under System tools.

If the hardware cannot be seen there there is little you can do other than boot to get it recognized.

You should check the scsi id of the tape drive and make sure its not zero which usually belongs to the controller andis not in conflict with any other scsi devices.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Kodjo Agbenu
Honored Contributor

Re: tape drive

Hello Fadia,

You must make sure of 2 things :

1. Is the scsi controller's driver is properly loaded ?

2. Is the scsi tape driver (st) is loaded ?


To check what kind of scsi controller is installed, type "lspci" :

Example of lspci output :

root# lspci
...
SCSI storage controller: Tekram Technology Co. Ltd. TRM-S1040 (rev 01)
...


To make sure that the scsi driver is loaded, type "cat /proc/scsi/scsi".

Example of /proc/scsi/scsi content :

root# cat /proc/scsi/scsi
...
Host scsi1 Channel: 00 Id: 00 Lun: 00
Vendor: HP Model: C1537A Rev: L111
Type: Sequential-Access ANSI SCSI revision: 02


If you have several scsi controllers, you may want to make sure that the one connecting the tape drive is loaded before the scsi tape driver (st). To do that, edit /etc/modules.conf and add :

pre-install st /sbin/modprobe your_scsi_controller_driver

Example :

pre-install st /sbin/modprobe dc395x_trm


Good luck.

Kodjo








Learn and explain...
Fadia Almarei
Super Advisor

Re: tape drive

dear kodjo
how can i know my scsi conroller driver name
fadia.marei
Fadia Almarei
Super Advisor

Re: tape drive

Dear All
i need more help in this issue, i do all the things the guise said but nothing work.
fadia.marei
Oliver Schwank
Valued Contributor
Solution

Re: tape drive

Hello,

I think that your SCSI controller is not known to the system and that there is no driver in the kernel.

Please send us, like mentioned above the output of the lspci commando, then we can tell you, if you have a SCSI controller and if it is recognized by the kernel.

Best wishes

Oli
Fadia Almarei
Super Advisor

Re: tape drive

the output of lspci is

[root@RADIUS root]# lspci
00:00.0 Host bridge: ServerWorks CNB20-HE Host Bridge (rev 33)
00:00.1 Host bridge: ServerWorks CNB20-HE Host Bridge
00:00.2 Host bridge: ServerWorks CNB20-HE Host Bridge
00:04.0 Class ff00: Dell Computer Corporation Embedded Systems Management Device
4
00:04.1 Class ff00: Dell Computer Corporation PowerEdge Expandable RAID Controll
er 3/Di
00:04.2 Class ff00: Dell Computer Corporation: Unknown device 000d
00:0e.0 VGA compatible controller: ATI Technologies Inc Rage XL (rev 27)
00:0f.0 Host bridge: ServerWorks CSB5 South Bridge (rev 93)
00:0f.1 IDE interface: ServerWorks CSB5 IDE Controller (rev 93)
00:0f.2 USB Controller: ServerWorks OSB4/CSB5 OHCI USB Controller (rev 05)
00:0f.3 ISA bridge: ServerWorks GCLE Host Bridge
00:10.0 Host bridge: ServerWorks: Unknown device 0101 (rev 05)
00:10.2 Host bridge: ServerWorks: Unknown device 0101 (rev 05)
00:11.0 Host bridge: ServerWorks: Unknown device 0101 (rev 05)
00:11.2 Host bridge: ServerWorks: Unknown device 0101 (rev 05)
01:08.0 SCSI storage controller: Adaptec AHA-3960D / AIC-7899A U160/m (rev 01)
01:08.1 SCSI storage controller: Adaptec AHA-3960D / AIC-7899A U160/m (rev 01)
03:06.0 Ethernet controller: Broadcom Corporation NetXtreme BCM5703 Gigabit Ethe
rnet (rev 02)
03:08.0 Ethernet controller: Broadcom Corporation NetXtreme BCM5703 Gigabit Ethe
rnet (rev 02)
04:08.0 PCI bridge: Intel Corp.: Unknown device 0309 (rev 01)
04:08.1 RAID bus controller: Dell Computer Corporation PowerEdge Expandable RAID
Controller 3 (rev 01)
05:06.0 SCSI storage controller: Adaptec RAID subsystem HBA (rev 01)
05:06.1 SCSI storage controller: Adaptec RAID subsystem HBA (rev 01)
fadia.marei
Oliver Schwank
Valued Contributor

Re: tape drive

Hi,

okay there is an Adaptec. ;-) Did you connect the drive to the external SCSI port of the Adaptec controller? Did you connect it at system runtime or did you a shutdown, connect the drive and reboot? In the later case did the drive show up in the SCSI controller BIOS?

Please post like mentioned above the output of cat /proc/scsi/scsi

After that check if you any of this utilities is on your Linux installation:

scsiinfo rescan-scsi-bus rescan-scsi-bus.sh so we can rescan the bus. Sometimes cdrecord -scanbus helps too.

Bye

Oli
Fadia Almarei
Super Advisor

Re: tape drive

i connect it when my system is start,and the output of the file /proc/scsi/scsi is,

[root@RADIUS root]# cat /proc/scsi/scsi
Attached devices:
Host: scsi0 Channel: 00 Id: 00 Lun: 00
Vendor: DELL Model: PERCRAID RAID5 Rev: V1.0
Type: Direct-Access ANSI SCSI revision: 02

fadia.marei
xyko_1
Esteemed Contributor

Re: tape drive

Hi Fadia,

I guess that you don't have an entry in /etc/modules.conf to your adaptec controller.

try :

#depmod -a
#modprobe aic7xxx

and now try to access your tape drive.

If it works include on your /etc/modules.conf an entry jus like that :

alias scsi_hostadapter aic7xxx

Hope it helps.
xyko
Oliver Schwank
Valued Contributor

Re: tape drive

Hi,

okay... no drive there.

Did you load the module for the Adaptec?

Did you a SCSI bus rescan with one of the mentioned utilities? After that the drive should show up in /proc/scsi/scsi if not please notify us.

Bye

Oli
Fadia Almarei
Super Advisor

Re: tape drive

i do all thing you told me to do ,but nothing happened , what should i do
fadia.marei
xyko_1
Esteemed Contributor

Re: tape drive

Hi Fadia,

when you modprobe aic7xxx it works ?
Does aic7xxx loaded ?

Please send to us :

the output form dmesg
/etc/modules.conf
the output from lsmod

We'll be waiting.

regards,
xyko
Fadia Almarei
Super Advisor

Re: tape drive

1- lsmod
Module Size Used by Not tainted
soundcore 7044 0 (autoclean)
st 32332 0 (autoclean) (unused)
ide-cd 35808 0 (autoclean)
cdrom 34176 0 (autoclean) [ide-cd]
lp 9188 0 (autoclean)
parport 39072 0 (autoclean) [lp]
nfsd 81104 8 (autoclean)
lockd 59536 1 (autoclean) [nfsd]
sunrpc 87516 1 (autoclean) [nfsd lockd]
autofs 13684 0 (autoclean) (unused)
tg3 53064 2
bonding 25984 2
keybdev 2976 0 (unused)
mousedev 5688 1
hid 22404 0 (unused)
input 6208 0 [keybdev mousedev hid]
usb-ohci 22248 0 (unused)
usbcore 82816 1 [hid usb-ohci]
ext3 73408 9
jbd 56432 9 [ext3]
aic7xxx 142516 0
aacraid 32676 10
sd_mod 13452 20
scsi_mod 110872 4 [st aic7xxx aacraid sd_mod]

2-/etc/modules.conf
alias scsi_hostadapter aacraid
alias eth0 tg3
alias eth1 tg3
options tg3 full_duplex=1 lone_speed=1000
alias scsi_hostadapter1 aic7xxx
#alias scsi_hostadapter2 aic7xxx
alias bond0 bonding
options bond0 miimon=100
options bond0 miimon=100
alias usb-controller usb-ohci
#pre-install st /sbin/modprobe AHA-3960D
3-i connect the tape drive when the system is up so it does not make sense to see the dmesg command
fadia.marei
xyko_1
Esteemed Contributor

Re: tape drive

Fadia,

Everything seems to be right, but ....

You have two adaptec controllers. What do you have attached to both of them ?

If you have more devices attached to the same controller then you may have to adjust your kernel to probe scsi multiple luns. It's not usual but it happens. The kernel do not probe all luns by default.

I also ask you to send dmesg output, just to see what your system is "seen" attached to the adaptec controllers.

Waiting for you.

regards,
xyko
Oliver Schwank
Valued Contributor

Re: tape drive

Hello,

okay, module is there, you did not reboot, so please rescan now the SCSI bus.
Do you have any of the rescan utilities mentioned on the system?
After you did the rescan please check /proc/scsi/scsi again if the LUN of the tape did appear.

There is one rescan utility from HP, which will check multiple LUNs as well, but I do not think that this is an issue here. Normally you have this kind of problem with tape libaries. So best try the native redhat SCSI rescan command on your box first.

Bye

Oli
xyko_1
Esteemed Contributor

Re: tape drive

Oliver Schwank,

that's for you.

I'm having to rebuild the kernel of 3 RH AS21 servers because they are not seen multiple luns of a HP MSL6060 san attached. I have also clariion disks attached to the same interface.

Would you please tell me what is the hp utility that you mentioned in the last replay

"There is one rescan utility from HP, which will check multiple LUNs as well"

If it solves my problem I'll be very happy.

Thanks in advance.
Xyko
Fadia Almarei
Super Advisor

Re: tape drive

Dear All

i have two scsi interfaces but i just connect one of them to the tape drive about the scsi scan utility what is it i do not know it,and about the dmesg i have the following output

[root@RADIUS root]# dmesg | grep scsi
scsi0 : percraid
Attached scsi removable disk sda at scsi0, channel 0, id 0, lun 0
scsi1 : Adaptec AIC7XXX EISA/VLB/PCI SCSI HBA DRIVER, Rev 6.2.8
scsi2 : Adaptec AIC7XXX EISA/VLB/PCI SCSI HBA DRIVER, Rev 6.2.8
scsi2: Someone reset channel A
scsi1: Someone reset channel A
scsi1: Transceiver State Has Changed to SE mode
scsi1: Someone reset channel A
scsi1: Transceiver State Has Changed to LVD mode
scsi1: Transceiver State Has Changed to SE mode
scsi1: Someone reset channel A
scsi1: Transceiver State Has Changed to LVD mode
scsi2: Transceiver State Has Changed to SE mode
scsi2: Transceiver State Has Changed to LVD mode
scsi1: Transceiver State Has Changed to SE mode
scsi1: Someone reset channel A
scsi1: Transceiver State Has Changed to LVD mode
scsi2: Transceiver State Has Changed to SE mode
scsi2: Someone reset channel A
scsi2: Transceiver State Has Changed to LVD mode
fadia.marei
Oliver Schwank
Valued Contributor

Re: tape drive

Hello together...

okay... for a generic SCSI rescan utility look here:

http://www.garloff.de/kurt/linux/scsidev/

please download the script
http://www.garloff.de/kurt/linux/rescan-scsi-bus.sh
and try, please post the results.

If you have a MSL Library with a HP FC controller (I think even with the EMC HBA which I assume you have xyo), it makes sense to install the HP FC utilities:

http://h20000.www2.hp.com/bizsupport/TechSupport/SoftwareDescription.jsp?locale=en_US〈=English+%28US%29&pnameOID=315741&prodSeriesId=315739&prodTypeId=12169&basePartNum=COL4635&locBasepartNum=co-19556-2&os=Red+Hat+Enterprise+Linux+3+%28x86%29&tech=Utility++FC+HBA

Inside these RPM are utilities to diagnose FC HBAs and the SCSI Linux layer. After installation you will find the utilities in /opt/hp/hp_fiberutils With the help of the hp_rescan I was able without rebuild of the kernel to connect a MSL Library via FC and to detect the drive LUNs

Bye

Oli
Fadia Almarei
Super Advisor

Re: tape drive

Dear Oliver
i run the script but it does not detect any new hardware,the output as the following


[root@RADIUS /]# ./rescan-scsi-bus.sh
Host adapter 0 (aacraid) found.
Host adapter 1 (aic7xxx) found.
Host adapter 2 (aic7xxx) found.
Scanning hosts 0 1 2 channels 0 for
SCSI target IDs 0 1 2 3 4 5 6 7 , LUNs 0
Scanning for device 0 0 0 0 ...
OLD: Host: scsi0 Channel: 00 Id: 00 Lun: 00
Vendor: DELL Model: PERCRAID RAID5 Rev: V1.0
Type: Direct-Access ANSI SCSI revision: 02
0 new device(s) found.
0 device(s) removed.
fadia.marei
Fadia Almarei
Super Advisor

Re: tape drive

thank you very much oliver it works,i reset the tape and i change the scsi controller it was connected to and try the script and it is detected ,so it works now ,thanks again
fadia.marei
Oliver Schwank
Valued Contributor

Re: tape drive

seufz...

It would be easier to restart the server, check at the reboot the Adaptec SCSI BIOS if the drive is there and restart Linux.

Once upon a time someone told me that there is a possbility to poke the neccessary LUN directly into the SCSI layer but I never investigated this desperate measure.

One last try, can you switch off and on the tape drive and rescan the SCSI bus with the utility once again? If it does not show up, I would recommend to reboot and see what happens.

Sorry but SCSI seems not to be so hotplugable as USB
I am little bit reluctant to do such things at runtime, because sometimes you will cause a short circuit by inserting the SCSI cable on the HBA.

Oli
xyko_1
Esteemed Contributor

Re: tape drive

Fadia,

good news, I think all of us had learned a little bit more about linux administration.

Oliver,

I'll try HP utilities, thanks for your attention.

regards all
xyko
xyko_1
Esteemed Contributor

Re: tape drive

Oliver,

the generic script to rescan scsi bus did the job.

The command : ./rescan-scsi-bus.sh -l -w -c --nooptscan


All sequential access devices of the MSL library where found and are operational at that time.

Unfortunately I can't give you 10 points for that help because the thread isn't mine.

Thanks a lot for your help.

Regards,
Xyko
Oliver Schwank
Valued Contributor

Re: tape drive

Hello,

perhaps Fadia assigns me the ten points for solving two problems at once. ;-)

Best wishes for the New Year for all

Oli