其中,最常用的命令是"ceph osd pool get"。这条命令可以查看指定pool的配置信息,比如副本数、PG数、CRUSH规则等。 当执行这个命令时,会返回该pool的详细配置。比如,执行"ceph osd pool get data pg_num",就可以查看data pool的PG数。PG数是决定数据分布均匀性和负载均衡性的一个重要参数。在C
ceph osd pool set mypool noscrub true #可以修改某个指定的 pool 的轻量级扫描测量为 true,即不执行轻量级扫描 ceph osd pool get mypool noscrub #再次查看就不进行轻量级扫描了 ceph osd pool get mypool nodeep-scrub #查看当前是否关闭深度扫描数据,默认为不关闭,即开启 ceph osd pool set mypool nodeep...
ceph osd poolsetRDB_Test_pool2 pg_num 64 ceph osd poolsetRDB_Test_pool2 pgp_num 64 5. 查看pool的副本数 ceph osd poolgetRDB_Test_pool2 size# 系统默认是3个副本,按照实际生产环境一般采用最少为2个副本就可以了,可以直接加载到ceph.conf配置文件中vi ceph.conf osd_pool_default_min_size =2 6...
ceph osd pool get {pool-name} crush_rule If the rule was “123”, for example, you can check the other pools like so: ceph osd dump | grep "^pool" | grep "crush_rule 123" If no other pools use that custom rule, then it’s safe to delete that rule from the cluster. If ...
ceph osd pool get {pool-name} pg_num ``` 其中,{pool-name}是需要查看的pool的名称。这条命令可以显示指定pool中的PG数目,PG(Placement Group)是Ceph中数据分片的基本单元,它用来控制数据的分布和容错。通过查看PG数目,可以了解数据在存储集群中的分布情况。
ceph osd pool set ssd-pool crush_rule ssd-pool 可以看到ssd-pool的池已经使用crush_rule 1了 我们再创建sata-pool池,并做上面操作测试,可以看到sata-pool的池已经使用crush_rule 2了 分别往两个池里写入数据测试 rados -p <pool_name> put <file_name> 现在验证对象是否...
ceph osd pool get <pool_name> <property>:查看存储池的属性。 ceph osd pool stats <pool_name>:显示存储池的统计信息。 ceph osd pool application enable <pool_name> <application>:为存储池启用特定应用程序。 ceph osd pool application disable <pool_name> <application>:为存储池禁用特定应用程序。
ceph osd pool set {pool-name} {key} {value} eg: ceph osd pool set test-pool size 3 常用值: size 设置池中对象的副本数 pg_num 设置归置组数量 pgp_num 设置放置归置组的放置组数量 12.获取指定池的选项值 ceph osd pool get {pool-name} {key} eg: ceph osd pool get test-pool size 二、...
ceph osd poolset{pool-name} {key} {value} 1. 比如设置pool的冗余副本数量为3: 复制 ceph osd poolsettest-poolsize3 1. 其他配置项参考文档。 通过get操作能够获取pool的配置值,比如获取当前pg_num: 复制 ceph osd pool get test-pool pg_num ...