[root@www2 ~]# mkdir /web2
[root@www2 ~]# mount /dev/drbd0 /web2
mount: block device /dev/drbd0 is write-protected, mounting read-only
mount: Wrong medium type
从设备没有任何权限!
[root@www1 ~]# umount /web
[root@www1 ~]# drbdadm secondary web
[root@www1 ~]# cat /proc/drbd
version: 8.3.8 (api:88/proto:86-94)
GIT-hash: d78846e52224fd00562f7c225bcc25b2d422321d build by mockbuild@builder10.CentOS.org, 2010-06-04 08:04:16
0: cs:Connected ro:Secondary/Secondary ds:UpToDate/UpToDate C r----
ns:2024140 nr:0 dw:64340 dr:1959937 al:24 bm:135 lo:0 pe:0 ua:0 ap:0 ep:1 wo:b oos:0
[root@www2 ~]# drbdadm primary web
[root@www2 ~]# mount /dev/drbd0 /web2
[root@www2 ~]# ll /web2
total 20
-rw-r--r-- 1 root root 6 Oct 25 21:11 index.html
drwx------ 2 root root 16384 Oct 25 20:57 lost+found
[root@www2 ~]# cat /proc/drbd
version: 8.3.8 (api:88/proto:86-94)
GIT-hash: d78846e52224fd00562f7c225bcc25b2d422321d build by mockbuild@builder10.centos.org, 2010-06-04 08:04:16
0: cs:Connected ro:Primary/Secondary ds:UpToDate/UpToDate C r----
ns:40 nr:2024140 dw:2024180 dr:221 al:1 bm:120 lo:0 pe:0 ua:0 ap:0 ep:1 wo:b oos:0
[root@www2 ~]# cd /web2
[root@www2 web2]# touch gjp.txt
[root@www2 web2]# ll
total 20
-rw-r--r-- 1 root root 0 Oct 25 21:16 gjp.txt
-rw-r--r-- 1 root root 6 Oct 25 21:11 index.html
drwx------ 2 root root 16384 Oct 25 20:57 lost+found
