Enabling disk quotas

Enabling disk quotas in ISPmanager

To enable disk quotas in ISPmanager, browse to the "Software" module and install or activate (if it is already installed) the packet "Disk quotas".

  • If you run Linux systems, the quota packet will be installed
  • If you run FreeBSD, the quotas must be enabled in the kernel (in GENERIC has it enabled by default)

ISPmanager will:

  • activate required options in /etc/fstab нужные опции
  • re-mount /
  • start quotacheck on /
  • enable quotaon on /

Once you are done, users will see the "Disk" column in the interface menu and you will be able to set disk limit per each user (ISPmanager calculates quota every 10 minutes)

Enabling disk quotas manually

If ISPmanager failed to enable disk quotas, you should:

Check mounting options

Execute the command

mount | grep 'on / '

It will show mounting options for file system's root. They must include

  • Linux
grpquota,usrquota
  • FreeBSD
with quotas

If quotas are not enabled, add the options into /etc/fstab like that:

  • Linux
UUID=<тут UUID> /   ext4    defaults,grpquota,usrquota   1 1
  • FreeBSD
/dev/gpt/rootfs /   ufs     rw,groupquota,userquota      1 1

Re-mount the root with the command

  • Linux
mount -o remount /
  • FreeBSD
mount /

Creating files for quota

Run

  • Linux
quotacheck -gum /
  • FreeBSD
quotacheck -gu /

Enabling quotas

Execute the command

quotaon -guv /

On FreeBSD you must also add the following into /etc/rc.conf

enable_quotas="YES"
 

Was this answer helpful?

 Print this Article

Also Read

Mail configuration

General information Mail services in ISPmanager 5 are managed are by both POP3-server Dovecot...

Logs rotation

How logs rotation works By default for logs rotation ISPmanager 5 uses...

External name servers

This module can be used to manage your external name servers. You may use a remote server with...

Email templates(ISPmanager)

An email template is a predefined text message with macros that can replaced...

Customizing DNSmanager

DNSmanager is a DNS slave server management system. It can be used both as a stand-alone...