CentOS 6.6: add --portability flag to df

16 views
Skip to first unread message

Brett Moser

unread,
Jun 30, 2015, 5:28:19 PM6/30/15
to prm-d...@googlegroups.com
Using mysql_prm on CentOS 6.6 with LVs can produce the following df output:

/bin/df /var/lib/mysql/
Filesystem           1K-blocks    Used Available Use% Mounted on
/dev/mapper/vg_server-lv_root
                      18069936 4866000  12286024  29% /

which fails the grep/sed/tr chain in the script.

Adding the -P (or --portability) option produced:

/bin/df -P /var/lib/mysql/
Filesystem                    1024-blocks    Used Available Capacity Mounted on
/dev/mapper/vg_server-lv_root    18069936 4866044  12285980      29% /


Yves Trudeau

unread,
Jul 6, 2015, 7:40:54 PM7/6/15
to prm-d...@googlegroups.com

Thanks, I am in vacations, I'll fix when I 'll be back.

Yves

--
You received this message because you are subscribed to the Google Groups "PRM-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to prm-discuss...@googlegroups.com.
To post to this group, send email to prm-d...@googlegroups.com.
Visit this group at http://groups.google.com/group/prm-discuss.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages