Tutorial how to enable quota in ISPCONFIG
I Run "quota with ISPCONFIG" and its running ok
1.On proxmox server uncoment:
"lxc.aa_profile = lxc-container-default-with-mounting" in
/usr/share/lxc/config/debian.common.conf
next reboot server
2.Make some CT debian 8.6 from my modify debian with sytemd working : https://forum.proxmox.com/threads/debian-8-6-lxc-template-with-systemd-feature-request.30212/
in /etc/pve/lxc/ find your CT ex. 101.conf
and add lines:
lxc.aa_profile: unconfined
mount -o remount,usrjquota=aquota.user,grpjquota=aquota.group,jqfmt=vfsv0 /
Its very important to add this lines becouse CT will not work without that!
3.Login to your CT and on bash write:
"df"
You shoul see which is your base system loop
exl. /dev/loop0 or /dev/loop1 ...
4. open:
nano /etc/fstab and add this line:
/dev/loop0 / ext4 errors=remount-ro,usrjquota=quota.user,grpjquota=quota.group,jqfmt=vfsv0 0 1
i your loop was not 0 but 1 or something els just rename it to loop1 loop2......
Important thing is quota will not working after reboot of CT so make a script to run this every boot:in CRON:
a)
nano /etc/init.d/mystartup.sh
b)
Insert in file:
#!/bin/bash
echo ^ ^ Setting up customized environment ^ ^ ^
mount -o remount /
quotacheck -avugm
quotaon -avug
c)
make executable file:
chmod +x /etc/init.d/mystartup.sh
update-rc.d mystartup.sh defaults 100
--------------------------------------
Now you may Install ISPCONFIG with working quota.
AWARE that this tut will chcange CT to insecure.
If someone has a better tut or make some scipt to automate this that will be great.
I Run "quota with ISPCONFIG" and its running ok
1.On proxmox server uncoment:
"lxc.aa_profile = lxc-container-default-with-mounting" in
/usr/share/lxc/config/debian.common.conf
next reboot server
2.Make some CT debian 8.6 from my modify debian with sytemd working : https://forum.proxmox.com/threads/debian-8-6-lxc-template-with-systemd-feature-request.30212/
in /etc/pve/lxc/ find your CT ex. 101.conf
and add lines:
lxc.aa_profile: unconfined
mount -o remount,usrjquota=aquota.user,grpjquota=aquota.group,jqfmt=vfsv0 /
Its very important to add this lines becouse CT will not work without that!
3.Login to your CT and on bash write:
"df"
You shoul see which is your base system loop
exl. /dev/loop0 or /dev/loop1 ...
4. open:
nano /etc/fstab and add this line:
/dev/loop0 / ext4 errors=remount-ro,usrjquota=quota.user,grpjquota=quota.group,jqfmt=vfsv0 0 1
i your loop was not 0 but 1 or something els just rename it to loop1 loop2......
Important thing is quota will not working after reboot of CT so make a script to run this every boot:in CRON:
a)
nano /etc/init.d/mystartup.sh
b)
Insert in file:
#!/bin/bash
echo ^ ^ Setting up customized environment ^ ^ ^
mount -o remount /
quotacheck -avugm
quotaon -avug
c)
make executable file:
chmod +x /etc/init.d/mystartup.sh
update-rc.d mystartup.sh defaults 100
--------------------------------------
Now you may Install ISPCONFIG with working quota.
AWARE that this tut will chcange CT to insecure.
If someone has a better tut or make some scipt to automate this that will be great.