[redhat-cluster-suite] scsi_reserve is missing in the cman package

Bug #282249 reported by Shang Wu
22
This bug affects 1 person
Affects Status Importance Assigned to Milestone
cman (Ubuntu)
Confirmed
Undecided
Unassigned
redhat-cluster (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

From the cman-2.0.60-5.fc9.i386.rpm package[1], we can see that scsi_reserve is listed under /etc/init.d/ directory. But in Ubuntu 8.04, if we install the redhat-cluster-suite which contain the cman package[2], the script scsi_reserve is not installed in Ubuntu.

This script is required when the user trying to use the SCSI RESERVE as his fence device option in red hat cluster suite. Also, to run scsi_reserve, you will need to have sg3-utils and syslinux installed on the Ubuntu server machine.

[1]:
cman-2.0.60.orig/:
total 16
drwxr-xr-x 4 root root 4096 2008-10-12 11:08 etc
drwxr-xr-x 2 root root 4096 2008-10-12 11:08 sbin
drwxr-xr-x 6 root root 4096 2008-10-12 11:08 usr
drwxr-xr-x 3 root root 4096 2008-10-12 11:08 var

cman-2.0.60.orig/etc:
total 8
drwxr-xr-x 2 root root 4096 2008-04-07 22:59 cluster
drwxr-xr-x 3 root root 4096 2008-10-12 11:08 rc.d

cman-2.0.60.orig/etc/cluster:
total 0

cman-2.0.60.orig/etc/rc.d:
total 4
drwxr-xr-x 2 root root 4096 2008-10-12 11:08 init.d

cman-2.0.60.orig/etc/rc.d/init.d:
total 20
-rwxr-xr-x 1 root root 9230 2008-04-07 22:59 cman
-rwxr-xr-x 1 root root 913 2008-04-07 22:59 qdiskd
-rwxr-xr-x 1 root root 3075 2008-04-07 22:59 scsi_reserve

cman-2.0.60.orig/sbin:
total 796
-rwxr-xr-x 1 root root 57700 2008-04-07 23:00 ccsd
-rwxr-xr-x 1 root root 10828 2008-04-07 23:00 ccs_test
-rwxr-xr-x 1 root root 55868 2008-04-07 23:00 ccs_tool
-rwxr-xr-x 1 root root 46996 2008-04-07 23:00 dlm_controld
-rwxr-xr-x 1 root root 5796 2008-04-07 23:00 fence_ack_manual
-rwxr-xr-x 1 root root 10861 2008-04-07 22:59 fence_apc
-rwxr-xr-x 1 root root 6716 2008-04-07 22:59 fence_bladecenter
-rwxr-xr-x 1 root root 5298 2008-04-07 22:59 fence_brocade
-rwxr-xr-x 1 root root 8271 2008-04-07 22:59 fence_bullpap
-rwxr-xr-x 1 root root 46916 2008-04-07 23:00 fenced
-rwxr-xr-x 1 root root 14163 2008-04-07 22:59 fence_drac
-rwxr-xr-x 1 root root 7727 2008-04-07 22:59 fence_egenera
-rwxr-xr-x 1 root root 12429 2008-04-07 22:59 fence_ilo
-rwxr-xr-x 1 root root 16596 2008-04-07 23:00 fence_ipmilan
-rwxr-xr-x 1 root root 26376 2008-04-07 23:00 fence_manual
-rwxr-xr-x 1 root root 5894 2008-04-07 22:59 fence_mcdata
-rwxr-xr-x 1 root root 23288 2008-04-07 23:00 fence_node
-rwxr-xr-x 1 root root 10008 2008-04-07 23:00 fence_rps10
-rwxr-xr-x 1 root root 6587 2008-04-07 22:59 fence_rsa
-rwxr-xr-x 1 root root 8798 2008-04-07 22:59 fence_rsb
-rwxr-xr-x 1 root root 5304 2008-04-07 22:59 fence_sanbox2
-rwxr-xr-x 1 root root 5525 2008-04-07 22:59 fence_scsi
-rwxr-xr-x 1 root root 4620 2008-04-07 22:59 fence_scsi_test
-rwxr-xr-x 1 root root 31324 2008-04-07 23:00 fence_tool
-rwxr-xr-x 1 root root 4296 2008-04-07 22:59 fence_vixel
-rwxr-xr-x 1 root root 7757 2008-04-07 22:59 fence_wti
-rwxr-xr-x 1 root root 28120 2008-04-07 23:00 fence_xvm
-rwxr-xr-x 1 root root 50048 2008-04-07 23:00 fence_xvmd
-rwxr-xr-x 1 root root 104444 2008-04-07 23:00 gfs_controld
-rwxr-xr-x 1 root root 79740 2008-04-07 23:00 groupd
-rwxr-xr-x 1 root root 14636 2008-04-07 23:00 group_tool

cman-2.0.60.orig/usr:
total 16
drwxr-xr-x 2 root root 4096 2008-10-12 11:08 lib
drwxr-xr-x 3 root root 4096 2008-10-12 11:08 libexec
drwxr-xr-x 2 root root 4096 2008-10-12 11:08 sbin
drwxr-xr-x 3 root root 4096 2008-10-12 11:08 share

cman-2.0.60.orig/usr/lib:
total 44
lrwxrwxrwx 1 root root 17 2008-10-12 11:08 libcman.so -> libcman.so.2.0.60
lrwxrwxrwx 1 root root 17 2008-10-12 11:08 libcman.so.2 -> libcman.so.2.0.60
-rwxr-xr-x 1 root root 15704 2008-04-07 23:00 libcman.so.2.0.60
lrwxrwxrwx 1 root root 19 2008-10-12 11:08 libdlm_lt.so -> libdlm_lt.so.2.0.60
lrwxrwxrwx 1 root root 19 2008-10-12 11:08 libdlm_lt.so.2 -> libdlm_lt.so.2.0.60
-rwxr-xr-x 1 root root 9872 2008-04-07 23:00 libdlm_lt.so.2.0.60
lrwxrwxrwx 1 root root 16 2008-10-12 11:08 libdlm.so -> libdlm.so.2.0.60
lrwxrwxrwx 1 root root 16 2008-10-12 11:08 libdlm.so.2 -> libdlm.so.2.0.60
-rwxr-xr-x 1 root root 14556 2008-04-07 23:00 libdlm.so.2.0.60

cman-2.0.60.orig/usr/libexec:
total 4
drwxr-xr-x 2 root root 4096 2008-10-12 11:08 lcrso

cman-2.0.60.orig/usr/libexec/lcrso:
total 56
-rwxr-xr-x 1 root root 51388 2008-04-07 23:00 service_cman.lcrso

cman-2.0.60.orig/usr/sbin:
total 112
-rwxr-xr-x 1 root root 35512 2008-04-07 23:00 cman_tool
-rwxr-xr-x 1 root root 18832 2008-04-07 23:00 mkqdisk
-rwxr-xr-x 1 root root 51564 2008-04-07 23:00 qdiskd

cman-2.0.60.orig/usr/share:
total 4
drwxr-xr-x 5 root root 4096 2008-10-12 11:08 man

cman-2.0.60.orig/usr/share/man:
total 12
drwxr-xr-x 2 root root 4096 2008-10-12 11:08 man5
drwxr-xr-x 2 root root 4096 2008-10-12 11:08 man7
drwxr-xr-x 2 root root 4096 2008-10-12 11:08 man8

cman-2.0.60.orig/usr/share/man/man5:
total 16
-rwxr-xr-x 1 root root 2560 2008-04-07 22:59 cluster.conf.5.gz
-rwxr-xr-x 1 root root 1296 2008-04-07 22:59 cman.5.gz
-rwxr-xr-x 1 root root 5106 2008-04-07 22:59 qdisk.5.gz

cman-2.0.60.orig/usr/share/man/man7:
total 4
-rwxr-xr-x 1 root root 925 2008-04-07 22:59 ccs.7.gz

cman-2.0.60.orig/usr/share/man/man8:
total 116
-rwxr-xr-x 1 root root 1232 2008-04-07 22:59 ccsd.8.gz
-rwxr-xr-x 1 root root 1418 2008-04-07 22:59 ccs_test.8.gz
-rwxr-xr-x 1 root root 2180 2008-04-07 22:59 ccs_tool.8.gz
-rwxr-xr-x 1 root root 3357 2008-04-07 22:59 cman_tool.8.gz
-rwxr-xr-x 1 root root 755 2008-04-07 22:59 fence.8.gz
-rwxr-xr-x 1 root root 718 2008-04-07 22:59 fence_ack_manual.8.gz
-rwxr-xr-x 1 root root 1057 2008-04-07 22:59 fence_apc.8.gz
-rwxr-xr-x 1 root root 910 2008-04-07 22:59 fence_bladecenter.8.gz
-rwxr-xr-x 1 root root 1073 2008-04-07 22:59 fence_brocade.8.gz
-rwxr-xr-x 1 root root 879 2008-04-07 22:59 fence_bullpap.8.gz
-rwxr-xr-x 1 root root 2266 2008-04-07 22:59 fenced.8.gz
-rwxr-xr-x 1 root root 1103 2008-04-07 22:59 fence_drac.8.gz
-rwxr-xr-x 1 root root 1003 2008-04-07 22:59 fence_egenera.8.gz
-rwxr-xr-x 1 root root 999 2008-04-07 22:59 fence_ilo.8.gz
-rwxr-xr-x 1 root root 952 2008-04-07 22:59 fence_ipmilan.8.gz
-rwxr-xr-x 1 root root 883 2008-04-07 22:59 fence_manual.8.gz
-rwxr-xr-x 1 root root 1079 2008-04-07 22:59 fence_mcdata.8.gz
-rwxr-xr-x 1 root root 662 2008-04-07 22:59 fence_node.8.gz
-rwxr-xr-x 1 root root 351 2008-04-07 22:59 fence_rib.8.gz
-rwxr-xr-x 1 root root 890 2008-04-07 22:59 fence_rsa.8.gz
-rwxr-xr-x 1 root root 1081 2008-04-07 22:59 fence_sanbox2.8.gz
-rwxr-xr-x 1 root root 1731 2008-04-07 22:59 fence_scsi.8.gz
-rwxr-xr-x 1 root root 951 2008-04-07 22:59 fence_tool.8.gz
-rwxr-xr-x 1 root root 999 2008-04-07 22:59 fence_vixel.8.gz
-rwxr-xr-x 1 root root 939 2008-04-07 22:59 fence_wti.8.gz
-rwxr-xr-x 1 root root 1755 2008-04-07 22:59 fence_xvm.8.gz
-rwxr-xr-x 1 root root 1503 2008-04-07 22:59 fence_xvmd.8.gz
-rwxr-xr-x 1 root root 485 2008-04-07 22:59 mkqdisk.8.gz
-rwxr-xr-x 1 root root 338 2008-04-07 22:59 qdiskd.8.gz

cman-2.0.60.orig/var:
total 4
drwxr-xr-x 3 root root 4096 2008-10-12 11:08 run

cman-2.0.60.orig/var/run:
total 4
drwxr-xr-x 2 root root 4096 2008-04-07 22:59 cluster

cman-2.0.60.orig/var/run/cluster:
total 0

[2]:
Package: cman
Priority: optional
Section: admin
Installed-Size: 1312
Maintainer: Ubuntu Core Developers <email address hidden>
Original-Maintainer: Debian Kernel Team <email address hidden>
Architecture: i386
Source: redhat-cluster
Version: 2.20080227-0ubuntu1

Shang Wu (shangwu)
description: updated
Changed in redhat-cluster:
status: New → Invalid
Revision history for this message
Shang Wu (shangwu) wrote :

@SEAQ - Andres Mujica

If you think the bug is invalid, can you at least provide some information or some reason on why?

Changed in redhat-cluster:
status: Invalid → New
Revision history for this message
Andres Mujica (andres.mujica) wrote :

Hi Shang, i'm havign big troubles with my internet and i've lost several times the comment.

I've marked the bug as invalid in redhat-cluster and marked as confirmed in cman, where the files are missing.

This bug is confirmed in cman

http://packages.ubuntu.com/intrepid/i386/cman/filelist
http://packages.ubuntu.com/hardy/i386/cman/filelist

it seems some files are missing from cman compilation.

this bug is related to bug #263788

Changed in redhat-cluster:
status: New → Confirmed
Revision history for this message
Shang Wu (shangwu) wrote :

The following PPA has include the scsi_reserve script in the package:

Please add the following to the system repository:
deb http://ppa.launchpad.net/zulcss/ubuntu hardy main
deb-src http://ppa.launchpad.net/zulcss/ubuntu hardy main

Here is the diff file:
https://launchpad.net/%7Ezulcss/+archive/+files/redhat-cluster_2.20080227-0ubuntu1_2.20080227-0ubuntu2~ppa1.diff.gz

Revision history for this message
Etienne Goyer (etienne-goyer-outlands) wrote :

The missing scsi_reserve command require sg3-utils and syslinux to be installed (it use gethostbyip from syslinux, and scsi_persist from sg3-utils). sg3-utils is in universe and cman is in main, hence I am not sure how we should handle that. Maybe sg3-utils and sysutils should be a Recommend, or Suggest?

Chuck, there is a typo in cman.scsi_reserve.init file that you added in your PPA package: in the start function, "scsi_persis" should really be "scsi_persist".

Revision history for this message
Andres Mujica (andres.mujica) wrote :

adding patch attachment so automated scripts would catch it

Revision history for this message
Steve Langasek (vorlon) wrote :

The missing script is included in the package in Ubuntu 9.04 and beyond.

Changed in redhat-cluster (Ubuntu):
status: Confirmed → Fix Released
Changed in cman (Ubuntu):
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.