Re: [suse-programming-e] problem with SLES 10
my expericence with QLogic Driver, is to use the lastest driver supplied from the manufacture for the version of linux that you are using. because mismatched Qlogic Driver would cause OS kernel panic. if QLogic Driver does have problem, you should able to see the messages in OS boot log or error log, Hunter <newtype@programmer.net>
----- Original Message ----- From: "MASTHAN DUDEKULA" <d.mastan@gmail.com> To: suse-programming-e@suse.com Subject: [suse-programming-e] problem with SLES 10 Date: Mon, 3 Jul 2006 12:47:45 +0530
Hi Folks,
I am using SLES 10 latest beta bits. I think there was a problem in QLogic driver in SLES 10 beta bits.
I have a VA (Virtual Array), it has 4 LUNs, /dev/sda, /dev/sdb, /dev/sdc, /dev/sdd. To reset scsi device i isssued the following command
#sg_reset -d /dev/sg1. After issueing this command, the machine is not coming up ( it is hanging)
Later i wrote the following script for resetting device,. but still i have the same problem
int main(int argc, char * argv[]) {
int fd;
int rc;
int arg=2;
if ((fd=open("/dev/sg3", O_RDWR)) < 0) {
printf( "device open fails");
return -1;
}
if ((rc=ioctl(fd,SG_SCSI_RESET,&arg)) < 0 ){
printf( " ioctl failed ");
close (fd);
return -1;
}
printf ( " reset success ");
close (fd);
return 0;
}
After running the above script, the status of the machine is something like this
4>[ACPI Debug] String: [0x0B] "_TMP Method"
:<6>qla2300 0000:06:01.0: scsi(0:0:2:0): LOOP RESET ISSUED.
:<0>BUG: spinlock already unlocked on CPU#0, diskres/5242
:<0> lock: dfbd4034, .magic: dead4ead, .owner: <none>/-1, .owner_cpu: -1
:<4> [<c01058fa>] show_trace+0xd/0xf
:<4> [<c0105a1d>] dump_stack+0x17/0x19
:<4> [<c01ce308>] spin_bug+0x7e/0xc0
<4> [<c01ce376>] _raw_spin_unlock+0x2c/0x70
:<4> [<c02c5878>] _spin_unlock_irq+0x8/0xb
:<4> [<f933613c>] qla2xxx_eh_bus_reset+0xae/0x1cc [qla2xxx]
:<4> [<f90290b8>] scsi_try_bus_reset+0x41/0x9a [scsi_mod]
:<4> [<f90297fe>] scsi_reset_provider+0x111/0x19e [scsi_mod]
:<4> [<f90c282d>] sg_ioctl+0x8e5/0x9ca [sg]
<4> [<c0172f77>] do_ioctl+0x4f/0x68
:<4> [<c01731ea>] vfs_ioctl+0x25a/0x26d
:<4> [<c0173244>] sys_ioctl+0x47/0x63
:<4> [<c0103e39>] syscall_call+0x7/0xb
:<6>qla2300 0000:06:01.0: qla2xxx_eh_bus_reset: reset succeded
\
Your help is appreciated.
Regards,
Masthan
-- ___________________________________________________ Play 100s of games for FREE! http://games.mail.com/
participants (1)
-
Hunter Liang