Ce contenu n'est pas disponible dans la langue sélectionnée.
9.2. Before Setting a Quota on a Directory
There are several things you should keep in mind when you set a quota on a directory.
- When specifying a directory to limit with the
gluster volume quotacommand, the directory's path is relative to the Red Hat Gluster Storage volume mount point, not the root directory of the server or client on which the volume is mounted. That is, if the Red Hat Gluster Storage volume is mounted at/mnt/glusterfsand you want to place a limit on the/mnt/glusterfs/dirdirectory, use/diras the path when you run thegluster volume quotacommand, like so:gluster volume quota VOLNAME limit-usage /dir hard_limit
# gluster volume quota VOLNAME limit-usage /dir hard_limitCopy to Clipboard Copied! Toggle word wrap Toggle overflow - Ensure that at least one brick is available per replica set when you run the
gluster volume quotacommand. A brick is available if aYappears in theOnlinecolumn ofgluster volume statuscommand output, like so:Copy to Clipboard Copied! Toggle word wrap Toggle overflow