{"id":271807,"date":"2023-05-10T20:01:57","date_gmt":"2023-05-10T12:01:57","guid":{"rendered":"https:\/\/gulass.cn\/btdtrjujqjg.html"},"modified":"2023-05-10T20:01:57","modified_gmt":"2023-05-10T12:01:57","slug":"btdtrjujqjg","status":"publish","type":"post","link":"https:\/\/gulass.cn\/btdtrjujqjg.html","title":{"rendered":"BladePowerEdge4\u53f0DellPowerEdge1\u53f0\u8f6f\u4ef6\uff1aUbuntuServerForLinux\u96c6\u7fa4\u67b6\u6784"},"content":{"rendered":"

\u786c\u4ef6\uff1aDellPowerEdgeR2004\u53f0<\/p>\n

DellPowerEdgeT1001\u53f0<\/p>\n

\u8f6f\u4ef6\uff1aUbuntuServer10.04\u3001Xen4.01\u3001GhostForLinux<\/a><\/p>\n

\u96c6\u7fa4\u6784\u67b6\uff1a<\/p>\n

MainNode:No.1BladeServer<\/p>\n

OS:UbuntuServer10.04<\/p>\n

OuterIP:xxx.xxx.xxx.xxx<\/p>\n

InnerIP:192.168.100.1<\/p>\n

Node1:No.2BladeServer<\/p>\n

OS:UbuntuServer10.04+Xen4.01<\/p>\n

InnerIP:192.168.100.2<\/p>\n

Node2:No.3BladeServer<\/p>\n

OS:UbuntuServer10.04+Xen4.01<\/p>\n

InnerIP:192.168.100.3<\/p>\n

Node3:No.4BladeServer<\/p>\n

OS:UbuntuServer10.04+Xen4.01<\/p>\n

InnerIP:192.168.100.4<\/p>\n

SharedStorageCentre:TowerServer<\/p>\n

OS:UbuntuServer10.04<\/p>\n

InnerIP:192.168.100.5<\/p>\n

\u9996\u5148\u5b89\u88c5\u914d\u7f6e\u597d\u4e00\u53f0\u670d\u52a1\u5668\u7684\u7cfb\u7edf<\/a>\u73af\u5883\uff0c\u4e4b\u540e\u4f7f\u7528G4L\uff08GhostForlinux\uff09\u5c06\u5b89\u88c5\u597d\u7684\u7cfb\u7edf\u76f4\u63a5\u63a8\u5230\u5176\u5b83\u673a\u5668\u4e0a\uff0c\u56e0\u4e3a\u6211\u4f7f\u7528Xen\u865a\u62df\u5316\u73af\u5883\uff0c\u6240\u4ee5\u63a8\u7cfb\u7edf\u65f6\u8981\u6c42\u5e95\u5c42\u786c\u4ef6\u76f8\u540c\uff1b\u82e5\u679c\u662f\u5728\u975e\u865a\u62df\u5316\u73af\u5883\u4e0b\uff0c\u5bf9\u4e8e\u786c\u4ef6\u4e00\u81f4\u6027\u8981\u6c42\u6709\u5f85\u8bfb\u8005\u9a8c\u8bc1\u3002<\/p>\n

\u6ce8\uff1a<\/p>\n

1.\u8fd9\u513fR200\u4e0eT100\u987b\u8981\u5206\u522b\u5b89\u88c5\uff0c\u4e0d\u80fd\u76f4\u63a8\uff1b<\/p>\n

2.\u63a8\u7cfb\u7edf\u524d\u5148\u5b89\u88c5ssh\uff0c\u5728\u6211\u8bbe\u8ba1\u7684\u7f51\u8def\u62d3\u6251\u7ed3\u6784\u4e2d\u987b\u8981\u7528ssh\u8fdb\u884c\u8282\u70b9\u95f4\u8bbf\u95ee\uff1b<\/p>\n

3.\u5728DellPowerEdge\u4e0a\u5b89\u88c5Xen\u865a\u62df\u5316\u73af\u5883\u65f6\uff0c\u5b89\u88c5\u540e\u542f\u52a8\u65f6\u4f1a\u51fa\u73b0\u5361\u5728\u201c*Speech-dispatcherconfiguredforusersessions\u201dlinux \u865a\u62df\u673a \u670d\u52a1\u5668<\/strong>\uff0c\u5e94\u5bf9\u529e\u6cd5\u662f\u7981\u7528\u56fe\u5f62\u754c\u9762\u3002$vi\/etc\/X11\/default-display-managerlinux\u5e38\u7528\u547d\u4ee4\uff0c\u628a\u4e0a\u9762\u5185\u5bb9\u6539\u4e3afalse\u3002\u6b64\u65f6\uff0c\u91cd\u542f\u540e\u4f1a\u5361\u5728\u201cCheckingbatterystate\u201d\uff0c\u8fd9\u65f6\u4f60\u5df2\u7136\u6210\u529f\u542f\u52a8Xen\uff0c\u53ea\u987b\u8981\u4f7f\u7528\u5176\u5b83\u7ec8\u7aef\u5373\u53ef\u767b\u5165\uff0c\u6bd4\u5982Alt+F2\u3002<\/p>\n

4.G4L\u7684\u4f7f\u7528\u5c06\u5728\u540e\u6587\u7ed9\u51fa\u3002<\/p>\n

\u5728\u6bcf\u53f0\u7528G4L\u63a8\u88c5\u7684\u7cfb\u7edf\u4e0a\uff0c\u987b\u8981\u8fdb\u884c\u4ee5\u4e0b\u4e09\u70b9\u66f4\u6539\uff1a<\/p>\n

\u4e00\u3001\u66f4\u6539\u4e3b\u673a\u540dlinux\u83b7\u53d6\u5f53\u524d\u65f6\u95f4\uff0c\u4fbf\u6377\u65e5\u540e\u4f7f\u7528\u3002\u5177\u4f53\u6b65\u9aa4\u5982\u4e0b\uff1a<\/p>\n

1.\u542f\u7528root\u7528\u6237<\/p>\n

\u8fd0\u884c\u547d\u4ee4<\/a>sudosu<\/p>\n

2.\u4ee5root\u7528\u6237\u8eab\u5206\u767b\u5165<\/p>\n

1\uff09\u7f16\u8f91\u6587\u4ef6\/etc\/hosts\u5c06\u4e0b\u8fb9\u7684\u4e00\u884c<\/p>\n

127.0.1.1xxxxx<\/p>\n

\u66ff\u6362\u4e3a<\/p>\n

127.0.1.1newhostname<\/p>\n

2)\u7f16\u8f91\/etc\/hostname\u6587\u4ef6\u5220\u6389\u8be5\u6587\u4ef6\u7684\u6240\u6709\u5185\u5bb9\uff0c\u6dfb\u52a0newhostname<\/p>\n

3\uff09\u8fd0\u884c\u4e00\u4e0b\u547d\u4ee4hostnamenewhostname<\/p>\n

3.\u9000\u51faroot\u7528\u6237\u6539\u7528\u901a\u5e38\u7528\u6237\u767b\u5165\u5373\u53ef<\/p>\n

\u6ce8\uff1a\u5176\u4e2dxxxxx\u4e3a\u539f\u5148\u7684\u4e3b\u673a\u540dnewhostname\u4e3a\u4f60\u60f3\u66f4\u6539\u7684\u4e3b\u673a\u540d<\/p>\n

\u4e8c\u3001\u66f4\u6539\u5404\u4e2a\u8282\u70b9\u7684IP\uff0c\u56e0\u4e3a\u5404\u4e2a\u8282\u70b9\u7684\u7cfb\u7edf\u662f\u7531\u4e00\u53f0Copy\u7684\uff0c\u8fd9\u65f6\u4f1a\u51fa\u73b0\u9ed8\u8ba4\u7684\u7b2c\u4e00\u5757\u7f51\u5361\u4e0d\u662feth0\u7684\u73b0\u8c61\u3002\u8bf8\u5982\uff1a\u6211\u7684\u673a\u5668\u662f\u53cc\u7f51\u5361\uff0c\u63a8\u5b8c\u7cfb\u7edf\u540e\uff0c\u8f93\u5165ifconfig\u51fa\u73b0eth2\u3001eth3\uff0c\u800ceth0\u3001eth1\u4e0d\u89c1\u4e86\uff1b\u8fd9\u65f6\uff0c\u7f16\u8f91\/etc\/udev\/rules.d\/70-persistent-net.rules\u6587\u4ef6\uff0c\u53d1\u89c9eth0-eth3\u7684\u4fe1\u606f\u90fd\u5b58\u5728\uff0c\u8981\u505a\u7684\u662f\u5220\u9664eth0\u3001eth1\uff0c\u5e76\u628aeth2\u3001eth3\u6539\u4e3aeth1\u3001eth2\uff0c\u91cd\u542f\u5373\u53ef\u3002<\/p>\n

\u4e09\u3001\u63a8\u88c5\u7684\u7cfb\u7edf\u8fd8\u6709\u53ef\u80fd\u51fa\u73b0\u7f51\u8def\u4e0d\u901a\u7684\u73b0\u8c61\uff0c\u4e0d\u8981\u7740\u6025\uff0c\u8f93\u5165routelinux \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

\u865a\u62df\u5668\u5b89\u88c5linux_\u865a\u62df\u673a\u5b89\u88c5\u6559\u7a0blinux_linux \u865a\u62df\u673a \u670d\u52a1\u5668<\/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

\u865a\u62df\u5668\u5b89\u88c5linux_\u865a\u62df\u673a\u5b89\u88c5\u6559\u7a0blinux_linux \u865a\u62df\u673a \u670d\u52a1\u5668<\/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}]}}