Search Engine: Elastic

Article ID: 114350, created on Jul 12, 2012, last review on May 8, 2014

  • Applies to:
  • Operations Automation 5.4

In Linux Shared Hosting NG all customers' websites' content is placed on NFS share which has to support remote user quotas configuration. Parallels provides own quota RPM package with enabled remote quota management. The RPM package and the configuration script are delivered by Parallels and can be found in the POA distribution.

If the NFS server does not have the RPC quota support then PA Provider has to develop custom quotactl_ script and add it to all web servers in the NG cluster. The location for the quota_ctl script file on the web servers is as follows:


Quota script is called in the following cases:

  • New webspace provisioning
  • Subscription upgrade
  • Disk space usage collection (once a day)

The script should accept the following options (see the table below for more details):

/usr/local/pem/etc/quota_ctl FS_id command type Obj_ID [inode_soft inode_hard disk_soft disk_hard]

For example:

/usr/local/pem/etc/quota_ctl set user 100009 100000 110000 1000000 1100000

The table below describes the parameters:

Parameter Description
FS_id Specifies the NFS server name and exported server directory to mount from. For example, server:/usr/local/pub (see man nfs).
command Specifies the command the script has to perform. Two commands are available:
 set - the script sets up user quotas. No information is sent to stdout and script exits with success or error status.
get - the script should provide to stdout number of bytes that given user or group is using on filesystem.
type Specifies the object type:
Obj_ID Specifies the user or group unique ID
The arguments below are to be specified if the set command parameter is used
inode_soft Specifies the disk inode usage soft limit
inode_hard Specifies the disk inode usage hard limit
disk_soft Specifies the disk usage soft limit (number of blocks, block size is supposed to be 1024 bytes)
disk_hard Specifies the disk usage hard limit (number of blocks, block size is supposed to be 1024 bytes)

See the main Knowledgebase article #114326 Linux Shared Hosting NG: General Information, Best Practices and Troubleshooting for more information about NG Hosting in Parallels Automation.

caea8340e2d186a540518d08602aa065 5356b422f65bdad1c3e9edca5d74a1ae ac82ce33439a9c1feec4ff4f2f638899 2554725ed606193dd9bbce21365bed4e e12cea1d47a3125d335d68e6d4e15e07

Email subscription for changes to this article
Save as PDF