最新文章专题视频专题问答1问答10问答100问答1000问答2000关键字专题1关键字专题50关键字专题500关键字专题1500TAG最新视频文章推荐1 推荐3 推荐5 推荐7 推荐9 推荐11 推荐13 推荐15 推荐17 推荐19 推荐21 推荐23 推荐25 推荐27 推荐29 推荐31 推荐33 推荐35 推荐37视频文章20视频文章30视频文章40视频文章50视频文章60 视频文章70视频文章80视频文章90视频文章100视频文章120视频文章140 视频2关键字专题关键字专题tag2tag3文章专题文章专题2文章索引1文章索引2文章索引3文章索引4文章索引5123456789101112131415文章专题3
问答文章1 问答文章501 问答文章1001 问答文章1501 问答文章2001 问答文章2501 问答文章3001 问答文章3501 问答文章4001 问答文章4501 问答文章5001 问答文章5501 问答文章6001 问答文章6501 问答文章7001 问答文章7501 问答文章8001 问答文章8501 问答文章9001 问答文章9501
当前位置: 首页 - 科技 - 知识百科 - 正文

AutoMySQLBackup3.0Bug:"du:WARNING:use--si,not-H"_MySQL

来源:懂视网 责编:小采 时间:2020-11-09 20:09:50
文档

AutoMySQLBackup3.0Bug:"du:WARNING:use--si,not-H"_MySQL

AutoMySQLBackup3.0Bug:du:WARNING:use--si,not-H_MySQL:案例环境: 操作系统版本: Red Hat Enterprise Linux Server release 5.7 64bit 数据库版本 : 5.6.19 MySQL Community Server AutoMySQLBackup: Automysqlbackup-v3.0_rc6 案例场景: AutoMyS
推荐度:
导读AutoMySQLBackup3.0Bug:du:WARNING:use--si,not-H_MySQL:案例环境: 操作系统版本: Red Hat Enterprise Linux Server release 5.7 64bit 数据库版本 : 5.6.19 MySQL Community Server AutoMySQLBackup: Automysqlbackup-v3.0_rc6 案例场景: AutoMyS
案例环境:

操作系统版本: 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 .

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.

声明:本网页内容旨在传播知识,若有侵权等问题请及时与本网联系,我们将在第一时间删除处理。TEL:177 7030 7066 E-MAIL:11247931@qq.com

文档

AutoMySQLBackup3.0Bug:"du:WARNING:use--si,not-H"_MySQL

AutoMySQLBackup3.0Bug:du:WARNING:use--si,not-H_MySQL:案例环境: 操作系统版本: Red Hat Enterprise Linux Server release 5.7 64bit 数据库版本 : 5.6.19 MySQL Community Server AutoMySQLBackup: Automysqlbackup-v3.0_rc6 案例场景: AutoMyS
推荐度:
标签: not mysql si
  • 热门焦点

最新推荐

猜你喜欢

热门推荐

专题
Top