Operating System - Linux
1756555 Members
2338 Online
108848 Solutions
New Discussion юеВ

DL380/G2 Hot plug 72G DAT drive not working on Fedora C3

 
Dave Armbruster
Occasional Advisor

Re: DL380/G2 Hot plug 72G DAT drive not working on Fedora C3

Hi Xyko,
I went ahead and removed the script in the rc.local startup file. I then rebooted and ran the script you pointed me to on the web site. Take a look. It claims there are no drives available!

[root@cserv brewster]# ./rescan-scsi-bus.sh
No SCSI host adapters found in sysfs

Even with a couple different options nothing shows. Is this a driver issue where it just doesn't see it correctly? Thanks for the help!!!

Dave
xyko_1
Esteemed Contributor

Re: DL380/G2 Hot plug 72G DAT drive not working on Fedora C3

Hi Dave,

Fedora Core 3 runs kernel 2.6 ?

When you run kernel 2.6 you must have sysfs (the "brother" of /proc in kernel 2.4) mounted, then the script will look for a directory called /sys/class/scsi_host/. If it doesn't find it the script aborts with the message that you received. That's the code :
-------------------------------------
findhosts_26 ()
{
hosts=
if test ! -e /sys/class/scsi_host/host*; then
echo "No SCSI host adapters found in sysfs"
exit 1;
#hosts=" 0"
#return
fi
for hostdir in /sys/class/scsi_host/host*; do
hostno=${hostdir#/sys/class/scsi_host/host}
hostname=`cat $hostdir/proc_name`
hosts="$hosts $hostno"
echo "Host adapter $hostno ($hostname) found."
done
}
-------------------------------------
So you must look if there is any problem with Fedora regarding the needs of that script.

It may be a problem that impacts the script itself and, who knows, the fully operation of your tape.

Let's continue our investigation.

If possible, attach a file with the output of dmesg and boot.log.

regards,
Xyko
Dave Armbruster
Occasional Advisor

Re: DL380/G2 Hot plug 72G DAT drive not working on Fedora C3

Hi Xyko,
Here are the files. I couldn't see anything weird in them other than smartd fails at boot, but I took that to be from the blank config file it had. See what you think....Thanks!....Dave
xyko_1
Esteemed Contributor

Re: DL380/G2 Hot plug 72G DAT drive not working on Fedora C3

Hi Dave,

I found some forum threads that may help solve the problem. Have you ever seen those threads also ?

http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=211833
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=657513

Attention for kernel configuration and hotplug packages.

But, the most important thing is that HP only refers linux distros with kernel 2.4 when talking about hotplug dat72 support and compatibility. I'm afraid that you will have problems to get this working well.

Unfortunately I guess I cannot help you anymore because it's beyond my knowledge. Sorry.

One more thing that you can try is to open a thread on a storage forum ( http://forums1.itrc.hp.com/service/forums/categoryhome.do?categoryId=198 . This is a more specific point of support.

I wish you solve your problem and, if possible, report your news to us.

Good Luck for you.

Xyko
Dave Armbruster
Occasional Advisor

Re: DL380/G2 Hot plug 72G DAT drive not working on Fedora C3

Thanks Xyko! I saw these links. The second is where I got the little engage scsi script. I think at this point I will try a post on the Fedora site and see if anyone has the 2.6 driver for compaq or some kind of work around. Thanks for all your help and patience. Put yourself in for a cold beverage......Dave
xyko_1
Esteemed Contributor

Re: DL380/G2 Hot plug 72G DAT drive not working on Fedora C3

Dave,

Best wishes for you.

Here we are 2 days from Carnaval and I live in Rio de Janeiro so.......

I'll be out for four days taking some rest.

Regards,
Xyko
Umberto Nicoletti
Occasional Advisor

Re: DL380/G2 Hot plug 72G DAT drive not working on Fedora C3

About the device being offlined on i/o error (for instance when writing beyond tape capacity):

I have two proliant dl380 servers with SLES9 with one storage works dat40 each. The tape drive is detected with engage scsi command and works, but is offlined whenever the backup command tries to write a file that is larger than the tape capacity.

Also the scsi subsystem complain about scsi error handling missing (excerpt from dmesg):

ERROR: SCSI host `cciss' has no error handling
ERROR: This is not a safe way to run your SCSI host
ERROR: The error handling must be added to this driver
Call Trace:
[] scsi_host_alloc+0x2b1/0x2d0 [scsi_mod]
[] cciss_proc_write+0x1f3/0x2c0 [cciss]
[] do_page_fault+0x183/0x59a
[] __do_mmap_pgoff+0xf2/0x1a0
[] proc_file_write+0x2f/0x40
[] vfs_write+0xc6/0x160
[] do_mmap2+0xdd/0x170
[] sys_write+0x91/0xf0
[] sysenter_past_esp+0x52/0x71

scsi0 : cciss
Vendor: HP Model: C5683A Rev: P306
Type: Sequential-Access ANSI SCSI revision: 03
st: Version 20040318, fixed bufsize 32768, s/g segs 256
Attached scsi generic sg0 at scsi0, channel 0, id 0, lun 0, type 1
Attached scsi tape st0 at scsi0, channel 0, id 0, lun 0
st0: try direct i/o: yes (alignment 512 B), max page reachable by HBA
4294967295

Solution (?)
------------

I have found the following on good ol' google:

http://groups.google.com/group/fa.linux.kernel/browse_frm/thread/50734896bf39ced/d94e675c2443b855?lnk=st&q=&rnum=7&hl=it#d94e675c2443b855

and contacted Cameron who was kind enough to immediately report that the patch which *should* solve our problems will probably be in
release 2.6.10-13 of hp cciss driver (no guarantees, just a guess [we are now at 2.6.10.11]).
In the meanwhile we must upgrade the kernel to 2.6.15 to (probably) solve the issue.

Strangely enough the drive has error handling on RHEL3 without the hp cciss driver and works just fine.