setting quotas in openvz vps

Discussion in 'Installation/Configuration' started by ginner159, May 26, 2014.

  1. ginner159

    ginner159 New Member

    hi again all,

    im having setting up quotas on my vps. Ive sent a ticket to my host and got them to enable quotas on my vps but im stuck as to enable it for my clients?

    according to this pefrect server guide: http://www.howtoforge.com/perfect-server-debian-squeeze-with-bind-and-dovecot-ispconfig-3-p4

    the fstab should look like something like this:
    Code:
    # /etc/fstab: static file system information.
    #
    # Use 'blkid' to print the universally unique identifier for a
    # device; this may be used with UUID= as a more robust way to name devices
    # that works even if disks are added and removed. See fstab(5).
    #
    # <file system> <mount point>   <type>  <options>       <dump>  <pass>
    proc            /proc           proc    defaults        0       0
    # / was on /dev/sda1 during installation
    UUID=92bceda2-5ae4-4e3a-8748-b14da48fb297 /               ext3    errors=remount-ro,usrjquota=aquota.user,grpjquota=aquota.group,jqfmt=vfsv0 0       1
    # swap was on /dev/sda5 during installation
    UUID=e24b3e9e-095c-4b49-af27-6363a4b7d094 none            swap    sw              0       0
    /dev/scd0       /media/cdrom0   udf,iso9660 user,noauto     0       0
    /dev/fd0        /media/floppy0  auto    rw,user,noauto  0       0
    
    but mine looks like this?

    ******** = domain name removed

    Code:
    # UNCONFIGURED FSTAB FOR BASE SYSTEM
    /var/log/ispconfig/httpd/******** /var/www/clients/client2/web1/log    none    bind,nobootwait,_netdev    0 0
    /var/log/ispconfig/httpd/******** /var/www/clients/client1/web2/log    none    bind,nobootwait,_netdev    0 0
    /var/log/ispconfig/httpd/******** /var/www/clients/client3/web3/log    none    bind,nobootwait,_netdev    0 0
    /var/log/ispconfig/httpd/******** /var/www/clients/client1/web4/log    none    bind,nobootwait,_netdev    0 0
    /var/log/ispconfig/httpd/******** /var/www/clients/client1/web5/log    none    bind,nobootwait,_netdev    0 0
    /var/log/ispconfig/httpd/******** /var/www/clients/client4/web6/log    none    bind,nobootwait,_netdev    0 0
    /var/log/ispconfig/httpd/******** /var/www/clients/client1/web10/log    none    bind,nobootwait,_netdev    0 0
    
    what do i need to change to allow me to enable quotas
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    Nothing in this file. quota in openvz is configured in the openvz config file on the host server and not inside the vm. If you do not run the host server yourself, then ask your isp to enable filesystem quota for your vm.
     
  3. ginner159

    ginner159 New Member

    i have got them to enable it but this is the only thing that is in the fstab file. i just want it to be able to fill the tables in my admin panel of ispc3 (see pic) so it dosent show unlimited. i have client limits set before you ask lol :p
     

    Attached Files:

  4. till

    till Super Moderator Staff Member ISPConfig Developer

    The limits are set when you add the site, so when quota was not enabled by your isp before, then it is not set now. you can use the resync tool in ispconfig to force all websites to be written to disk again.
     
  5. ginner159

    ginner159 New Member

    ok im doing a resync but, dont i need to have quota tool monitoring something?

    if i try use
    Code:
    quotacheck -avugm
    quotaon -avug
    it it sends an error for no filesystem but i dont know where i can add
    Code:
    ,usrjquota=aquota.user,grpjquota=aquota.group,jqfmt=vfsv0
    cheers till as always
     
  6. till

    till Super Moderator Staff Member ISPConfig Developer

    Like I mentioned above,, quota is managed by openvz, ou dont have to configure it inside the vm.
     

Share This Page