Skip to contentSkip to conversation

crm_attribute --quiet (was Fwd: [Linux-HA] Should This Worry Me?)

Drbd-dev Florian Haas 4 participants 8 messages Nov 13, 2011 – Nov 14, 2011 DRBD driver

lore
Share & tools
lore
#0 lore raw

Lars/Andrew,

While Eric is evidently on a DRBD version whose ocf:linbit:drbd does not invoke crm_attribute with the flag to suppress logging, I'm mildly confused as to what the correct flag actually is. ocf:linbit:drbd (in both 8.3 and 8.4) uses "-Q" whereas Pacemaker expects "-q" as of this commit:

commit c11ce5e9b0b13ead02b5fc4add928d7e7f95092e

Author: Andrew Beekhof <[email protected]>
Date:   Tue Sep 22 17:29:38 2009 +0200

Medium: Tools: Use -q as the short form for --quiet (for consistency)

Mercurial revision: 7289e661e4923beee4b7b45bc85592564ccdc438

Should ocf:linbit:drbd be using "-q"?

Cheers,
Florian

-------- Original Message --------
Subject: [Linux-HA] Should This Worry Me?
Date: Sat, 12 Nov 2011 18:02:51 -0800
From: Robinson, Eric <[email protected]>
Reply-To: General Linux-HA mailing list <[email protected]>
To: <[email protected]>

Should I be concerned that the standby node of a 2-node cluster is logging these messages about every 15 seconds? This cluster has been up and running apparently fine for a year.

Nov 12 17:53:59 ha05 crm_attribute: [2420]: info: Invoked: crm_attribute
-N ha05.mycharts.md -n master-p_DRBD:1 -l reboot -v 100
Nov 12 17:54:14 ha05 crm_attribute: [2455]: info: Invoked: crm_attribute
-N ha05.mycharts.md -n master-p_DRBD:1 -l reboot -v 100
Nov 12 17:54:29 ha05 crm_attribute: [2482]: info: Invoked: crm_attribute
-N ha05.mycharts.md -n master-p_DRBD:1 -l reboot -v 100
Nov 12 17:54:44 ha05 crm_attribute: [2510]: info: Invoked: crm_attribute
-N ha05.mycharts.md -n master-p_DRBD:1 -l reboot -v 100
Nov 12 17:54:59 ha05 crm_attribute: [2537]: info: Invoked: crm_attribute
-N ha05.mycharts.md -n master-p_DRBD:1 -l reboot -v 100
Nov 12 17:55:14 ha05 crm_attribute: [2574]: info: Invoked: crm_attribute
-N ha05.mycharts.md -n master-p_DRBD:1 -l reboot -v 100
Nov 12 17:55:29 ha05 crm_attribute: [2603]: info: Invoked: crm_attribute
-N ha05.mycharts.md -n master-p_DRBD:1 -l reboot -v 100
Nov 12 17:55:44 ha05 crm_attribute: [2633]: info: Invoked: crm_attribute

-N ha05.mycharts.md -n master-p_DRBD:1 -l reboot -v 100

--
Eric Robinson

#1 lore raw
Quoted 9 lines

Lars/Andrew,

While Eric is evidently on a DRBD version whose ocf:linbit:drbd does not invoke crm_attribute with the flag to suppress logging, I'm mildly confused as to what the correct flag actually is. ocf:linbit:drbd (in both 8.3 and 8.4) uses "-Q" whereas Pacemaker expects "-q" as of this commit:

FYI, this particular cluster is running DRBD 8.3.2.

--Eric

Disclaimer - November 13, 2011
This email and any files transmitted with it are confidential and intended solely for Florian Haas,[email protected],The Pacemaker cluster resource manager. If you are not the named addressee you should not disseminate, distribute, copy or alter this email. Any views or opinions presented in this email are solely those of the author and might not represent those of Physicians' Managed Care or Physician Select Management. Warning: Although Physicians' Managed Care or Physician Select Management has taken reasonable precautions to ensure no viruses are present in this email, the company cannot accept responsibility for any loss or damage arising from the use of this email or attachments. This disclaimer was added by Policy Patrol: http://www.policypatrol.com/

#2 lore raw
Quoted 1 line · Eric

FYI, this particular cluster is running DRBD 8.3.2.

Right, and this changeset:

commit e71e95975f2c4231a240ad856a5ac37d65685061

Author: Florian Haas <[email protected]>
Date:   Fri Sep 18 15:18:31 2009 +0200

OCF RA: use crm_master in quiet mode in set_master_score()

... was committed during the 8.3.3 development cycle. So the fact that you are getting this message (which is benign, though admittedly annoying) is expected in your version.

What I'm wondering is merely whether the -Q flag is still correct.

Cheers,
Florian

Signature · 2 lines
Need help with High Availability?
http://www.hastexo.com/now
#3 lore raw
Quoted 5 lines

... was committed during the 8.3.3 development cycle. So the fact that you are getting this message (which is benign, though admittedly
annoying) is expected in your version.

Fair enough. I was only concerned because of that --reboot switch in there.

--Eric

Disclaimer - November 13, 2011
This email and any files transmitted with it are confidential and intended solely for Florian Haas,[email protected],The Pacemaker cluster resource manager. If you are not the named addressee you should not disseminate, distribute, copy or alter this email. Any views or opinions presented in this email are solely those of the author and might not represent those of Physicians' Managed Care or Physician Select Management. Warning: Although Physicians' Managed Care or Physician Select Management has taken reasonable precautions to ensure no viruses are present in this email, the company cannot accept responsibility for any loss or damage arising from the use of this email or attachments. This disclaimer was added by Policy Patrol: http://www.policypatrol.com/

#4 lore raw
Quoted 8 lines · Eric
Quoted 5 lines

... was committed during the 8.3.3 development cycle. So the fact that you are getting this message (which is benign, though admittedly
annoying) is expected in your version.

Fair enough. I was only concerned because of that --reboot switch in there.

No, that only means that the node attribute being set has a lifetime of "until the next cluster reboot", meaning it's only stored in the volatile "status" section of the CIB.

Cheers,
Florian

Signature · 2 lines
Need help with High Availability?
http://www.hastexo.com/now
#5 lore raw
Quoted 8 lines
Quoted 1 line

Fair enough. I was only concerned because of that --reboot

switch in

Quoted 1 line

there.

No, that only means that the node attribute being set has a lifetime of "until the next cluster reboot", meaning it's only stored in the volatile "status" section of the CIB.

Good to know. Thanks. :-)

--Eric

Disclaimer - November 14, 2011
This email and any files transmitted with it are confidential and intended solely for Florian Haas,[email protected],The Pacemaker cluster resource manager. If you are not the named addressee you should not disseminate, distribute, copy or alter this email. Any views or opinions presented in this email are solely those of the author and might not represent those of Physicians' Managed Care or Physician Select Management. Warning: Although Physicians' Managed Care or Physician Select Management has taken reasonable precautions to ensure no viruses are present in this email, the company cannot accept responsibility for any loss or damage arising from the use of this email or attachments. This disclaimer was added by Policy Patrol: http://www.policypatrol.com/

#6 lore raw
In reply to Florian Haas
Quoted 12 lines · Florian Haas

Lars/Andrew,

While Eric is evidently on a DRBD version whose ocf:linbit:drbd does not invoke crm_attribute with the flag to suppress logging, I'm mildly confused as to what the correct flag actually is. ocf:linbit:drbd (in both 8.3 and 8.4) uses "-Q" whereas Pacemaker expects "-q" as of this commit:

commit c11ce5e9b0b13ead02b5fc4add928d7e7f95092e
Author: Andrew Beekhof <[email protected]>
Date:   Tue Sep 22 17:29:38 2009 +0200

Quoted 5 lines

   Medium: Tools: Use -q as the short form for --quiet (for consistency)

   Mercurial revision: 7289e661e4923beee4b7b45bc85592564ccdc438

Should ocf:linbit:drbd be using "-q"?

Correct. Sorry about that.

Quoted 43 lines

Cheers,
Florian

-------- Original Message --------
Subject: [Linux-HA] Should This Worry  Me?
Date: Sat, 12 Nov 2011 18:02:51 -0800
From: Robinson, Eric <[email protected]>
Reply-To: General Linux-HA mailing list <[email protected]>
To: <[email protected]>

Should I be concerned that the standby node of a 2-node cluster is logging these messages about every 15 seconds? This cluster has been up and running apparently fine for a year.

Nov 12 17:53:59 ha05 crm_attribute: [2420]: info: Invoked: crm_attribute
-N ha05.mycharts.md -n master-p_DRBD:1 -l reboot -v 100
Nov 12 17:54:14 ha05 crm_attribute: [2455]: info: Invoked: crm_attribute
-N ha05.mycharts.md -n master-p_DRBD:1 -l reboot -v 100
Nov 12 17:54:29 ha05 crm_attribute: [2482]: info: Invoked: crm_attribute
-N ha05.mycharts.md -n master-p_DRBD:1 -l reboot -v 100
Nov 12 17:54:44 ha05 crm_attribute: [2510]: info: Invoked: crm_attribute
-N ha05.mycharts.md -n master-p_DRBD:1 -l reboot -v 100
Nov 12 17:54:59 ha05 crm_attribute: [2537]: info: Invoked: crm_attribute
-N ha05.mycharts.md -n master-p_DRBD:1 -l reboot -v 100
Nov 12 17:55:14 ha05 crm_attribute: [2574]: info: Invoked: crm_attribute
-N ha05.mycharts.md -n master-p_DRBD:1 -l reboot -v 100
Nov 12 17:55:29 ha05 crm_attribute: [2603]: info: Invoked: crm_attribute
-N ha05.mycharts.md -n master-p_DRBD:1 -l reboot -v 100
Nov 12 17:55:44 ha05 crm_attribute: [2633]: info: Invoked: crm_attribute

-N ha05.mycharts.md -n master-p_DRBD:1 -l reboot -v 100

--
Eric Robinson

_______________________________________________
Pacemaker mailing list: [email protected]
http://oss.clusterlabs.org/mailman/listinfo/pacemaker

Project Home: http://www.clusterlabs.org
Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf
Bugs: http://developerbugs.linux-foundation.org/enter_bug.cgi?product=Pacemaker

maintainer
#7 lore raw
Quoted 8 lines · Andrew Beekhof
Quoted 8 lines

confused as to what the correct flag actually is. ocf:linbit:drbd (in both 8.3 and 8.4) uses "-Q" whereas Pacemaker expects "-q" as of this commit:

commit c11ce5e9b0b13ead02b5fc4add928d7e7f95092e
Author: Andrew Beekhof <[email protected]>
Date:   Tue Sep 22 17:29:38 2009 +0200

Quoted 7 lines
Quoted 5 lines

   Medium: Tools: Use -q as the short form for --quiet (for consistency)

   Mercurial revision: 7289e661e4923beee4b7b45bc85592564ccdc438

Should ocf:linbit:drbd be using "-q"?

Correct. Sorry about that.

-Q is still accepted, though.
As it is accepted for a larger range of crm_attribute versions, I'll keep it for now.

Signature · 3 lines
: Lars Ellenberg
: LINBIT | Your Way to High Availability
: DRBD/HA support and consulting http://www.linbit.com