Author Topic: Quotas..  (Read 10074 times)

0 Members and 1 Guest are viewing this topic.

Offline
*
Quotas..
« on: January 14, 2015, 09:10:02 AM »
Hey!

My CMP is running good but quotas not work and quatas conf is

#
# /etc/fstab
# Created by anaconda on Mon Jan 12 09:22:02 2015
#
# Accessible filesystems, by reference, are maintained under '/dev/disk'
# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info
#
/dev/mapper/vg_ix2-lv_root /                       ext4    defaults        1 1
UUID=4700ecbd-ceec-4653-adf9-42b154ce707f /boot                   ext4    defaults        1 1
/dev/mapper/vg_ix2-lv_home /home                   ext4   defaults,usrjquota=quota.user,jqfmt=vfsv0        1       1
/dev/mapper/vg_ix2-lv_swap swap                    swap    defaults        0 0
tmpfs                   /dev/shm                tmpfs   defaults        0 0
devpts                  /dev/pts                devpts  gid=5,mode=620  0 0
sysfs                   /sys                    sysfs   defaults        0 0
proc                    /proc                   proc    defaults        0 0

My VPS server Partition scheme, output of the command df -h

Filesystem            Size  Used Avail Use% Mounted on
/dev/mapper/vg_ix2-lv_root
                       50G  2.9G   44G   7% /
tmpfs                 1.9G     0  1.9G   0% /dev/shm
/dev/vda1             477M   47M  405M  11% /boot
/dev/mapper/vg_ix2-lv_home
                      439G  241M  416G   1% /home


and when set Quatas CWP is error goming screen

etquota: Mountpoint (or device) / not found or has no quota enabled. setquota: Not all specified mountpoints are using quota. setquota: Mountpoint (or device) / not found or has no quota enabled. setquota: Not all specified mountpoints are using quota. setquota: Mountpoint (or device) / not found or has no quota enabled. setquota: Not all specified mountpoints are using quota. setquota: Mountpoint (or device) / not found or has no quota enabled. setquota: Not all specified mountpoints are using quota. setquota: Mountpoint (or device) / not found or has no quota enabled. setquota: Not all specified mountpoints are using quota.

and Quata is enable??

quotaon -p -a
group quota on /home (/dev/mapper/vg_ix2-lv_home) is off
user quota on /home (/dev/mapper/vg_ix2-lv_home) is on


My CentOS versio is CentOS release 6.6 (Final)

And /etc/mtab show this

/dev/mapper/vg_ix2-lv_root / ext4 rw 0 0
proc /proc proc rw 0 0
sysfs /sys sysfs rw 0 0
devpts /dev/pts devpts rw,gid=5,mode=620 0 0
tmpfs /dev/shm tmpfs rw 0 0
/dev/vda1 /boot ext4 rw 0 0
/dev/mapper/vg_ix2-lv_home /home ext4 rw,usrjquota=quota.user,jqfmt=vfsv0 0 0
none /proc/sys/fs/binfmt_misc binfmt_misc rw 0 0
« Last Edit: January 14, 2015, 09:24:23 AM by MikaR »

Offline
*
Re: Quotas..
« Reply #1 on: January 14, 2015, 10:16:08 AM »
Okay..

This line set

/dev/mapper/vg_ix2-lv_home /home                   ext4   defaults,usrjquota=quota.user,jqfmt=vfsv0        1       2

Not..


/dev/mapper/vg_ix2-lv_home /home                   ext4   defaults,usrjquota=quota.user,jqfmt=vfsv0        1       1

And

this only work add manual

setquota -u user1 -F vfsv0 0 1000000 0 0 /dev/mapper/vg_ix2-lv_home /home

CWP panel --> List Packages --> Edit Package --> Update Quota:    
(Update quota for all users using this package, also disables inode limits !)  <-- not work



Offline
*
Re: Quotas..
« Reply #2 on: January 19, 2015, 02:39:09 AM »
Add this into the CWP configuration

Code: [Select]
mkdir -p /usr/local/cwp/.conf/
echo "/home" > /usr/local/cwp/.conf/quota_part.conf
AntiDDoS Protection (web + mail)
http://centos-webpanel.com/website-ddos-protection-proxy

Join our Development Team and get paid !
http://centos-webpanel.com/develope-modules-for-cwp


Services Monitoring & RBL Monitoring
http://centos-webpanel.com/services-monitor


Do you need Fast and FREE Support included for your CWP linux server?
http://centos-webpanel.com/noc-partner-list
Installation Instructions
http://centos-webpanel.com/installation-instructions
Get Fast Support Here
http://centos-webpanel.com/support-services