{"id":258,"date":"2009-09-04T13:31:31","date_gmt":"2009-09-04T05:31:31","guid":{"rendered":"http:\/\/www.julyclyde.org\/?p=258"},"modified":"2009-12-09T18:38:11","modified_gmt":"2009-12-09T10:38:11","slug":"%e8%bf%99%e5%87%a0%e5%a4%a9%e7%8e%a9%e4%ba%86%e4%b8%80%e4%b8%8bkexec","status":"publish","type":"post","link":"https:\/\/julyclyde.org\/?p=258","title":{"rendered":"\u8fd9\u51e0\u5929\u73a9\u4e86\u4e00\u4e0bkexec"},"content":{"rendered":"<p>kexec \u662f\u4e00\u4e2a\u5feb\u901f\u91cd\u542f\u52a8 Linux \u7cfb\u7edf\u7684\u5de5\u5177\uff0c\u5176\u5feb\u901f\u4e3b\u8981\u4f53\u73b0\u5728\u662f\u4ece\u5185\u6838\u5f00\u59cb\u542f\u52a8\u800c\u4e0d\u662f\u4ece\u786c\u4ef6\u521d\u59cb\u5316\u5f00\u59cb\uff0c\u5728\u5f53\u4eca\u786c\u4ef6\u8d8a\u6765\u8d8a\u590d\u6742\uff0c\u5f00\u673a\u81ea\u68c0\u8d8a\u6765\u8d8a\u6162\u7684\u6761\u4ef6\u4e0b\uff0ckexec \u53ef\u7b97\u662f\u63d0\u9ad8\u751f\u4ea7\u529b\u7684\u4e00\u5927\u53d1\u660e\u3002<\/p>\n<p>kexec \u7684\u64cd\u4f5c\u5206\u4e3a\u4e24\u6b65\uff1a<\/p>\n<ol>\n<li>\u52a0\u8f7d\u5185\u6838\u5230\u5185\u5b58<\/li>\n<li>\u8fd0\u884c\u521a\u624d\u52a0\u8f7d\u7684\u5185\u6838<\/li>\n<\/ol>\n<p>\u7b2c\u4e00\u6b65\u7684\u8bed\u6cd5\u4e3a kexec -l\u00a0 \u5185\u6838\u6587\u4ef6\u540d &#8211;initrd=initrd\u6587\u4ef6\u540d &#8211;append=\u5185\u6838\u53c2\u6570\u3002\u6ce8\u610f\u7b49\u53f7\u5fc5\u4e0d\u53ef\u5c11\uff0c\u5426\u5219\uff0c\u867d\u7136 kexec \u4e0d\u62a5\u9519\uff0c\u4f46\u662f\u5185\u6838\u542f\u52a8\u65f6\u4f1a\u5931\u8d25\uff1b\u7b2c\u4e8c\u90e8\u7528 kexec -e \u5373\u53ef\u3002\u901a\u8fc7\u67e5\u770b \/sys\/kernel\/kexec_loaded \u7684\u5185\u5bb9\u53ef\u4ee5\u5224\u65ad\u662f\u5426\u5df2\u7ecf\u52a0\u8f7d\u5185\u6838\u3002<\/p>\n<p>\u76ee\u524d\u9047\u5230\u7684\u95ee\u9898\u6709\u8fd9\u51e0\u4e2a\uff1a<\/p>\n<ol>\n<li>cciss HP SmartArray\u9a71\u52a8\u5728\u91cd\u542f\u5185\u6838\u65f6\u4f1a\u5931\u8d25\uff0c\u5bfc\u81f4\u65e0\u6cd5\u6b63\u5e38\u8fdb\u884c\u4e0b\u53bb<\/li>\n<li>\u6ca1\u641e\u660e\u767d\u5982\u4f55\u7528 kexec \u52a0\u8f7d xen hypervisor<\/li>\n<\/ol>\n<p>\u76f8\u4fe1\u5f88\u5feb\u5c31\u4f1a\u641e\u660e\u767d\u7684\u3002<\/p>\n<p>\u540c\u65f6\u63d0\u4e00\u4e0b\uff0c\u53d1\u884c\u7248\u63d0\u4f9b\u7684 kexec \u8f6f\u4ef6\u5305\u5e26\u6709 \/etc\/init.d\/ \u811a\u672c\uff0c\u53ef\u4ee5\u628a\u6b63\u5e38\u7684 reboot \u64cd\u4f5c\u8f6c\u53d8\u6210 kexec \u91cd\u542f\uff0c\u4ece\u800c\u52a0\u5feb\u901f\u5ea6\u3002\u4f46\u662f\u5bf9\u4e8e\u4e2a\u4eba\u8ba1\u7b97\u673a\u3001\u53cc\u64cd\u4f5c\u7cfb\u7edf\u7684\u4f7f\u7528\u8005\u6765\u8bf4\uff0c\u56e0\u4e3a\u8fd9\u6837\u8d8a\u8fc7\u4e86 grub \u9636\u6bb5\uff0c\u6240\u4ee5\u65e0\u6cd5\u6b63\u5e38\u8fdb\u5165\u53e6\u5916\u4e00\u4e2a\u64cd\u4f5c\u7cfb\u7edf\u3002\u89e3\u51b3\u65b9\u6cd5\u662f\u4fee\u6539 \/etc\/default\/kexec \u6587\u4ef6\u4e2d\u7684\u53c2\u6570\uff0c\u7981\u6b62 \/etc\/init.d\/kexec-load \u811a\u672c\u5728\u5173\u673a\u524d\u52a0\u8f7d\u5185\u6838\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>kexec \u662f\u4e00\u4e2a\u5feb\u901f\u91cd\u542f\u52a8 Linux \u7cfb\u7edf\u7684\u5de5\u5177\uff0c\u5176\u5feb\u901f\u4e3b\u8981\u4f53\u73b0\u5728\u662f\u4ece\u5185\u6838\u5f00\u59cb\u542f\u52a8\u800c\u4e0d\u662f\u4ece\u786c\u4ef6\u521d\u59cb\u5316\u5f00\u59cb\uff0c\u5728\u5f53\u4eca\u786c\u4ef6\u8d8a\u6765\u8d8a\u590d\u6742\uff0c\u5f00\u673a\u81ea\u68c0\u8d8a\u6765\u8d8a\u6162\u7684\u6761\u4ef6\u4e0b\uff0ckexec \u53ef\u7b97\u662f\u63d0\u9ad8\u751f\u4ea7\u529b\u7684\u4e00\u5927\u53d1\u660e\u3002 kexec \u7684\u64cd\u4f5c\u5206\u4e3a\u4e24\u6b65\uff1a \u52a0\u8f7d\u5185\u6838\u5230\u5185\u5b58 \u8fd0\u884c\u521a\u624d\u52a0\u8f7d\u7684\u5185\u6838 \u7b2c\u4e00\u6b65\u7684\u8bed\u6cd5\u4e3a kexec -l\u00a0 \u5185\u6838\u6587\u4ef6\u540d &#8211;initrd=initrd\u6587\u4ef6\u540d &#8211;append=\u5185\u6838\u53c2\u6570\u3002\u6ce8\u610f\u7b49\u53f7\u5fc5\u4e0d\u53ef\u5c11\uff0c\u5426\u5219\uff0c\u867d\u7136 kexec \u4e0d\u62a5\u9519\uff0c\u4f46\u662f\u5185\u6838\u542f\u52a8\u65f6\u4f1a\u5931\u8d25\uff1b\u7b2c\u4e8c\u90e8\u7528 kexec -e \u5373\u53ef\u3002\u901a\u8fc7\u67e5\u770b \/sys\/kernel\/kexec_loaded \u7684\u5185\u5bb9\u53ef\u4ee5\u5224\u65ad\u662f\u5426\u5df2\u7ecf\u52a0\u8f7d\u5185\u6838\u3002 \u76ee\u524d\u9047\u5230\u7684\u95ee\u9898\u6709\u8fd9\u51e0\u4e2a\uff1a cciss HP SmartArray\u9a71\u52a8\u5728\u91cd\u542f\u5185\u6838\u65f6\u4f1a\u5931\u8d25\uff0c\u5bfc\u81f4\u65e0\u6cd5\u6b63\u5e38\u8fdb\u884c\u4e0b\u53bb \u6ca1\u641e\u660e\u767d\u5982\u4f55\u7528 kexec \u52a0\u8f7d xen hypervisor \u76f8\u4fe1\u5f88\u5feb\u5c31\u4f1a\u641e\u660e\u767d\u7684\u3002 \u540c\u65f6\u63d0\u4e00\u4e0b\uff0c\u53d1\u884c\u7248\u63d0\u4f9b\u7684 kexec \u8f6f\u4ef6\u5305\u5e26\u6709 \/etc\/init.d\/ \u811a\u672c\uff0c\u53ef\u4ee5\u628a\u6b63\u5e38\u7684 reboot \u64cd\u4f5c\u8f6c\u53d8\u6210 kexec &hellip; <a href=\"https:\/\/julyclyde.org\/?p=258\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[31,29,26,10,12],"class_list":["post-258","post","type-post","status-publish","format-standard","hentry","category-default","tag-bugs","tag-enterprise","tag-large-scale","tag-linux","tag-standardization"],"_links":{"self":[{"href":"https:\/\/julyclyde.org\/index.php?rest_route=\/wp\/v2\/posts\/258","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/julyclyde.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/julyclyde.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/julyclyde.org\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/julyclyde.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=258"}],"version-history":[{"count":0,"href":"https:\/\/julyclyde.org\/index.php?rest_route=\/wp\/v2\/posts\/258\/revisions"}],"wp:attachment":[{"href":"https:\/\/julyclyde.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=258"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/julyclyde.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=258"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/julyclyde.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=258"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}