{"id":137938,"date":"2014-02-06T15:20:03","date_gmt":"2014-02-06T11:20:03","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=137938"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=137938","title":{"rendered":"<span class=\"post_title\">\u0421\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u043d\u0430\u0434\u0451\u0436\u043d\u043e\u0433\u043e \u0445\u0440\u0430\u043d\u0438\u043b\u0438\u0449\u0430 \u0440\u0430\u0437\u0434\u0430\u0432\u0430\u0435\u043c\u043e\u0433\u043e \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u0438\u043c \u0441\u0435\u0440\u0432\u0435\u0440\u0430\u043c \u043f\u043e nfs<\/span>"},"content":{"rendered":"<div class=\"content html_format\">   \t\u041f\u0440\u0438 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0438 \u043a\u043b\u0430\u0441\u0442\u0435\u0440\u0430 \u0434\u043b\u044f \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u0437\u0432\u043e\u043d\u043a\u043e\u0432 \u043d\u0430 \u0431\u0430\u0437\u0435 <a href=\"http:\/\/communigate.com\">CGP<\/a> \u0432\u043e\u0437\u043d\u0438\u043a\u043b\u0430 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0441\u0442\u044c \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u0431\u0435\u0441\u043f\u0435\u0440\u0435\u0431\u043e\u0439\u043d\u043e\u0433\u043e \u0445\u0440\u0430\u043d\u0438\u043b\u0438\u0449\u0430, \u043c\u043e\u043d\u0442\u0438\u0440\u0443\u0435\u043c\u043e\u0433\u043e \u0441 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u0438\u0445 \u0441\u0435\u0440\u0432\u0440\u043e\u0432.<\/p>\n<p>  \u0412 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u0434\u0438\u0441\u0442\u0440\u0438\u0431\u0443\u0442\u0438\u0430 \u0434\u043b\u044f \u0441\u0435\u0440\u0432\u0435\u0440\u043e\u0432 \u0431\u044b\u043b \u0432\u0437\u044f\u0442 Ubuntu Server 10.10. \u0414\u0438\u0441\u043a\u043e\u0432\u043e\u0435 \u043f\u0440\u043e\u0441\u0442\u0440\u0430\u043d\u0441\u0442\u0432\u043e \u0431\u044b\u043b\u043e \u0440\u0430\u0437\u0431\u0438\u0442\u043e \u043d\u0430 \u0434\u0432\u0430 \u043b\u043e\u0433\u0438\u0447\u0435\u0441\u043a\u0438\u0445 \u0434\u0438\u0441\u043a\u0430 (sda1 \u0434\u043b\u044f \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438 \u0441\u0438\u0441\u0442\u0435\u043c\u044b, \u0438 sda2 \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u043e \u0434\u043b\u044f \u0440\u0430\u0437\u0434\u0435\u043b\u044f\u0435\u043c\u043e\u0433\u043e \u0434\u0438\u0441\u043a\u0430).<\/p>\n<p>  \u041f\u043e\u0441\u043b\u0435 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438 \u0431\u0430\u0437\u043e\u0432\u043e\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u044b \u043d\u0430\u0434\u043e \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0435 \u043f\u0430\u043a\u0435\u0442\u044b: heartbeat, pacemaker, drbd8-utils, xfs, xfsprogs, nfs-kernel-server.<\/p>\n<p>  Heartbeat \u0438 pacemaker \u043d\u0443\u0436\u043d\u044b \u0434\u043b\u044f \u043a\u043b\u0430\u0441\u0442\u0435\u0440\u0438\u0437\u0430\u0446\u0438\u0438 \u0441\u0435\u0440\u0432\u0435\u0440\u043e\u0432. \u0425\u0440\u0430\u043d\u0438\u043b\u0438\u0449\u0435 \u0441\u0434\u0435\u043b\u0430\u043d\u043e \u043d\u0430 \u043e\u0441\u043d\u043e\u0432\u0435 drbd, \u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u0444\u0430\u0439\u043b\u043e\u0432\u043e\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u044b \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043b\u0430\u0441\u044c xfs. \u0420\u0430\u0437\u0434\u0430\u0447\u0430 \u0444\u0430\u0439\u043b\u043e\u0432\u043e\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u044b \u0441\u0435\u0440\u0432\u0435\u0440\u0430\u043c \u0441\u0434\u0435\u043b\u0430\u043d\u0430 \u043f\u043e nfs.<\/p>\n<p>  <a name=\"habracut\"><\/a>  <\/p>\n<h4>1. \u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 \u0441\u0438\u0441\u0442\u0435\u043c\u044b<\/h4>\n<p>  \u0414\u043b\u044f \u043d\u043e\u0434 \u0431\u044b\u043b\u0438 \u0432\u044b\u0431\u0440\u0430\u043d\u044b \u0438\u043c\u0435\u043d\u0430 u1 \u0438 u2. \u0414\u043b\u044f \u0443\u0434\u043e\u0431\u0441\u0442\u0430 \u044d\u0442\u0438 \u0438\u043c\u0435\u043d\u0430 \u0441\u0440\u0430\u0437\u0443 \u0431\u044b\u043b\u0438 \u043f\u0440\u043e\u043f\u0438\u0441\u0430\u043d\u044b \u0432 \/etc\/hosts:  <\/p>\n<pre>10.0.0.84  u1 10.0.0.115 u2 10.0.0.120 u0 <\/pre>\n<p>  u0 \u2014 \u044d\u0442\u043e \u0430\u0434\u0440\u0435\u0441 \u043f\u043e \u043a\u043e\u0442\u043e\u0440\u043e\u043c\u0443 \u0445\u0440\u0430\u043d\u0438\u043b\u0438\u0449\u0435 \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u043e \u0434\u043b\u044f \u043c\u043e\u043d\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0444\u0430\u0439\u043b\u043e\u0432\u043e\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u044b \u0441 \u043e\u0441\u0442\u0430\u043b\u044c\u043d\u044b\u0445 \u0441\u0435\u0440\u0432\u0435\u0440\u043e\u0432.<\/p>\n<h4>2. \u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 drbd<\/h4>\n<p>  \u0424\u0430\u0439\u043b \u0441 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0435\u0439 \u0445\u0440\u0430\u043d\u0438\u043b\u0438\u0449\u0430 \u0440\u0430\u0441\u043f\u043e\u043b\u043e\u0433\u0430\u0435\u0442\u0441\u044f \u0432 \/etc\/drbd.d\/r0.res:  <\/p>\n<pre> resource r0 {     protocol C;     syncer {         rate 4M;     }     startup {         wfc-timeout 15;         degr-wfc-timeout 60;     }     net {         after-sb-0pri discard-zero-changes;         after-sb-1pri discard-secondary;         after-sb-2pri disconnect;         cram-hmac-alg sha1;         shared-secret somesecretword;     }     on u1 {         device \/dev\/drbd0;         disk \/dev\/sda2;         address 10.0.0.84:7788;         meta-disk internal;     }     on u2 {         device \/dev\/drbd0;         disk \/dev\/sda2;         address 10.0.0.115:7788;         meta-disk internal;     } } <\/pre>\n<p>  \u041d\u0430 \u043e\u0431\u043e\u0438\u0445 \u043d\u043e\u0434\u0430\u0445 \u0444\u0430\u0439\u043b \u043e\u0434\u0438\u043d\u0430\u043a\u043e\u0432\u044b\u0439, \u0442\u0430\u043a \u0447\u0442\u043e \u043c\u043e\u0436\u043d\u043e \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u043d\u0430 \u043e\u0434\u043d\u043e\u0439, \u0430 \u0437\u0430\u0442\u0435\u043c \u0441\u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043d\u0430 \u0432\u0442\u043e\u0440\u0443\u044e.<\/p>\n<p>  \u0422\u0430\u043a\u0430\u044f \u0436\u0435\u0441\u0442\u043e\u043a\u043e\u044f \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 \u0434\u043b\u044f \u043b\u0435\u0447\u0435\u043d\u0438\u044f split brain \u0431\u044b\u043b\u0430 \u0432\u044b\u0431\u0440\u0430\u043d\u0430, \u0442\u0430\u043a \u043a\u0430\u043a \u0445\u0440\u0430\u043d\u0438\u043b\u0438\u0449\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u0432 \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u043c \u0434\u043b\u044f \u0445\u0440\u0430\u043d\u0435\u043d\u0438\u044f \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438 \u0441\u0438\u0441\u0442\u0435\u043c\u044b. \u0422\u043e \u0435\u0441\u0442\u044c \u043f\u043e\u0442\u0435\u0440\u044f \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0445 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u043d\u0435 \u0442\u0430\u043a \u043a\u0440\u0438\u0442\u0438\u0447\u043d\u0430, \u043a\u0430\u043a \u043f\u043e\u0442\u0435\u0440\u044f \u0437\u0432\u043e\u043d\u043a\u043e\u0432 \u0432\u043e \u0432\u0440\u0435\u043c\u044f \u043f\u0440\u043e\u0441\u0442\u043e\u044f \u043f\u043e \u043f\u0440\u0438\u0447\u0438\u043d\u0435 slit blain.<\/p>\n<p>  \u041f\u043e\u0441\u043b\u0435 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u0444\u0430\u0439\u043b\u0430 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438 \u043d\u0430\u0434\u043e \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u0441\u0430\u043c\u0438 \u0434\u0438\u0441\u043a\u0438 \u043d\u0430 \u043e\u0431\u043e\u0438\u0445 \u0441\u0435\u0440\u0432\u0435\u0440\u0430\u0445 \u043a\u043b\u0430\u0441\u0442\u0435\u0440\u0430:  <\/p>\n<pre> dd if=\/dev\/zero of=\/dev\/sda2 bs=64M drbdadm create-md r0 <\/pre>\n<p>  \u041f\u043e\u0441\u043b\u0435 \u044d\u0442\u043e\u0433\u043e \u043c\u043e\u0436\u043d\u043e \u0441\u0442\u0430\u0440\u0442\u043e\u0432\u0430\u0442\u044c drbd. \u0412\u0430\u0436\u043d\u043e \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c drbd \u0434\u0435\u043c\u043e\u043d \u043d\u0430 \u043e\u0431\u043e\u0438\u0445 \u0441\u0435\u0440\u0432\u0435\u0440\u0430\u0445 \u0441 \u0440\u0430\u0437\u043d\u0438\u0446\u043e\u0439 \u043c\u0435\u043d\u044c\u0448\u0435 \u043c\u0438\u043d\u0443\u0442\u044b (\u0442\u0430\u0439\u043c\u0430\u0443\u0442 \u0434\u043b\u044f \u0441\u0432\u044f\u0437\u0438 \u0441 \u0434\u0440\u0443\u0433\u0438\u043c\u0438 \u0447\u043b\u0435\u043d\u0430\u043c\u0438 \u043a\u043b\u0430\u0441\u0442\u0435\u0440\u0430):  <\/p>\n<pre> \/etc\/init.d\/drbd start <\/pre>\n<p>  \u041f\u043e\u0441\u043b\u0435 \u044d\u0442\u0433\u043e \u0432 \/proc\/drbd \u0431\u0443\u0434\u0435\u0442 \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435 \u0445\u0440\u0430\u043d\u0438\u043b\u0438\u0449\u0430, \u0432 \u043f\u0440\u0438\u043c\u0435\u0440\u043d\u043e \u0442\u0430\u043a\u043e\u043c \u0432\u0438\u0434\u0435:  <\/p>\n<pre> 0: cs:Connected ro:Secondary\/Secondary ds:Inconsistent\/Inconsistent C r----<\/pre>\n<p>  \u0422\u043e \u0435\u0441\u0442\u044c \u0434\u0432\u0435 \u043d\u043e\u0434\u044b \u0432 \u0440\u0435\u0436\u0438\u043c\u0435 secondary, \u043f\u0440\u0438 \u044d\u0442\u043e\u043c \u0434\u0438\u0441\u043a \u043d\u0435\u043a\u043e\u043d\u0441\u0438\u0441\u0442\u0435\u0442\u043d\u044b\u0439. \u0427\u0442\u043e\u0431\u044b \u0432\u044b\u0439\u0442\u0438 \u0438\u0437 \u044d\u0442\u043e\u0433\u043e \u043f\u043e\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u043d\u0430\u0434\u043e \u043d\u0430\u0441\u0438\u043b\u044c\u043d\u043e \u043e\u0431\u044a\u044f\u0432\u0438\u0442\u044c \u043e\u0434\u043d\u0443 \u0438\u0437 \u043d\u043e\u0434 \u043a\u043b\u0430\u0441\u0442\u0435\u0440\u0430 \u0433\u043b\u0430\u0432\u043d\u043e\u0439, \u0447\u0442\u043e\u0431\u044b \u044d\u0442\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u043d\u0430\u0434\u043e \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u0442\u044c \u043a\u043e\u043c\u0430\u043d\u0434\u0443:  <\/p>\n<pre> drbdadm -- --overwrite-data-of-peer primary r0 <\/pre>\n<p>  \u041f\u043e\u0441\u043b\u0435 \u044d\u0442\u043e\u0433\u043e drbd \u043d\u0430\u0447\u043d\u0451\u0442 \u043e\u0431\u043d\u043e\u0432\u043b\u044f\u0442\u044c \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435 secondary \u0434\u0438\u0441\u043a\u0430:  <\/p>\n<pre> 0: cs:SyncSource ro:Primary\/Secondary ds:UpToDate\/Inconsistent C r---- ns:241984 nr:0 dw:0 dr:242184 al:0 bm:14 lo:510 pe:179 ua:510 ap:0 ep:1 wo:b oos:782664         [===&gt;................] sync'ed: 23.6% (782664\/1023932)K         finish: 0:04:04 speed: 3,160 (3,172) K\/sec <\/pre>\n<p>  \u041f\u043e\u0441\u043b\u0435 \u0442\u043e\u0433\u043e, \u043a\u0430\u043a \u0441\u0438\u043d\u0445\u0440\u043e\u043d\u0438\u0437\u0430\u0446\u0438\u044f \u0437\u0430\u043a\u043e\u043d\u0447\u0438\u0442\u0441\u044f \u043c\u043e\u0436\u043d\u043e \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u0442\u044c \u0444\u0430\u0439\u043b\u043e\u0432\u0443\u044e \u0441\u0438\u0441\u0442\u0435\u043c\u0443, \u043d\u0430 \u0441\u0435\u0440\u0432\u0435\u0440\u0435, \u0433\u0434\u0435 drbd \u0432 \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0438 primary:  <\/p>\n<pre> mkfs.xfs \/dev\/drbd0 <\/pre>\n<p>  \u0414\u043b\u044f \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0445 \u0448\u0430\u0433\u043e\u0432 \u043d\u0430\u043c \u0431\u0443\u0434\u0435\u0442 \u043c\u0435\u0448\u0430\u0442\u044c \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u044b\u0439 \u043c\u0435\u0445\u0430\u043d\u0438\u0437\u043c \u0437\u0430\u043f\u0443\u0441\u043a\u0430 \u0434\u0435\u043c\u043e\u043d\u043e\u0432. \u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u043d\u0430\u0434\u043e \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u0442\u044c \u043d\u0430 \u043e\u0431\u043e\u0438\u0445 \u0441\u0435\u0440\u0432\u0435\u0440\u0430\u0445 \u043a\u043e\u043c\u0430\u043d\u0434\u0443:  <\/p>\n<pre> update-rc.d -f drbd remove <\/pre>\n<p>  <\/p>\n<h4>3. \u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 heartbeat<\/h4>\n<p>  \u041a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u044f \u0441\u043e\u0437\u0434\u0430\u0451\u0442\u0441\u044f \u0432 \u0444\u0430\u0439\u043b\u0435 \/etc\/heartbeat\/ha.cf. \u041d\u0430 \u043e\u0431\u043e\u0438\u0445 \u043d\u043e\u0434\u0430\u0445 \u043e\u043d \u043e\u0434\u0438\u043d\u0430\u043a\u043e\u0432\u044b\u0439, \u0442\u0430\u043a \u0447\u0442\u043e \u043c\u043e\u0436\u043d\u043e \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u043d\u0430 \u043e\u0434\u043d\u043e\u0439, \u0430 \u0437\u0430\u0442\u0435\u043c \u0441\u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043d\u0430 \u0432\u0442\u043e\u0440\u0443\u044e.  <\/p>\n<pre> logfacility daemon keepalive 2 deadtime 15 warntime 5 initdead 120 udpport 694 ucast eth0 10.0.0.115 ucast eth0 10.0.0.84 auto_failback on node u1 node u2 use_logd yes crm respawn <\/pre>\n<p>  \u0412\u0442\u043e\u0440\u043e\u0439 \u0444\u0430\u0439\u043b \u0441\u043b\u0443\u0436\u0438\u0442 \u0434\u043b\u044f \u0430\u0443\u0442\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u0438 \/etc\/heartbeat\/authkeys:  <\/p>\n<pre> auth 1 1 sha1 somesecretword <\/pre>\n<p>  \u041b\u0443\u0447\u0448\u0435 \u043d\u0435 \u0434\u043e\u0436\u0438\u0434\u0430\u0442\u044c\u0441\u044f \u043f\u0440\u0435\u0434\u0443\u043f\u0440\u0435\u0436\u0434\u0435\u043d\u0438\u044f \u043e\u0442 heartbeat \u043d\u0430 \u043d\u0435\u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u044b\u0435 \u0430\u0442\u0440\u0438\u0431\u0443\u0442\u044b \u0444\u0430\u0439\u043b\u0430 \u0438 \u043f\u043e\u043c\u0435\u043d\u044f\u0442\u044c \u0438\u0445 \u0437\u0430\u0440\u0430\u043d\u0435\u0435:  <\/p>\n<pre> chmod 600 \/etc\/heartbeat\/authkeys <\/pre>\n<p>  \u041f\u043e\u0441\u043b\u0435 \u044d\u0442\u043e\u0433\u043e \u043c\u043e\u0436\u043d\u043e \u0441\u0442\u0430\u0440\u0442\u043e\u0432\u0430\u0442\u044c heartbeat:  <\/p>\n<pre> \/etc\/init.d\/heartbeat start <\/pre>\n<p>  \u0427\u0435\u0440\u0435\u0437 \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u0432\u0440\u0435\u043c\u044f \u043a\u043e\u043c\u0430\u043d\u0434\u0430 crm_mod \u0434\u043e\u043b\u0436\u043d\u043e \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u044c, \u0447\u0442\u043e \u0434\u0432\u0435 \u043d\u043e\u0434\u044b \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0438\u043b\u0438\u0441\u044c \u043a \u0434\u0440\u0443\u0433-\u0434\u0440\u0443\u0433\u0443:  <\/p>\n<pre> ============ Last updated: Fri Feb 10 09:33:04 2012 Stack: Heartbeat Current DC: u1 (86b204d8-ee3e-47c7-ba0e-1dcbd40a20da) - partition with quorum Version: 1.0.9-unknown 2 Nodes configured, 2 expected votes 2 Resources configured. ============  Online: [ u2 u1 ] <\/pre>\n<p>  \u0414\u0430\u043b\u0435\u0435 \u043d\u0430\u0434\u043e \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u0442\u044c \u043a\u043e\u043c\u0430\u043d\u0434\u0443 crm configure edit \u0438 \u0432\u0432\u0435\u0441\u0442\u0438 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0443 \u0434\u043b\u044f \u043a\u043b\u0430\u0441\u0442\u0435\u0440\u0430:  <\/p>\n<pre> node $id=&quot;86b204d8-ee3e-47c7-ba0e-1dcbd40a20da&quot; u1 node $id=&quot;c6e3c21f-da3e-4031-9f28-a7e33425a817&quot; u2 primitive drbd0 ocf:linbit:drbd \\         params drbd_resource=&quot;r0&quot; \\         op start interval=&quot;0&quot; timeout=&quot;240&quot; \\         op stop interval=&quot;0&quot; timeout=&quot;100&quot; \\         op monitor interval=&quot;20&quot; role=&quot;Slave&quot; timeout=&quot;20&quot; depth=&quot;0&quot; \\         op monitor interval=&quot;10&quot; role=&quot;Master&quot; timeout=&quot;20&quot; depth=&quot;0&quot; primitive fs0 ocf:heartbeat:Filesystem \\         params directory=&quot;\/shared&quot; fstype=&quot;xfs&quot; device=&quot;\/dev\/drbd\/by-res\/r0&quot; options=&quot;noatime,nodiratime,nobarrier,logbufs=8&quot; \\         op start interval=&quot;0&quot; timeout=&quot;60&quot; \\         op stop interval=&quot;0&quot; timeout=&quot;60&quot; \\         op notify interval=&quot;0&quot; timeout=&quot;60&quot; \\         op monitor interval=&quot;20&quot; timeout=&quot;40&quot; depth=&quot;0&quot; \\         meta target-role=&quot;Started&quot; primitive ip0 ocf:heartbeat:IPaddr2 \\         params ip=&quot;10.0.0.120&quot; nic=&quot;eth0:0&quot; \\         op monitor interval=&quot;5s&quot; \\         meta target-role=&quot;Started&quot; primitive nfs0 ocf:itl:exportfs \\         params directory=&quot;\/shared&quot; clientspec=&quot;10.0.0.0\/255.255.255.0&quot; options=&quot;rw,no_root_squash,sync,no_wdelay&quot; fsid=&quot;1&quot; \\         op start interval=&quot;0&quot; timeout=&quot;40&quot; \\         op stop interval=&quot;0&quot; timeout=&quot;60&quot; \\         op monitor interval=&quot;30&quot; timeout=&quot;55&quot; depth=&quot;0&quot; OCF_CHECK_LEVEL=&quot;10&quot; \\         meta target-role=&quot;Started&quot; group ha_nfs fs0 nfs0 ip0 \\         meta target-role=&quot;Started&quot; ms ms_drbd0 drbd0 \\         meta master-max=&quot;1&quot; master-node-max=&quot;1&quot; clone-max=&quot;2&quot; clone-node-max=&quot;1&quot; notify=&quot;true&quot; colocation c_nfs inf: nfs0 ms_drbd0:Master order o_nfs inf: ms_drbd0:promote ha_nfs:start property $id=&quot;cib-bootstrap-options&quot; \\         dc-version=&quot;1.0.9-unknown&quot; \\         cluster-infrastructure=&quot;Heartbeat&quot; \\         stonith-enabled=&quot;false&quot; \\         expected-quorum-votes=&quot;2&quot; \\         no-quorum-policy=&quot;ignore&quot; \\         symmetric-cluster=&quot;true&quot; \\         last-lrm-refresh=&quot;1328625786&quot; rsc_defaults $id=&quot;rsc_defaults-options&quot; \\         resource-stickiness=&quot;10000&quot; <\/pre>\n<p>  \u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 exportfs \u0433\u043e\u0432\u043e\u0440\u044f\u0442 \u043e \u0442\u043e\u043c, \u0447\u0442\u043e \u0434\u0438\u0440\u0435\u043a\u0442\u043e\u0440\u0438\u044f, \u0433\u0434\u0435 \u0431\u0443\u0434\u0435\u0442 \u0441\u043c\u043e\u043d\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0430 \u043e\u0431\u0449\u0430\u044f \u0444\u0430\u0439\u043b\u043e\u0432\u0430\u044f \u0441\u0438\u0441\u0442\u0435\u043c\u0430 \/shared, \u043c\u043e\u043d\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u044d\u0442\u043e\u0442 \u0440\u0435\u0441\u0443\u0440\u0441 \u043f\u043e nfs \u043c\u043e\u0436\u043d\u043e \u0431\u0443\u0434\u0435\u0442 \u0432\u0441\u0435\u043c \u0441\u0435\u0440\u0432\u0435\u0440\u0430\u043c \u0438\u0437 \u0441\u0435\u0442\u0438 10.0.0.0.<\/p>\n<p>  \u0427\u0435\u0440\u0435\u0437 \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u0432\u0440\u0435\u043c\u044f \u043c\u043e\u043d\u0438\u0442\u043e\u0440 \u043a\u043b\u0430\u0441\u0442\u0435\u0440\u0430 \u0434\u043e\u043b\u0436\u0435\u043d \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u044c \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435 \u0440\u0435\u0441\u0443\u0440\u0441\u043e\u0432:  <\/p>\n<pre> ============ Last updated: Fri Feb 10 09:33:04 2012 Stack: Heartbeat Current DC: u1 (86b204d8-ee3e-47c7-ba0e-1dcbd40a20da) - partition with quorum Version: 1.0.9-unknown 2 Nodes configured, 2 expected votes 2 Resources configured. ============  Online: [ u2 u1 ]   Resource Group: ha_nfs      fs0        (ocf::heartbeat:Filesystem):    Started u1      nfs0       (ocf::itl:exportfs):    Started u1      ip0        (ocf::heartbeat:IPaddr2):       Started u1  Master\/Slave Set: ms_drbd0      Masters: [ u1 ]      Slaves: [ u2 ] <\/pre>\n<p>  <\/p>\n<h4>4. \u041c\u043e\u043d\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u043e\u0431\u0449\u0435\u0439 \u0444\u0430\u0439\u043b\u043e\u0432\u043e\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u044b \u0441 \u0434\u0440\u0443\u0433\u0438\u0445 \u0441\u0435\u0440\u0432\u0435\u0440\u043e\u0432<\/h4>\n<p>  \u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u043c\u043e\u0436\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \/etc\/fstab:  <\/p>\n<pre> u0:\/shared \/var\/CommuniGate\/SharedDomains nfs bg,intr\t0 0 <\/pre>\n<p>  <\/p>\n<h4>5. \u0414\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0435 \u0441\u0441\u044b\u043b\u043a\u0438<\/h4>\n<p>  <\/p>\n<ol>\n<li>\u041f\u0440\u0438 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0438 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438 \u0437\u0430 \u043e\u0441\u043d\u043e\u0432\u0443 \u0431\u044b\u043b\u043e \u0432\u0437\u044f\u0442\u043e \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u0435 <a href=\"http:\/\/library.linode.com\/linux-ha\/ip-failover-heartbeat-pacemaker-drbd-mysql-ubuntu-10.04\">http:\/\/library.linode.com\/linux-ha\/ip-failover-heartbeat-pacemaker-drbd-mysql-ubuntu-10.04<\/a><\/li>\n<li>\u0418\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u044f \u043f\u043e \u043b\u0435\u0447\u0435\u043d\u0438 split-brain \u0443 drbd <a href=\"http:\/\/www.alsigned.ru\/?p=490\">http:\/\/www.alsigned.ru\/?p=490<\/a><\/li>\n<li>\u0412 Ubuntu 10.10 exportfs \u0430\u0433\u0435\u043d\u0442 \u043d\u0435 \u0432\u0445\u043e\u0434\u0438\u0442, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u0435\u0433\u043e \u043d\u0430\u0434\u043e \u0441\u043a\u0430\u0447\u0438\u0432\u0430\u0442\u044c \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e (<a href=\"https:\/\/github.com\/ClusterLabs\/resource-agents\/blob\/master\/heartbeat\/exportfs\">https:\/\/github.com\/ClusterLabs\/resource-agents\/blob\/master\/heartbeat\/exportfs<\/a>) \u0438 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c \u0432 \/usr\/lib\/ocf\/resource.d\/heartbeat\/<\/li>\n<li>\u0412 \u0434\u0430\u043d\u043d\u043e\u0439 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438 \u043d\u0435\u0442 \u0432\u0430\u0436\u043d\u043e\u0439 \u0447\u0430\u0441\u0442\u0438 \u2014 STONITH (<a href=\"http:\/\/linux-ha.org\/wiki\/STONITH\">http:\/\/linux-ha.org\/wiki\/STONITH<\/a>), \u0442\u0430\u043a \u043a\u0430\u043a \u043d\u0435\u0442 \u0440\u0435\u0437\u0435\u0440\u0432\u043d\u043e\u0433\u043e \u043a\u0430\u043d\u0430\u043b\u0430<\/li>\n<li>\u041e\u043f\u0438\u0441\u0430\u043d\u0438\u0435 \u043c\u0435\u0445\u0430\u043d\u0438\u0437\u043c\u0430 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f \u043e\u0431\u0449\u0435\u0433\u043e \u0430\u0434\u0440\u0435\u0441\u0430 \u043c\u043e\u0436\u043d\u043e \u043f\u0440\u043e\u0447\u0438\u0442\u0430\u0442\u044c \u043d\u0430 <a href=\"http:\/\/www.ultramonkey.org\/3\/ip_address_takeover.html\">http:\/\/www.ultramonkey.org\/3\/ip_address_takeover.html<\/a><\/li>\n<\/ol>\n<div class=\"clear\"><\/div>\n<\/p><\/div>\n<p> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"http:\/\/habrahabr.ru\/post\/137938\/\"> http:\/\/habrahabr.ru\/post\/137938\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<div class=\"content html_format\">   \t\u041f\u0440\u0438 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0438 \u043a\u043b\u0430\u0441\u0442\u0435\u0440\u0430 \u0434\u043b\u044f \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u0437\u0432\u043e\u043d\u043a\u043e\u0432 \u043d\u0430 \u0431\u0430\u0437\u0435 <a href=\"http:\/\/communigate.com\">CGP<\/a> \u0432\u043e\u0437\u043d\u0438\u043a\u043b\u0430 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0441\u0442\u044c \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u0431\u0435\u0441\u043f\u0435\u0440\u0435\u0431\u043e\u0439\u043d\u043e\u0433\u043e \u0445\u0440\u0430\u043d\u0438\u043b\u0438\u0449\u0430, \u043c\u043e\u043d\u0442\u0438\u0440\u0443\u0435\u043c\u043e\u0433\u043e \u0441 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u0438\u0445 \u0441\u0435\u0440\u0432\u0440\u043e\u0432.<\/p>\n<p>  \u0412 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u0434\u0438\u0441\u0442\u0440\u0438\u0431\u0443\u0442\u0438\u0430 \u0434\u043b\u044f \u0441\u0435\u0440\u0432\u0435\u0440\u043e\u0432 \u0431\u044b\u043b \u0432\u0437\u044f\u0442 Ubuntu Server 10.10. \u0414\u0438\u0441\u043a\u043e\u0432\u043e\u0435 \u043f\u0440\u043e\u0441\u0442\u0440\u0430\u043d\u0441\u0442\u0432\u043e \u0431\u044b\u043b\u043e \u0440\u0430\u0437\u0431\u0438\u0442\u043e \u043d\u0430 \u0434\u0432\u0430 \u043b\u043e\u0433\u0438\u0447\u0435\u0441\u043a\u0438\u0445 \u0434\u0438\u0441\u043a\u0430 (sda1 \u0434\u043b\u044f \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438 \u0441\u0438\u0441\u0442\u0435\u043c\u044b, \u0438 sda2 \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u043e \u0434\u043b\u044f \u0440\u0430\u0437\u0434\u0435\u043b\u044f\u0435\u043c\u043e\u0433\u043e \u0434\u0438\u0441\u043a\u0430).<\/p>\n<p>  \u041f\u043e\u0441\u043b\u0435 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438 \u0431\u0430\u0437\u043e\u0432\u043e\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u044b \u043d\u0430\u0434\u043e \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0435 \u043f\u0430\u043a\u0435\u0442\u044b: heartbeat, pacemaker, drbd8-utils, xfs, xfsprogs, nfs-kernel-server.<\/p>\n<p>  Heartbeat \u0438 pacemaker \u043d\u0443\u0436\u043d\u044b \u0434\u043b\u044f \u043a\u043b\u0430\u0441\u0442\u0435\u0440\u0438\u0437\u0430\u0446\u0438\u0438 \u0441\u0435\u0440\u0432\u0435\u0440\u043e\u0432. \u0425\u0440\u0430\u043d\u0438\u043b\u0438\u0449\u0435 \u0441\u0434\u0435\u043b\u0430\u043d\u043e \u043d\u0430 \u043e\u0441\u043d\u043e\u0432\u0435 drbd, \u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u0444\u0430\u0439\u043b\u043e\u0432\u043e\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u044b \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043b\u0430\u0441\u044c xfs. \u0420\u0430\u0437\u0434\u0430\u0447\u0430 \u0444\u0430\u0439\u043b\u043e\u0432\u043e\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u044b \u0441\u0435\u0440\u0432\u0435\u0440\u0430\u043c \u0441\u0434\u0435\u043b\u0430\u043d\u0430 \u043f\u043e nfs.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-137938","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/137938","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=137938"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/137938\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=137938"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=137938"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=137938"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}