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