Mailing List Archive

Parse error: 'an option keyword' expected but got 'fencing'
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@nfs01:~# sudo drbdadm create-md -vd r0
drbd.d/autofe_nfs_drbd.res:4: Parse error: 'an option keyword' expected,
        but got 'fencing'

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

_______________________________________________
Star us on GITHUB: https://github.com/LINBIT
drbd-user mailing list
drbd-user@lists.linbit.com
https://lists.linbit.com/mailman/listinfo/drbd-user
Re: Parse error: 'an option keyword' expected but got 'fencing' [ In reply to ]
On Tue, Mar 30, 2021 at 11:10:24PM +0100, Djerk Geurts wrote:
> 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

and the kernel module? cat /proc/drbd

Regards, rck
_______________________________________________
Star us on GITHUB: https://github.com/LINBIT
drbd-user mailing list
drbd-user@lists.linbit.com
https://lists.linbit.com/mailman/listinfo/drbd-user
Re: Parse error: 'an option keyword' expected but got 'fencing' [ In reply to ]
On 01/04/2021 07:43, Roland Kammerer wrote:
> On Tue, Mar 30, 2021 at 11:10:24PM +0100, Djerk Geurts wrote:
>> 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
> and the kernel module? cat /proc/drbd

You're likely on to something here. I thought the drbd version was v9
but this reports v8.4.11...

user@nfs01:~# cat /proc/drbd
version: 8.4.11 (api:1/proto:86-101)
srcversion: FC3433D849E3B88C1E7B55C

_______________________________________________
Star us on GITHUB: https://github.com/LINBIT
drbd-user mailing list
drbd-user@lists.linbit.com
https://lists.linbit.com/mailman/listinfo/drbd-user
Re: Parse error: 'an option keyword' expected but got 'fencing' [ In reply to ]
On 01/04/2021 07:43, Roland Kammerer wrote:
> On Tue, Mar 30, 2021 at 11:10:24PM +0100, Djerk Geurts wrote:
>> 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
> and the kernel module? cat /proc/drbd
>
> Regards, rck

And that's me trying to cut corners then...

sudo apt install drbd-dkms
sudo reboot #for good measure

sudo modprobe drbd

user@nfs01:~# sudo drbdadm create-md r0
initializing activity log
initializing bitmap (3200 KB) to all zero
Writing meta data...
New drbd meta data block successfully created.

_______________________________________________
Star us on GITHUB: https://github.com/LINBIT
drbd-user mailing list
drbd-user@lists.linbit.com
https://lists.linbit.com/mailman/listinfo/drbd-user