AW: bug/error DRBD

Andreas Mock andreas.mock at drumedar.de
Mon Nov 4 16:44:39 CET 2024


Hi Alexey,

you sent this

cat /etc/drbd.d/test.res
resource test {
on redos03.ok.local {
device /dev/drbd0;
disk /dev/sdb1;
meta-disk internal;
address 192.168.88.244:7789;
}
on redos04.ok.local {
device /dev/drbd0;
disk /dev/sdb1;
meta-disk internal;
address 192.168.88.243:7789;
}
}
}

If you format test.res  in a way so that it is easy to read for a human you'll see the problem.
And you will undestand the parse error message.

Best wishes
Andreas



Von: drbd-user-bounces at lists.linbit.com <drbd-user-bounces at lists.linbit.com> Im Auftrag von Alexey Burov
Gesendet: Freitag, 1. November 2024 10:30
An: drbd-user at lists.linbit.com
Betreff: bug/error DRBD

Hello! Please help, how to fix it on RHEL system? What is problem?

Problem:
[root at redos03 drbd.d]# drbdadm create-md test
drbd.d/test.res:15: Parse error: 'global | common | resource | skip | include' expected,
        but got '}'


[root at redos03 drbd.d]# dnf search drbd
Последняя проверка окончания срока действия метаданных: 1 day, 2:19:25 назад, Чт 31 окт 2024 10:09:06.
============================================================================ Имя и Краткое описание совпадение: drbd =============================================================================
drbd.x86_64 : DRBD tools
collectd-drbd.i686 : DRBD plugin for collectd
collectd-drbd.x86_64 : DRBD plugin for collectd
drbd-bash-completion.x86_64 : Programmable bash completion support for drbdadm
drbd-bash-completion.i686 : Programmable bash completion support for drbdadm
drbd-kmod.x86_64 : LINBIT DRBD kernel module
drbd-kmod-common.noarch : Common files for drbd kernel module(s)
drbd-kmod_6.6.26-1.red80.x86_64.x86_64 : LINBIT DRBD kernel module
drbd-kmod_6.6.34-1.red80.x86_64.x86_64 : LINBIT DRBD kernel module
drbd-kmod_6.6.51-1.red80.x86_64.x86_64 : LINBIT DRBD kernel module
drbd-kmod_6.6.6-1.red80.x86_64.x86_64 : LINBIT DRBD kernel module
drbd-pacemaker.i686 : Pacemaker resource agent for DRBD
drbd-pacemaker.x86_64 : Pacemaker resource agent for DRBD
drbd-reactor.x86_64 : React to DRBD events via plugins.
drbd-reactor-bash-completion.x86_64 : Programmable bash completion support for drbd-reactorctl
drbd-selinux.x86_64 : SElinux policy for DRBD
drbd-selinux.i686 : SElinux policy for DRBD
drbd-udev.x86_64 : udev integration scripts for DRBD
drbd-udev.i686 : udev integration scripts for DRBD
drbd-utils.x86_64 : DRBD user-land tools and scripts
drbd-utils.i686 : DRBD user-land tools and scripts
drbd-xen.i686 : Xen block device management script for DRBD
drbd-xen.x86_64 : Xen block device management script for DRBD
drbdlinks.noarch : Program for managing links into a DRBD shared partition
[root at redos03 drbd.d]# dnf install drbd
Последняя проверка окончания срока действия метаданных: 1 day, 2:19:40 назад, Чт 31 окт 2024 10:09:06.
Пакет drbd-9.22.0-1.red80.x86_64 уже установлен.
Зависимости разрешены.
Отсутствуют действия для выполнения.
Выполнено!




[root at redos03 drbd.d]# cat /etc/hosts
# Loopback entries; do not change.
# For historical reasons, localhost precedes localhost.localdomain:
127.0.0.1   localhost localhost.localdomain localhost4 localhost4.localdomain4
::1         localhost localhost.localdomain localhost6 localhost6.localdomain6
192.168.88.244 redos03.ok.local redos03
192.168.88.243 redos04.ok.local redos04
# See hosts(5) for proper format and other examples:
# 192.168.1.10 foo.mydomain.org foo
# 192.168.1.13 bar.mydomain.org bar

[root at redos03 drbd.d]# cat /etc/drbd.d/global_common.conf
global {
usage-count yes;
}
common {
net {
protocol C;
}
}

[root at redos03 drbd.d]# uname -n
redos03.ok.local

[root at redos03 drbd.d]# cat /etc/drbd.d/test.res
resource test {
on redos03.ok.local {
device /dev/drbd0;
disk /dev/sdb1;
meta-disk internal;
address 192.168.88.244:7789;
}
on redos04.ok.local {
device /dev/drbd0;
disk /dev/sdb1;
meta-disk internal;
address 192.168.88.243:7789;
}
}
}

[root at redos03 drbd.d]# hostnamectl
 Static hostname: redos03.ok.local
       Icon name: min
         Chassis: vm 🖴
      Machine ID: 887b0d978898421192998808f4df0130
         Boot ID: 293803ab37574f90ba8fbf751d5d0e7b
  Virtualization: vmware
Operating System: RED OS 8.0
     CPE OS Name: cpe:/o:redos:redos:8
          Kernel: Linux 6.6.51-1.red80.x86_64
    Architecture: x86-64
 Hardware Vendor: VMware, Inc.
  Hardware Model: VMware20,1
Firmware Version: VMW201.00V.21805430.B64.2305221830
[root at redos03 drbd.d]# hostname -I
192.168.88.244

[root at redos03 drbd.d]# drbdadm create-md test
drbd.d/test.res:15: Parse error: 'global | common | resource | skip | include' expected,
        but got '}'


THANKS!

С уважением,
Alexey Burov
aoburov at mail.ru<mailto:aoburov at mail.ru>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linbit.com/pipermail/drbd-user/attachments/20241104/c15df6b2/attachment-0001.htm>


More information about the drbd-user mailing list