【故障集合】架构阶段备份服务-存储服务错误集合
错误整体记录
Rsync
1.not a regular file
2.remote command not found
3.Connection Refuse
4.auth failed on 故障module data
5.secrets file
6.Unknown moduledata
7.read error:Connection reset by peer
8.password file must not be other-accessible
9.Unknown moduledata
NFS
access denied by server while mounting 10.0.0.31:/data
Job for nfs-server.service invalid.
wrong fs type,bad option,bad superblock on
No route to host

错误详细
rsync服务
1.not a regular file不是普通文件
scp默认只能复制普通文件与cp类似
加上-r即可
[root backup~]#scp/etc/172.16.1.31:/tmp
root 172.16.1.31s password:
/etc:not a regular file
2.remote command not found
远程服务器中没有这个命令
检查远程服务器是否安装了rsync没有yum安装即可
[root backup~]#rsync-av/etc 172.16.1.31:/tmp
root 172.16.1.31s password:
bash:rsync:command not found
rsync:connection unexpectedly closed(0 bytes received so far)[sender]
rsync error:remote command not found(code 127)at io.c(226)[sender=3.1.2]
3.Connection refused
连接拒绝
检查是否能ping通对应服务器
[root backup~]#rsync-avz/etc 176.16.1.31:/tmp
ssh:connect to host 176.16.1.31 port 22:Connection refused
rsync:connection unexpectedly closed(0 bytes received so far)[sender]
rsync error:unexplained error(code 255)at io.c(226)[sender=3.1.2]
4.auth failed on module data
data模块认证错误(密码)
原因:
1.密码写错
2.密码文件不存在
3.密码文件权限不对
[root backup log]#rsync-avz/etc/hosts rsync_backup 172.16.1.41::data
Password:
ERROR:auth failed on module data
rsync error:error starting client-server protocol(code 5)at main.c(1648)[sender=3.1.2]
5.secrets file
日志中
密码文件问题
查看日志的提示:
019/05/20 16:52:32[15755]secrets file must be owned by root when running as root(see strict modes)
2019/05/20 16:52:32[15755]auth failed on module data from backup(172.16.1.41)for rsync_backup:ignoring secrets file
secrets file must be owned by root when running as root(see strict modes)
密码文件当root运行rsync的时候,云服务器必须属于root
[root backup~]#ll/etc/rsync.password
-rw-------1 rsync rsync 20 May 20 16:49/etc/rsync.password
6.Unknown moduledata
未知的集合架构阶段集合模块
[root backup~]#rsync-avz/etc/hosts rsync_backup 172.16.1.41::data
ERROR:Unknown moduledata
rsync error:error starting client-server protocol(code 5)at main.c(1648)[sender=3.1.2]
7.read error:Connection reset by peer
配置文件错误
[root backup~]#rsync-avz/etc/hosts rsync_backup 172.16.1.41::data
sending incremental file list
rsync:read error:Connection reset by peer(104)
rsync error:error in socket IO(code 10)at io.c(785)[sender=3.1.2]
8.password file must not be other-accessible
rsync-avz/etc/sysconfig/rsync_backup 172.16.1.91::backup--password-file=/etc/rsync.password
ERROR:password file must not be other-accessible
rsync error:syntax or usage error(code 1)at authenticate.c(196)[sender=3.1.2]
9.Unknown moduledata
ERROR:Unknown moduledata
2019/05/20 17:45:46[10514]rsync denied on module data from UNKNOWN(10.0.0.31)
10.Name or service not known
[root nfs01~]#rsync-avz/etc/hostname rsync_backup backup::backup
rsync:getaddrinfo:backup 873:Name or service not known
rsync error:error in socket IO(code 10)at clientserver.c(125)[sender=3.1.2]
11.password mismatch
服务端设置的密码和客户端不同
检查服务端(rsyncd.conf secrets file指定的文件用户名:密码)
检查客户端--password-file指定的密码文件
auth failed on module backup from(172.16.1.7)for rsync_backup:password mismatch
12. ERROR:chdir failed
模块对应的云服务器提供商目录不存在
rsync-avz/etc/hostname rsync_backup 172.16.1.41::nfsbackup--password-file=/etc/rsync.password
ERROR:chdir failed
rsync error:error starting client-server protocol(code 5)at main.c(1648)[sender=3.1.2]
二.NFS
wrong fs type
错误的文件系统类型nfs文件系统无法识别
没有安装nfs-utils
mount-t nfs 172.16.1.31:/data/mnt/
mount:wrong fs type,bad option,bad superblock on 172.16.1.31:/data,
missing codepage or helper program,or other error
(for several filesystems(e.g.nfs,cifs)you might
need a/sbin/mount.<type>helper program)
In some cases useful info is found in syslog-try
dmesg|tail or so
No route to host
没有路由,道路不通。备份
服务服务ping ip
服务服务防火墙开启
服务服务[root nfs01~]#rpcinfo-p 172.16.0.31
服务服务rpcinfo:cant contact portmapper:RPC:Remote system error-No route to host
服务服务access denied by server while mounting 10.0.0.31:/data
服务服务访问拒绝
服务服务网段
服务服务配置错误
服务服务[root nfs01~]#showmount-e 172.16.1.31
服务服务Export list for 172.16.1.31:
服务服务/data 172.16.1.0/24
服务服务[root nfs01~]#cat/etc/exports
服务服务#share/data to web/upload
服务服务/data 172.16.1.0/24(rw)
服务服务[root nfs01~]#mount-t nfs 10.0.0.31:/data/mnt
服务服务mount.nfs:access denied by server while mounting 10.0.0.31:/data
服务服务Job for nfs-server.service invalid.
服务服务nfs服务未启动所以无法reload
服务服务[root nfs01~]#systemctl stop nfs
服务服务[root nfs01~]#systemctl reload nfs
服务服务Job for nfs-server.service invalid.
服务服务相关文章
- 摘要:绝地求生PUBG)作为一款热门的电脑游戏,要想在游戏中取得好成绩,熟练掌握按键设置是非常重要的。本文将详细介绍以电脑吃鸡按键的教程,帮助玩家们提高游戏技巧,成为绝地求生大神。...2025-11-04

实现Windows7与XP或Vista双重引导双重启动的方法
万众瞩目的Windows 7开始全球公测,假如你正打算尝尝鲜,却又不想放弃原有的XP或Vista系统,本文将告诉你如何实现在这几个系统之间实现双重引导。 Windows 7值得一试 确认你已经下载Wi2025-11-04
windows7系统怎么显示顽固的隐藏文件夹(利用WinRAR查看)
文件被隐藏的现象其实我们可以利用WinRAR来查看:点击“开始”菜单,选择“所有程序”,再选择“WINRAR”下的“WINRAR”程序:在打开的“WinRAR”窗口中,点击地址栏:展开到目标文件夹,我2025-11-04
一、点击开始菜单,打开“控制面板”二、在控制面板里找到“用户帐户”选项,点击进入。三、进入用户帐户后,会看到“更改用户帐户”下有一个选项为“为您的帐户创建密码”,点击进入。四、进入后出现“为您的帐户创2025-11-04解决电脑关机显示脚本页码错误的方法(修复脚本页码错误,让电脑正常关机)
摘要:在使用电脑过程中,有时会遇到电脑关机时出现脚本页码错误的情况。这个问题给用户带来了不便和困扰。本文将提供一些解决方法,帮助用户修复电脑关机显示脚本页码错误的问题,保障电脑正常关机。...2025-11-04
不得不承认,Windows 7的确应该称为微软的得意之作,不提其他,单凭美丽一项就无人能出其左右,而给Windows 7系统安装漂亮的新主题,更换各种颜色的操作也不断被各处提及,可谓众人讨论的焦点所在2025-11-04

最新评论