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]
/usr/local/pem/etc/quota_ctl 10.31.77.240:/filer1 set user 100009 100000 110000 1000000 1100000
The table below describes the parameters:
|FS_id||Specifies the NFS server name and exported server directory to mount from. For example, server:/usr/local/pub (see man nfs).|
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.
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.