Dieser Inhalt ist in der von Ihnen ausgewählten Sprache nicht verfügbar.
11.4. Displaying Quota Limit Information
You can display quota limit information on all of the directories on which a limit is set.
To display quota limit information on all of the directories on which a limit is set, use the following command:
# gluster volume quota VOLNAME list
For example, to view the quota limits set on test-volume:
To display disk limit information on a particular directory on which limit is set, use the following command:
# gluster volume quota VOLNAME list /<directory_name>
For example, to view limits set on /dir directory of the volume /test-volume :
gluster volume quota test-volume list /dir
# gluster volume quota test-volume list /dir
Path Hard-limit Soft-limit Used Available
-------------------------------------------------
/dir 10.0GB 75% 0Bytes 10.0GB
To display disk limit information on multiple directories on which a limit is set, using the following command:
# gluster volume quota VOLNAME list /<directory_name1> /<directory_name2>
For example, to view quota limits set on directories /dir and /dir/dir2 of volume test-volume :
gluster volume quota test-volume list /dir /dir/dir2
# gluster volume quota test-volume list /dir /dir/dir2
Path Hard-limit Soft-limit Used Available
------------------------------------------------------
/dir 10.0GB 75% 0Bytes 10.0GB
/dir/dir2 20.0GB 90% 0Bytes 20.0GB
11.4.1. Displaying Quota Limit Information Using the df Utility Link kopierenLink in die Zwischenablage kopiert!
Link kopierenLink in die Zwischenablage kopiert!
To report the disk usage using the
df
utility, taking quota limits into consideration, run the following command:
gluster volume set VOLNAME quota-deem-statfs on
# gluster volume set VOLNAME quota-deem-statfs on
In this case, the total disk space of the directory is taken as the quota hard limit set on the directory of the volume.
Note
The default value for
quota-deem-statfs
is off. However, it is recommended to set quota-deem-statfs
to on.
The following example displays the disk usage when
quota-deem-statfs
is off:
Disk usage for volume test-volume as seen on client1:
df -hT /home
# df -hT /home
Filesystem Type Size Used Avail Use% Mounted on
server1:/test-volume fuse.glusterfs 400G 12G 389G 3% /home
The following example displays the disk usage when
quota-deem-statfs
is on:
Disk usage for volume test-volume as seen on client1:
df -hT /home
# df -hT /home
Filesystem Type Size Used Avail Use% Mounted on
server1:/test-volume fuse.glusterfs 300G 12G 289G 4% /home
The
quota-deem-statfs
option when set to on, allows the administrator to make the user view the total disk space available on the directory as the hard limit set on it.