Commit 71479c3c authored by Vitaly Lipatov's avatar Vitaly Lipatov

small fixes

parent cd0a0b48
...@@ -8,6 +8,6 @@ export VEIP=192.168.0.$VEID ...@@ -8,6 +8,6 @@ export VEIP=192.168.0.$VEID
vzctl create $VEID --ostemplate=etersoft-p8 vzctl create $VEID --ostemplate=etersoft-p8
vzctl set $VEID --hostname $NAME --onboot yes --ipadd $VEIP --save vzctl set $VEID --hostname $NAME --onboot yes --ipadd $VEIP --save
#vzctl set $VEID --searchdomain etersoft.ru --save #vzctl set $VEID --searchdomain etersoft.ru --save
vzctl set $VEID --shmpages 300M --physpages 1G --privvmpages 2G --tcprcvbuf umlimited --kmemsize 40M:45M --numproc 512 --dcachesize unlimited --save vzctl set $VEID --shmpages 300M --physpages 1G --privvmpages 2G --tcprcvbuf unlimited --kmemsize 40M:45M --numproc 512 --dcachesize unlimited --save
#iptables -t nat -A POSTROUTING -s $VEIP -o eth0 -j SNAT --to-source $EXTIP #iptables -t nat -A POSTROUTING -s $VEIP -o eth0 -j SNAT --to-source $EXTIP
#iptables -t nat -A PREROUTING -d $EXTIP -i eth0 -p tcp -m tcp --dport "$VEID"22 -j DNAT --to-destination $VEIP:22 #iptables -t nat -A PREROUTING -d $EXTIP -i eth0 -p tcp -m tcp --dport "$VEID"22 -j DNAT --to-destination $VEIP:22
...@@ -3,7 +3,7 @@ for id in $(vzlist | sed -e "s| *\([0-9]*\).*|\1|g") ; do ...@@ -3,7 +3,7 @@ for id in $(vzlist | sed -e "s| *\([0-9]*\).*|\1|g") ; do
CONF=/etc/vz/conf/$id.conf CONF=/etc/vz/conf/$id.conf
test -r $CONF || continue test -r $CONF || continue
eval `cat $CONF | grep ^HOSTNAME | sed -e "s|office.etersoft.ru||g"` eval `cat $CONF | grep ^HOSTNAME | sed -e "s|office.etersoft.ru||g"`
printf "%4s (%20s):" $id $HOSTNAME printf "%4s (%30s):" $id $HOSTNAME
vzctl exec $id uptime vzctl exec $id uptime
done done
echo "---" echo "---"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment