Skip to contentSkip to conversation

pending clvmd patches

DISCUSSION Ferenc Wágner 3 participants 5 messages Nov 22, 2016

lore
Share & tools
lore
#0 lore raw

Hi,

Last year there were (at least) two clvmd patches sent to this list which haven't received any review or comment:

clvmd: send readiness notification to systemd
(https://www.redhat.com/archives/lvm-devel/2015-October/msg00080.html)

and

clvmd: fix memory corruption
(https://www.redhat.com/archives/lvm-devel/2015-December/msg00056.html)

Both apply cleanly to current master. As I depend on clvmd in some setups, I'd be grateful to hear some upstream comments about these.

Signature · 2 lines
Thanks,
Feri
#1 lore raw

Dne 22.11.2016 v 10:27 Ferenc W?gner napsal(a):

Quoted 5 lines

Hi,

Last year there were (at least) two clvmd patches sent to this list which haven't received any review or comment:

Hi

Here are my comments:

Quoted 2 lines

clvmd: send readiness notification to systemd
(https://www.redhat.com/archives/lvm-devel/2015-October/msg00080.html)

I think on RHEL products the clmvd is controlled by pacemaker now, thus activation of clvmd is not handled/maintained by systemd at all. It's also quite nontrivial since automatic restarts in case of crashes might not be 'wanted'

It's also unclear about which timeout is this trying to resolve, normally clvmd is not linked with with systemd.

Could you more closely describe the workflow progress you try to resolved. And if it would be really needed - extra configure option likely would be useful to control 'linkage' with systemd library.

Quoted 8 lines

and

clvmd: fix memory corruption
(https://www.redhat.com/archives/lvm-devel/2015-December/msg00056.html)

Both apply cleanly to current master. As I depend on clvmd in some setups, I'd be grateful to hear some upstream comments about these.

Hmm, could you please provide the actual 'valgrind' report?

If there is a design flow it should likely be addressed on locking level. Cleanup zombie was introduced to not touch memory in-use. So adding 'extra' dm_list looks like hiding some other bug on the first sight.

Regards

Zdenek

#2 lore raw
Quoted 6 lines · Zdenek Kabelac

Dne 22.11.2016 v 10:27 Ferenc W?gner napsal(a):

Quoted 2 lines

Last year there were (at least) two clvmd patches sent to this list which haven't received any review or comment:

Here are my comments:

Thanks for the prompt and through reply, much appreciated!

Quoted 5 lines
Quoted 2 lines

clvmd: send readiness notification to systemd
(https://www.redhat.com/archives/lvm-devel/2015-October/msg00080.html)

I think on RHEL products the clmvd is controlled by pacemaker now, thus activation of clvmd is not handled/maintained by systemd at all.

On RHEL 7 the supported configuration is indeed starting clvmd via an appropriate resource agent. I really wonder what's behind this recommendation, and why lvm2_cluster_activation_systemd_red_hat.service requires lvm2_clvmd regardless.

Quoted 2 lines

It's also quite nontrivial since automatic restarts in case of crashes might not be 'wanted'

Well, that's exactly what the resource agent would do in such cases, only with the added monitoring delay (over systemd). Both are easy to reconfigure if needed. In what circumstances is restarting a crashed clvmd not wanted?

Quoted 1 line

It's also unclear about which timeout is this trying to resolve,

I meant the start timeout (specified via -T) inside clvmd and the TimeoutStartSec setting in the service file. Both are 30 seconds in the service file, which is a perfect race in itself and an arbitrary choice. Using Type=notify simplifies many things (for example there's no need for a PID file) enables disabling TimeoutStartSec (which is missing from my patch, but forcibly killing clvmd usually means leaving behind abandoned lock spaces requiring reboot to clean up) and gives systemd correct feedback about the daemon status.

Quoted 1 line

normally clvmd is not linked with with systemd.

More precisely, libsystemd. It shouldn't cause any problems, but the notify function is simple to implement in-house if absolutely necessary. (It used to be distrubuted in an additional .c file in the beginning.)

Quoted 1 line

Could you more closely describe the workflow progress you try to resolved.

In short, I'd like to make the resource manager optional in GFS2 setups. This requires dependable ordering between the participating systemd units (corosync, dlm and clvmd), and the simplifications enabled by Type=notify come very useful for this.

Quoted 2 lines

And if it would be really needed - extra configure option likely would be useful to control 'linkage' with systemd library.

That's no problem, just specify the required semantics. Currently libsystemd presence is detected automatically during configuration. The systemd service file also depends on this functionality (as illustrated in my patch), so this must be handled as well.

Quoted 4 lines
Quoted 2 lines

clvmd: fix memory corruption
(https://www.redhat.com/archives/lvm-devel/2015-December/msg00056.html)

Hmm, could you please provide the actual 'valgrind' report?

Unfortunately no, I'm not affiliated with this patch and report. Shall I resend your query to Andrew Elble <[email protected]>?

Signature · 2 lines
Thanks,
Feri
#3 lore raw
Quoted 7 lines
Quoted 4 lines
Quoted 2 lines

clvmd: fix memory corruption
(https://www.redhat.com/archives/lvm-devel/2015-December/msg00056.html)

Hmm, could you please provide the actual 'valgrind' report?

Unfortunately no, I'm not affiliated with this patch and report. Shall I resend your query to Andrew Elble <[email protected]>?

I'm here, it will take me some time to re-dig up the details on this.

Thanks,

Andy

Signature · 5 lines
Andrew W. Elble
aweits at discipline.rit.edu
Infrastructure Engineer, Communications Technical Lead
Rochester Institute of Technology
PGP: BFAD 8461 4CCF DC95 DA2C B0EB 965B 082E 863E C912
#4 lore raw

Dne 22.11.2016 v 16:51 Andrew W Elble napsal(a):

Quoted 10 lines
Quoted 7 lines
Quoted 4 lines
Quoted 2 lines

clvmd: fix memory corruption
(https://www.redhat.com/archives/lvm-devel/2015-December/msg00056.html)

Hmm, could you please provide the actual 'valgrind' report?

Unfortunately no, I'm not affiliated with this patch and report. Shall I resend your query to Andrew Elble <[email protected]>?

I'm here, it will take me some time to re-dig up the details on this.

Hi

If you will be redoing it - please do use build with --enable-valgrind-pool (so the memory is better traced for internal memory pools)

And valgrind is executed with options:

--leak-check=full --track-origins=yes

Thanks

Zdenek