Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

chkconfig showing the output as mdmonitor service is running

[root@localhost ~]# chkconfig --list | grep -i mdmonitor
mdmonitor       0:off   1:off   2:on    3:on    4:on    5:on    6:off

But service command showing the status as mdmonitor is stopped

[root@localhost ~]# service mdmonitor status
mdmonitor is stopped

service mdmonitor start command showing nothing

[root@localhost ~]# service mdmonitor start
[root@localhost ~]# 
[root@localhost ~]# service mdmonitor status
mdmonitor is stopped

In GUI (System > Administrator > Services ) showing as enter image description here enter image description here

my doubt is In runlevel 5 mdmonitor is running but why service command showing the output as mdmonitor is stopped

[root@localhost ~]# chkconfig --list | grep -i mdmonitor
mdmonitor       0:off   1:off   2:on    3:on    4:on    5:on    6:off

service

[root@localhost ~]# service mdmonitor status
mdmonitor is stopped

After reboot also same effect. what is the reason here?

I am using CentOS 6.2

share|improve this question
    
what do logs say about this? Probably in /var/log/messages or some specific file in /var/log. – gertvdijk Nov 23 '12 at 13:35
    
@gertvdijk /var/log/messages showing nothing about mdmonitor – max Nov 23 '12 at 13:42

Finally I got the reason for this issue.

Reason is mdadm.conf file, path of the file is /etc/mdadm.conf

This is the content of that file

# mdadm.conf written out by anaconda
MAILADDR root
AUTO +imsm +1.x -all

mdadm.conf file was not there under /etc, first I thought that by mistake someone deleted this file, later I come to know that none of the system (CentOs 6.2) contains this file, I checked other system also for confirmation, file was not there. (I think it's a bug, but I am not sure about this) so copied this file from CentOs 6.3 to CentOs 6.2 and restarted the service and now it's working fine.

[root@localhost ~]# service mdmonitor status
mdmonitor is stopped
[root@localhost ~]# service mdmonitor start
Starting mdmonitor:                                        [  OK  ]
[root@localhost ~]# service mdmonitor status
mdmonitor (pid  3712) is running...

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .