1.ruync 备份服务相关错误:
1.模块sa上的身份验证失败
[root@nfs /]# rsync -avz /etc/hosts @172.16.1.41::sa
Password:
@ERROR: auth failed on module sa
rsync error: error starting client-server protocol (code 5) at main.c(1648) [sender=3.1.2]
解决:没有指定认证用户
[root@nfs /]# rsync -avz /etc/hosts rsync_backup@172.16.1.41::sa
Password:
sending incremental file list
hosts
sent 221 bytes received 43 bytes 75.43 bytes/sec
total size is 349 speedup is 1.32
2.端口号发生改变
[root@nfs ~]# rsync -avzP /tmp/500M rsync_backup@172.16.1.41::backup --password-file=/etc/rsync.password
rsync: failed to connect to 172.16.1.41 (172.16.1.41): Connection refused (111)
rsync error: error in socket IO (code 10) at clientserver.c(125) [sender=3.1.2]
[root@backup ~]# netstat -lntup |grep rsync
tcp 0 0 0.0.0.0:874 0.0.0.0:* LISTEN 7586/rsync
tcp6 0 0 :::874 :::* LISTEN 7586/rsync
解决: 加上已修改的端口号
sending incremental file list
500M
524,288,000 100% 142.73MB/s 0:00:03 (xfr#1, to-chk=0/1)
rsync: mkstemp ".500M.jqzjyx" (in backup) failed: Permission denied (13)
sent 509,968 bytes received 120 bytes 113,352.89 bytes/sec
total size is 524,288,000 speedup is 1,027.84
rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1178) [sender=3.1.2]
2.nfs 存储服务相关错误:
1.只读文件系统
[root@web01 /mnt]# mkdir -p oldboy
mkdir: cannot create directory ‘oldboy’: Read-only file system
解决:修改配置文件权限 /etc/exports
3.远程连接相关错误:
1.权限被拒绝(公钥.密码)
[root@nfs01 ~]# ssh-copy-id -i /root/.ssh/id_dsa.pub root@172.16.1.41
/usr/bin/ssh-copy-id: INFO: Source of key(s) to be installed: "/root/.ssh/id_dsa.pub"
/usr/bin/ssh-copy-id: INFO: attempting to log in with the new key(s), to filter out any that are already installed
/usr/bin/ssh-copy-id: INFO: 1 key(s) remain to be installed -- if you are prompted now it is to install the new keys
root@172.16.1.41's password:
Permission denied, please try again.
root@172.16.1.41's password:
Permission denied, please try again.
root@172.16.1.41's password:
Permission denied (publickey,password).
解决:从新输入密码-或修改密码