Project

General

Profile

Actions

Bug #5468

closed

Weird behaviours of partitionMonitoring technique on ZFS on 2.11

Added by Olivier Mauras about 10 years ago. Updated about 10 years ago.

Status:
Released
Priority:
4
Assignee:
Jonathan CLARKE
Category:
Techniques
Target version:
Severity:
UX impact:
User visibility:
Effort required:
Priority:
Name check:
Fix check:
Regression:

Description

CFEngine 3.6 (so rudder-agent 2.11) outputs useless and silly warnings like this on some partition sizes:

2013-06-20T17:55:32+0000    error: /main/methods/'rabbitmq'/rabbitmq/storage/'/var/lib/rabbitmq': File system '/var/lib/rabbitmq' is suspiciously small! (4116 bytes)

This was reported in CFEngine ticket https://dev.cfengine.com/issues/3016

Following IRC discussion, here's the modification to add, to make it work correctly on ZFS

diff --git a/systemSettings/misc/partitionSizeMonitoring/1.0/monitorPartitionSize.st b/systemSettings/misc/partitionSizeMonitoring/1.0/monitorPartitionSize.st
index 62da9d8..d13a12c 100644
--- a/systemSettings/misc/partitionSizeMonitoring/1.0/monitorPartitionSize.st
+++ b/systemSettings/misc/partitionSizeMonitoring/1.0/monitorPartitionSize.st
@@ -94,5 +94,8 @@ bundle agent monitor_partition_size {

 body volume freespacecheck(threshold) {
     freespace => "$(threshold)";
+    check_foreign  => "false";
+    sensible_size  => "0";
+    sensible_count => "0";
 }
Actions

Also available in: Atom PDF