linux \u865a\u62df\u673a \u670d\u52a1\u5668<\/strong>\uff0c\u5047\u5982\u542c\u5230\u6709\u4e24\u4e2adefault\u9879\uff0c\u5220\u6389peth\u5bf9\u5e94\u9879\u5373\u53ef\u3002\u6267\u884c\u547d\u4ee4sudoroutedeldefaultdevpeth0\u3002\u7f18\u7531\u662f\u673a\u5668\u8def\u7531\u8868\u9047\u89c1\u4e24\u4e2adefault\uff0c\u4e0d\u77e5\u8be5\u5411\u54ea\u53d1\u51fa\u6570\u636e\u5305\u3002<\/p>\n\u5728\u6211\u8bbe\u8ba1\u7684\u7f51\u8def\u62d3\u6251\u73af\u5883\u4e0b\uff0c\u5185\u90e8\u8282\u70b9\u4e0d\u80fd\u8bbf\u95ee\u5185\u7f51\uff0c\u6240\u4ee5\u5728\u4e3b\u8282\u70b9\u8fdb\u884c\u5982\u4e0b\u64cd\u4f5c\uff0c\u501f\u52a9\u4e3b\u8282\u70b9\u53cc\u7f51\u5361\u8fdb\u884c\u8def\u7531\uff1a<\/p>\n
iptables-APOSTROUTING-tnat-s192.168.100.0\/24-oeth1-jSNAT--to-sourcexxx.xxx.xxx.xxx(OuterIP)<\/p>\n
echo1>\/proc\/sys\/net\/ipv4\/ip_forward<\/p>\n
\u8fdb\u884c\u5230\u8fd9\u4e00\u6b65\uff0c\u4f60\u7684\u96c6\u7fa4\u7cfb\u7edf\u73af\u5883\u57fa\u672c\u642d\u5efa\u5b8c\u6bd5\uff0c\u4e0b\u8fb9\u987b\u8981\u642d\u5efa\u5171\u4eab\u50a8\u5b58\u5668\uff0c\u4fbf\u4e8e\u865a\u62df\u673a\u8fdb\u884c\u8fc1\u79fb\u3002\u865a\u62df\u673a\u8fc1\u79fb\u6709\u50a8\u5b58\u8fd8\u539f\u8fc1\u79fb\u6cd5\u548c\u52a8\u6001\u8fc1\u79fb\u6cd5\uff0c\u6211\u4f7f\u7528\u52a8\u6001\u8fc1\u79fb\u6cd5\u3002<\/p>\n
\u9996\u5148\uff0c\u5728\/etc\/hosts\u4e2d\u6dfb\u52a0\u6240\u6709\u8282\u70b9\u7684IP\u548c\u8282\u70b9\u540d\uff0c\u8fd9\u6837\u53ef\u4ee5\u4f7f\u7528\u8282\u70b9\u540d\u5728\u5404\u4e2a\u8282\u70b9\u4e4b\u95f4\u8fdb\u884c\u8bbf\u95ee\u4e86<\/p>\n
<\/p>\n
192.168.100.1MainNode<\/p>\n
192.168.100.2Node1<\/p>\n
192.168.100.3Node2<\/p>\n
192.168.100.4Node3<\/p>\n
192.168.100.5SharedStorageCentre<\/p>\n
SharedStorageCentre\uff1a<\/p>\n
1.\u6267\u884csudoapt-getinstallnfs-kernel-server<\/p>\n
2.sudomkdir\/xen-storage<\/p>\n
3.\u7f16\u8f91\/etc\/exports\u6587\u4ef6\uff0c\u52a0\u5165\u4e0b\u8fb9\u4e00\u884c\u6765\u5bfc\u5165\u50a8\u5b58\u5668\u76ee\u5f55\uff1a<\/p>\n
#\/xen-storage*\uff08rw\uff0csync\uff0cno_root_squash\uff09<\/p>\n
Node1-Node3\uff1a<\/p>\n
<\/p>\n
1.sudomkdir\/xen-storage<\/p>\n
2.\u6267\u884c\u4e34\u65f6\u6302\u8f7d\u547d\u4ee4sudomountSharedStorageCentre:\/xen-storage\/xen-storage<\/p>\n
3.\u5728\/etc\/fstab\u4e2d\u6dfb\u52a0SharedStorageCentre:\/xen-storage\/xen-storagenfsdefaults00\u4fbf\u4e8e\u91cd\u542f\u540e\u624b\u52a8\u6302\u8f7d<\/p>\n
4.\u987b\u8981\u6ce8\u610f\u7684\u662f\uff0c\u8981\u60f3\u6539\u53d8Domain\u7684\u8fd0\u884c\u5730\u70b9\uff0c\u5fc5\u987b\u66f4\u6539\u9ed8\u8ba4\u7684Xend\u914d\u7f6e\u6587\u4ef6\/etc\/xen\/xend-config.sxp\u3002\u636e\u6089\uff0c\u8981\u4f7f\u6240\u505a\u7684\u66f4\u6539\u5728\u4e3b\u673a\u4e0a\u751f\u6548\uff0c\u5fc5\u987b\u91cd\u65b0\u542f\u52a8Xen\u670d\u52a1\u5668\u6240\u5728\u7684\u4e3b\u673a\u3002\u6211\u4eec\u987b\u8981\u66f4\u6539\u4ee5\u4e0b\u914d\u7f6e\uff1a<\/p>\n
Xend-relocation-server\uff1a\u8be5\u6807\u5fd7\u7528\u4e8e\u542f\u7528\/\u53d6\u6d88\u670d\u52a1\u5668\u8fc1\u79fb\u529f\u80fd\u3002\u9ed8\u8ba4\u65f6\uff0c\u8be5\u6807\u5fd7\u8bbe\u4e3ano\uff0c\u5373\u4e0d\u5bb9\u8bb8\u6539\u53d8\u670d\u52a1\u5668\u7684\u4f4d\u7f6e\u3002\u5728\u8fc1\u79fb\u8fc7\u7a0b\u4e2d\uff0cDomain\u865a\u62df\u663e\u5b58\u5c06\u5f04\u6210\u672a\u7ecf\u4efb\u4f55\u52a0\u5bc6\u7684\u539f\u59cb\u65b9\u5f0f\u3002\u6240\u4ee5\uff0c\u5728\u4e0d\u53ef\u4fe1\u7684\u7f51\u8def\u4e0a\u542f\u7528\u8be5\u9009\u9879\u65f6\u4e00\u5b9a\u8981\u500d\u52a0\u7559\u795e\u3002<\/p>\n
Xend-relocation-port\uff1aXend\u5b88\u62a4\u8fdb\u7a0b\u901a\u8fc7\u8be5\u7aef\u53e3\u8fdb\u884c\u8fc1\u79fb\u3002\u8fd9\u4e2a\u7aef\u53e3\u7684\u7f3a\u7701\u503c\u662f8002\u3002<\/p>\n
\u53e6\u5916\uff0c\u8fd8\u6709\u4e24\u4e2a\u65e0\u9700\u66f4\u6539\u7684\u53c2\u6570\uff0c\u5f53\u5728\u4f01\u4e1a\u5e03\u7f72\u73af\u5883\u8fdb\u884c\u8fc1\u79fb\u65f6\u4e5f\u8981\u6ce8\u610f\u4e00\u4e0b\uff1a<\/p>\n
Xend-relocation-address\uff1a\u8be5\u6807\u5fd7\u5c06Domain\u7684\u8fc1\u79fb\u9650\u5236\u5230\u7279\u5b9a\u7684\u63d2\u53e3\u4e0a\u3002\u6307\u5b9a\u7684\u5730\u5740\u662f\u4fa6\u542c\u7528\u4e8eDomain\u8fc1\u79fb\u7684\u5165\u5c40\u8054\u63a5\u7684\u63d2\u53e3\u5730\u5740\u3002\u53ea\u6709\u542f\u7528Xend-relocation-server\u53c2\u6570\u540e\uff0c\u5c31\u4f1a\u7528\u5230\u8fd9\u4e2a\u6807\u5fd7\u3002\u9ed8\u8ba4\u4e3a\u5bb9\u8bb8\u6240\u6709\u63d2\u53e3\u3002<\/p>\n
Xend-relocation-hosts-allow\uff1a\u8fd9\u4e2a\u6807\u5fd7\u5b9a\u4e49\u4e86\u5bb9\u8bb8\u8ddf\u8fc1\u79fb\u7aef\u53e3\u8fdb\u884c\u901a\u8baf\u7684\u4e3b\u673a\u3002\u5176\u503c\u4e3a\u4e00\u4e2a\u7531\u7a7a\u683c\u5206\u9694\u7684\u6b63\u5219\u8868\u8fbe\u5f0f\u5e8f\u5217\u3002\u5047\u5982\u8be5\u503c\u4e3a\u7a7a\uff0c\u8fd9\u4e48\u5c06\u5bb9\u8bb8\u5168\u90e8\u8f93\u5165\u8054\u63a5\uff0c\u5426\u5219\uff0c\u8be5\u503c\u8981\u4e48\u4e0e\u4e00\u4e2aIP\u5730\u5740\u76f8\u5339\u914d\uff0c\u8981\u4e48\u4e0e\u4e00\u4e2a\u5b8c\u6574\u57df\u540d\u76f8\u5339\u914d\u3002<\/p>\n
5.\u6784\u5efa\u591a\u4e2a\u8fd0\u884c\u5728NFS\u670d\u52a1\u5668\u50a8\u5b58\u5668\u4e0a\u7684XenDomain\uff0c\u5e76\u5728Node1-Node3\u4e0a\u542f\u52a8\u5404\u81ea\u5bf9\u5e94\u7684\u987e\u5ba2\u673aDomain.\u5177\u4f53\u65b9\u5f0f\u662f\u5728Node1-Node3\u4e0a\u6784\u5efa\u5e76\u8fd0\u884c\u865a\u62df\u673a\uff0c\u5176\u8def\u5f84\u4e3a\/xen-storage<\/p>\n
6.\u52a8\u6001\u8fc1\u79fb\u547d\u4ee4\uff1a<\/p>\n
#xmmigrate\u2013liveDomNamedestinyIP<\/p>\n","protected":false},"excerpt":{"rendered":"
\u8fdb\u884c\u5230\u8fd9\u4e00\u6b65\uff0c\u4f60\u7684\u96c6\u7fa4\u7cfb\u7edf\u73af\u5883\u57fa\u672c\u642d\u5efa\u5b8c\u6bd5\uff0c\u4e0b\u9762\u9700\u8981\u642d\u5efa\u5171\u4eab\u5b58\u50a8\u5668\uff0c\u4ee5\u4fbf\u865a\u62df\u673a\u8fdb\u884c\u8fc1\u79fb\u3002\u865a\u62df\u673a\u8fc1\u79fb\u6709\u5b58\u50a8\u8fd8\u539f\u8fc1\u79fb\u6cd5\u548c\u52a8\u6001\u8fc1\u79fb\u6cd5\uff0c\u6211\u4f7f\u7528\u52a8\u6001\u8fc1\u79fb\u6cd5\u3002\u670d\u52a1\u5668\u6240\u5728\u7684\u4e3b\u673a\u3002Xend-relocation-hosts-allow\uff1a\u8fd9\u4e2a\u6807\u5fd7\u5b9a\u4e49\u4e86\u5141\u8bb8\u8ddf\u8fc1\u79fb\u7aef\u53e3\u8fdb\u884c\u901a\u4fe1\u7684\u4e3b\u673a\u3002<\/p>\n","protected":false},"author":1,"featured_media":271808,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[988],"tags":[999],"class_list":["post-271807","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tougao","tag-999"],"acf":[],"_links":{"self":[{"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/posts\/271807","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/comments?post=271807"}],"version-history":[{"count":0,"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/posts\/271807\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/media\/271808"}],"wp:attachment":[{"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/media?parent=271807"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/categories?post=271807"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/tags?post=271807"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}