How to get VPS license details

ARUN Posted in VPS
0

vzlicview

Network restart error

ARUN Posted in VPS
0

-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)

ARUN Posted in LOG FILES, VPS
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.

Disk space errors in VPS

ARUN Posted in DISK RELATED, VPS
0

==================================

Drive Critical: /dev/vzfs (/) is 97% full

Drive Critical: /dev/simfs (/tmp) is 97% full

==================================

Solution :

Check the disk space usage of node server and if its above 95% this can happen. So move some VEs to another server and see.

Internal Server Error 500 more than 400 attempts to create a session failed

ARUN Posted in CPANEL FRONTEND, VPS, WHM FRONTEND
0

Internal Server Error  500  more than 400 attempts to create a session failed   while accessing WHM.

Solution :

Check  inode of your server.

df -i

How to reinstall a VPS

ARUN Posted in VPS
0

vzctl stop VEID

vzctl reinstall VEID

Validate VPS conf file

ARUN Posted in VPS
0

========================

[root@NODE cache]# vzcfgvalidate /etc/sysconfig/vz-scripts/551.conf
Validation completed: success
[root@NODE cache]#

========================

Mount VPS /tmp as exec

ARUN Posted in VPS
0

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

ARUN Posted in VPS
0
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 process
Resetting quota for admin2 to 0 Meg….Done
Or if we see WHM cpanel users limit as UNLIMITED or ZERO
then probably  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 number
which 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/passwd
107 /vz/root/101/etc/group
202 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

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

Enable a VE

ARUN Posted in VPS
0

vzctl set VEID –disable no –save

Unlock a VE

ARUN Posted in VPS
0
cd /vz/lock/
vi VEID.lck

Increase or decrease inode on a VPS from node

ARUN Posted in DISK RELATED, VPS
0

[   vzctl set VEID --diskinodes 2000000:2000200 --save     ]    –> To set the inode on a VPS.

vzctl exec VEID df -i         —> To view the inode

Access VPS files from node

ARUN Posted in VPS
0

/vz/private/VEID/fs/

How to check if VPS has memory bottleneck

ARUN Posted in VPS
0

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

ARUN Posted in VPS
0
vzlist -o veid,laverage|sort -nrk 2|head -5