您的位置:首页 > 其它

xenserver6.2 内存leak故障处理

2014-12-16 16:19 246 查看
从日志来看,系统内存leak导致out of memory。Oct 30 14:22:35 xenserver-21622 kernel: [36474919.505097] lowmem_reserve[]: 0 0 0 0Oct 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 = 2992kBOct 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 = 30172kBOct 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 = 3161132kBOct 30 14:22:35 xenserver-21622 kernel: [36474919.505164] 16719 total pagecache pagesOct 30 14:22:35 xenserver-21622 kernel: [36474919.505167] 0 pages in swap cacheOct 30 14:22:35 xenserver-21622 kernel: [36474919.505170] Swap cache stats: add 91, delete 91, find 68/73Oct 30 14:22:35 xenserver-21622 kernel: [36474919.505174] Free swap = 524248kBOct 30 14:22:35 xenserver-21622 kernel: [36474919.505177] Total swap = 524280kBOct 30 14:22:35 xenserver-21622 kernel: [36474919.514944] 1050624 pages RAMOct 30 14:22:35 xenserver-21622 kernel: [36474919.514953] 857090 pages HighMemOct 30 14:22:35 xenserver-21622 kernel: [36474919.514956] 39028 pages reservedOct 30 14:22:35 xenserver-21622 kernel: [36474919.514959] 41189 pages sharedOct 30 14:22:35 xenserver-21622 kernel: [36474919.514962] 195743 pages non-sharedOct 30 14:22:35 xenserver-21622 kernel: [36474919.514966] Out of memory: kill process 12051 (fe) score 48887 or a childOct 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.xsupdate4. XenServer assigns the update file a UUID which this command prints. Note the UUID.5579f1f0-ff83-11e2-b778-0800200c9a665. 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-0800200c9a667. 8. Verify that the update was applied by using the patch-list command.xe patch-list -s <hostname> -u root -pw <password> name-label=XS62E0049. 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,打补丁前检查:
[root@xenserver-21652 ~]# xe patch-list -s 192.168.216.52 -u root -pw ****** name-label=XS62E004空2,
[root@xenserver-21652 ~]# xe patch-upload -s 192.168.216.52 -u root -pw ****** file-name=/root/XS62E004.xsupdate
5579f1f0-ff83-11e2-b778-0800200c9a66
[root@xenserver-21652 ~]# xe -s 192.168.216.52 -u root -pw ****** patch-pool-apply uuid=5579f1f0-ff83-11e2-b778-0800200c9a66
[root@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

[root@xenserver-21652 ~]# xe host-list
uuid ( RO) : 6acc1e95-7481-4cfc-a0b7-96d75a3db1ad
name-label ( RW): xenserver-21652
name-description ( RW): Default install of XenServer




Ok
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息