删除DRBD meta data数据:
[root@node110 /]# drbdadm wipe-md data
Do you really want to wipe out the DRBD meta data?
[need to type 'yes' to confirm] yes
Wiping meta data...
DRBD meta data block successfully wiped out.
重新初始化meta data数据:
[root@node110 /]# drbdadm create-md data
Writing meta data...
md_offset 0
al_offset 4096
bm_offset 36864
Found some data
==> This mightdestroy existing data! <==
Do you want to proceed?
[need to type 'yes' to confirm] yes
initializing activity log
NOT initializing bitmap
New drbd meta data block successfullycreated.
导出META DATA
[root@node110 drbd]# drbdadm detach data
[root@node110 drbd]# drbdadm apply-al data
Marked additional 12 MB as out-of-sync based on AL.
[root@node110 drbd]# drbdadm dump-md data
# DRBD meta data dump
# 2016-11-28 16:01:59 +0800 [1480320119]
# node110> drbdmeta 0 v08 /dev/sdb2 0 dump-md
#
version "v08";
# md_size_sect 262144
# md_offset 0
# al_offset 4096
# bm_offset 36864
uuid {
0x8CCE6BC774432CC9; 0x0000000000000000; 0xBECB823AD45CF295; 0xBECA823AD45CF295;
flags 0x00000097;
}
# al-extents 1237;
la-size-sect 19531217;
bm-byte-per-bit 4096;
device-uuid 0x8DA0236BDD3FB166;
la-peer-max-bio-size 1048576;
# bm-bytes 305176;
bm {
# at 0kB
16 times 0xFFFFFFFFFFFFFFFF;
112 times 0x0000000000000000;
# at 32768kB
16 times 0xFFFFFFFFFFFFFFFF;
16752 times 0x0000000000000000;
# at 4325376kB
16 times 0xFFFFFFFFFFFFFFFF;
21296 times 0x0000000000000000;
}
# bits-set 3072;