Hi,
Running
apt-get --reinstall install heartbeat
gives
Reading Package Lists... Done
Building Dependency Tree... Done
The following packages will be upgraded:
heartbeat
1 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
Need to get 498kB of archives.
After unpacking 12.3kB disk space will be freed.
Get:1 http://ftp.snt.utwente.nl sarge/main heartbeat 1.2.3-8 [498kB]
Fetched 498kB in 3s (159kB/s)
(Reading database ... 12962 files and directories currently installed.)
Preparing to replace heartbeat 1.2.3-5 (using .../heartbeat_1.2.3-8_i386.deb) ...
Unpacking replacement heartbeat ...
Setting up heartbeat (1.2.3-8) ...
Installing new version of config file /etc/ha.d/resource.d/IPaddr ...
Installing new version of config file /etc/ha.d/resource.d/IPaddr2 ...
Installing new version of config file /etc/ha.d/resource.d/IPv6addr ...
Installing new version of config file /etc/ha.d/resource.d/IPsrcaddr ...
Installing new version of config file /etc/ha.d/resource.d/MailTo ...
Installing new version of config file /etc/ha.d/resource.d/portblock ...
Starting High-Availability services:
2005/04/04_17:56:50 CRITICAL: Resource ifupdown::eth0:0 is active, and should not be!
2005/04/04_17:56:50 CRITICAL: Non-idle resources can affect data integrity!
2005/04/04_17:56:50 info: If you don't know what this means, then get help!
2005/04/04_17:56:50 info: Read the docs and/or source to /usr/lib/heartbeat/ResourceManager for more details.
CRITICAL: Resource ifupdown::eth0:0 is active, and should not be!
CRITICAL: Non-idle resources can affect data integrity!
info: If you don't know what this means, then get help!
info: Read the docs and/or the source to /usr/lib/heartbeat/ResourceManager for more details.
2005/04/04_17:56:50 CRITICAL: Non-idle resources will affect resource takeback!
2005/04/04_17:56:50 CRITICAL: Non-idle resources may affect data integrity!
Done.
These ugly error messages seem to be due to the fact
"/etc/init.d/heartbeat start" is invoked in heartbeat's postinst, while
heartbeat is not stopped in preinst.
Please make sure the daemon is stopped first, when upgrading.
BTW: you might want to use invoke-rc.d, instead of running
/etc/init.d/heartbeat directly.
Bye,
Joost
--
Joost van Baal http://abramowitz.uvt.nl/
Tilburg University
j.e.v...@uvt.nl The Netherlands
Hi Joost,
thanks for spotting this. I have added heartbeat stop to
the preinst as you suggested. Can you take a look to see
if the resulting packages resolve your problem. I will upload
if they do.
http://debian.vergenet.net/pending/heartbeat/
Thanks
--
Horms
--
To UNSUBSCRIBE, email to debian-bugs-...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org
Thanks for your prompt reply!
On Tue, Apr 05, 2005 at 04:16:35PM +0900, Horms wrote:
>
> thanks for spotting this. I have added heartbeat stop to
> the preinst as you suggested. Can you take a look to see
> if the resulting packages resolve your problem. I will upload
> if they do.
>
> http://debian.vergenet.net/pending/heartbeat/
I've checked http://debian.vergenet.net/pending/heartbeat/heartbeat_1.2.3-9.diff.gz .
You've added
/etc/init.d/heartbeat stop || true
to preinst.
3 comments:
- if /etc/init.d/heartbeat doesn't exist (e.g. if this is the first time
the heartbeat package gets installed), this will fail.
- please don't use /etc/init.d/heartbeat but use invoke-rc.d
- please read the debian policy and the developers reference.