multipathd init script errors
Hello, all. Whenever we stop multipathd, we get the following errors:
[root@kvm01 sysconfig]# service multipathd stop /etc/init.d/multipathd: line 32: cd: HOME not set /etc/init.d/multipathd: line 50: read: read error: 0: Is a directory
When we looked at the init script, it appears to be a problem with the parameters passed to the teardown_slaves function. We put a little echo statement in to tell us what was being passed as ${1} since the first line of the function and the one which seems to be causing the grief is "cd ${1}"
We got:
[root@kvm01 init.d]# service multipathd stop/sys/block/dm-0/sys/block/md1/sys/block/sda/sda2
/etc/init.d/multipathd: line 33: cd: HOME not set /etc/init.d/multipathd: line 51: read: read error: 0: Is a directory
Any idea how we fix this? Thanks - John
Signature · 7 lines
John A. Sullivan III Open Source Development Corporation +1 207-985-7880 [email protected] http://www.spiritualoutreach.com Making Christianity intelligible to secular society
Benjamin Marzinski
maintainerQuoted 19 lines · John A. Sullivan III
Hello, all. Whenever we stop multipathd, we get the following errors:
[root@kvm01 sysconfig]# service multipathd stop
/etc/init.d/multipathd: line 32: cd: HOME not set/etc/init.d/multipathd: line 50: read: read error: 0: Is a directoryWhen we looked at the init script, it appears to be a problem with the parameters passed to the
teardown_slavesfunction. We put a little echo statement in to tell us what was being passed as ${1} since the first line of the function and the one which seems to be causing the grief is "cd ${1}"We got:
[root@kvm01 init.d]# service multipathd stop/sys/block/dm-0/sys/block/md1/sys/block/sda/sda2
Quoted 4 lines
/etc/init.d/multipathd: line 33: cd: HOME not set/etc/init.d/multipathd: line 51: read: read error: 0: Is a directoryAny idea how we fix this? Thanks - John
Here is a patch to the source code. You need to apply this to /etc/init.d/multipathd. This fix is going into RHEL 5.4 and will be in the next 5.3.z package.
-Ben
Index: multipath-tools/multipathd/multipathd.init.redhat
===================================================================
RCS file: /cvs/dm/multipath-tools/multipathd/multipathd.init.redhat,v retrieving revision 1.2.4.3
retrieving revision 1.2.4.4
multipathd/multipathd.init.redhat +2 -0
@@ -29,6 +29,7 @@ teardown_slaves() { +pwd=`pwd` cd $1; if [ -d "slaves" ]; then for slave in slaves/*;
@@ -54,6 +55,7 @@ exit 1 fi fi +cd $pwd } #
Quoted 5 lines · John A. Sullivan III
/etc/init.d/multipathd: line 33: cd: HOME not set/etc/init.d/multipathd: line 51: read: read error: 0: Is a directoryAny idea how we fix this? Thanks - John
Hi John,
I think you are running the SLES distribution.
This mailing list is for upstream development of Device Mapper and Multipath. Upstream doesn't maintain init scripts any more.
Probably SLES's support channel should be the right place to look for help.
Ritesh
Signature · 1 line
If possible, Please CC me when replying. I'm not subscribed to the list.