解决 drbdadm create-md ha exited with coolcode 40

站长在使用drbd的时候,执行drbdadm create-md ha 时出现:

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/hdb1 internal create-md' terminated with exit coolcode 40
 drbdadm create-md ha: exited with coolcode 40

解决办法是:

dd if=/dev/zero of=/dev/hdb1 bs=1M count=100

然后重新执行drbdadm create-md ha就可以顺利通过了.

本文为原创文章,转载请注明出处。

原文链接:https://850406.xyz/post/解决-drbdadm-create-md-ha-exited-with-coolcode-40

评论(0)

还没有评论,来抢沙发吧~

验证码