virtual server hosting
Each Virtual Server has a quota that controls the amount of disk space it can use on the physical server. The amount of disk space allocated depends on the type of Virtual Server. Although your Virtual Server's quota can be increased at any time by purchasing additional disk space, it is not always necessary to add additional disk space when your quota is reached. It is very common for the log files on your Virtual Server to be taking up excessive space. These issues will be discussed later in this chapter. Sample Quota Command

To check the amount of disk space being used on your Virtual Server, Telnet to the server, and from a command prompt type:

% quota
Disk quotas for user bob (uid 11487):
Filesystem blocks quota  limit  grace files quota limit grace
/usr       80030  281600 309760  255  55000 57750

Defining quota Command Output

Column

Description

Filesystem

This indicates that quota is checking for any files that you own on the /usr volume. You also own files on the /backup volume but they are not counted against your quota.

Blocks

The blocks indicate the space that is currently being used. A block is 1024 bytes. This server is using 81.9 MB of disk space (80030x1024).

Quota

The disk space allowed a Virtual Server indicated in blocks. This Virtual Server has 275 megabytes by default (281600/1024=275). The quota is a soft limit, meaning the server continues to function when it reaches the quota.

Limit

The limit is a hard limit, meaning the server is unable to write to disk when it exceeds this limit. Each Virtual Server is allowed a 10% (275+27.5=302.5 | 302.5*1024=309760) excess of its quota before the limit is reached.

Grace

The grace period is a time allowed for being over quota before a hard limit is reached. The grace period is 7 days. You can go over quota and still continue to function as long as you do not go over quota by 10% or more or for over 7 days.

Files

Your quota is also controlled by the number of files you have and the amount of disk space. We currently give you 200 files per meg (275*200=55000). The files limit has a quota and grace, which function just like the disk space quota.

Note: When you are over the quota, you need to take action before the limit is reached. When the limit is reached, any program that creates or appends to files (such as your web server) does not function.

Exceeding Quotas Due to Log Files
The server maintains e-mail, FTP, and web log files. The logs grow rapidly on an active server. To avoid going over the limit due to log files, set up a cron file that e-mails the needed logs to you and then nukes the logs when finished. See the "Managing with cron " section earlier in this chapter.Removing Log Files

At the command prompt, type the command vnukelog -r. This action removes the following files:

~/usr/log/messages (this is the log file for E-mail, ftp and logins)
~/www/logs/error_log
~/www/logs/access_log

Removing Subhost Log Files
At the command prompt, enter the command vnukelog -d ServerName (where ServerName is the name specified in the VirtualHost directive ServerName for the subhost whose log files you wish to delete). This action removes the log files defined for the specified subhost.Managing Subhost Quotas

The command used to maintain logs for subhosts is called vnukelog. The command reads the web httpd.conf file, checks for subhosts with log files, and lists the log files. You can then choose which log files to delete with vnukelog.

Viewing Your Disk Usage

While at a command prompt, type:

% cd
% vdiskuse | more

Note: vdiskuse lists the directory and file usage from your current directory.

Hosting  ::  Web Design  :: Server Administration  ::  Tech Support  ::  Contacts
Data Centers  ::  Tier I Global IP Network  ::  SLA/Contracts  ::  Search  ::  Account Login