在创建DRBD元数据的过程中出现以下警告信息

WARN:

  You are using the 'drbd-peer-outdater' as fence-peer program.

  If you use that mechanism the dopd heartbeat plugin program needs

  to be able to call drbdsetup and drbdmeta with root privileges.


  You need to fix this with these commands:

  chgrp haclient /sbin/drbdsetup

  chmod o-x /sbin/drbdsetup

  chmod u+s /sbin/drbdsetup


  chgrp haclient /sbin/drbdmeta

  chmod o-x /sbin/drbdmeta

  chmod u+s /sbin/drbdmeta


md_offset 53687087104

al_offset 53687054336

bm_offset 53685415936


Found ext3 filesystem

    52428800 kB data area apparently used

    52427164 kB left usable by current configuration


Device size would be truncated, which

would corrupt data and result in

'access beyond end of device' errors.

You need to either

   * use external meta data (recommended)

   * shrink that filesystem first

   * zero out the device (destroy the filesystem)

Operation refused.


Command 'drbdmeta 0 v08 /dev/mapper/domuvg-mysql internal create-md' terminated with exit code 40

drbdadm create-md r0: exited with code 40


检查配置文件中设定有如下一行

 fence-peer "/usr/lib64/heartbeat/drbd-peer-outdater -t 5";

这里是通过Heartbeat自带的drbd-peer-outdater程序,按照上面的警告信息操作就行

sudo chgrp haclient /sbin/drbdsetup 

sudo chmod o-x /sbin/drbdsetup 

sudo chmod u+s /sbin/drbdsetup 

sudo chgrp haclient /sbin/drbdmeta 

sudo chmod o-x /sbin/drbdmeta 


sudo chmod u+x  /sbin/drbdmeta



创建DRBD元数据成功后将显示如下信息:

Writing meta data...

initializing activity log

NOT initialized bitmap

New drbd meta data block successfully created.