找回密码
 注册
查看: 460|回复: 0

ceph osd pool池限制大小的方式

[复制链接]

1

主题

0

回帖

12

积分

管理员

积分
12
QQ
发表于 2022-12-27 15:37:35 | 显示全部楼层 |阅读模式
[root@ceph1 ~]# ceph osd pool get-quota ocs$ K3 p, ]2 E1 D$ `5 q* J* l
quotas for pool 'ocs':4 N( _1 A: z- [1 ]( f% w
  max objects: N/A
% W# ~$ A% h7 o2 I/ Z2 l  max bytes  : N/A
5 ]* P  e! A8 `/ O- g- a0 h/ u2 i[root@ceph1 ~]# ceph osd pool set-quota ocs max_bytes 350G
! f+ A* u! |# h+ X4 b* ?% T! ^set-quota max_bytes = 375809638400 for pool ocs$ r/ t* F% O4 h# E/ E# ]
[root@ceph1 ~]# ceph osd pool get-quota ocs
1 G$ K+ c+ F/ tquotas for pool 'ocs':
( O" n: E3 p, t( t, A  ?4 i3 l* ~+ ~3 N  max objects: N/A
( F  }4 ^* p- |& E2 ]  max bytes  : 350 GiB
+ ~: |* J! `& N& E4 J( S[root@ceph1 ~]# ceph osd pool get-quota default.rgw.buckets.data: q" @- f+ @, P; s/ ^  g/ C
quotas for pool 'default.rgw.buckets.data':
9 E! u, M, e$ E6 B7 F  max objects: N/A
+ c0 z1 @, @+ t1 r7 Z2 y  max bytes  : N/A2 Z6 m; w" I* Q) D) ?* j1 {
[root@ceph1 ~]# ceph osd pool set-quota default.rgw.buckets.data  max_bytes 200G
; F+ y$ T3 K2 K# |1 @set-quota max_bytes = 214748364800 for pool default.rgw.buckets.data
! b$ M- a: K& ^; }[root@ceph1 ~]# ceph osd pool get-quota default.rgw.buckets.data' @: N$ p& u, b& {
quotas for pool 'default.rgw.buckets.data':
8 G3 @+ ^. [% m! X/ U6 G0 A9 r  max objects: N/A
* d: d, R+ l+ P/ r! T  max bytes  : 200 GiB! W9 l! ?1 z+ K) W+ j" C, r1 d  x( E

6 ~" f& L) C& H: y. Z4 N
; i9 I* g# q) P( T7 V8 d7 _) D
您需要登录后才可以回帖 登录 | 注册

本版积分规则

返回首页|Archiver|手机版|小黑屋|易陆发现技术论坛 ( 蜀ICP备2026014127号-1 )

GMT+8, 2026-6-11 23:02 , Processed in 0.020789 second(s), 23 queries .

Powered by Discuz! X5.0

© 2001-2026 Discuz! Team.

快速回复 返回顶部 返回列表