In Linux Shared Hosting NG all customers websites content is placed on NFS share which has to support remote user quotas configuration. CloudBlue provides own quota RPM package with enabled remote quota management. The RPM package and the configuration script are delivered by CloudBlue and can be found in the OA distribution.
If the NFS server does not have the RPC quota support then 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:
/usr/local/pem/etc/quota_ctl
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 10.31.77.240:/filer1 set user 100009 100000 110000 1000000 1100000
Note:
If Subscription with NG Web Hosting contains Unlimited
resource quota Odin Automation pass it to integration script as 0
. Integration script should handle such values and configure quota on NFS storage accordingly. For example, sends correct request to NAS Storage for quota configuration.
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: • user • group |
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.