[DRBD-user] Parse error: 'an option keyword' expected but got 'fencing'

Djerk Geurts djerkg at gmail.com
Wed Mar 31 00:10:24 CEST 2021


Hi all,

New to DRBD9, so reading a much as I can. But stumped on the following, 
what on earth am I missing?!

Common config is default, Ubuntu 20.04 LTS. DRBD from standard repo. 
drbdadm version 9.16.0

Resource file:

resource r0 {
         net {
                 protocol C;
                 fencing resource-only;
         }
         disk {
                 resync-rate 50M;
         }
         handlers {
                 fence-peer "/usr/lib/drbd/crm-fence-peer.9.sh";
                 unfence-peer "/usr/lib/drbd/crm-unfence-peer.9.sh";
         }
         on nfs01 {
                 device    /dev/drbd0;
                 disk      /dev/NFS-vg/NFS-lv;
                 meta-disk internal;
                 address   192.168.0.13:7789;
         }
         on nfs02 {
                 device    /dev/drbd0;
                 disk      /dev/NFS-vg/NFS-lv;
                 meta-disk internal;
                 address   192.168.0.14:7789;
         }
}

user at nfs01:~# sudo drbdadm create-md -vd r0
drbd.d/autofe_nfs_drbd.res:4: Parse error: 'an option keyword' expected,
         but got 'fencing'

user at nfs01:~# sudo lsmod | grep drbd
drbd                  389120  0
lru_cache              16384  1 drbd
libcrc32c              16384  3 btrfs,drbd,raid456



More information about the drbd-user mailing list