[Gluster-users] Quota calculation
anthony garnier
sokar6012 at hotmail.com
Mon Sep 5 14:33:46 UTC 2011
Hi Junaid,
Sorry about the confusion, indeed I gave you the
wrong output. So let's start to the beginning. I disabled quota and I
reactivated it
My configuration :
Volume Name: venus
Type: Distributed-Replicate
Status: Started
Number of Bricks: 2 x 2 = 4
Transport-type: tcp
Bricks:
Brick1: ylal3020:/soft/venus
Brick2: ylal3030:/soft/venus
Brick3: yval1000:/soft/venus
Brick4: yval1010:/soft/venus
Options Reconfigured:
nfs.port: 2049
performance.cache-refresh-timeout: 60
performance.cache-size: 1GB
network.ping-timeout: 10
features.quota: on
features.limit-usage: /test:100MB,/psa:200MB,/:7GB,/soft:5GB
features.quota-timeout: 120
Size of each folder from the mount point :
/test : 4.1MB
/psa : 160MB
/soft : 1.2GB
Total size 1.4GB
(If you want the complete output of du, don't hesitate)
gluster volume quota venus list
path limit_set size
----------------------------------------------------------------------------------
/psa 200MB 167.0MB <=OK
/soft 5GB 4.7GB <= NO OK
/test 100MB 4.0MB <= OK
/ 7GB 5.2GB <= NO OK
Is seems this is 4 time the original size for / and /soft
Getfattr for the four nodes :
ylal3020:/etc/ucarp/interface # getfattr -n trusted.glusterfs.quota.size -e hex /soft/venus ; getfattr -n trusted.glusterfs.quota.size -e hex /soft/venus/test ; getfattr -n trusted.glusterfs.quota.size -e hex /soft/venus/psa;getfattr -n trusted.glusterfs.quota.size -e hex /soft/venus/soft
getfattr: Removing leading '/' from absolute path names
# file: soft/venus
trusted.glusterfs.quota.size=0x00000000b3ad6c00
getfattr: Removing leading '/' from absolute path names
# file: soft/venus/test
trusted.glusterfs.quota.size=0x00000000001f8000
getfattr: Removing leading '/' from absolute path names
# file: soft/venus/psa
trusted.glusterfs.quota.size=0x0000000004f62c00
getfattr: Removing leading '/' from absolute path names
# file: soft/venus/soft
trusted.glusterfs.quota.size=0x0000000098f4b200
----
ylal3030:/etc/ucarp/interface # getfattr -n trusted.glusterfs.quota.size -e hex /soft/venus ; getfattr -n trusted.glusterfs.quota.size -e hex /soft/venus/test ; getfattr -n trusted.glusterfs.quota.size -e hex /soft/venus/psa;getfattr -n trusted.glusterfs.quota.size -e hex /soft/venus/soft
getfattr: Removing leading '/' from absolute path names
# file: soft/venus
trusted.glusterfs.quota.size=0x00000000b38e1c00
getfattr: Removing leading '/' from absolute path names
# file: soft/venus/test
trusted.glusterfs.quota.size=0x00000000001f8000
getfattr: Removing leading '/' from absolute path names
# file: soft/venus/psa
trusted.glusterfs.quota.size=0x0000000004f62c00
getfattr: Removing leading '/' from absolute path names
# file: soft/venus/soft
trusted.glusterfs.quota.size=0x0000000098b5e200
----
yval1000:/soft/venus # getfattr -n trusted.glusterfs.quota.size -e hex /soft/venus ; getfattr -n trusted.glusterfs.quota.size -e hex /soft/venus/test ; getfattr -n trusted.glusterfs.quota.size -e hex /soft/venus/psa;getfattr -n trusted.glusterfs.quota.size -e hex /soft/venus/soft
getfattr: Removing leading '/' from absolute path names
# file: soft/venus
trusted.glusterfs.quota.size=0x0000000098a8ac00
getfattr: Removing leading '/' from absolute path names
# file: soft/venus/test
trusted.glusterfs.quota.size=0x0000000000210000
getfattr: Removing leading '/' from absolute path names
# file: soft/venus/psa
trusted.glusterfs.quota.size=0x000000000579e000
getfattr: Removing leading '/' from absolute path names
# file: soft/venus/soft
trusted.glusterfs.quota.size=0x00000000930dcc00
----
yval1010:/soft/venus # getfattr -n trusted.glusterfs.quota.size -e hex /soft/venus ; getfattr -n trusted.glusterfs.quota.size -e hex /soft/venus/test ; getfattr -n trusted.glusterfs.quota.size -e hex /soft/venus/psa;getfattr -n trusted.glusterfs.quota.size -e hex /soft/venus/soft
getfattr: Removing leading '/' from absolute path names
# file: soft/venus
trusted.glusterfs.quota.size=0x0000000098a2ac00
getfattr: Removing leading '/' from absolute path names
# file: soft/venus/test
trusted.glusterfs.quota.size=0x0000000000210000
getfattr: Removing leading '/' from absolute path names
# file: soft/venus/psa
trusted.glusterfs.quota.size=0x000000000579e000
getfattr: Removing leading '/' from absolute path names
# file: soft/venus/soft
trusted.glusterfs.quota.size=0x000000009307cc00
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://supercolony.gluster.org/pipermail/gluster-users/attachments/20110905/3a5e2143/attachment.html>
More information about the Gluster-users
mailing list