|
From: Matteo T. <ma...@RM...> - 2011-07-21 11:10:10
|
Hi Mark,
thank to Bart who found the problem, it was a machine related problem, where an old scstadmin in /sbin was preventing the correct one inside /usr/local/bin to be found by the initd script.
Sorry for your time spent on this.
Kind regards,
--
matteo
P.S. what about ALUA scstadmin support?
----- Messaggio originale -----
Da: "Mark Buechler" <mar...@gm...>
A: "Matteo Tescione" <ma...@rm...>
Cc: "scst-devel" <scs...@li...>
Inviato: Mercoledì, 20 luglio 2011 20:57:31
Oggetto: Re: [Scst-devel] [PATCH] Unify the three SCST init scripts
Hi
On Wed, Jul 20, 2011 at 2:46 PM, Matteo Tescione < ma...@rm... > wrote:
No, a manual clear_config does not reproduce the issue.
here is waht happens:
[root@nas1 trunk]# sh -x /etc/init.d/scst start
+ '[' -e /lib/lsb/init-functions ']'
+ . /lib/lsb/init-functions
+ PATH=/bin:/usr/bin:/sbin:/usr/sbin:/usr/local/sbin:/usr/local/bin
+ SCST_CFG=/etc/scst.conf
+ SCST_DFLT=/etc/default/scst
++ which scstadmin
+ '[' -x /usr/sbin/scstadmin ']'
+ '[' -f /etc/default/scst ']'
+ . /etc/default/scst
+ case "$1" in
+ echo -n 'Loading and configuring SCST'
Loading and configuring SCST+ '[' -e /sys/module/scst -a -e /sys/module/scst/refcnt ']'
+ parse_scst_conf
+ '[' '!' -e /etc/scst.conf ']'
+ local 'nonblanks=[^ ]\{1,\}'
+ local 'blanks=[ ]\{1,\}'
++ sed -n -e 's/^HANDLER[ ]\{1,\}\([^ ]\{1,\}\)[ ]\{1,\}{$/\1/p' -e 's/^\[HANDLER[ ]\{1,\}\([^ ]\{1,\}\)\]$/\1/p' /etc/scst.conf
++ read h
++ sort -u
++ case "$h" in
++ echo scst_vdisk
++ read h
++ sed -n 's/^TARGET_DRIVER[ ]\{1,\}\([^ ]\{1,\}\)[ ]\{1,\}{$/\1/p' /etc/scst.conf
++ read d
++ sort -u
++ case "$d" in
++ echo iscsi_scst
++ read d
+ SCST_MODULES='scst scst_vdisk iscsi_scst '
+ using_iscsi
+ for m in '$SCST_MODULES'
+ '[' scst = iscsi_scst ']'
+ for m in '$SCST_MODULES'
+ '[' scst_vdisk = iscsi_scst ']'
+ for m in '$SCST_MODULES'
+ '[' iscsi_scst = iscsi_scst ']'
+ return 0
+ case "`uname -m`" in
++ uname -m
+ SCST_OPT_MODULES='crc32c-intel '
+ SCST_OPT_MODULES='crc32c crc32c-intel '
+ SCST_DAEMONS='/usr/local/sbin/iscsi-scstd '
+ for m in '$SCST_OPT_MODULES'
+ modprobe crc32c
+ for m in '$SCST_OPT_MODULES'
+ modprobe crc32c-intel
+ for m in '$SCST_MODULES'
++ set
++ sed -n -e 's/^scst_parameters='\''\(.*\)'\''$/\1/p' -e 's/^scst_parameters=\(.*\)$/\1/p'
+ module_params=
+ '[' '!' -e /sys/module/scst ']'
+ modprobe scst
+ for m in '$SCST_MODULES'
++ set
++ sed -n -e 's/^scst_vdisk_parameters='\''\(.*\)'\''$/\1/p' -e 's/^scst_vdisk_parameters=\(.*\)$/\1/p'
+ module_params=
+ '[' '!' -e /sys/module/scst_vdisk ']'
+ modprobe scst_vdisk
+ for m in '$SCST_MODULES'
++ set
++ sed -n -e 's/^iscsi_scst_parameters='\''\(.*\)'\''$/\1/p' -e 's/^iscsi_scst_parameters=\(.*\)$/\1/p'
+ module_params=
+ '[' '!' -e /sys/module/iscsi_scst ']'
+ modprobe iscsi_scst
+ for d in '$SCST_DAEMONS'
+ start_daemon /usr/local/sbin/iscsi-scstd
+ /etc/redhat-lsb/lsb_start_daemon /usr/local/sbin/iscsi-scstd
+ '[' -f /etc/scst.conf ']'
+ echo y
+ scstadmin -clear_config -force
Thinking this should have a -noprompt in it?? Is this the init script found in scstadmin/init.d/?
- Mark.
|