root-shell> drbdadm –c /etc/drbd.conf create-md all
2.使用2.8.3.6之后的版本源码安装的时候需要进行configure操作。
./configure –prefix=/opt/drbd –with-km
3.在/etc/drbd.conf配置文件中,on模块后面的必须是对应主机的主机名,否则可能会提示“ ‘r0′ ignored, since this host (mysql-229) is not mentioned with an ‘on’ keyword. ”,其中“ro”为定义的资源名,“mysql-229”为主机名。
4.mount提示错误”mount: block device /dev/drbd0 is write-protected, mounting read-only mount: Wrong medium type“,是因为mount只能在Primary一端使用。
5.同4,在执行“mkfs.ext3 /dev/drbd0”的时候,可能提示错误“mkfs.ext3: Wrong medium type while trying to determine filesystem size”。
Found ext3 filesystem which uses 19816176 kB
current configuration leaves usable 19815532 kB
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.