|
PE 2017.2.2 ( facter 3.6.5) RHEL 6.8
The customer is using mountpoints.(parition).available_bytes in conditional logging to determine if software should be installed on a system during Puppet Runs.
In testing it appears that there is around a 400mb discrepancy between what is reported by facter as available, and what is actually available, which is backed up by df -h.
In a test where by continual facter outputs and df outputs where collected during a large file transfer to the target partition, both facter and df -h tracked upwards in consumed disk space, but never agreed with each other, full attachments below, however a snippet can be seen here:
----facter----
|
2568753152
|
2.39 GiB
|
58.62%
|
----system----
|
Filesystem Type Size Used Avail Use% Mounted on
|
/dev/mapper/vg_root-lv_var ext4 5.8G 3.4G 2.1G 62% /var
|
----facter----
|
2568753152
|
2.39 GiB
|
58.62%
|
----system----
|
Filesystem Type Size Used Avail Use% Mounted on
|
/dev/mapper/vg_root-lv_var ext4 5.8G 3.4G 2.1G 62% /var
|
----facter----
|
846790656
|
773.65 MiB
|
87.52%
|
----system----
|
Filesystem Type Size Used Avail Use% Mounted on
|
/dev/mapper/vg_root-lv_var ext4 5.8G 5.1G 431M 93% /var
|
----facter----
|
415592448
|
396.34 MiB
|
93.30%
|
----system----
|
Filesystem Type Size Used Avail Use% Mounted on
|
/dev/mapper/vg_root-lv_var ext4 5.8G 5.4G 90M 99% /var
|
----facter----
|
415592448
|
396.34 MiB
|
93.30%
|
----system----
|
Filesystem Type Size Used Avail Use% Mounted on
|
/dev/mapper/vg_root-lv_var ext4 5.8G 5.4G 90M 99% /var
|
----facter----
|
415592448
|
396.34 MiB
|
93.30%
|
----system----
|
Filesystem Type Size Used Avail Use% Mounted on
|
/dev/mapper/vg_root-lv_var ext4 5.8G 5.4G 90M 99% /var
|
----facter----
|
421269504
|
401.75 MiB
|
93.21%
|
----system----
|
Filesystem Type Size Used Avail Use% Mounted on
|
/dev/mapper/vg_root-lv_var ext4 5.8G 5.4G 95M 99% /var
|
----facter----
|
421269504
|
401.75 MiB
|
93.21%
|
----system----
|
Filesystem Type Size Used Avail Use% Mounted on
|
/dev/mapper/vg_root-lv_var ext4 5.8G 5.4G 95M 99% /var
|
It could be that facter is failing to take into consideration the blocksize for the partition, in which case i have provided the output below:
blockdev --getbsz /dev/mapper/vg_root-lv_var 4096
|