日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當(dāng)前位置: 首頁 > 运维知识 > 数据库 >内容正文

数据库

AutoMySQLBackup 3.0 Bug:du: WARNING: use --si, not -H

發(fā)布時(shí)間:2025/5/22 数据库 56 豆豆
生活随笔 收集整理的這篇文章主要介紹了 AutoMySQLBackup 3.0 Bug:du: WARNING: use --si, not -H 小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個(gè)參考.

案例環(huán)境:

操作系統(tǒng)版本: Red Hat Enterprise Linux Server release 5.7 64bit

數(shù)據(jù)庫版本 : 5.6.19 MySQL Community Server

AutoMySQLBackup: Automysqlbackup-v3.0_rc6

?

案例場景:

AutoMySQLBackup 3.0版本備份時(shí),出現(xiàn)告警錯誤“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 - Location1.8M /u01/db_backup/mysqlbackup/?==============================================================================?###### WARNING ######Errors reported during AutoMySQLBackup execution.. Backup failedError log below..du: WARNING: use --si, not -H; the meaning of the -H option will soonchange to be the same as that of --dereference-args (-D)?================================== End of Backup ===========================================================================================================

?

出現(xiàn)這個(gè)錯誤是因?yàn)樵?Red Hat Enterprise Linux 5.7上的du命令不符合POSIX標(biāo)準(zhǔn)規(guī)范。具體參考官方的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 就不會有這個(gè)問題,它的du版本為8.4, Red Hat Enterprise Linux 5.7上的du命令版本為du (GNU coreutils) 5.97

# du --versiondu (GNU coreutils) 8.4Copyright (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/

總結(jié)

以上是生活随笔為你收集整理的AutoMySQLBackup 3.0 Bug:du: WARNING: use --si, not -H的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網(wǎng)站內(nèi)容還不錯,歡迎將生活随笔推薦給好友。