【故障集合】架构阶段备份服务-存储服务错误集合

错误整体记录

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 module 'data'
7.read error: Connection reset by peer
8.password file must not be other-accessible
9.Unknown module 'data'

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.31's 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.31's 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 module 'data'

未知的模块

[root@backup ~]# rsync -avz /etc/hosts rsync_backup@172.16.1.41::data
@ERROR: Unknown module 'data'
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 module 'data'

@ERROR: Unknown module 'data'

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: can't 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.
最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。
  • 序言:七十年代末,一起剥皮案震惊了整个滨河市,随后出现的几起案子,更是在滨河造成了极大的恐慌,老刑警刘岩,带你破解...
    沈念sama阅读 228,119评论 6 531
  • 序言:滨河连续发生了三起死亡事件,死亡现场离奇诡异,居然都是意外死亡,警方通过查阅死者的电脑和手机,发现死者居然都...
    沈念sama阅读 98,382评论 3 415
  • 文/潘晓璐 我一进店门,熙熙楼的掌柜王于贵愁眉苦脸地迎上来,“玉大人,你说我怎么就摊上这事。” “怎么了?”我有些...
    开封第一讲书人阅读 176,038评论 0 373
  • 文/不坏的土叔 我叫张陵,是天一观的道长。 经常有香客问我,道长,这世上最难降的妖魔是什么? 我笑而不...
    开封第一讲书人阅读 62,853评论 1 309
  • 正文 为了忘掉前任,我火速办了婚礼,结果婚礼上,老公的妹妹穿的比我还像新娘。我一直安慰自己,他们只是感情好,可当我...
    茶点故事阅读 71,616评论 6 408
  • 文/花漫 我一把揭开白布。 她就那样静静地躺着,像睡着了一般。 火红的嫁衣衬着肌肤如雪。 梳的纹丝不乱的头发上,一...
    开封第一讲书人阅读 55,112评论 1 323
  • 那天,我揣着相机与录音,去河边找鬼。 笑死,一个胖子当着我的面吹牛,可吹牛的内容都是我干的。 我是一名探鬼主播,决...
    沈念sama阅读 43,192评论 3 441
  • 文/苍兰香墨 我猛地睁开眼,长吁一口气:“原来是场噩梦啊……” “哼!你这毒妇竟也来了?” 一声冷哼从身侧响起,我...
    开封第一讲书人阅读 42,355评论 0 288
  • 序言:老挝万荣一对情侣失踪,失踪者是张志新(化名)和其女友刘颖,没想到半个月后,有当地人在树林里发现了一具尸体,经...
    沈念sama阅读 48,869评论 1 334
  • 正文 独居荒郊野岭守林人离奇死亡,尸身上长有42处带血的脓包…… 初始之章·张勋 以下内容为张勋视角 年9月15日...
    茶点故事阅读 40,727评论 3 354
  • 正文 我和宋清朗相恋三年,在试婚纱的时候发现自己被绿了。 大学时的朋友给我发了我未婚夫和他白月光在一起吃饭的照片。...
    茶点故事阅读 42,928评论 1 369
  • 序言:一个原本活蹦乱跳的男人离奇死亡,死状恐怖,灵堂内的尸体忽然破棺而出,到底是诈尸还是另有隐情,我是刑警宁泽,带...
    沈念sama阅读 38,467评论 5 358
  • 正文 年R本政府宣布,位于F岛的核电站,受9级特大地震影响,放射性物质发生泄漏。R本人自食恶果不足惜,却给世界环境...
    茶点故事阅读 44,165评论 3 347
  • 文/蒙蒙 一、第九天 我趴在偏房一处隐蔽的房顶上张望。 院中可真热闹,春花似锦、人声如沸。这庄子的主人今日做“春日...
    开封第一讲书人阅读 34,570评论 0 26
  • 文/苍兰香墨 我抬头看了看天上的太阳。三九已至,却和暖如春,着一层夹袄步出监牢的瞬间,已是汗流浃背。 一阵脚步声响...
    开封第一讲书人阅读 35,813评论 1 282
  • 我被黑心中介骗来泰国打工, 没想到刚下飞机就差点儿被人妖公主榨干…… 1. 我叫王不留,地道东北人。 一个月前我还...
    沈念sama阅读 51,585评论 3 390
  • 正文 我出身青楼,却偏偏与公主长得像,于是被迫代替她去往敌国和亲。 传闻我的和亲对象是个残疾皇子,可洞房花烛夜当晚...
    茶点故事阅读 47,892评论 2 372

推荐阅读更多精彩内容