Type:
Bug
Priority:
Minor
Resolution:
Fixed
Affects Version/s:
1.1.7
Customer asked about a Minor Alarm reported on disk usage, when disk usage was at 4%.
Install is on a root install.
Issue was that ServerMonitor is getting the /root disk usage incorrectly.
Alarm:
AlarmID = 6
Brief Description = DISK_USAGE_LOW
Alarm Severity = MINOR
Time Issued = Tue Apr 2 14:37:37 2019
Reporting Module = pm1
Reporting Process = ServerMonitor
Reported Device = /
unix disk usage
root@ip-10-59-10-117 ~]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/nvme0n1p1 100G 3.8G 97G 4% /
devtmpfs 16G 0 16G 0% /dev
tmpfs 16G 26M 16G 1% /dev/shm
tmpfs 16G 33M 16G 1% /run
tmpfs 16G 0 16G 0% /sys/fs/cgroup
/dev/mapper/23437383037613530 1.6T 1.2T 299G 81% /usr/local/mariadb
tmpfs 3.1G 0 3.1G 0% /run/user/0
ServerMonitor calulation
mcsadmin> getsystemdisk
getsystemdisk Tue Apr 2 19:29:58 2019
System Disk Usage per Module
Module 'pm1' Disk Usage (in 1K blocks)
Mount Point Total Blocks Used Blocks Usage %
----------------------------- ------------ ------------ -------
/ 1651258452 1254582844 76
{"report":{"fcp":878.2999997138977,"ttfb":225.2999997138977,"pageVisibility":"visible","entityId":74214,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":1,"journeyId":"678a5787-dfd8-46cf-b139-c710f8eaf02c","navigationType":0,"readyForUser":935.2999997138977,"redirectCount":0,"resourceLoadedEnd":692,"resourceLoadedStart":231.59999990463257,"resourceTiming":[{"duration":59.299999713897705,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":231.59999990463257,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":231.59999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":290.8999996185303,"responseStart":0,"secureConnectionStart":0},{"duration":59.40000009536743,"initiatorType":"link","name":"https://jira.mariadb.org/s/7ebd35e77e471bc30ff0eba799ebc151-CDN/lu2cib/820016/12ta74/494e4c556ecbb29f90a3d3b4f09cb99c/_/download/contextbatch/css/jira.browse.project,project.issue.navigator,jira.view.issue,jira.general,jira.global,atl.general,-_super/batch.css?agile_global_admin_condition=true&jag=true&jira.create.linked.issue=true&slack-enabled=true&whisper-enabled=true","startTime":231.89999961853027,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":231.89999961853027,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":291.2999997138977,"responseStart":0,"secureConnectionStart":0},{"duration":152.5,"initiatorType":"script","name":"https://jira.mariadb.org/s/0917945aaa57108d00c5076fea35e069-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":232,"connectEnd":232,"connectStart":232,"domainLookupEnd":232,"domainLookupStart":232,"fetchStart":232,"redirectEnd":0,"redirectStart":0,"requestStart":294.09999990463257,"responseEnd":384.5,"responseStart":340.09999990463257,"secureConnectionStart":232},{"duration":231.40000009536743,"initiatorType":"script","name":"https://jira.mariadb.org/s/2d8175ec2fa4c816e8023260bd8c1786-CDN/lu2cib/820016/12ta74/494e4c556ecbb29f90a3d3b4f09cb99c/_/download/contextbatch/js/jira.browse.project,project.issue.navigator,jira.view.issue,jira.general,jira.global,atl.general,-_super/batch.js?agile_global_admin_condition=true&jag=true&jira.create.linked.issue=true&locale=en&slack-enabled=true&whisper-enabled=true","startTime":232.19999980926514,"connectEnd":232.19999980926514,"connectStart":232.19999980926514,"domainLookupEnd":232.19999980926514,"domainLookupStart":232.19999980926514,"fetchStart":232.19999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":294.2999997138977,"responseEnd":463.59999990463257,"responseStart":324.09999990463257,"secureConnectionStart":232.19999980926514},{"duration":91.5,"initiatorType":"script","name":"https://jira.mariadb.org/s/a9324d6758d385eb45c462685ad88f1d-CDN/lu2cib/820016/12ta74/c92c0caa9a024ae85b0ebdbed7fb4bd7/_/download/contextbatch/js/atl.global,-_super/batch.js?locale=en","startTime":232.2999997138977,"connectEnd":232.2999997138977,"connectStart":232.2999997138977,"domainLookupEnd":232.2999997138977,"domainLookupStart":232.2999997138977,"fetchStart":232.2999997138977,"redirectEnd":0,"redirectStart":0,"requestStart":294.3999996185303,"responseEnd":323.7999997138977,"responseStart":321.59999990463257,"secureConnectionStart":232.2999997138977},{"duration":120.59999990463257,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2cib/820016/12ta74/1.0/_/download/batch/jira.webresources:calendar-en/jira.webresources:calendar-en.js","startTime":232.5,"connectEnd":324.8999996185303,"connectStart":324.8999996185303,"domainLookupEnd":324.8999996185303,"domainLookupStart":324.8999996185303,"fetchStart":232.5,"redirectEnd":0,"redirectStart":0,"requestStart":334.59999990463257,"responseEnd":353.09999990463257,"responseStart":349.69999980926514,"secureConnectionStart":324.8999996185303},{"duration":119.5,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2cib/820016/12ta74/1.0/_/download/batch/jira.webresources:calendar-localisation-moment/jira.webresources:calendar-localisation-moment.js","startTime":232.69999980926514,"connectEnd":232.69999980926514,"connectStart":232.69999980926514,"domainLookupEnd":232.69999980926514,"domainLookupStart":232.69999980926514,"fetchStart":232.69999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":334.8999996185303,"responseEnd":352.19999980926514,"responseStart":345.7999997138977,"secureConnectionStart":232.69999980926514},{"duration":82.30000019073486,"initiatorType":"link","name":"https://jira.mariadb.org/s/b04b06a02d1959df322d9cded3aeecc1-CDN/lu2cib/820016/12ta74/a2ff6aa845ffc9a1d22fe23d9ee791fc/_/download/contextbatch/css/jira.global.look-and-feel,-_super/batch.css","startTime":232.7999997138977,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":232.7999997138977,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":315.09999990463257,"responseStart":0,"secureConnectionStart":0},{"duration":120,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":233,"connectEnd":233,"connectStart":233,"domainLookupEnd":233,"domainLookupStart":233,"fetchStart":233,"redirectEnd":0,"redirectStart":0,"requestStart":335.09999990463257,"responseEnd":353,"responseStart":346.59999990463257,"secureConnectionStart":233},{"duration":92.19999980926514,"initiatorType":"link","name":"https://jira.mariadb.org/s/3ac36323ba5e4eb0af2aa7ac7211b4bb-CDN/lu2cib/820016/12ta74/d176f0986478cc64f24226b3d20c140d/_/download/contextbatch/css/com.atlassian.jira.projects.sidebar.init,-_super,-project.issue.navigator,-jira.view.issue/batch.css?jira.create.linked.issue=true","startTime":233.19999980926514,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":233.19999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":325.3999996185303,"responseStart":0,"secureConnectionStart":0},{"duration":124.40000009536743,"initiatorType":"script","name":"https://jira.mariadb.org/s/5d5e8fe91fbc506585e83ea3b62ccc4b-CDN/lu2cib/820016/12ta74/d176f0986478cc64f24226b3d20c140d/_/download/contextbatch/js/com.atlassian.jira.projects.sidebar.init,-_super,-project.issue.navigator,-jira.view.issue/batch.js?jira.create.linked.issue=true&locale=en","startTime":233.2999997138977,"connectEnd":233.2999997138977,"connectStart":233.2999997138977,"domainLookupEnd":233.2999997138977,"domainLookupStart":233.2999997138977,"fetchStart":233.2999997138977,"redirectEnd":0,"redirectStart":0,"requestStart":335.2999997138977,"responseEnd":357.69999980926514,"responseStart":350.5,"secureConnectionStart":233.2999997138977},{"duration":446.69999980926514,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2cib/820016/12ta74/1.0/_/download/batch/jira.webresources:bigpipe-js/jira.webresources:bigpipe-js.js","startTime":245.09999990463257,"connectEnd":245.09999990463257,"connectStart":245.09999990463257,"domainLookupEnd":245.09999990463257,"domainLookupStart":245.09999990463257,"fetchStart":245.09999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":571.0999999046326,"responseEnd":691.7999997138977,"responseStart":687.1999998092651,"secureConnectionStart":245.09999990463257},{"duration":446.80000019073486,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2cib/820016/12ta74/1.0/_/download/batch/jira.webresources:bigpipe-init/jira.webresources:bigpipe-init.js","startTime":245.19999980926514,"connectEnd":245.19999980926514,"connectStart":245.19999980926514,"domainLookupEnd":245.19999980926514,"domainLookupStart":245.19999980926514,"fetchStart":245.19999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":573.5,"responseEnd":692,"responseStart":687.7999997138977,"secureConnectionStart":245.19999980926514},{"duration":200.7000002861023,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":611.7999997138977,"connectEnd":611.7999997138977,"connectStart":611.7999997138977,"domainLookupEnd":611.7999997138977,"domainLookupStart":611.7999997138977,"fetchStart":611.7999997138977,"redirectEnd":0,"redirectStart":0,"requestStart":779.8999996185303,"responseEnd":812.5,"responseStart":811.6999998092651,"secureConnectionStart":611.7999997138977},{"duration":127.90000009536743,"initiatorType":"script","name":"https://www.google-analytics.com/analytics.js","startTime":849.3999996185303,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":849.3999996185303,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":977.2999997138977,"responseStart":0,"secureConnectionStart":0},{"duration":126.80000019073486,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":866.6999998092651,"connectEnd":866.6999998092651,"connectStart":866.6999998092651,"domainLookupEnd":866.6999998092651,"domainLookupStart":866.6999998092651,"fetchStart":866.6999998092651,"redirectEnd":0,"redirectStart":0,"requestStart":960.3999996185303,"responseEnd":993.5,"responseStart":990.8999996185303,"secureConnectionStart":866.6999998092651}],"fetchStart":0,"domainLookupStart":31,"domainLookupEnd":58,"connectStart":58,"connectEnd":77,"secureConnectionStart":66,"requestStart":77,"responseStart":225,"responseEnd":242,"domLoading":229,"domInteractive":1017,"domContentLoadedEventStart":1017,"domContentLoadedEventEnd":1055,"domComplete":1255,"loadEventStart":1255,"loadEventEnd":1256,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":987.5},{"name":"bigPipe.sidebar-id.end","time":988.3999996185303},{"name":"bigPipe.activity-panel-pipe-id.start","time":988.5999999046326},{"name":"bigPipe.activity-panel-pipe-id.end","time":990},{"name":"activityTabFullyLoaded","time":1072.0999999046326}],"measures":[],"correlationId":"b9f96ecdca3e7d","effectiveType":"4g","downlink":10,"rtt":0,"serverDuration":94,"dbReadsTimeInMs":9,"dbConnsTimeInMs":17,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}
Someone coded free blocks to use statvfs f_bfree instead of f_bavail. The discrepancy between the two is typically 5% but can be a lot larger on FSs such as XFS.