LinuxBabu ………..

Virtuozzo

Cpanel disk used incorrect showing unlimited or 0MB

by admin on Jul.04, 2008, under Virtuozzo, cPanel

You can fix this by running the script  /scripts/fixquotas

is this doesn’t work and you are using Virtuozzo or OpenVZ you will need to set the QUOTAUGIDLIMIT perimeter – this allows the system to allocate user IDs (UID)

e.g (openvz)

vzctl set 101 –quotaugidlimit 1000 –save

then run the scrip “/scripts/fixquotas”

and it should all work.

Troubleshooting

If you’ve done the above and it still doesn’t work (or the value still says 0MB) this may be due to cPanel caching the disk usage results. to disable this:

Select the following in your WHM.

WHM >> Tweak Settings >> System >> “Disable Disk Quota display caching (WHM will cache disk usage which may result in the display of disk quotas being up to 15 minutes behind the actual disk usage. Disabling this may result in a large performance degradation.)”

Leave a Comment more...

Easy apache error on a VPS – !! Warning (VZ): You are only only guaranteed xx Megabytes of ram! xxx Megabytes is recommended. !!

by dino on Jul.03, 2008, under Virtuozzo


Easy::Apache v3.2.0 Build 4310

!! Warning (VZ): You are only only guaranteed 224 Megabytes of ram! 512 Megabytes is recommended. !!

If you get above memory error on VPS while running easy apache,  You can fix by using following steps. Login in to main VPS and edit the variable OOMGUARPAGES accordingly.

OR

OpenVZ Users :
You can also modify the
OOMGUARPAGES values from shell as required.  :

vzctl set 101 –OOMGUARPAGES 561120:2147483647 –save

Need Assistance with nominal fee contact admin@linuxbabu.net

Leave a Comment more...

Any operation on a VE gives me “Cannot lock VE”.

by dino on Jun.19, 2008, under Virtuozzo

Any operation on a VE gives me “Cannot lock VE“.

VE is locked when some operation (backup, migration, start / stop, etc.) with this VE is in progress. You can determine which process is holding VE #111 using the following command on the hardware node:

# cat /vz/lock/111.lck

16824
backing-up

You can kill that process if needed. Make sure that the process is really killed. If there is no process with that PID on the node, just remove the lockfile.

# kill 16824

# vzctl start 111

Leave a Comment more...

Easy apache error on a VPS – You are only only allowed to use xx Megabytes of ram! xxx Megabytes is required

by dino on Jun.06, 2008, under Virtuozzo, cPanel

Sometimes, you can get the following error on VPS while running easy apache. You can fix by simple following steps.

Login in to main VPS and edit the variable PRIVVMPAGES accordingly

/scripts/easyapache
Use of uninitialized value in pattern match (m//) at /var/cpanel/perl/easy/Cpanel/Easy/Utils.pm line 436.
!! Critical Error (VZ): You are only only allowed to use 90 Megabytes of ram! 512 Megabytes is required. !!

You can also modify the privvmpages values from shell as required. (For OpenVZ users) :

vzctl set 101 --privvmpages 850M:900M --save

Leave a Comment more...

Hotlink protection: How-To prevent people from stealing your files

by dino on May.25, 2008, under Basics, Command Line, DirectAdmin, Plesk, Virtuozzo, WebMin, cPanel

Create an .htaccess file in your public_html directory with the following code:

RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://(www.)?
domain.com.*$ [NC]
RewriteRule .(gif|jpg)$ – [F]

Where domain.com is your domain.

Leave a Comment more...

What is Virtuozzo / Parallels Power Panel?

by dino on May.09, 2008, under Virtuozzo

Virtuozzo / Parallels Power Panel also known as VZPP / PPP is used to manage a VPS / Container efficiently. A user can Restart, Stop, Start, and Fast Stop his/her VPS when an emergency occurs. Using Virtuozzo also helps a user to get better information of his/her VPS such as Change password, File Manager, Resources, System Services, System Processes, Firewall, SSH Connection, Status Changes, QoS Alerts, Action Log, Traffic Log etc.

Virtuozzo Power Panel Features:-

* Start/Stop VPS: Start, stop, fast stop and restart the VPS.

* VPS Resource Monitoring: Monitor VPS resource utilization for CPU, system, disk space and disk inodes.

* VPS Backup/Restore: Back up and restore the VPS from the backup including all system and user files.

* VPS Repair: Start the VPS in repair mode when a VPS is broken and does not boot.

-> Embedded SSH Client: Connect via integrated SSH client to the VPS.

* VPS Re-install: Reinstall the VPS from scratch, either saving or discarding existing files.

* VPS Actions Log: View the VPS actions log to monitor resource shortage alerts and various VPS events

* VPS Resources: Shows package name, Additional Information, CPU Usage with graphic, System Usage with Graphic, Disk Usage and Network Usage. By pressing the Extended button you will get a more detailed CPU Parameters, Disk Quota, and UBCs.

* File Manager: Lets you see the files on your VPS.

* Change Password: You can use this option to change the VPS Password.

* System Services: Shows the running applications.

* System Processes: Shows running application/processes. Lets you see CPU%, Mem%, the command and PID.

* Status Changes: Shows the VPS changes such as restarts, stops, locked, etc.

* Actions Log: Shows a list of actions, both running and already finished.

* QoS Alerts: This will be the first thing that is going to tell you when a problem occurs.

How to access Virtuozzo?

VZPP is accessible via 4643 port. For example: If your main VPS Container IP 192.168.1.121,

Users can access VZPP in the following manner – https://192.168.1.121:4643

username: root

password: your_current_root_password

Leave a Comment more...

semget: No space left on device

by dino on Apr.25, 2008, under Basics, Command Line, DirectAdmin, Plesk, Uncategorized, Virtuozzo, WebMin, cPanel

This relates to semaphores on your system (you’ve run out). Run the following to clear them out:

ipcs | grep apache | awk ‘{print $2}’ > sem.txt
for i in `cat sem.txt`; do { ipcrm -s $i; }; done;

For cPanel servers :

ipcs | grep nobody | awk ‘{print $2}’ > sem.txt
for i in `cat sem.txt`; do { ipcrm -s $i; }; done;

 

Finally restart Apache :

/etc/init.d/httpd restart

Or 
service httpd restart

 

 

Leave a Comment more...

Any operation on a VPS gives me “Cannot lock VE”. How do I solve it?

by dino on Apr.23, 2008, under Virtuozzo

A VPS is locked when some operation (backup, migration, start / stop, etc.) with that VPS is in progress. You can determine which process is holding VPS #101 using the following command on the hardware node:

cat /vz/lock/101.lck

You can kill that process if needed, but make sure that the process is really killed. If there is no process with that PID on the node, just remove the lockfile.

Leave a Comment more...

Virtuozzo glibc-dummy-centos-4 Error (1)

by admin on Feb.28, 2008, under Virtuozzo

If you come across this error when trying to do a “yum update” on your Virtuozzo Virtual Dedicated Server

–> Processing Dependency: glibc-common = 2.3.4-2.25 for package: glibc-dummy-centos-4–> Finished Dependency ResolutionError: Missing Dependency: glibc-common = 2.3.4-2.25 is needed by package glibc-dummy-centos-4

You can make use of the following steps to fix the problem. First you need to remove the package that is causing the problem.

yum remove glibc-dummy-centos-4

After you have removed that package you need to reinstall gcc with all the extras. You can do that simply by running the following command.

yum install gcc & yum install gcc*

If everything installed correctly you should now be able to run a yum update and it should not error out at all.

Leave a Comment more...

Enable SLM on Virtuozzo

by admin on Feb.28, 2008, under Virtuozzo

 What is SLM, “Virtuozzo Service Level Management (SLM) is a system that maintains and allows administrators to configure and control the levels of service (i.e., the set of ‘promises’) provided to VPS owners.I came across some different ways of enabling SLM on the Virtuozzo Node, by far the best was the information about how to enable it with out a Node reboot. run the following commands. Edit the following files and make said changes

/etc/sysconfig/vz and change the SLM entry to slm=yes/etc/sysconfig/vzagent/vzagent.conf Locate the SLM entry, change it to 1. 

 

After you modified configuration file you need to restart VZAgent, use the following command on a hardware node:

vzagent_ctl restart 

 

Leave a Comment more...

Looking for something?

Use the form below to search the site:

Still not finding what you're looking for? Drop a comment on a post or contact us so we can take care of it!

Visit our friends!

A few highly recommended friends...