In version 1.78 of /etc/daily, the -i flag was added to the df output. Apparently, some people run out of inodes.
I only seem to run out of disk space, and too often, my eye skims the daily report from a machine, looks at the last column,sees a small percentage, and I decide, "all is good", even if I were look a couple columns in, the actual disk space is low. To try to avoid bikeshedding and flopping this back and forth, I offer this diff. With no change, daily df output is unchanged. Those of us that don't worry about running out of inodes, we can set DF_FLAGS in /etc/daily.local to be whatever we want, in my case, I like "-hl" (currently, it's "-ikl") (inline and attached) Index: daily =================================================================== RCS file: /cvs/src/etc/daily,v retrieving revision 1.93 diff -u -r1.93 daily --- daily 9 Sep 2019 20:02:26 -0000 1.93 +++ daily 27 Oct 2019 18:03:18 -0000 @@ -44,6 +44,10 @@ start_part "Running daily.local:" run_script "daily.local" +if [ -z "$DF_FLAGS" ]; then + DF_FLAGS="-ikl" +fi + next_part "Removing scratch and junk files:" if [ -d /tmp -a ! -L /tmp ]; then cd /tmp && { @@ -140,7 +144,7 @@ if [ "X$VERBOSESTATUS" != X0 ]; then echo "" echo "disks:" - df -ikl + df "$DF_FLAGS" echo "" dump W else
Index: daily =================================================================== RCS file: /cvs/src/etc/daily,v retrieving revision 1.93 diff -u -r1.93 daily --- daily 9 Sep 2019 20:02:26 -0000 1.93 +++ daily 27 Oct 2019 18:24:16 -0000 @@ -44,6 +44,10 @@ start_part "Running daily.local:" run_script "daily.local" +if [ -z "$DF_FLAGS" ]; then + DF_FLAGS="-ikl" +fi + next_part "Removing scratch and junk files:" if [ -d /tmp -a ! -L /tmp ]; then cd /tmp && { @@ -140,7 +144,7 @@ if [ "X$VERBOSESTATUS" != X0 ]; then echo "" echo "disks:" - df -ikl + df "$DF_FLAGS" echo "" dump W else