案例环境:

操作系统版本: Red Hat Enterprise Linux Server release 5.7 64bit

数据库版本 : 5.6.19 MySQL Community Server

AutoMySQLBackup: Automysqlbackup-v3.0_rc6

案例场景:

AutoMySQLBackup 3.0版本备份时,出现告警错误“du: WARNING: use --si, not -H; the meaning of the -H option will soon change to be the same as that of --dereference-args (-D)” 具体信息请见下面:

 
==============================================================================
Total disk space used for backup storage...
Size - Location
1.8M /u01/db_backup/mysqlbackup/
 
==============================================================================
 
###### WARNING ######
Errors reported during AutoMySQLBackup execution.. Backup failed
Error log below..
du: WARNING: use --si, not -H; the meaning of the -H option will soon
change to be the same as that of --dereference-args (-D)
 
================================== End of Backup =============================
==============================================================================

出现这个错误是因为在 Red Hat Enterprise Linux 5.7上的du命令不符合POSIX标准规范。具体参考官方的AutoMySQLBackup 3.0 warning on du in Centos (5.7)

The POSIX specifications are. It seems, that the Centos 5.7 version of du is not POSIX compliant, but will soon be. I have done my best to use only POSIX compliant syntax to assure the bug-free running on most systems. Unfortunately, I can't take care of every system and distribution, which chooses to defy POSIX syntax. For other people and myself, it would be a good idea to get the options of du on Centos 5.7, so please post 'du --help'.

如下所示,在命令du --help中,你就能从帮助信息中看到下面信息:

可以通过修改脚本/usr/local/bin/automysqlbackup 找到下面脚本,修改脚本将“ echo `du -hsH "${CONFIG_backup_dir}"` 修改为 echo `du -hs "${CONFIG_backup_dir}"` 即可解决问题。

在Red Hat Enterprise Linux Server release 6.6 就不会有这个问题,它的du版本为8.4, Red Hat Enterprise Linux 5.7上的du命令版本为du (GNU coreutils) 5.97

# du --version
du (GNU coreutils) 8.4
Copyright (C) 2010 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
 
Written by Torbjörn Granlund, David MacKenzie, Paul Eggert,
and Jim Meyering.

参考资料:

http://sourceforge.net/p/automysqlbackup/bugs/54/

AutoMySQLBackup 3.0 Bug:du: WARNING: use --si, not -H相关推荐

  1. VC++2013出现bug: 无法打开源文件“stdafx.h”

    VC++2013出现bug: 无法打开源文件"stdafx.h" 1.首先需要把#include "stdafx.h"置于最头 2.在解决方案资源管理器中添加以 ...

  2. WINCE6.0 error C2220: warning treated as error问题解决

    今天在编译IMX515的BSP的时候,发现下面的编译错误问题: BUILD: [00:0000002476:PROGC ] BuildingCOMPILE Pass in F:\WINCE600\PL ...

  3. 《0 bug ---- C/C++商用工程之道》目录

    扉页 前言 1.1  为什么要写本书? 1.2  本书包括哪些内容 1.3  商用工程开发和软件编程的区别 1.4   商用程序员的核心思想 1.5  本书适合哪些读者看 1.6  本书中一些名词解释 ...

  4. pip 10.0.0 BUG 解决方案Traceback (most recent call last): File /usr/bin/pip3, line 9, in module...

    使用pip3 出现以下错误: Traceback (most recent call last): File "/usr/bin/pip3", line 9, in from pi ...

  5. 【Qt】 Fractal Designer 5.0 Bug Report

    Report the bug you find here. 在这里评论找到的 5.0 版 bug. GitHub Repository: https://github.com/Teddy-van-Je ...

  6. 关于《0 bug -- C/C++商用工程之道》的一处bug

    这两天有很多朋友已经买了书了,并且开始看,呵呵,我心里也很高兴. 嗯,要说江湖上藏龙卧虎呢,这不,这才几天时间,已经有朋友指出我书中的一处明显错误,这里我正式给大家说明一下,免得对各位读者有个不好的误 ...

  7. pdf.js出现bug:Warning: Invalid stream: “FormatError: Bad FCHECK in flate stream: 120, 239“

    控制台出现提示: 从接口拿到的文件流: 1.响应头: 2.请求头: 原因: 接收到文件流后,格式不对导致pdf.js无法浏览. 解决方案: 收到文件流后,使用响应的数据创建一个 blob,然后使用该 ...

  8. IceE-1.3.0的移植过程及错误Time.h:36: error: expected type-specifier before ‘time-转

    编译iceE下载iceE源码包 下载地址:http://www.zeroc.com/icee/download.html 交叉编译 设置环境变量:exportPATH=/usr/local/arm-2 ...

  9. FAST-LIO2.0代码解析(一)preprocess.h

    不时会对其中的错误和模糊之处进行更新,未来会把完整的更新在gitee里 #include <ros/ros.h> #include <pcl_conversions/pcl_conv ...

最新文章

  1. 最小化局部边际的合并聚类算法(中篇)
  2. easyexcel获取所有sheet页名称_老板让我汇总多个sheet,我不会,同事却说使用PQ仅需2步搞定...
  3. 从Scratch到C++ 从Scratch到python书籍
  4. windows无法访问指定设备_恢复 你的电脑/设备需要修改 未连接或无法访问所需设备。...
  5. H3C 模拟器 pc与sw直连 开启telnet
  6. 番茄是水果还是蔬菜这事儿,居然闹到了最高法院?!
  7. React Router 全部
  8. 超详细的MySQL完全卸载教程
  9. IPFS - 可快速索引的版本化的点对点文件系统
  10. 《非常网管:网络管理从入门到精通(修订版)》——第1章 网络基础知识回顾1.1 计算机网络基础...
  11. 以CRM系统为案例讲解数据分析(重要性介绍及分析方法)
  12. 大数据毕设 - 大数据二手房数据分析与可视化(python 爬虫)
  13. 网上订货系统助力传统生意数字化转型,5分钟拥有手机订货商城
  14. 柔顺控制 - 技术发展综述
  15. python基础-15-列表推导式
  16. 计算机专业申请phd美国,申请美国计算机PHD全奖的建议
  17. vs2015中无法设置Qt版本,qt project setting 是灰色,Qt无法编译ui文件
  18. 微信收款助手消息不弹窗的解决办法
  19. C++12. 魔方阵
  20. 游戏建模师好找工作吗?学多久可以出师?

热门文章

  1. 一份比较详细的 webpack 4.x 手工配置基础开发环境 附源码
  2. SQL Server 审核(Audit)-- 创建服务器级别的审核
  3. TPS(薄板样条) 2D 插值
  4. hibernate------java-delete-insert-update
  5. jClarity发布Censum 3.0
  6. Android ListViewDemo
  7. VMware vSphere 5.1 学习系列之:安装 vCenter Server
  8. wp7使用Cocos2d-X for XNA制作一个塔防类游戏 (二)在游戏中加入地图和怪物。(上)
  9. LINUX下PHP使用PDO访问MYSQL的连接设置注意事项
  10. 了解员工工作的四种方法