Bugzilla will be upgraded to version 5.0 on December 2, 2018. The outage period for the upgrade will start at 0:00 UTC and have a duration of 12 hours
Bug 155893 - [PATCH] multipathd spams syslog every 5 seconds
[PATCH] multipathd spams syslog every 5 seconds
Product: Fedora
Classification: Fedora
Component: device-mapper-multipath (Show other bugs)
All Linux
medium Severity medium
: ---
: ---
Assigned To: Alasdair Kergon
: 157461 (view as bug list)
Depends On:
Blocks: FC4Blocker
  Show dependency treegraph
Reported: 2005-04-25 10:36 EDT by Joe Orton
Modified: 2007-11-30 17:11 EST (History)
9 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2005-05-13 15:12:59 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Joe Orton 2005-04-25 10:36:45 EDT
Description of problem:
/var/log/messages is getting spammed every 5 seconds for a default Raw Hide
kickstart install with:

Apr 25 15:34:25 trash multipathd: no devmap found
Apr 25 15:34:25 trash multipathd: can't get devmaps ... retry
Apr 25 15:34:30 trash multipathd: no devmap found
Apr 25 15:34:30 trash multipathd: can't get devmaps ... retry

(I don't have any multipath hardware)

Version-Release number of selected component (if applicable):
Comment 1 Joe Orton 2005-04-26 07:51:43 EDT
Can the daemon be changed to exit in this case? Otherwise it should not be on by
default in runlevel 5, I guess.  This is going to be annoying if it's not fixed
 for FC4. 
Comment 2 Christophe Varoqui 2005-05-02 18:28:03 EDT
It must no exit, because :

o "no devmaps" is a valid temporary case
o memory allocation failures can cause the looping, better to retry later than
exit in this case too.

That said, it is obvious to rate limit the loging, which is done in this patch :
Comment 3 Joe Orton 2005-05-03 03:14:06 EDT
If the daemon is going to be left consuming resources (at least CPU) every five
seconds then I'd still argue it should *not* be on by default in runlevel 5. 
Most Fedora users won't have multipath hardware, I'm guessing.
Comment 4 Warren Togami 2005-05-03 03:33:00 EDT
I'd recommend bringing this to fedora-devel-list for public debate.  I am not
sure if I agree with disabling the service by default.
Comment 5 Warren Togami 2005-05-03 03:34:14 EDT
I do agree that consuming resources every 5 seconds (even with log rate
limiting) is not good.  I just don't have a better suggestion, so this should go
to public debate.
Comment 6 Lars Marowsky-Bree 2005-05-03 06:55:29 EDT
It should be pointed out that even a running multipathd will "spam" the syslog
at irregular intervals with an empty message, but apparently so high prio that
it'll be broadcast to all consoles by default. I've not yet tracked down where
in the code this originates from.
Comment 7 Alasdair Kergon 2005-05-03 09:20:53 EDT
Quite simply, the daemon should not be running unless you're using device-mapper

We don't have support in anaconda yet, so:

    (i) The startup script needs changing to detect whether or not the daemon
should be started [not sure how to do this];  or

    (ii) The daemon should exit immediately if there are no devices - could be
controlled by a command line option, but possible problems if devices are slow
to appear on the system;

    (iii) The installer should 'chkconfig --levels 0123456 off' and leave people
to turn it on manually post-install.

I reckon (iii) is best at this stage.

Any other options?

Comment 8 Alasdair Kergon 2005-05-03 09:22:21 EDT
Comment 9 Joe Orton 2005-05-03 09:27:27 EDT
To achieve (iii) just change the init script chkconfig: line to read:

chkconfig: - 18 87

so that the "chkconfig --add" invocation in %post does not enable the service to
start in any runlevels to begin with.
Comment 10 Alasdair Kergon 2005-05-03 09:46:45 EDT
But that would lose the default list of run levels for people who do need the
Comment 11 Joe Orton 2005-05-03 09:51:04 EDT
To preserve that then just don't call "chkconfig --add" at all in the %post
script?  Let the users who need it do that...
Comment 12 Alasdair Kergon 2005-05-03 09:55:27 EDT
I think 'added' but 'off' is better.  Otherwise you don't see it as an option in
the lists.
Comment 13 Alasdair Kergon 2005-05-04 10:13:38 EDT
building device-mapper-multipath-0_4_4-2_1
Comment 14 Alasdair Kergon 2005-05-04 10:23:12 EDT
That should solve the immediate problem, by not enabling it by default.

The problem of too many error messages will be fixed by Christophe upstream and
get picked up by Fedora, probably post-FC4.
Comment 15 Christophe Varoqui 2005-05-04 17:23:16 EDT
> The problem of too many error messages will be fixed by Christophe upstream and
> get picked up by Fedora, probably post-FC4.

Is fixed, in
Comment 16 Joe Orton 2005-05-05 08:40:21 EDT
Not fixed in 0.4.4-2.1... spot the mistake ;)

/sbin/chkconfig --add multipathd
/sbin/chkconfig --levels 0123456 off
Comment 17 Alasdair Kergon 2005-05-05 09:48:14 EDT
Comment 18 Alasdair Kergon 2005-05-13 14:56:26 EDT
*** Bug 157461 has been marked as a duplicate of this bug. ***
Comment 19 Alasdair Kergon 2005-05-13 15:11:51 EDT
Really fixed in device-mapper-multipath-0.4.4-2.3, thanks Bill.
Comment 20 Edgar Bertoti 2005-08-22 06:20:43 EDT
This bug, as described in the first report,  has appeared again in FC4 for x86_64. 
Comment 21 Alasdair Kergon 2005-08-30 09:00:52 EDT
Exactly which RPM is this still happening with?

Note You need to log in before you can comment on or make changes to this bug.