[root@node1 ~]# drbdadm new-current-uuid --clear-bitmap r0/0ソス@ソスソスソス@DRBDソスfソスBソスXソスNソスソスソスソスソスソスソスソスソスXソスLソスbソスv(ソスソスfソスBソスXソスNソスフ場合ソスフゑソス)ソスソスソスfソスBソスXソスNソスノデソス[ソス^ソスソスソスiソス[ソスソスソスソストゑソスソスソス鼾ソスヘスソスLソスbソスvソスソスソスネゑソスソスソスソスソス
[root@node1 ~]# cat /proc/drbdソス@ソスソスソス@node1ソスソスソスソスDRBDソスソスヤ確ソスF
version: 8.4.10-1 (api:1/proto:86-101)
GIT-hash: a4d5de01fffd7e4cde48a080e2c686f9e8cebf4c build by mockbuild@, 2017-09-15 14:23:22
0: cs:Connected ro:Secondary/Secondary ds:UpToDate/UpToDate C r-----ソス@ソスソスソス@ソスソスソスメ機ソスソスソス
ns:0 nr:0 dw:0 dr:0 al:8 bm:0 lo:0 pe:0 ua:0 ap:0 ep:1 wo:f oos:0
[root@node2 ~]# cat /proc/drbdソス@ソスソスソス@node2ソスソスソスソスDRBDソスソスヤ確ソスF
version: 8.4.10-1 (api:1/proto:86-101)
GIT-hash: a4d5de01fffd7e4cde48a080e2c686f9e8cebf4c build by mockbuild@, 2017-09-15 14:23:22
0: cs:Connected ro:Secondary/Secondary ds:UpToDate/UpToDate C r-----ソス@ソスソスソス@ソスソスソスメ機ソスソスソス
ns:0 nr:0 dw:0 dr:0 al:8 bm:0 lo:0 pe:0 ua:0 ap:0 ep:1 wo:f oos:0
[root@node1 ~]# drbdadm primary allソス@ソスソスソス@node1ソスソスソスソスソスソスソスpソスソス
[root@node1 ~]# cat /proc/drbdソス@ソスソスソス@node1ソスソスソスソスDRBDソスソスヤ確ソスF
version: 8.4.10-1 (api:1/proto:86-101)
GIT-hash: a4d5de01fffd7e4cde48a080e2c686f9e8cebf4c build by mockbuild@, 2017-09-15 14:23:22
0: cs:Connected ro:Primary/Secondary ds:UpToDate/UpToDate C r-----ソス@ソスソスソス@ソスソスソスzソスXソスg(node1)ソスソスソスソスソスpソス^node2ソスソスソスメ機ソスソスソス
ns:0 nr:0 dw:0 dr:2120 al:8 bm:0 lo:0 pe:0 ua:0 ap:0 ep:1 wo:f oos:0
[root@node2 ~]# cat /proc/drbdソス@ソスソスソス@node2ソスソスソスソスDRBDソスソスヤ確ソスF
version: 8.4.10-1 (api:1/proto:86-101)
GIT-hash: a4d5de01fffd7e4cde48a080e2c686f9e8cebf4c build by mockbuild@, 2017-09-15 14:23:22
0: cs:Connected ro:Secondary/Primary ds:UpToDate/UpToDate C r-----ソス@ソスソスソス@ソスソスソスzソスXソスg(node2)ソスソスソスメ機ソス^node1ソスソスソスソスソスpソスソスソス
ns:0 nr:0 dw:0 dr:0 al:8 bm:0 lo:0 pe:0 ua:0 ap:0 ep:1 wo:f oos:0
[root@node1 ~]# mkfs.xfs /dev/drbd0ソス@ソスソスソス@node1ソスソスソスソスDRBDソスfソスoソスCソスX(/dev/drbd0)ソスノフソス@ソスCソスソスソスVソスXソスeソスソスソス成
meta-data=/dev/drbd0 isize=512 agcount=4, agsize=67836 blks
= sectsz=512 attr=2, projid32bit=1
= crc=1 finobt=0, sparse=0
data = bsize=4096 blocks=271342, imaxpct=25
= sunit=0 swidth=0 blks
naming =version 2 bsize=4096 ascii-ci=0 ftype=1
log =internal log bsize=4096 blocks=2560, version=2
= sectsz=512 sunit=0 blks, lazy-count=1
realtime =none extsz=4096 blocks=0, rtextents=0
[root@node1 ~]# mount /dev/drbd0 /mntソス@ソスソスソス@node1ソスソスソスソスDRBDソスfソスoソスCソスX(/dev/drbd0)ソスソス/mntソスfソスBソスソスソスNソスgソスソスソスヨマソスEソスソスソスg
[root@node1 ~]# dfソス@ソスソスソス@node1ソスソスソスナデソスBソスXソスNソス}ソスEソスソスソスgソスソスヤ確ソスF
ソスtソス@ソスCソスソスソスVソスX 1K-ソスuソスソスソスbソスN ソスgソスp ソスgソスpソスソス ソスgソスp% ソス}ソスEソスソスソスgソスハ置
/dev/mapper/centos-root 13588480 1963112 11625368 15% /
devtmpfs 497288 0 497288 0% /dev
tmpfs 508124 54624 453500 11% /dev/shm
tmpfs 508124 6856 501268 2% /run
tmpfs 508124 0 508124 0% /sys/fs/cgroup
/dev/vda1 508588 214040 294548 43% /boot
tmpfs 101628 0 101628 0% /run/user/0
/dev/drbd0 1075128 32944 1042184 4% /mntソス@ソスソスソス@/dev/drbd0ソスソス/mntソスfソスBソスソスソスNソスgソスソスソスヨマソスEソスソスソスgソスソスソスソストゑソスソスソス
[root@node1 ~]# touch /mnt/test.txtソス@ソスソスソス@node1ソスソスソスソス/mntソスfソスBソスソスソスNソスgソスソスソスヨテソスXソスgソスtソス@ソスCソスソスソス成
[root@node1 ~]# ll /mnt/ソス@ソスソスソス@node1ソスソスソスソス/mntソスfソスBソスソスソスNソスgソスソスソスニ会ソス
ソスソスソスv 0
-rw-r--r-- 1 root root 0 12ソスソス 19 18:36 test.txtソス@ソスソスソス@ソスeソスXソスgソスtソス@ソスCソスソスソスソスソス成ソスソスソスソストゑソスソスソス
[root@node1 ~]# umount /mnt/ソス@ソスソスソス@node1ソスソスソスソス/mntソスfソスBソスソスソスNソスgソスソスソスAソスソスソス}ソスEソスソスソスg
[root@node1 ~]# dfソス@ソスソスソス@node1ソスソスソスナデソスBソスXソスNソス}ソスEソスソスソスgソスソスヤ確ソスF
ソスtソス@ソスCソスソスソスVソスX 1K-ソスuソスソスソスbソスN ソスgソスp ソスgソスpソスソス ソスgソスp% ソス}ソスEソスソスソスgソスハ置
/dev/mapper/centos-root 13588480 1963092 11625388 15% /
devtmpfs 497288 0 497288 0% /dev
tmpfs 508124 54624 453500 11% /dev/shm
tmpfs 508124 6856 501268 2% /run
tmpfs 508124 0 508124 0% /sys/fs/cgroup
/dev/vda1 508588 214040 294548 43% /boot
tmpfs 101628 0 101628 0% /run/user/0
ソス@ソスソスソス@/mntソスfソスBソスソスソスNソスgソスソスソスソスソス}ソスEソスソスソスgソスソスソスソストゑソスソスネゑソス
[root@node1 ~]# drbdadm secondary allソス@ソスソスソス@node1ソスソスソスソスメ機ソスソス
[root@node2 ~]# drbdadm primary allソス@ソスソスソス@node2ソスソスソスソスソスソスソスpソスソス
[root@node1 ~]# cat /proc/drbdソス@ソスソスソス@node1ソスソスソスソスDRBDソスソスヤ確ソスF
version: 8.4.10-1 (api:1/proto:86-101)
GIT-hash: a4d5de01fffd7e4cde48a080e2c686f9e8cebf4c build by mockbuild@, 2017-09-15 14:23:22
0: cs:Connected ro:Secondary/Primary ds:UpToDate/UpToDate C r-----ソス@ソスソスソス@ソスソスソスzソスXソスg(node1)ソスソスソスメ機ソス^node2ソスソスソスソスソスpソスソスソス
ns:12662 nr:0 dw:12662 dr:5334 al:15 bm:0 lo:0 pe:0 ua:0 ap:0 ep:1 wo:f oos:0
[root@node2 ~]# cat /proc/drbdソス@ソスソスソス@node2ソスソスソスソスDRBDソスソスヤ確ソスF
version: 8.4.10-1 (api:1/proto:86-101)
GIT-hash: a4d5de01fffd7e4cde48a080e2c686f9e8cebf4c build by mockbuild@, 2017-09-15 14:23:22
0: cs:Connected ro:Primary/Secondary ds:UpToDate/UpToDate C r-----ソス@ソスソスソス@ソスソスソスzソスXソスg(node2)ソスソスソスソスソスpソス^node1ソスソスソスメ機ソスソスソス
ns:0 nr:12662 dw:12662 dr:2120 al:8 bm:0 lo:0 pe:0 ua:0 ap:0 ep:1 wo:f oos:0
[root@node2 ~]# mount /dev/drbd0 /mntソス@ソスソスソス@node2ソスソスソスソスDRBDソスfソスoソスCソスXソスソス/mntソスfソスBソスソスソスNソスgソスソスソスヨマソスEソスソスソスg
[root@node2 ~]# dfソス@ソスソスソス@node2ソスソスソスナデソスBソスXソスNソス}ソスEソスソスソスgソスソスヤ確ソスF
ソスtソス@ソスCソスソスソスVソスX 1K-ソスuソスソスソスbソスN ソスgソスp ソスgソスpソスソス ソスgソスp% ソス}ソスEソスソスソスgソスハ置
/dev/mapper/centos-root 13588480 1960972 11627508 15% /
devtmpfs 497288 0 497288 0% /dev
tmpfs 508124 39216 468908 8% /dev/shm
tmpfs 508124 6832 501292 2% /run
tmpfs 508124 0 508124 0% /sys/fs/cgroup
/dev/vda1 508588 214040 294548 43% /boot
tmpfs 101628 0 101628 0% /run/user/0
/dev/drbd0 1075128 32944 1042184 4% /mntソス@ソスソスソス@/dev/drbd0ソスソス/mntソスfソスBソスソスソスNソスgソスソスソスヨマソスEソスソスソスgソスソスソスソストゑソスソスソス
[root@node2 ~]# ll /mnt/ソス@ソスソスソス@node2ソスソスソスソス/mntソスfソスBソスソスソスNソスgソスソスソスニ会ソス
ソスソスソスv 0
-rw-r--r-- 1 root root 0 12ソスソス 19 18:36 test.txtソス@ソスソスソス@node1ソスソスソスナ作成ソスソスソスソスソスeソスXソスgソスtソス@ソスCソスソス
[root@node2 ~]# umount /mnt/ソス@ソスソスソス@node2ソスソスソスソス/mntソスfソスBソスソスソスNソスgソスソスソスAソスソスソス}ソスEソスソスソスg
[root@node2 ~]# drbdadm secondary allソス@ソスソスソス@node2ソスソスソスソスメ機ソスノ戻ゑソス
[root@node1 ~]# drbdadm primary allソス@ソスソスソス@node1ソスソスソスソスソスソスソスpソスノ戻ゑソス
[root@node1 ~]# cat /proc/drbdソス@ソスソスソス@node1ソスソスソスソスDRBDソスソスヤ確ソスF
version: 8.4.10-1 (api:1/proto:86-101)
GIT-hash: a4d5de01fffd7e4cde48a080e2c686f9e8cebf4c build by mockbuild@, 2017-09-15 14:23:22
0: cs:Connected ro:Primary/Secondary ds:UpToDate/UpToDate C r-----ソス@ソスソスソス@ソスソスソスzソスXソスg(node1)ソスソスソスソスソスpソス^node2ソスソスソスメ機ソスソスソス
ns:12662 nr:2050 dw:14713 dr:7454 al:15 bm:0 lo:0 pe:0 ua:0 ap:0 ep:1 wo:f oos:0
[root@node2 ~]# cat /proc/drbdソス@ソスソスソス@node2ソスソスソスソスDRBDソスソスヤ確ソスF
version: 8.4.10-1 (api:1/proto:86-101)
GIT-hash: a4d5de01fffd7e4cde48a080e2c686f9e8cebf4c build by mockbuild@, 2017-09-15 14:23:22
0: cs:Connected ro:Secondary/Primary ds:UpToDate/UpToDate C r-----ソス@ソスソスソス@ソスソスソスzソスXソスg(node2)ソスソスソスメ機ソス^node1ソスソスソスソスソスpソスソスソス
ns:2050 nr:12662 dw:14713 dr:3216 al:10 bm:0 lo:0 pe:0 ua:0 ap:0 ep:1 wo:f oos:0
|
|