Discussion:
[drbd-mc] DRBD MC 0.9.2 upstart jobs - symbolic links
Michael Liebl
2011-05-12 09:08:24 UTC
Permalink
Hello!

While trying DRBD MC for the first time (Looks great btw) I discovered
a little ambiguity.

In the LSB section every "real" init script is listed, but those
symlinks to upstart (or any linked?) jobs aren't. This behaviour is
different to what crm shows me. Using "crm ra list lsb" I get a list of
every script (linked or not). Also configuring HA with crm I can use
these scripts (and it works of course).

Is there a chance to get DRBD MC working with this linked scripts too?

I am using Ubuntu/lucid 10.04 x86 with heartbeat 3.0.3 and pacemaker
1.0.8.

Thank you!
--
<) .--.
)#=+ '
/## | .+. Liebe Gr?sse,
,,/###,|,,,,,,|,,,, Micha
Rasto Levrinc
2011-05-12 15:03:10 UTC
Permalink
Post by Michael Liebl
Hello!
While trying DRBD MC for the first time (Looks great btw) I discovered
a little ambiguity.
In the LSB section every "real" init script is listed, but those
symlinks to upstart (or any linked?) jobs aren't. This behaviour is
different to what crm shows me. Using "crm ra list lsb" I get a list of
every script (linked or not). Also configuring HA with crm I can use these
scripts (and it works of course).
Is there a chance to get DRBD MC working with this linked scripts too?
Yes, thanks for catching that.

As a workaround for now you can change this line
for (`find $dir -perm -u=x -type f -printf "%f\n"`) {
+ for (`find $dir -perm -u=x -xtype f -printf "%f\n"`) {

in /usr/local/bin/drbd-gui-helper-VERSION on all nodes
Post by Michael Liebl
I am using Ubuntu/lucid 10.04 x86 with heartbeat 3.0.3 and pacemaker
1.0.8.
Thank you!
--
<) .--.
)#=+ '
/## | .+. Liebe Gr??sse,
,,/###,|,,,,,,|,,,, Micha
_______________________________________________
drbd-mc mailing list drbd-mc at lists.linbit.com
http://lists.linbit.com/mailman/listinfo/drbd-mc
--
: 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.
Rasto Levrinc
2011-05-12 15:07:46 UTC
Permalink
Post by Michael Liebl
Hello!
While trying DRBD MC for the first time (Looks great btw) I discovered
a little ambiguity.
In the LSB section every "real" init script is listed, but those
symlinks to upstart (or any linked?) jobs aren't. This behaviour is
different to what crm shows me. Using "crm ra list lsb" I get a list of
every script (linked or not). Also configuring HA with crm I can use these
scripts (and it works of course).
Is there a chance to get DRBD MC working with this linked scripts too?
Previous answer was sent, before I was done so one more time:

Yes, thanks for catching that.
As a workaround for now you can change this line

for (`find $dir -perm -u=x -type f -printf "%f\n"`) {

to

for (`find $dir -perm -u=x -xtype f -printf "%f\n"`) {

in /usr/local/bin/drbd-gui-helper-VERSION on all nodes and start DRBD MC
with --keep-helper option so that you changes are not overwritten.

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.
Michael Liebl
2011-05-13 06:08:46 UTC
Permalink
Post by Rasto Levrinc
As a workaround for now you can change this line
for (`find $dir -perm -u=x -xtype f -printf "%f\n"`) {
in /usr/local/bin/drbd-gui-helper-VERSION on all nodes and start DRBD
MC with --keep-helper option so that you changes are not overwritten.
Hello Rasto!

Good to hear that this can be fixed!
I am using the pre-compiled jar file, but changing within ends in wrong
SHA1 Digest. The compile with ant ends up in compiler errors.
So ATM I'm not able to test this, sorry. :-)
--
<) .--.
)#=+ '
/## | .+. Liebe Gr?sse,
,,/###,|,,,,,,|,,,, Michael
Michael Liebl
2011-05-13 06:39:21 UTC
Permalink
Post by Michael Liebl
I am using the pre-compiled jar file, but changing within ends in
wrong SHA1 Digest. The compile with ant ends up in compiler errors.
Ok, after changing the file ON the node (thanks Caspar) this works for
me now.

Thank you!
--
<) .--.
)#=+ '
/## | .+. Liebe Gr?sse,
,,/###,|,,,,,,|,,,, Michael
Caspar Smit
2011-05-13 06:39:48 UTC
Permalink
Rasto, sorry, forgot to include the list on reply, so everyone can read.

Michael,

You don't need to change/compile the DRBD-MC jar for this.

The drbd-gui-helper-VERSION is a script that is copied to the nodes when
adding the nodes to DRBD-MC

The file is ON the nodes in /usr/local/bin

Edit the file there.

Then start the JAR with the option --keep-helper
Met vriendelijke groet,

Caspar Smit
Systemengineer
True Bit Resources B.V.
Amp?restraat 13E
1446 TP Purmerend

T: +31(0)299 410 475
F: +31(0)299 410 476
@: c.smit at truebit.nl
W: www.truebit.nl



2011/5/13 Michael Liebl <michael.liebl.antispam at googlemail.com>
Post by Michael Liebl
Post by Rasto Levrinc
As a workaround for now you can change this line
for (`find $dir -perm -u=x -xtype f -printf "%f\n"`) {
in /usr/local/bin/drbd-gui-helper-VERSION on all nodes and start DRBD
MC with --keep-helper option so that you changes are not overwritten.
Hello Rasto!
Good to hear that this can be fixed!
I am using the pre-compiled jar file, but changing within ends in wrong
SHA1 Digest. The compile with ant ends up in compiler errors.
So ATM I'm not able to test this, sorry. :-)
--
<) .--.
)#=+ '
/## | .+. Liebe Gr?sse,
,,/###,|,,,,,,|,,,, Michael
_______________________________________________
drbd-mc mailing list
drbd-mc at lists.linbit.com
http://lists.linbit.com/mailman/listinfo/drbd-mc
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linbit.com/pipermail/drbd-mc/attachments/20110513/57ca4dec/attachment.htm>
Loading...