Hi,
We are using the heartbeat and drbd packages from latest centos (4.3) extras repository.
Upon installation of both packages I noticed that if you "chkconfig heartbeat off" that will cause drbd to chkconfig'ed on. And visa versa.
After doing some trouble shooting it turns out the "BEGIN INIT INFO" sections appear to be the cause.
drbd has:
### BEGIN INIT INFO # Provides: drbd # Required-Start: $network $syslog sshd # Required-Stop: # Default-Start: 3 5 # Default-Stop: 0 1 2 6 # Description: Control drbd resources. ### END INIT INFO
heartbeat has:
### BEGIN INIT INFO # Description: heartbeat is a basic high-availability subsystem. # It will start services at initialization, and when machines go up # or down. This version will also perform IP address takeover using # gratuitous ARPs. It works correctly for a 2-node configuration, # and is extensible to larger configurations. # # It implements the following kinds of heartbeats: # - Bidirectional Serial Rings ("raw" serial ports) # - UDP/IP broadcast (ethernet, etc) # - UDP/IP multicast (ethernet, etc) # - Unicast heartbeats # - "ping" heartbeats (for routers, switches, etc.) # (to be used for breaking ties in 2-node systems # and monitoring networking availability) # # Short-Description: High-availability services. # Required-Start: $network $time $syslog # Required-Stop: $network $time $syslog # Default-Start: 3 5 # Default-Stop: 0 6 ### END INIT INFO
Is this a bug in how chkconfig handles the "INIT INFO" sections or the way its supposed to work? I don't see any reference to the other in the "INIT INFO" sections so I would not think its supposed to work this way.
Can someone offer some clarification ?
To re-create this problem just install the 2 packages (heartbeat and drbd) then chkconfig off one and chkconfig list both services.
Thanks, Steve
On Fri, 2006-04-07 at 13:17 -0400, Nielsen, Steve wrote:
Hi,
We are using the heartbeat and drbd packages from latest centos (4.3) extras repository.
Upon installation of both packages I noticed that if you "chkconfig heartbeat off" that will cause drbd to chkconfig'ed on. And visa versa.
After doing some trouble shooting it turns out the "BEGIN INIT INFO" sections appear to be the cause.
drbd has:
### BEGIN INIT INFO # Provides: drbd # Required-Start: $network $syslog sshd # Required-Stop: # Default-Start: 3 5 # Default-Stop: 0 1 2 6 # Description: Control drbd resources. ### END INIT INFO
heartbeat has:
### BEGIN INIT INFO # Description: heartbeat is a basic high-availability subsystem. # It will start services at initialization, and when machines go up # or down. This version will also perform IP address takeover using # gratuitous ARPs. It works correctly for a 2-node configuration, # and is extensible to larger configurations. # # It implements the following kinds of heartbeats: # - Bidirectional Serial Rings ("raw" serial ports) # - UDP/IP broadcast (ethernet, etc) # - UDP/IP multicast (ethernet, etc) # - Unicast heartbeats # - "ping" heartbeats (for routers, switches, etc.) # (to be used for breaking ties in 2-node systems # and monitoring networking availability) # # Short-Description: High-availability services. # Required-Start: $network $time $syslog # Required-Stop: $network $time $syslog # Default-Start: 3 5 # Default-Stop: 0 6 ### END INIT INFO
Is this a bug in how chkconfig handles the "INIT INFO" sections or the way its supposed to work? I don't see any reference to the other in the "INIT INFO" sections so I would not think its supposed to work this way.
Can someone offer some clarification ?
To re-create this problem just install the 2 packages (heartbeat and drbd) then chkconfig off one and chkconfig list both services.
I just did this w/ CentOS-4.2 and everything worked exactly as expected. I am not ready to upgrade this machine to 4.3 yet ... so let me try this on a test machine.
On Fri, 2006-04-07 at 13:17 -0400, Nielsen, Steve wrote:
Hi,
We are using the heartbeat and drbd packages from latest centos (4.3) extras repository.
Upon installation of both packages I noticed that if you "chkconfig heartbeat off" that will cause drbd to chkconfig'ed on. And visa versa.
After doing some trouble shooting it turns out the "BEGIN INIT INFO" sections appear to be the cause.
drbd has:
### BEGIN INIT INFO # Provides: drbd # Required-Start: $network $syslog sshd # Required-Stop: # Default-Start: 3 5 # Default-Stop: 0 1 2 6 # Description: Control drbd resources. ### END INIT INFO
heartbeat has:
### BEGIN INIT INFO # Description: heartbeat is a basic high-availability subsystem. # It will start services at initialization, and when machines go up # or down. This version will also perform IP address takeover using # gratuitous ARPs. It works correctly for a 2-node configuration, # and is extensible to larger configurations. # # It implements the following kinds of heartbeats: # - Bidirectional Serial Rings ("raw" serial ports) # - UDP/IP broadcast (ethernet, etc) # - UDP/IP multicast (ethernet, etc) # - Unicast heartbeats # - "ping" heartbeats (for routers, switches, etc.) # (to be used for breaking ties in 2-node systems # and monitoring networking availability) # # Short-Description: High-availability services. # Required-Start: $network $time $syslog # Required-Stop: $network $time $syslog # Default-Start: 3 5 # Default-Stop: 0 6 ### END INIT INFO
Is this a bug in how chkconfig handles the "INIT INFO" sections or the way its supposed to work? I don't see any reference to the other in the "INIT INFO" sections so I would not think its supposed to work this way.
Can someone offer some clarification ?
To re-create this problem just install the 2 packages (heartbeat and drbd) then chkconfig off one and chkconfig list both services.
OK ... I can confirm this problem ... turning off one of these turns on the other.
No idea why.
The older version of chkconfig and ntsysv (from 4.2) does not have this problem:
http://vault.centos.org/4.2/os/i386/CentOS/RPMS/
I suspect that this is also caused by this bug: https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=182729
Thanks, Johnny Hughes