Discussion:
[drbd-mc] DRBD config
Peter Ambroz
2011-01-11 14:48:01 UTC
Permalink
Hello,

I'm using DRBD-MC 0.8.8.
It seems like some options from /etc/drbd.conf are not recognised by the
console. Furthermore, they are not included in the automaticaly
generated files after modification.
For example handlers {} section inside resource {} section is ignored.
This should be fixed either by understanding the "handlers" section, or
by including every unmanaged piece of config data back into generated
configs.

Peter
Rasto Levrinc
2011-01-11 15:16:03 UTC
Permalink
Post by Peter Ambroz
Hello,
I'm using DRBD-MC 0.8.8.
It seems like some options from /etc/drbd.conf are not recognised by the
console. Furthermore, they are not included in the automaticaly generated
files after modification. For example handlers {} section inside resource
{} section is ignored.
I couldn't reproduce this problem. My handlers section is recognized.

What version of DRBD are you using? Was the config "adjusted" with drbdadm
adjust all, after the handlers were defined in the config?

BTW, the adjust command in drbd 8.3.10rc1 doesn't work, do you have this
version?
Post by Peter Ambroz
This should be fixed either by understanding the "handlers" section, or
by including every unmanaged piece of config data back into generated
configs.
Thanks for the solution, but I don't know what is the problem yet. :)

Rasto
--
: Dipl-Ing Rastislav Levrinc
: DRBD MC http://oss.linbit.com/drbd-mc/
: DRBD MC http://www.drbd.org/mc/management-console/
: DRBD/HA support and consulting http://www.linbit.com/
DRBD(R) and LINBIT(R) are registered trademarks of LINBIT, Austria.
Peter Ambroz
2011-01-11 15:39:37 UTC
Permalink
Post by Rasto Levrinc
Post by Peter Ambroz
Hello,
I'm using DRBD-MC 0.8.8.
It seems like some options from /etc/drbd.conf are not recognised by the
console. Furthermore, they are not included in the automaticaly generated
files after modification. For example handlers {} section inside resource
{} section is ignored.
I couldn't reproduce this problem. My handlers section is recognized.
What version of DRBD are you using? Was the config "adjusted" with drbdadm
adjust all, after the handlers were defined in the config?
BTW, the adjust command in drbd 8.3.10rc1 doesn't work, do you have this
version?
Post by Peter Ambroz
This should be fixed either by understanding the "handlers" section, or
by including every unmanaged piece of config data back into generated
configs.
Thanks for the solution, but I don't know what is the problem yet. :)
Rasto
DRBD-MC version: 0.8.8 (jar)
DRBD kernel version: 8.3.8.1
DRBD userspace utils: 8.3.8.1

Steps to reproduce the problem at my cluster:
- Edit /etc/drbd.conf, on both machines add section:
handlers {
fence-peer "/usr/lib/drbd/crm-fence-peer.sh";
after-resync-target "/usr/lib/drbd/crm-unfence-peer.sh";
}
inside the resource section

- run 'drbdadm adjust all' on both machines
- start DRBD-MC on local desktop, connect to cluster
- operating mode: Administrator, Advanced
- at this point, the config is still there intact, but DRBD-MC doesn't
show any handlers section. only resource, net, disk, syncer
- make changes to any part of drbd config through MC (in my case,
checking the "Use rle" option for syncer)
- apply, and watch my config files being overwritten with new config,
now without the handlers section at all

Peter
Rasto Levrinc
2011-01-11 15:57:17 UTC
Permalink
Post by Peter Ambroz
DRBD-MC version: 0.8.8 (jar)
DRBD kernel version: 8.3.8.1
DRBD userspace utils: 8.3.8.1
Same here...
Post by Peter Ambroz
handlers { fence-peer "/usr/lib/drbd/crm-fence-peer.sh";
after-resync-target
Post by Peter Ambroz
"/usr/lib/drbd/crm-unfence-peer.sh";
}
inside the resource section
- run 'drbdadm adjust all' on both machines
- start DRBD-MC on local desktop, connect to cluster
- operating mode: Administrator, Advanced
- at this point, the config is still there intact, but DRBD-MC doesn't
show any handlers section. only resource, net, disk, syncer - make changes
The DRBD MC parses the DRBD man page to get all the options. It looks into
/usr/share/man/man5/drbd.conf.5.gz or /usr/share/man/man5/drbd.conf.5
I suspect you don't have it.

Can you check if you have one of these files or find out where they are?
What distro is it, and how did you install the DRBD?

Thanks,

Rasto
--
: Dipl-Ing Rastislav Levrinc
: DRBD MC http://oss.linbit.com/drbd-mc/
: DRBD MC http://www.drbd.org/mc/management-console/
: DRBD/HA support and consulting http://www.linbit.com/
DRBD(R) and LINBIT(R) are registered trademarks of LINBIT, Austria.
Peter Ambroz
2011-01-11 16:05:16 UTC
Permalink
Post by Rasto Levrinc
Post by Peter Ambroz
DRBD-MC version: 0.8.8 (jar)
DRBD kernel version: 8.3.8.1
DRBD userspace utils: 8.3.8.1
Same here...
Post by Peter Ambroz
handlers { fence-peer "/usr/lib/drbd/crm-fence-peer.sh";
after-resync-target
Post by Peter Ambroz
"/usr/lib/drbd/crm-unfence-peer.sh";
}
inside the resource section
- run 'drbdadm adjust all' on both machines
- start DRBD-MC on local desktop, connect to cluster
- operating mode: Administrator, Advanced
- at this point, the config is still there intact, but DRBD-MC doesn't
show any handlers section. only resource, net, disk, syncer - make changes
The DRBD MC parses the DRBD man page to get all the options. It looks into
/usr/share/man/man5/drbd.conf.5.gz or /usr/share/man/man5/drbd.conf.5
I suspect you don't have it.
Can you check if you have one of these files or find out where they are?
What distro is it, and how did you install the DRBD?
Thanks,
Rasto
Well, wow, didn't even think about parsing the man page :)
DRBD was installed using emerge, on gentoo distro.
There is only /usr/share/man/man5/drbd.conf.5.bz2
Maybe that is the problem.

The other consideration: Does it look for man page on one of remote
servers? Because if it looked on the local machine, running the MC, it
possibly could find nothing, because I'm not supposed to have DRBD on
desktop machine. (In this case, I do have).
Peter Ambroz
2011-01-11 16:11:56 UTC
Permalink
Post by Peter Ambroz
Post by Rasto Levrinc
The DRBD MC parses the DRBD man page to get all the options. It looks into
/usr/share/man/man5/drbd.conf.5.gz or /usr/share/man/man5/drbd.conf.5
I suspect you don't have it.
Can you check if you have one of these files or find out where they are?
What distro is it, and how did you install the DRBD?
Thanks,
Rasto
Well, wow, didn't even think about parsing the man page :)
DRBD was installed using emerge, on gentoo distro.
There is only /usr/share/man/man5/drbd.conf.5.bz2
Maybe that is the problem.
The other consideration: Does it look for man page on one of remote
servers? Because if it looked on the local machine, running the MC, it
possibly could find nothing, because I'm not supposed to have DRBD on
desktop machine. (In this case, I do have).
_______________________________________________
drbd-mc mailing list
drbd-mc at lists.linbit.com
http://lists.linbit.com/mailman/listinfo/drbd-mc
OK, this solved my problem!
I created the drbd.conf.5.gz also, and the handlers section is now
recognized. Thanks.

It would be nice to have MC use also the bz2 version of manpages, I
think it is now standard on gentoo, at least, my machines are fresh
installs, few days ago.

Peter
Rasto Levrinc
2011-01-11 16:30:38 UTC
Permalink
Post by Peter Ambroz
Well, wow, didn't even think about parsing the man page :)
There's such thing as having-no-choice. :)
Post by Peter Ambroz
DRBD was installed using emerge, on gentoo distro.
There is only /usr/share/man/man5/drbd.conf.5.bz2
Maybe that is the problem.
Yep. I've fixed that now for gentoo, so check out the next version.

Now you can do: bzcat drbd.conf.5.bz2 |gzip > drbd.conf.5.gz
in /usr/share/man/man5/ directory and it will start to work.
Post by Peter Ambroz
The other consideration: Does it look for man page on one of remote
servers? Because if it looked on the local machine, running the MC, it
possibly could find nothing, because I'm not supposed to have DRBD on
desktop machine. (In this case, I do have).
On the remote servers, so that the options match the installed drbd.

Thanks,

Rasto
--
: Dipl-Ing Rastislav Levrinc
: DRBD MC http://oss.linbit.com/drbd-mc/
: DRBD/HA support and consulting http://www.linbit.com/
DRBD(R) and LINBIT(R) are registered trademarks of LINBIT, Austria.
Loading...