linux故障集合:架構階段備份服務-儲存服務錯誤

老男孩Linux發表於2020-11-25

  錯誤整體記錄

  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

  Linux運維學習哪裡好?北京老男孩教育

  錯誤詳細

  一。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.

  轉自:https://www.oldboyedu.com/blog/1917.html


來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/69952968/viewspace-2736919/,如需轉載,請註明出處,否則將追究法律責任。

相關文章