维护命令
?
1:keepalived+lvs维护命令
?
???? 1:查看Real server 负载情况? 192.168.12.51
?ipvsadm 或 watch ipvsadm –ln?????????? IP Virtual Server version 1.2.1 (size=4096)
????????? Prot LocalAddress:Port Scheduler Flags
? ? ? ? ? -> RemoteAddress:Port?????????? Forward Weight??? ActiveConn ?? InActConn
?????????????? TCP? 192.168.12.50:http wrr
????????? -> 192.168.12.53:http?????????? Route?? 10??? ? ? ?? 0?????????????????? 0????????
????????? -> 192.168.12.54:http?????????? Route?? 0???????????? 0?????????????????? 0????????
????????? -> 192.168.12.55:http?????????? Route?? 0???? ? ? ? ? 0?????????????????? 0????????
????????? -> 192.168.12.56:http?????????? Route?? 0???????????? 0???????? ? ? ? ? ? 0????????
????????? -> 192.168.12.57:http?????????? Route?? 0???????????? 0?????????????????? 0????????
??? 当权重==0时,表示这个Real Server 没有起作用,及Keepalived 的监视到当前Real Server有错。
?
? 查看VIP??? #> ip ad sh? 2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP qlen 1000
??? link/ether 44:1e:a1:4e:3c:a4 brd ff:ff:ff:ff:ff:ff
??? inet 192.168.12.51/24 brd 192.168.12.255 scope global eth0
??? inet 192.168.12.50/32 scope global eth0
??? inet6 fe80::461e:a1ff:fe4e:3ca4/64 scope link
?
??? 2:Real Server?? 查看 ip 加载情况 53-57
???????? ip ad sh
???????? 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 16436 qdisc noqueue state UNKNOWN
?? ? ? ? ? ? link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
???????????? inet 127.0.0.1/8 scope host lo
???????????? inet 192.168.12.50/32 brd 192.168.12.50 scope global lo:0
???????????? inet6 ::1/128 scope host
???????????? valid_lft forever preferred_lft forever
?
?? 3:Keepalived 启动 停止 。
??????? 51 (52备): /etc/init.d/keepalived start | stop | restart
?
? 4:? drbd错误总结
??????? 1:info: RA output: (Filesystem_2:start:stdout) /dev/drbd0: e2fsck canceled
???????????? e2fsck? /dev/drbd0http://pzzy2000.iteye.com/admin/blogs/1522300/edit
?
?
?? 5: 同步
?????? 1 :name lookup failed for?? Temporary failure in name resolution
?????? 在/etc/hosts?? 加入? xxxx.xxx.xxx.xx hostname
?????? 2: rsync
?????? chdir *** failed:? Permission denied (13)”的错误
?????? setsebool -P rsync_disable_trans on
?
修改服务器端的 配置文件 rsyncd.conf
uid = 0
gid = 0
?
或者把报错的目录 权限修改为755
?
?
?