Ceph Pool Quota full fault handling

Source: Internet
Author: User

1, fault phenomenon

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/6F/A6/wKioL1WkeaXxCpG-AANE3_KouPo128.jpg "title=" 1.png " alt= "Wkiol1wkeaxxcpg-aane3_koupo128.jpg"/>

The above tag shows that the data pool is full, now the single valid data is 1.3T, the total capacity of three parts is about 4T, and there are already 24 pg appeared inconsistent phenomenon, indicating that the write has been inconsistent fault.

2. View quotas

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/6F/A5/wKioL1WkdZny5YEEAALGsYLPwqA221.jpg "title=" 2.png " alt= "Wkiol1wkdzny5yeeaalgsylpwqa221.jpg"/>


By looking at the target_bytes (the maximum storage capacity of the pool) storage capacity is 10T, but the max_objects (change the maximum allowed to store the number of objects) is relatively small is 2048000, the capacity of each object 2M calculation, The 2.048 million object capacity is exactly 4T, which is the total quota when the failure occurs above.

3. Solution

Set the max_objects and target_bytes as large as possible.


Sets the number of objects in a pool (default is calculated for each object 2M capacity, the total capacity of this value is 100T)

[Email protected] ~]# ceph OSD Pool Set-quota data max_objects 50000000

Set-quota max_objects = 25000000 for pool data


Set the data pool to a maximum storage space of 100T

[[email protected] ~]# ceph OSD Pool Set data target_max_bytes 100000000000000

Set pool 0 target_max_bytes to 100000000000000


4, data pool full problem resolution, now the CEPH state



This article is from the "zhanguo1110" blog, make sure to keep this source http://zhanguo1110.blog.51cto.com/5750817/1673985

Ceph Pool Quota full fault handling

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.