Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-12-SP1:Update
pacemaker
bug-975079_pacemaker-SysInfo-#health_disk.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File bug-975079_pacemaker-SysInfo-#health_disk.patch of Package pacemaker
commit 2a7966768071a50b080c4b5d65da2b0401d589e5 Author: Gao,Yan <ygao@suse.com> Date: Tue May 3 16:31:48 2016 +0200 Fix: RA: SysInfo - Reset the node attribute "#health_disk" to "green" when there's sufficient free disk This also improves the description about the parameter "min_disk_free" and the node attribute "#health_disk" in the metadata. diff --git a/extra/resources/SysInfo b/extra/resources/SysInfo index 81af0bb..03b3bbd 100644 --- a/extra/resources/SysInfo +++ b/extra/resources/SysInfo @@ -56,6 +56,7 @@ Sample Linux output: ram_total: 513 ram_free: 117 root_free: 2.4 + #health_disk: red Sample Darwin output: arch: i386 @@ -67,6 +68,7 @@ Sample Darwin output: ram_total: 2016 ram_free: 787 root_free: 13 + #health_disk: green Units: free_swap: Mb @@ -119,6 +121,7 @@ Can be one of: B, K, M, G, T, P (case-insensitive) <longdesc lang="en"> The amount of free space required in monitored disks. If any of the monitored disks has less than this amount of free space, +, with the node attribute "#health_disk" changing to "red", all resources will move away from the node. Set the node-health-strategy property appropriately for this to take effect. If the unit is not specified, it defaults to disk_unit. @@ -224,8 +227,11 @@ SysInfoStats() { disk_free=`SysInfo_hdd_units $disk_free` UpdateStat ${disk_label}_free $disk_free if [ -n "$MIN_FREE" ]; then - test $disk_free -le $MIN_FREE && + if [ $disk_free -le $MIN_FREE ]; then UpdateStat "#health_disk" "red" + else + UpdateStat "#health_disk" "green" + fi fi fi done
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor