我们已经在CentOS 6系统上成功地使用了负载平衡系统Piranha + Pulse 15个月。 我们使用它来负载平衡两个Web服务器。 请注意,我们的Web服务器也是我们的负载平衡器,所以我们在整个设置中有两台服务器。
今天,我们从CentOS 6.4升级到6.5,我们更新了所有的软件包。 我们只是通过执行yum update来做到这一点。 自更新以来,脉冲将不再启动,负载均衡器closures。
其中一个更新的软件包是piranha,它从piranha-0.8.5-19.el6.x86_64更新为piranha-0.8.6-2.el6_4.1.x86_64 。 谁知道,这个问题也可能是由更新的依赖造成的。 很多更新都完成了。
此时有两种select:要么用新的软件包来解决问题,要么回到旧的软件包。 任何帮助实现这一点非常感谢。
当脉冲开始时,它会继续运行几秒钟,然后崩溃。 service pulse status然后显示pulse dead but pid file exists 。
这是/var/log/messages在尝试启动脉冲时所说的内容:
Jan 8 13:12:25 XXX pulse[14028]: STARTING PULSE AS BACKUP Jan 8 13:12:25 XXX pulse[14028]: Skipping death of unknown child 14029 Jan 8 13:12:26 XXX ntpd[9119]: Listen normally on 12 lo:1:0 xx.xx.xx.xx UDP 123 Jan 8 13:12:26 XXX ntpd[9119]: peers refreshed Jan 8 13:12:31 XXX pulse[14028]: partner dead: activating lvs Jan 8 13:12:31 XXX pulse[14028]: Error waiting for semaphore: Interrupted system call Jan 8 13:12:32 XXX ntpd[9119]: Deleting interface #12 lo:1:0, xx.xx.xx.xx#123, interface stats: received=0, sent=0, dropped=0, active_time=6 secs Jan 8 13:12:32 XXX ntpd[9119]: peers refreshed
我发现有人有类似的问题: https : //www.centos.org/forums/viewtopic.php?f=13&t=44198 。 我有一个稍微不同的错误消息( Interrupted system call而不是Permission denied )。 不幸的是,build议的答案对我不起作用。 我仍然得到同样的错误。
yum history list piranha显示以下内容:
Loaded plugins: fastestmirror, security ID | Login user | Date and time | Action(s) | Altered ------------------------------------------------------------------------------- 19 | <yy> | 2014-01-08 11:39 | I, U | 184 EE 15 | <yy> | 2013-05-22 11:00 | I, O, U | 254 EE 11 | <yy> | 2012-10-18 16:37 | Install | 2 history list
我无法发布yum history info 19的完整输出,因为这个post的内容太长了。
yum downgrade piranha失败:
Loaded plugins: fastestmirror, security Setting up Downgrade Process Loading mirror speeds from cached hostfile * base: mirror.nl.leaseweb.net * extras: centos.mirror.transip.nl * updates: mirror.nl.leaseweb.net Only Upgrade available on package: piranha-0.8.6-4.el6.x86_64 Nothing to do
我尝试用yum history undo 19和yum history rollback 18来恢复最新的更新。 如果我这样做,我会得到以下错误:
Error: Depsolving loop limit reached. Error: Package: yum-3.2.29-40.el6.centos.noarch (base) Requires: python(abi) = 2.6 Removing: python-2.6.6-51.el6.x86_64 (@base) python(abi) = 2.6 Error: Package: yum-3.2.29-40.el6.centos.noarch (base) Requires: python-urlgrabber >= 3.9.0-8 Removing: python-urlgrabber-3.9.1-9.el6.noarch (@base) python-urlgrabber = 3.9.1-9.el6 Error: Package: yum-3.2.29-40.el6.centos.noarch (base) Requires: yum-metadata-parser >= 1.1.0 Removing: yum-metadata-parser-1.1.2-16.el6.x86_64 (@anaconda-CentOS-201111250358.x86_64/6.3) yum-metadata-parser = 1.1.2-16.el6 Error: Package: yum-3.2.29-40.el6.centos.noarch (base) Requires: python-iniparse Removing: python-iniparse-0.3.1-2.1.el6.noarch (@anaconda-CentOS-201111250358.x86_64/6.3) python-iniparse = 0.3.1-2.1.el6 Error: Package: yum-3.2.29-40.el6.centos.noarch (base) Requires: pygpgme Removing: pygpgme-0.1-18.20090824bzr68.el6.x86_64 (@anaconda-CentOS-201111250358.x86_64/6.3) pygpgme = 0.1-18.20090824bzr68.el6 Error: Package: yum-3.2.29-40.el6.centos.noarch (base) Requires: python >= 2.4 Removing: python-2.6.6-51.el6.x86_64 (@base) python = 2.6.6-51.el6 Error: Package: yum-3.2.29-40.el6.centos.noarch (base) Requires: rpm-python Removing: rpm-python-4.8.0-37.el6.x86_64 (@base) rpm-python = 4.8.0-37.el6 Error: Package: yum-3.2.29-40.el6.centos.noarch (base) Requires: rpm >= 4.4.2 Removing: rpm-4.8.0-37.el6.x86_64 (@base) rpm = 4.8.0-37.el6 Error: Package: yum-3.2.29-40.el6.centos.noarch (base) Requires: /usr/bin/python Removing: python-2.6.6-51.el6.x86_64 (@base) Not found Error: Package: yum-3.2.29-40.el6.centos.noarch (base) Requires: python-sqlite Removing: python-2.6.6-51.el6.x86_64 (@base) python-sqlite = 2.3.2 You could try using --skip-broken to work around the problem You could try running: rpm -Va --nofiles --nodigest
关于食人鱼,这个脚本说(输出pipe道grep piranha ):
Updated piranha-0.8.6-2.el6_4.1.x86_64 @updates --> Processing Dependency: initscripts for package: piranha-0.8.6-4.el6.x86_64 --> Processing Dependency: initscripts for package: piranha-0.8.6-4.el6.x86_64 ---> Package piranha.x86_64 0:0.8.6-4.el6 will be erased
当我按照build议使用--skip-broken ,我仍然得到一个错误,食人鱼仍然没有降级。 我得到以下错误:
Packages skipped because of dependency problems: yum-3.2.29-40.el6.centos.noarch from base Error: Trying to remove "yum", which is protected You could try running: rpm -Va --nofiles --nodigest
我们已经联系了RedHat,这可能是一个错误。 他们有一个可能的错误修正,但RedHat无法重现,所以他们目前无法testing它。 我build议给我们可能的修复,所以我们可以尝试。 还没有收到他们的消息。
目前,我们正在通过lvsd自己pipe理负载平衡。 这不是一个最佳的解决scheme,但它现在会做。
您可以使用yum历史logging撤消ID其中ID是事务的ID。
在你的情况yum history undo 19