Glusterfs Min-free-disk option Function Description

Source: Internet
Author: User
Tags glusterfs gluster

In scenarios where glusterfs's distributed volume (distriick) or distri composite volume is used, many people will be concerned about whether to fill up some brick, and other brick is relatively empty. What will happen?


Glusterfs provides a min-free-disk option that allows you to configure a threshold value for the remaining free space.


When the remaining space of a brick is less than min-free-disk, if the new file falls on this brick, a link (self-contained glusterfs, the actual file location is recorded on the extended attributes.) The file points to the brick where the actual file is located, and the actual file content points to the brick.


In this way, when the file is lookup, it will go to the hash location to lookup to a link file. Then, find the location of the actual file based on the corresponding xattr, and perform subsequent operations at the actual file location.


Min-free-disk can be configured through the command line. The Configuration value can be either a percentage or an absolute value. For example:

# gluster volume set volname min-free-disk 10%

Or

# gluster volume set volname min-free-disk 10GB


Of course, as mentioned above, this option only works for the new file, and the old file will still be written in the original position. If too many original files are written, the brick space will be fully occupied.


In addition, if all the brick data reaches the threshold, the original brick data is still written to the original brick, and the Brick may be full.

This article is from the "einstcrazy" blog, please be sure to keep this source http://einst.blog.51cto.com/9493625/1566373

Glusterfs Min-free-disk option Function Description

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.