virt1:~# cat /proc/drbd
version: 8.3.2 (api:88/proto:86-90)
GIT-hash: dd7985327f146f33b86d4bff5ca8c94234ce840e build by root@oahu, 2009-11-17 09:36:06
0: cs:Connected ro:Primary/Primary ds:UpToDate/UpToDate C r----
ns:104854368 nr:0 dw:4 dr:105179620 al:1 bm:6400 lo:0 pe:0 ua:0 ap:0 ep:1 wo:b oos:0
---
virt2:~# cat /proc/drbd
version: 8.3.2 (api:88/proto:86-90)
GIT-hash: dd7985327f146f33b86d4bff5ca8c94234ce840e build by root@oahu, 2009-11-17 09:36:06
0: cs:Connected ro:Primary/Primary ds:UpToDate/UpToDate C r----
ns:0 nr:0 dw:0 dr:268 al:0 bm:0 lo:0 pe:0 ua:0 ap:0 ep:1 wo:b oos:0
---
virt1:~# fdisk -l /dev/drbd0
Disk /dev/drbd0: 107.3 GB, 107370868736 bytes
255 heads, 63 sectors/track, 13053 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x00000000
Device Boot Start End Blocks Id System
/dev/drbd0p1 1 1245 10000431 83 Linux
-------------------------------------------------------------------------------------------
virt2:~# /etc/init.d/drbd stop
Stopping all DRBD resources:.
-------------------------------------------------------------------------------------------
virt1:~# cat /proc/drbd
version: 8.3.2 (api:88/proto:86-90)
GIT-hash: dd7985327f146f33b86d4bff5ca8c94234ce840e build by root@oahu, 2009-11-17 09:36:06
0: cs:WFConnection ro:Primary/Unknown ds:UpToDate/DUnknown C r----
ns:104854368 nr:0 dw:8 dr:105179860 al:1 bm:6400 lo:0 pe:0 ua:0 ap:0 ep:1 wo:b oos:4
---
(change partition table by cfdisk and check)
virt1:~# fdisk -l /dev/drbd0
Disk /dev/drbd0: 107.3 GB, 107370868736 bytes
255 heads, 63 sectors/track, 13053 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x00000000
Device Boot Start End Blocks Id System
/dev/drbd0p1 1 498 4000153+ 83 Linux
-------------------------------------------------------------------------------------------
virt1:~# /etc/init.d/drbd stop
Stopping all DRBD resources:.
-------------------------------------------------------------------------------------------
virt2:~# /etc/init.d/drbd start
Starting DRBD resources:DRBD module version: 8.3.2
[ d(r0) s(r0) n(r0) ]DRBD module version: 8.3.2
DRBD module version: 8.3.2
..........
***************************************************************
DRBD's startup script waits for the peer node(s) to appear.
- In case this node was already a degraded cluster before the
reboot the timeout is 60 seconds. [degr-wfc-timeout]
- If the peer was available before the reboot the timeout will
expire after 15 seconds. [wfc-timeout]
(These values are for resource 'r0'; 0 sec -> wait forever)
To abort waiting enter 'yes' [ 15]:
.
---
virt2:~# cat /proc/drbd
version: 8.3.2 (api:88/proto:86-90)
GIT-hash: dd7985327f146f33b86d4bff5ca8c94234ce840e build by root@oahu, 2009-11-17 09:36:06
0: cs:WFConnection ro:Primary/Unknown ds:UpToDate/DUnknown C r----
ns:0 nr:0 dw:0 dr:268 al:0 bm:0 lo:0 pe:0 ua:0 ap:0 ep:1 wo:b oos:0
-------------------------------------------------------------------------------------------
virt1:~# /etc/init.d/drbd start
Starting DRBD resources:DRBD module version: 8.3.2
[ d(r0) s(r0) n(r0) ]DRBD module version: 8.3.2
DRBD module version: 8.3.2
.
---
virt1:~# cat /proc/drbd
version: 8.3.2 (api:88/proto:86-90)
GIT-hash: dd7985327f146f33b86d4bff5ca8c94234ce840e build by root@oahu, 2009-11-17 09:36:06
0: cs:Connected ro:Primary/Primary ds:UpToDate/UpToDate C r----
ns:0 nr:4 dw:4 dr:264 al:0 bm:1 lo:0 pe:0 ua:0 ap:0 ep:1 wo:b oos:0
-------------------------------------------------------------------------------------------
virt1:~# fdisk -l /dev/drbd0
Disk /dev/drbd0: 107.3 GB, 107370868736 bytes
255 heads, 63 sectors/track, 13053 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x00000000
Device Boot Start End Blocks Id System
/dev/drbd0p1 1 1245 10000431 83 Linux
---
virt2:~# fdisk -l /dev/drbd0
Disk /dev/drbd0: 107.3 GB, 107370868736 bytes
255 heads, 63 sectors/track, 13053 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x00000000
Device Boot Start End Blocks Id System
/dev/drbd0p1 1 1245 10000431 83 Linux