Operating System - Linux
1830096 Members
6249 Online
109998 Solutions
New Discussion

Re: red hat advanced server 2.x

 
David_550
Advisor

red hat advanced server 2.x

Hi,
Can somebody helpme with information about Tape drive installation in linux redhat advanced server??
My tape drive is a hp storage Works DAT 40
modelo: Q1546A, my server is a Proliant DL380G3, my array controller card is 5i+ and this detect my tape drive but linux nop.
Please help.

Thanks
7 REPLIES 7
Martin P.J. Zinser
Honored Contributor

Re: red hat advanced server 2.x

Hello,

I am no expert on this, but a first step certainly is to run cdrecord -scanbus to determine if the tape drive is identified on the SCSI level by your system.

Also it might help if you could elaborate a bit more on what makes you think your server does not see the drive.

Greetings, Martin
Stuart Browne
Honored Contributor

Re: red hat advanced server 2.x

mm.. Much fun.. Hot-Swap tape drive in 2U server..

I've only got one server with this configuration, and truthfully, I've not tried getting the tape to work yet (I didn't build it up).

Taking a quick look at that server now, however, shows that the tape drive is working fine.

So lets check some things:

1) You're using a recent 'cciss' driver supplied by HP?

2) The 'cciss' and 'st' modules are inserted or compiled in?

3) The following flags are set in your '.config' for your kernel:

CONFIG_BLK_CPQ_CISS_DA=m|y
CONFIG_CISS_SCSI_TAPE=y

If these are all good, and you're running that kernel, then we need to check the contents of '/proc/scsi/scsi' and for the existance of the '/dev/cciss/' structures.
One long-haired git at your service...
Bill Wood_3
Respected Contributor

Re: red hat advanced server 2.x

Assuming that your are using the 5i+ or another array controller that uses cciss, put the following script (in a file called compaq_cciss_scsi) in /etc/rc.d/init.d:

for x in /proc/driver/cciss/cciss[0-9]*
do
echo "engage scsi" > $x
done

The echo command will engage the cciss scsi support and the script will keep the setup going across reboots.
David_550
Advisor

Re: red hat advanced server 2.x

Bill Wood, I tried it, but don´t work. When i execute the following:
cat /proc/scsi/scsi

don´t show me nothing.

Help
Th
Bill Wood_3
Respected Contributor

Re: red hat advanced server 2.x

Are you sure that the cciss tape support is enabled in your kernel?

"You must enable "SCSI tape drive support for Smart Array 5xxx" and
"SCSI support" in your kernel configuration to be able to use SCSI
tape drives with your Smart Array 5xxx controller."

If so,

If you have the compaq_cciss_scsi script running correctly at startup, you will see the tape device in /proc/scsi/scsi. You can manually add the tape device with the following commands:

echo "engage scsi" > /proc/driver/cciss/cciss0

echo scsi add-single-device 0 0 0 0 > /proc/scsi/scsi

Tape devices always start with all 0s on our array controllers (regardless of their position during post). For example, tape device 1 is "0 0 0 0" and tape device 2 would be 0 0 1 0" and so on.

The 1st SCSI tape device is accessed with /dev/nst0 for non-rewinding and /dev/st0 for rewinding
David_550
Advisor

Re: red hat advanced server 2.x

Bill Wood -->Are you sure that the cciss tape support is enabled in your kernel-->but do i do it with echo engage scsi > /proc/driver/cciss/ccissN or not??


Thanks
Bill Wood_3
Respected Contributor

Re: red hat advanced server 2.x

No, the following command is required to register with the scsi mid-layer.

echo "engage scsi" > /proc/driver/cciss/cciss0

If you are using a stock Red Hat kernel, then the support is already enabled. If not, you will have to run "make xconfig" or "make menuconfig" from /usr/src/linux-2.4 and add it. Then recompile the kernel/modules.