1822142 Members
3446 Online
109640 Solutions
New Discussion юеВ

device path for device

 
SOLVED
Go to solution
peterchu
Super Advisor

device path for device

I have connected a new external tape device to my server , in another server , I use the device path /dev/st0 for the internal device , but I can't use the same device path for the new external tape device now , are they different for internal and external device ? if yes, what is the device path for external device ? thx in advance.
7 REPLIES 7
Huc_1
Honored Contributor

Re: device path for device

I dont think there is any particular device path for external tape.

If the controleur is seen and the tape is correctly attached it should be pick-up by the kernel and/or by the build in loadable modules

This is usualy logged in /var/log/messages and can be found with dmesg

Could you tell us more about your setup, lsmod extract of dmesg or boot log would help

J-P
Smile I will feel the difference
peterchu
Super Advisor

Re: device path for device

attach the lsmod and dmesg log , please help to advise what is the device path .. thx in advance.
peterchu
Super Advisor

Re: device path for device

dmesg.txt
peterchu
Super Advisor

Re: device path for device

lsmod.txt
Stuart Browne
Honored Contributor
Solution

Re: device path for device

Ok. I take it this 'dmesg' is from before the tape drive was attached.

It looks as if the tape drive hasn't been detected at this point.

At the very least, you need to get the SCSI controller to re-read it's attached ID's (I'm unsure how to do that with your controller. A reboot will do it).

For the moment though, does '/proc/scsi/scsi' list a 'SEQUENTIAL-ACCESS' device along with the 'DIRECT-ACCESS' and 'Processor' devices?

If it does, then you can probably get away with 'modprobe st' ('st' being the driver module that drives tape drives in Linux).

If not, reboot, try again.
One long-haired git at your service...
peterchu
Super Advisor

Re: device path for device

the below is my vi /proc/scsi/scsi , could help to analyse. thx in adance

Attached devices:
Host: scsi0 Channel: 00 Id: 00 Lun: 00
Vendor: IBM Model: SERVERAID Rev: 1.00
Type: Direct-Access ANSI SCSI revision: 02
Host: scsi0 Channel: 00 Id: 15 Lun: 00
Vendor: IBM Model: SERVERAID Rev: 1.00
Type: Processor ANSI SCSI revision: 02
Host: scsi0 Channel: 01 Id: 08 Lun: 00
Vendor: IBM Model: 32P0032a S320 1 Rev: 1
Type: Processor ANSI SCSI revision: 02
Ivajlo Yanakiev
Respected Contributor

Re: device path for device

Last time that I have problem with tape device using RAID CTL was hard :)
this documents may be help you:
http://linuxbg.com/how_to/Tape_CCISS/Tape_scsi.txt
You must read kernel doc for your RAID CTL.