*Migration
for CT in $(vzlist -H -o veid);do vzmigrate -r no --keep-dst 77.95.229.43(destinationIP) $CT; done
*Updating SolusVM
for VSERVERID in $`cat vsrvrids.txt`;do /scripts/vm-migrate $VSERVERID 12; done
linux:~# netstat -ntu | awk '{print $5}' | cut -d: -f1 | sort | uniq -c | sort -n|wc -l
linux:~# netstat -ntu | awk '{print $5}' | cut -d: -f1 | sort | uniq -c | sort -n
221 80.143.207.107 233 145.53.103.70 540 82.176.164.36
linux:~# lsof -i TCP:80
litespeed 241931 nobody 17u IPv4 18372655 TCP server.pc-freak.net:http (LISTEN)
litespeed 241931 nobody 25u IPv4 18372659 TCP 85.17.159.89:http (LISTEN)
litespeed 241931 nobody 30u IPv4 29149647 TCP server.pc-freak.net:http->83.101.6.41:54565 (ESTABLISHED)
litespeed 241931 nobody 33u IPv4 18372647 TCP 85.17.159.93:http (LISTEN)
litespeed 241931 nobody 34u IPv4 29137514 TCP server.pc-freak.net:http->83.101.6.41:50885 (ESTABLISHED)
litespeed 241931 nobody 35u IPv4 29137831 TCP server.pc-freak.net:http->83.101.6.41:52312 (ESTABLISHED)
litespeed 241931 nobody 37w IPv4 29132085 TCP server.pc-freak.net:http->83.101.6.41:50000 (ESTABLISHED)
linux:~# lsof -i TCP:80 |wc -l
2100
linux:~# watch "lsof -i TCP:80"
server:~# while :; do netstat -s| grep -i icmp | egrep 'received|sent' ; sleep 1; done
120026 ICMP messages received
1769507 ICMP messages sent
120026 ICMP messages received
1769507 ICMP messages sent
linux:~# netstat -nap | grep SYN | wc -l
1032
server:~# netstat -tuna |wc -l
10012
server:~# netstat -tun |wc -l
9606
server:~# netstat -n | grep :80 | grep SYN |wc -l
server:~# netstat -nap | grep 'udp' | awk '{print $5}' | cut -d: -f1 | sort |uniq -c |sort -n
server:~# netstat -nap | grep 'udp|udp' | awk '{print $5}' | cut -d: -f1 | sort |uniq -c |sort -n
104 109.161.198.86
115 112.197.147.216
129 212.10.160.148
227 201.13.27.137
3148 91.121.85.220
route add 110.92.0.55 reject
route -n |grep -i 110.92.0.55
#vzctl set <VEID> --capability capname:on|off
# yum install ntp
# chkconfig ntpd on
# ntpdate pool.ntp.org
# /etc/init.d/ntpd star
[root@server ~]# vzctl stop 104 Container already lockedHere's how to fix it:
[root@server ~]# rm /vz/lock/104.lck rm: remove regular file `/vz/lock/104.lck'? y
[root@server ~]# vzctl chkpnt 104 --kill Killing...
Now try to start the container,It will start working.
31619.ttyp2.gigan
Thats all.
123.456.789.123:255.255.255.0:123.456.789.255This is a colon-delimited file with each IP address on its own line. The first field is the IP itself, the second is its subnet mask, and the third is its broadcast. You can add as many IPs as you need, putting each on its own line. When you’re done, run the following commands:
service ipaliases reload (or service ipaliases restart)
/scripts/rebuildippoolTo check whether the IPs have been added successfully, you can perform any of the following tests:
/scripts/ipusage <~ will show the IP usage of the server
ifconfig <~ will show all IPs on the server
ping $ip <~ will ping the IP ($ip) you added to make sure it’s routing