Bug#350586: heartbeat: LinuxSCSI fails because of wrong /proc/scsi/scsi Usage
Hi Martin, do you have any information in weather the /proc/scsi interface changed at some stage. I7m concerned that although your suggestion will work on 2.6.8, it may not work on other kernel version, and thus something slightly smarter needs to be done at run time to work out what commands to be sent based on the prevailing kernel version. -- Horms -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Bug#350586: heartbeat: LinuxSCSI fails because of wrong /proc/scsi/scsi Usage
Package: heartbeat Version: 1.2.3-9sarge3 Severity: normal Tags: patch Please use the patch below to fix the LinuxSCSI resource script: *** /etc/ha.d/resource.d/LinuxSCSI~ 2005-08-13 09:46:25.0 +0200 --- /etc/ha.d/resource.d/LinuxSCSI 2006-01-27 14:25:30.464771922 +0100 *** *** 142,148 scsi_start() { parseinst $1 [ $target = error ] exit 1 ! echo scsi-add-single-device $host $channel $target $lun $PROCSCSI if scsi_status $1 then --- 142,148 scsi_start() { parseinst $1 [ $target = error ] exit 1 ! echo scsi add-single-device $host $channel $target $lun $PROCSCSI if scsi_status $1 then *** *** 160,166 scsi_stop() { parseinst $1 [ $target = error ] exit 1 ! echo scsi-remove-single-device $host $channel $target $lun $PROCSCSI if scsi_status $1 then --- 160,166 scsi_stop() { parseinst $1 [ $target = error ] exit 1 ! echo scsi remove-single-device $host $channel $target $lun $PROCSCSI if scsi_status $1 then -- System Information: Debian Release: 3.1 Architecture: amd64 (x86_64) Kernel: Linux 2.6.8-11-amd64-k8-smp Locale: [EMAIL PROTECTED], [EMAIL PROTECTED] (charmap=ISO-8859-15) Versions of packages heartbeat depends on: ii adduser3.63 Add and remove users and groups ii iproute20041019-3Professional tools to control the ii iputils-ping 3:20020927-2 Tools to test the reachability of ii libc6 2.3.2.ds1-22 GNU C Library: Shared libraries an ii libglib1.2 1.2.10-9 The GLib library of C routines ii libnet11.1.2.1-2 library for the construction and h ii libpils0 1.2.3-9sarge3 Plugin and Interface Loading Syste ii libstonith01.2.3-9sarge3 Interface for remotely powering do ii python 2.3.5-2 An interactive high-level object-o -- no debconf information -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Bug#350586: [EMAIL PROTECTED]: Bug#350586: heartbeat: LinuxSCSI fails because of wrong /proc/scsi/scsi Usage]
Hi Linux-HA-dev, Is this fix appropriate? I'm not up on what changes might have been made to /proc/scsi - Forwarded message from Christoph Martin [EMAIL PROTECTED] - Subject: Bug#350586: heartbeat: LinuxSCSI fails because of wrong /proc/scsi/scsi Usage Reply-To: Christoph Martin [EMAIL PROTECTED], [EMAIL PROTECTED] Message-Id: [EMAIL PROTECTED] From: Christoph Martin [EMAIL PROTECTED] To: Debian Bug Tracking System [EMAIL PROTECTED] Date: Fri, 27 Jan 2006 14:36:42 +0100 X-Spam-Status: No, score=-1.9 required=5.0 tests=AWL,BAYES_00, DATE_IN_FUTURE_06_12 autolearn=no version=3.0.4-stephanie.vergenet.net_2005122100 Package: heartbeat Version: 1.2.3-9sarge3 Severity: normal Tags: patch Please use the patch below to fix the LinuxSCSI resource script: *** /etc/ha.d/resource.d/LinuxSCSI~ 2005-08-13 09:46:25.0 +0200 --- /etc/ha.d/resource.d/LinuxSCSI 2006-01-27 14:25:30.464771922 +0100 *** *** 142,148 scsi_start() { parseinst $1 [ $target = error ] exit 1 ! echo scsi-add-single-device $host $channel $target $lun $PROCSCSI if scsi_status $1 then --- 142,148 scsi_start() { parseinst $1 [ $target = error ] exit 1 ! echo scsi add-single-device $host $channel $target $lun $PROCSCSI if scsi_status $1 then *** *** 160,166 scsi_stop() { parseinst $1 [ $target = error ] exit 1 ! echo scsi-remove-single-device $host $channel $target $lun $PROCSCSI if scsi_status $1 then --- 160,166 scsi_stop() { parseinst $1 [ $target = error ] exit 1 ! echo scsi remove-single-device $host $channel $target $lun $PROCSCSI if scsi_status $1 then -- System Information: Debian Release: 3.1 Architecture: amd64 (x86_64) Kernel: Linux 2.6.8-11-amd64-k8-smp Locale: [EMAIL PROTECTED], [EMAIL PROTECTED] (charmap=ISO-8859-15) Versions of packages heartbeat depends on: ii adduser3.63 Add and remove users and groups ii iproute20041019-3Professional tools to control the ii iputils-ping 3:20020927-2 Tools to test the reachability of ii libc6 2.3.2.ds1-22 GNU C Library: Shared libraries an ii libglib1.2 1.2.10-9 The GLib library of C routines ii libnet11.1.2.1-2 library for the construction and h ii libpils0 1.2.3-9sarge3 Plugin and Interface Loading Syste ii libstonith01.2.3-9sarge3 Interface for remotely powering do ii python 2.3.5-2 An interactive high-level object-o -- no debconf information - End forwarded message - -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]