[MCOL-2273] getSystemDisk showing incorrect root usage and reporting incorrect alarm Created: 2019-04-03 Updated: 2023-10-26 Resolved: 2019-05-21 |
|
| Status: | Closed |
| Project: | MariaDB ColumnStore |
| Component/s: | ? |
| Affects Version/s: | 1.1.7 |
| Fix Version/s: | 1.1.0, 1.2.4 |
| Type: | Bug | Priority: | Minor |
| Reporter: | David Hill (Inactive) | Assignee: | Daniel Lee (Inactive) |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Sprint: | 2019-04, 2019-05 |
| Description |
|
Customer asked about a Minor Alarm reported on disk usage, when disk usage was at 4%. Issue was that ServerMonitor is getting the /root disk usage incorrectly. Alarm: AlarmID = 6 unix disk usage root@ip-10-59-10-117 ~]# df -h ServerMonitor calulation mcsadmin> getsystemdisk System Disk Usage per Module Mount Point Total Blocks Used Blocks Usage % |
| Comments |
| Comment by Andrew Hutchings (Inactive) [ 2019-04-03 ] |
|
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. |
| Comment by Andrew Hutchings (Inactive) [ 2019-05-02 ] |
|
For QA: Disk reporting functions such as "mcsadmin getsystemdisk" will likely show an increased disk usage. This is because the "free" blocks on a disk are not necessarily usable. We now use the "available" blocks instead. This will be especially true on filesystems such as XFS. |
| Comment by Daniel Lee (Inactive) [ 2019-05-21 ] |
|
Closed per posted test results. |