设为首页 收藏本站
查看: 917|回复: 0

[经验分享] xenserver6.2 内存leak故障处理

[复制链接]
累计签到:1 天
连续签到:1 天
发表于 2014-12-17 08:39:44 | 显示全部楼层 |阅读模式
从日志来看,系统内存leak导致out of memory。

Oct 30 14:22:35 xenserver-21622 kernel: [36474919.505097] lowmem_reserve[]: 0 0 0 0

Oct 30 14:22:35 xenserver-21622 kernel: [36474919.505104] DMA: 566*4kB 3*8kB 6*16kB 1*32kB 1*64kB 0*128kB 0*256kB 1*512kB 0*1024kB 0*2048kB 0*4096kB = 2992kB

Oct 30 14:22:35 xenserver-21622 kernel: [36474919.505121] Normal: 7335*4kB 30*8kB 19*16kB 5*32kB 0*64kB 1*128kB 0*256kB 0*512kB 0*1024kB 0*2048kB 0*4096kB = 30172kB

Oct 30 14:22:35 xenserver-21622 kernel: [36474919.505144] HighMem: 4601*4kB 7437*8kB 11764*16kB 7771*32kB 4097*64kB 1964*128kB 1047*256kB 624*512kB 289*1024kB 186*2048kB 212*4096kB = 3161132kB

Oct 30 14:22:35 xenserver-21622 kernel: [36474919.505164] 16719 total pagecache pages

Oct 30 14:22:35 xenserver-21622 kernel: [36474919.505167] 0 pages in swap cache

Oct 30 14:22:35 xenserver-21622 kernel: [36474919.505170] Swap cache stats: add 91, delete 91, find 68/73

Oct 30 14:22:35 xenserver-21622 kernel: [36474919.505174] Free swap  = 524248kB

Oct 30 14:22:35 xenserver-21622 kernel: [36474919.505177] Total swap = 524280kB

Oct 30 14:22:35 xenserver-21622 kernel: [36474919.514944] 1050624 pages RAM

Oct 30 14:22:35 xenserver-21622 kernel: [36474919.514953] 857090 pages HighMem

Oct 30 14:22:35 xenserver-21622 kernel: [36474919.514956] 39028 pages reserved

Oct 30 14:22:35 xenserver-21622 kernel: [36474919.514959] 41189 pages shared

Oct 30 14:22:35 xenserver-21622 kernel: [36474919.514962] 195743 pages non-shared

Oct 30 14:22:35 xenserver-21622 kernel: [36474919.514966] Out of memory: kill process 12051 (fe) score 48887 or a child

Oct 30 14:22:35 xenserver-21622 kernel: [36474919.514972] Killed process 12052 (xapi)



在xenserver 6.2 平台这是一个known issue,具体可参考KB :



http://support.citrix.com/article/CTX138833



Xenserver 62E004 的hotfix可解kernel memory leak的问题,目前建议客户只有将vm全部关机(因为memory leack,导致migration fail),然后安装该hotfix。



##############################################################################

1. Download the update file to a known location.

2. Extract the xsupdate file from the zip.

3. Upload the xsupdate file to the Pool Master by entering the following commands:
(Where hostname is the Pool Master's IP address or DNS name.)

xe patch-upload -s <hostname> -u root -pw <password> file-name=<path_to_update_file>\XS62E004.xsupdate

4. XenServer assigns the update file a UUID which this command prints. Note the UUID.

5579f1f0-ff83-11e2-b778-0800200c9a66

5.



6. Apply the hotfix to all hosts in the pool, specifying the UUID of the hotfix:

xe -s <hostname> -u root -pw <password> patch-pool-apply uuid=5579f1f0-ff83-11e2-b778-0800200c9a66

7.

8. Verify that the update was applied by using the patch-list command.

xe patch-list -s <hostname> -u root -pw <password> name-label=XS62E004

9. If the update has been successful, the hosts field will contain the UUIDs of the hosts this patch was successfully applied to. This should be a complete list of all hosts in the pool.

10. To verify in XenCenter that the update has been applied correctly, select the Pool, and then click the General tab. This displays the Pool properties. In the Updates section, ensure that the update is listed as Fully Applied.

11. The hotfix is applied to all hosts in the pool, but it will not take effect until each host has been rebooted. For each host, migrate the VMs that you wish to keep running, and shutdown the remaining VMs before rebooting the host.





##############################################################################



操作:



1,打补丁前检查:

[iyunv@xenserver-21652 ~]# xe patch-list -s 192.168.216.52 -u root -pw ****** name-label=XS62E004



2,

[iyunv@xenserver-21652 ~]# xe patch-upload -s 192.168.216.52 -u root -pw ****** file-name=/root/XS62E004.xsupdate

5579f1f0-ff83-11e2-b778-0800200c9a66

[iyunv@xenserver-21652 ~]# xe -s 192.168.216.52 -u root -pw ******  patch-pool-apply uuid=5579f1f0-ff83-11e2-b778-0800200c9a66

[iyunv@xenserver-21652 ~]# xe patch-list -s 192.168.216.52 -u root -pw ******  name-label=XS62E004

uuid ( RO)                    : 5579f1f0-ff83-11e2-b778-0800200c9a66

              name-label ( RO): XS62E004

        name-description ( RO): Public Availability: Fixes for Dom0 kernel issues

                    size ( RO): 35766769

                   hosts (SRO): 6acc1e95-7481-4cfc-a0b7-96d75a3db1ad

    after-apply-guidance (SRO): restartHost





[iyunv@xenserver-21652 ~]#  xe host-list

uuid ( RO)                : 6acc1e95-7481-4cfc-a0b7-96d75a3db1ad

          name-label ( RW): xenserver-21652

    name-description ( RW): Default install of XenServer

运维网声明 1、欢迎大家加入本站运维交流群:群②:261659950 群⑤:202807635 群⑦870801961 群⑧679858003
2、本站所有主题由该帖子作者发表,该帖子作者与运维网享有帖子相关版权
3、所有作品的著作权均归原作者享有,请您和我们一样尊重他人的著作权等合法权益。如果您对作品感到满意,请购买正版
4、禁止制作、复制、发布和传播具有反动、淫秽、色情、暴力、凶杀等内容的信息,一经发现立即删除。若您因此触犯法律,一切后果自负,我们对此不承担任何责任
5、所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其内容的准确性、可靠性、正当性、安全性、合法性等负责,亦不承担任何法律责任
6、所有作品仅供您个人学习、研究或欣赏,不得用于商业或者其他用途,否则,一切后果均由您自己承担,我们对此不承担任何法律责任
7、如涉及侵犯版权等问题,请您及时通知我们,我们将立即采取措施予以解决
8、联系人Email:admin@iyunv.com 网址:www.yunweiku.com

所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其承担任何法律责任,如涉及侵犯版权等问题,请您及时通知我们,我们将立即处理,联系人Email:kefu@iyunv.com,QQ:1061981298 本贴地址:https://www.yunweiku.com/thread-38145-1-1.html 上篇帖子: XenApp / XenDesktop 7.6 初体验七 policies (上) 下篇帖子: XenApp / XenDesktop 7.6 初体验九 Director
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

扫码加入运维网微信交流群X

扫码加入运维网微信交流群

扫描二维码加入运维网微信交流群,最新一手资源尽在官方微信交流群!快快加入我们吧...

扫描微信二维码查看详情

客服E-mail:kefu@iyunv.com 客服QQ:1061981298


QQ群⑦:运维网交流群⑦ QQ群⑧:运维网交流群⑧ k8s群:运维网kubernetes交流群


提醒:禁止发布任何违反国家法律、法规的言论与图片等内容;本站内容均来自个人观点与网络等信息,非本站认同之观点.


本站大部分资源是网友从网上搜集分享而来,其版权均归原作者及其网站所有,我们尊重他人的合法权益,如有内容侵犯您的合法权益,请及时与我们联系进行核实删除!



合作伙伴: 青云cloud

快速回复 返回顶部 返回列表