vzlicview
Network restart error
-bash-3.2# service network restart
Shutting down loopback interface:??[??OK??]
Bringing up loopback interface:??[??OK??]
Bringing up interface venet0:??SIOCADDRT: Network is unreachable
Solution : /etc/sysconfig/network-scripts/ifup-routes venet0:0
Feb 24 00:02:18 server su: pam_unix(su-l:session): session opened for user root by (uid=0)
cat /var/log/secure
============
Feb 14 00:12:18 server su: pam_unix(su-l:session): session opened for user root by (uid=0)
============
Normally this happens when a VPS is accessed from a node.
Internal Server Error 500 more than 400 attempts to create a session failed
Internal Server Error 500 more than 400 attempts to create a session failed while accessing WHM.
Solution :
Check inode of your server.
df -i
Validate VPS conf file
========================
[root@NODE cache]# vzcfgvalidate /etc/sysconfig/vz-scripts/551.conf
Validation completed: success
[root@NODE cache]#
========================
Mount VPS /tmp as exec
Run the following command from NODE.
****THIS WILL RESTART THE VPS *****
vzctl set VEID –bindmount_add /tmp,noexec,nosuid,nodev –save –setmode restart —> to make it noexec
vzctl set VEID –bindmount_add /tmp,nosuid,nodev –save –setmode restart —> to make it exec
How to increase the quotaugidlimit in a vps
Quotaugidlimit is the number of user/group IDs allowed for VPS internal disk quota.
If you see error message like this trying to manage users’ quotas inside a VE:
edquota: Can’t write quota for 32063 on /dev/vzfs: No such processResetting quota for admin2 to 0 Meg….Done
then probably its reason is that second-level quota limit is exceeded and user quotas above a limit were not loaded.
Please increase QUOTAUGIDLIMIT parameter value for a VE to the numberwhich is greater than sum of users and groups created (or supposed to be created) in a VE.
This command will show you current usage of second-level quotas in a VE #101, you may run it on a hardware node:# wc -l /vz/root/101/etc/{passwd,group}95 /vz/root/101/etc/passwd107 /vz/root/101/etc/group202 total
You may increase QUOTAUGIDLIMIT parameter using ‘vzctl’ utility on a node:# vzctl set 101 –save –quotaugidlimit 210
To apply changes it is required to restart VE:# vzctl restart 101
How to check if VPS has memory bottleneck
How to check if VPS has problem with its RAM memory
[root@NODE]# less /var/log/messages|grep OOM|grep VEID |wc -l
191
[root@NODE]#
This means that you have hit your RAM (memory) limit “191″ times until now. When you hit the memory limit, the services running in your VPS will get affected and may go down since there is not enough memory for them to run.
List top 5 load consuming VPS in a node
vzlist -o veid,laverage|sort -nrk 2|head -5