lrc是什么文件 lrc可以删除吗

懵懂先生 投稿文章lrc是什么文件 lrc可以删除吗已关闭评论100阅读模式

文章源自略懂百科-http://wswcn.cn/54681.html

前文我们了解了ceph的存储池、PG、CRUSH、客户端IO的简要工作过程、Ceph客户端计算PG_ID的步骤的相关话题,回顾请参考https://www.cnblogs.com/qiuhom-1874/p/16733806.html;今天我们来聊一聊在ceph上操作存储池相关命令的用法和说明;文章源自略懂百科-http://wswcn.cn/54681.html

在ceph上操作存储池不外乎就是查看列出、创建、重命名和删除等操作,常用相关的工具都是ceph osd pool的子命令,ls、create、rename和rm等;文章源自略懂百科-http://wswcn.cn/54681.html

1、创建存储池文章源自略懂百科-http://wswcn.cn/54681.html

副本型存储池创建命令格式文章源自略懂百科-http://wswcn.cn/54681.html

1文章源自略懂百科-http://wswcn.cn/54681.html

ceph osd pool create [pgp-num] [replicated] [crush-rule-name] [expected-num-objects]文章源自略懂百科-http://wswcn.cn/54681.html

提示:创建副本型存储池上面的必要选项有存储池的名称和PG的数量,后面可以不用跟pgp和replicated来指定存储池的pgp的数量和类型为副本型;即默认创建不指定存储池类型,都是创建的是副本池;文章源自略懂百科-http://wswcn.cn/54681.html

纠删码池存储池创建命令格式文章源自略懂百科-http://wswcn.cn/54681.html

1文章源自略懂百科-http://wswcn.cn/54681.html

ceph osd pool create erasure [erasure-code-profile] [crush-rule-name] [expected-num-objects]文章源自略懂百科-http://wswcn.cn/54681.html

提示:创建纠删码池存储池,需要给定存储池名称、PG的数量、PGP的数量已经明确指定存储池类型为erasure;这里解释下PGP,所谓PGP(Placement Group for Placement purpose)就是用于归置的PG数量,其值应该等于PG的数量; crush-ruleset-name是用于指定此存储池所用的CRUSH规则集的名称,不过,引用的规则集必须事先存在;文章源自略懂百科-http://wswcn.cn/54681.html

erasure-code-profile参数是用于指定纠删码池配置文件;未指定要使用的纠删编码配置文件时,创建命令会为其自动创建一个,并在创建相关的CRUSH规则集时使用到它;默认配置文件自动定义k=2和m=1,这意味着Ceph将通过三个OSD扩展对象数据,并且可以丢失其中一个OSD而不会丢失数据,因此,在冗余效果上,它相当于一个大小为2的副本池 ,不过,其存储空间有效利用率为2/3而非1/2。文章源自略懂百科-http://wswcn.cn/54681.html

示例:创建一个副本池文章源自略懂百科-http://wswcn.cn/54681.html

示例:创建一个纠删码池文章源自略懂百科-http://wswcn.cn/54681.html

2、获取存储池的相关信息文章源自略懂百科-http://wswcn.cn/54681.html

列出存储池:ceph osd pool ls [detail]文章源自略懂百科-http://wswcn.cn/54681.html

[cephadm@ceph-admin ~]$ ceph osd pool ls文章源自略懂百科-http://wswcn.cn/54681.html

testpool文章源自略懂百科-http://wswcn.cn/54681.html

rbdpool文章源自略懂百科-http://wswcn.cn/54681.html

.rgw.root文章源自略懂百科-http://wswcn.cn/54681.html

default.rgw.control文章源自略懂百科-http://wswcn.cn/54681.html

default.rgw.meta文章源自略懂百科-http://wswcn.cn/54681.html

default.rgw.log文章源自略懂百科-http://wswcn.cn/54681.html

cephfs-metadatpool文章源自略懂百科-http://wswcn.cn/54681.html

cephfs-datapool文章源自略懂百科-http://wswcn.cn/54681.html

reppool文章源自略懂百科-http://wswcn.cn/54681.html

erasurepool文章源自略懂百科-http://wswcn.cn/54681.html

[cephadm@ceph-admin ~]$ ceph osd pool ls detail文章源自略懂百科-http://wswcn.cn/54681.html

pool 1 testpool replicated size 3 min_size 2 crush_rule 0 object_hash rjenkins pg_num 16 pgp_num 16 last_change 42 flags hashpspool stripe_width 0文章源自略懂百科-http://wswcn.cn/54681.html

pool 2 rbdpool replicated size 3 min_size 2 crush_rule 0 object_hash rjenkins pg_num 64 pgp_num 64 last_change 81 flags hashpspool,selfmanaged_snaps stripe_width 0 application rbd文章源自略懂百科-http://wswcn.cn/54681.html

removed_snaps [1~3]文章源自略懂百科-http://wswcn.cn/54681.html

pool 3 .rgw.root replicated size 3 min_size 2 crush_rule 0 object_hash rjenkins pg_num 8 pgp_num 8 last_change 84 owner 18446744073709551615 flags hashpspool stripe_width 0 application rgw文章源自略懂百科-http://wswcn.cn/54681.html

pool 4 default.rgw.control replicated size 3 min_size 2 crush_rule 0 object_hash rjenkins pg_num 8 pgp_num 8 last_change 87 owner 18446744073709551615 flags hashpspool stripe_width 0 application rgw文章源自略懂百科-http://wswcn.cn/54681.html

pool 5 default.rgw.meta replicated size 3 min_size 2 crush_rule 0 object_hash rjenkins pg_num 8 pgp_num 8 last_change 89 owner 18446744073709551615 flags hashpspool stripe_width 0 application rgw文章源自略懂百科-http://wswcn.cn/54681.html

pool 6 default.rgw.log replicated size 3 min_size 2 crush_rule 0 object_hash rjenkins pg_num 8 pgp_num 8 last_change 91 owner 18446744073709551615 flags hashpspool stripe_width 0 application rgw文章源自略懂百科-http://wswcn.cn/54681.html

pool 7 cephfs-metadatpool replicated size 3 min_size 2 crush_rule 0 object_hash rjenkins pg_num 64 pgp_num 64 last_change 99 flags hashpspool stripe_width 0 application cephfs文章源自略懂百科-http://wswcn.cn/54681.html

pool 8 cephfs-datapool replicated size 3 min_size 2 crush_rule 0 object_hash rjenkins pg_num 128 pgp_num 128 last_change 99 flags hashpspool stripe_width 0 application cephfs文章源自略懂百科-http://wswcn.cn/54681.html

pool 9 reppool replicated size 3 min_size 2 crush_rule 0 object_hash rjenkins pg_num 32 pgp_num 32 last_change 126 flags hashpspool stripe_width 0文章源自略懂百科-http://wswcn.cn/54681.html

pool 10 erasurepool erasure size 3 min_size 2 crush_rule 1 object_hash rjenkins pg_num 32 pgp_num 32 last_change 130 flags hashpspool stripe_width 8192文章源自略懂百科-http://wswcn.cn/54681.html

[cephadm@ceph-admin ~]$文章源自略懂百科-http://wswcn.cn/54681.html

提示:后面接detail表示列出存储池的详细信息;文章源自略懂百科-http://wswcn.cn/54681.html

获取存储池的统计数据:ceph osd pool stats [pool-name]文章源自略懂百科-http://wswcn.cn/54681.html

[cephadm@ceph-admin ~]$ ceph osd pool stats reppool文章源自略懂百科-http://wswcn.cn/54681.html

pool reppool id 9文章源自略懂百科-http://wswcn.cn/54681.html

nothing is going on文章源自略懂百科-http://wswcn.cn/54681.html

[cephadm@ceph-admin ~]$ ceph osd pool stats文章源自略懂百科-http://wswcn.cn/54681.html

pool testpool id 1文章源自略懂百科-http://wswcn.cn/54681.html

nothing is going on文章源自略懂百科-http://wswcn.cn/54681.html

pool rbdpool id 2文章源自略懂百科-http://wswcn.cn/54681.html

nothing is going on文章源自略懂百科-http://wswcn.cn/54681.html

pool .rgw.root id 3文章源自略懂百科-http://wswcn.cn/54681.html

nothing is going on文章源自略懂百科-http://wswcn.cn/54681.html

pool default.rgw.control id 4文章源自略懂百科-http://wswcn.cn/54681.html

nothing is going on文章源自略懂百科-http://wswcn.cn/54681.html

pool default.rgw.meta id 5文章源自略懂百科-http://wswcn.cn/54681.html

nothing is going on文章源自略懂百科-http://wswcn.cn/54681.html

pool default.rgw.log id 6文章源自略懂百科-http://wswcn.cn/54681.html

nothing is going on文章源自略懂百科-http://wswcn.cn/54681.html

pool cephfs-metadatpool id 7文章源自略懂百科-http://wswcn.cn/54681.html

nothing is going on文章源自略懂百科-http://wswcn.cn/54681.html

pool cephfs-datapool id 8文章源自略懂百科-http://wswcn.cn/54681.html

nothing is going on文章源自略懂百科-http://wswcn.cn/54681.html

pool reppool id 9文章源自略懂百科-http://wswcn.cn/54681.html

nothing is going on文章源自略懂百科-http://wswcn.cn/54681.html

pool erasurepool id 10文章源自略懂百科-http://wswcn.cn/54681.html

nothing is going on文章源自略懂百科-http://wswcn.cn/54681.html

[cephadm@ceph-admin ~]$文章源自略懂百科-http://wswcn.cn/54681.html

提示:不指定存储池名称表示查看所有存储池的统计数据;文章源自略懂百科-http://wswcn.cn/54681.html

显示存储池的用量信息:rados df 或者ceph df文章源自略懂百科-http://wswcn.cn/54681.html

[cephadm@ceph-admin ~]$ rados df文章源自略懂百科-http://wswcn.cn/54681.html

POOL_NAME USED OBJECTS CLONES COPIES MISSING_ON_PRIMARY UNFOUND DEGRADED RD_OPS RD WR_OPS WR文章源自略懂百科-http://wswcn.cn/54681.html

.rgw.root 1.1 KiB 4 0 12 0 0 0 27 18 KiB 4 4 KiB文章源自略懂百科-http://wswcn.cn/54681.html

cephfs-datapool 0 B 0 0 0 0 0 0 0 0 B 0 0 B文章源自略懂百科-http://wswcn.cn/54681.html

cephfs-metadatpool 2.2 KiB 22 0 66 0 0 0 49 51 KiB 46 13 KiB文章源自略懂百科-http://wswcn.cn/54681.html

default.rgw.control 0 B 8 0 24 0 0 0 0 0 B 0 0 B文章源自略懂百科-http://wswcn.cn/54681.html

default.rgw.log 0 B 175 0 525 0 0 0 16733 16 MiB 11158 0 B文章源自略懂百科-http://wswcn.cn/54681.html

default.rgw.meta 0 B 0 0 0 0 0 0 0 0 B 0 0 B文章源自略懂百科-http://wswcn.cn/54681.html

erasurepool 0 B 0 0 0 0 0 0 0 0 B 0 0 B文章源自略懂百科-http://wswcn.cn/54681.html

rbdpool 389 B 5 0 15 0 0 0 50 32 KiB 19 10 KiB文章源自略懂百科-http://wswcn.cn/54681.html

reppool 0 B 0 0 0 0 0 0 0 0 B 0 0 B文章源自略懂百科-http://wswcn.cn/54681.html

testpool 0 B 0 0 0 0 0 0 2 2 KiB 2 1 KiB文章源自略懂百科-http://wswcn.cn/54681.html

total_objects 214文章源自略懂百科-http://wswcn.cn/54681.html

total_used 10 GiB文章源自略懂百科-http://wswcn.cn/54681.html

total_avail 890 GiB文章源自略懂百科-http://wswcn.cn/54681.html

total_space 900 GiB文章源自略懂百科-http://wswcn.cn/54681.html

[cephadm@ceph-admin ~]$文章源自略懂百科-http://wswcn.cn/54681.html

提示:rados df和ceph df显示稍微有点差别,rados 信息比较全面但偏底层;ceph df人类比较容易看懂;文章源自略懂百科-http://wswcn.cn/54681.html

3、存储池重命名文章源自略懂百科-http://wswcn.cn/54681.html

命令格式:ceph osd pool rename old-name new-name文章源自略懂百科-http://wswcn.cn/54681.html

4、删除存储池文章源自略懂百科-http://wswcn.cn/54681.html

我们知道删除存储池意味着数据的丢失;所以ceph为了防止我们意外删除存储池实施了两个机制;我们要删除存储池,必须先禁用这两个机制;文章源自略懂百科-http://wswcn.cn/54681.html

第一个机制是NODELETE标志,其值需要为false,默认也是false;即允许我们删除;第二个机制是集群范围的配置参数mon allow pool delete,其默认值为false,这表示默认不能删除存储池;即我们要删除存储池,需要将第二个机制mon allow pool delete 的值修改为true即可删除存储池;文章源自略懂百科-http://wswcn.cn/54681.html

查看nodelete的值命令格式:ceph osd pool get pool-name nodelete文章源自略懂百科-http://wswcn.cn/54681.html

修改命令nodelete的值命令格式:ceph osd pool set pool-name nodelete false|true文章源自略懂百科-http://wswcn.cn/54681.html

提示:我们要删存储池,需要将nodelete的值设置为false,即不允许删除为假,即表示允许删除;文章源自略懂百科-http://wswcn.cn/54681.html

修改mon allow pool delete的值命令格式:ceph tell mon.* injectargs --mon-allow-pool-delete={true|false}文章源自略懂百科-http://wswcn.cn/54681.html

提示:删除之前将其值设置为true,删除完成后再改为false;文章源自略懂百科-http://wswcn.cn/54681.html

删除rep-pool存储池文章源自略懂百科-http://wswcn.cn/54681.html

提示:虽然我们进用了上述的两个防止意外删除存储池的机制外,我们在直接删除存储池ceph还会提示我们需要将存储池的名称写两遍以及加--yes-i-really-really-mean-it选项来确定删除存储池的操作;文章源自略懂百科-http://wswcn.cn/54681.html

提示:删除需要删除的存储池以后,我们需要将mon allow pool delete的值修改为false防止后面误删除存储池;文章源自略懂百科-http://wswcn.cn/54681.html

5、设置存储池配额文章源自略懂百科-http://wswcn.cn/54681.html

Ceph支持为存储池设置可存储对象的最大数量(max_objects)和可占用的最大空间(max_bytes)两个纬度的配额,命令格式ceph osd pool set-quota max_objects|max_bytes ;获取存储池配额的相关信息命令格式:ceph osd pool get-quota ;文章源自略懂百科-http://wswcn.cn/54681.html

6、配置存储池参数文章源自略懂百科-http://wswcn.cn/54681.html

存储池的诸多配置属性保存于配置参数中,获取配置:ceph osd pool get ;设定配置:ceph osd pool set ;文章源自略懂百科-http://wswcn.cn/54681.html

存储池常用的可配置参数文章源自略懂百科-http://wswcn.cn/54681.html

size:存储池中的对象副本数;文章源自略懂百科-http://wswcn.cn/54681.html

min_size:I/O所需要的最小副本数;文章源自略懂百科-http://wswcn.cn/54681.html

pg_num:存储池的PG数量;文章源自略懂百科-http://wswcn.cn/54681.html

pgp_num:计算数据归置时要使用的PG的有效数量;文章源自略懂百科-http://wswcn.cn/54681.html

crush_ruleset:用于在集群中映射对象归置的规则组;文章源自略懂百科-http://wswcn.cn/54681.html

nodelete:控制是否可删除存储池;文章源自略懂百科-http://wswcn.cn/54681.html

nopgchange:控制是否可更改存储池的pg_num和pgp_num;文章源自略懂百科-http://wswcn.cn/54681.html

nosizechange:控制是否可更改存储池的大小;文章源自略懂百科-http://wswcn.cn/54681.html

noscrub和nodeep-scrub:控制是否可整理或深层整理存储池以解决临时高I/O负载的问题;文章源自略懂百科-http://wswcn.cn/54681.html

scrub_min_interval:集群负载较低时整理存储池的最小时间间隔;默认值为0,表示其取值来自于配置文件中的osd_scrub_min_interval参数;文章源自略懂百科-http://wswcn.cn/54681.html

scrub_max_interval:整理存储池的最大时间间隔;默认值为0,表示其取值来自于配置文件中的osd_scrub_max_interval参数;文章源自略懂百科-http://wswcn.cn/54681.html

deep_scrub_interval:深层整理存储池的间隔;默认值为0,表示其取值来自于配置文件中的osd_deep_scrub参数;文章源自略懂百科-http://wswcn.cn/54681.html

7、存储池快照文章源自略懂百科-http://wswcn.cn/54681.html

关于存储池快照文章源自略懂百科-http://wswcn.cn/54681.html

• 存储池快照是指整个存储池的状态快照;文章源自略懂百科-http://wswcn.cn/54681.html

• 通过存储池快照,可以保留存储池状态的历史;文章源自略懂百科-http://wswcn.cn/54681.html

• 创建存储池快照可能需要大量存储空间,具体取决于存储池的大小;文章源自略懂百科-http://wswcn.cn/54681.html

创建存储池快照命令格式: ceph osd pool mksnap 或者rados -p mksnap 文章源自略懂百科-http://wswcn.cn/54681.html

列出存储池的快照命令格式:rados -p lssnap文章源自略懂百科-http://wswcn.cn/54681.html

[cephadm@ceph-admin ~]$ ceph osd pool mksnap cephfs-metadatpool metadatasnap1文章源自略懂百科-http://wswcn.cn/54681.html

created pool cephfs-metadatpool snap metadatasnap1文章源自略懂百科-http://wswcn.cn/54681.html

[cephadm@ceph-admin ~]$ rados -p cephfs-metadatpool lssnap文章源自略懂百科-http://wswcn.cn/54681.html

1 metadatasnap1 2022.09.30 00:20:55文章源自略懂百科-http://wswcn.cn/54681.html

1 snaps文章源自略懂百科-http://wswcn.cn/54681.html

[cephadm@ceph-admin ~]$文章源自略懂百科-http://wswcn.cn/54681.html

回滚存储池至指定的快照命令格式: rados -p rollback 文章源自略懂百科-http://wswcn.cn/54681.html

[cephadm@ceph-admin ~]$ rados -p cephfs-metadatpool lssnap文章源自略懂百科-http://wswcn.cn/54681.html

1 metadatasnap1 2022.09.30 00:20:55文章源自略懂百科-http://wswcn.cn/54681.html

2 metadatasnap2 2022.09.30 00:22:35文章源自略懂百科-http://wswcn.cn/54681.html

2 snaps文章源自略懂百科-http://wswcn.cn/54681.html

[cephadm@ceph-admin ~]$ rados -p cephfs-metadatpool rollback cephfs-metadatpool metadatasnap2文章源自略懂百科-http://wswcn.cn/54681.html

rolled back pool cephfs-metadatpool to snapshot metadatasnap2文章源自略懂百科-http://wswcn.cn/54681.html

[cephadm@ceph-admin ~]$文章源自略懂百科-http://wswcn.cn/54681.html

删除存储池快照命令格式: ceph osd pool rmsnap 或 rados -p rmsnap 文章源自略懂百科-http://wswcn.cn/54681.html

[cephadm@ceph-admin ~]$ rados -p cephfs-metadatpool lssnap文章源自略懂百科-http://wswcn.cn/54681.html

1 metadatasnap1 2022.09.30 00:20:55文章源自略懂百科-http://wswcn.cn/54681.html

2 metadatasnap2 2022.09.30 00:22:35文章源自略懂百科-http://wswcn.cn/54681.html

2 snaps文章源自略懂百科-http://wswcn.cn/54681.html

[cephadm@ceph-admin ~]$ ceph osd pool rmsnap cephfs-metadatpool metadatasnap1文章源自略懂百科-http://wswcn.cn/54681.html

removed pool cephfs-metadatpool snap metadatasnap1文章源自略懂百科-http://wswcn.cn/54681.html

[cephadm@ceph-admin ~]$ rados -p cephfs-metadatpool lssnap文章源自略懂百科-http://wswcn.cn/54681.html

2 metadatasnap2 2022.09.30 00:22:35文章源自略懂百科-http://wswcn.cn/54681.html

1 snaps文章源自略懂百科-http://wswcn.cn/54681.html

[cephadm@ceph-admin ~]$ rados -p cephfs-metadatpool rmsnap metadatasnap2文章源自略懂百科-http://wswcn.cn/54681.html

removed pool cephfs-metadatpool snap metadatasnap2文章源自略懂百科-http://wswcn.cn/54681.html

[cephadm@ceph-admin ~]$ rados -p cephfs-metadatpool lssnap文章源自略懂百科-http://wswcn.cn/54681.html

0 snaps文章源自略懂百科-http://wswcn.cn/54681.html

[cephadm@ceph-admin ~]$文章源自略懂百科-http://wswcn.cn/54681.html

提示:不用的快照建议及时清除;文章源自略懂百科-http://wswcn.cn/54681.html

8、存储池数据压缩文章源自略懂百科-http://wswcn.cn/54681.html

BlueStore存储引擎提供即时数据压缩,以节省磁盘空间,启用压缩命令格式:ceph osd pool set compression_algorithm snappy;压缩算法有none、zlib、lz4、zstd和snappy等几种,默认为snappy;zstd有较好的压缩比,但比较消耗CPU;lz4和snappy对CPU占用比例较低;不建议使用zlib;文章源自略懂百科-http://wswcn.cn/54681.html

设置压缩模式命令格式:ceph osd pool set compression_mode aggressive ;压缩模式:none、aggressive、passive和force,默认值为none; none表示不压缩; passive表示若提示COMPRESSIBLE,则压缩;aggressive表示除非提示INCOMPRESSIBLE,否则就压缩; force表示始终压缩;文章源自略懂百科-http://wswcn.cn/54681.html

其它可用的压缩参数文章源自略懂百科-http://wswcn.cn/54681.html

compression_required_ratio:指定压缩比,取值格式为双精度浮点型,其值为SIZE_COMPRESSED/SIZE_ORIGINAL,即压缩后的大小与原始内容大小的比值,默认为.875;文章源自略懂百科-http://wswcn.cn/54681.html

compression_max_blob_size:压缩对象的最大体积,无符号整数型数值,默认为0,表示没有限制;文章源自略懂百科-http://wswcn.cn/54681.html

compression_min_blob_size:压缩对象的最小体积,无符号整数型数值,默认为0,表示没有限制;文章源自略懂百科-http://wswcn.cn/54681.html

提示:压缩最小体积和最大体积都是以字节为单位;文章源自略懂百科-http://wswcn.cn/54681.html

全局压缩选项文章源自略懂百科-http://wswcn.cn/54681.html

可在ceph配置文件中设置压缩属性,它将对所有的存储池生效;可设置的相关参数如下文章源自略懂百科-http://wswcn.cn/54681.html

• bluestore_compression_algorithm• bluestore_compression_mode• bluestore_compression_required_ratio• bluestore_compression_min_blob_size• bluestore_compression_max_blob_size• bluestore_compression_min_blob_size_ssd• bluestore_compression_max_blob_size_ssd• bluestore_compression_min_blob_size_hdd• bluestore_compression_max_blob_size_hdd文章源自略懂百科-http://wswcn.cn/54681.html

9、纠删码池配置文件文章源自略懂百科-http://wswcn.cn/54681.html

列出纠删码配置文件命令格式: ceph osd erasure-code-profile ls文章源自略懂百科-http://wswcn.cn/54681.html

获取指定的配置文件的相关内容:ceph osd erasure-code-profile get default文章源自略懂百科-http://wswcn.cn/54681.html

[cephadm@ceph-admin ~]$ ceph osd erasure-code-profile ls文章源自略懂百科-http://wswcn.cn/54681.html

default文章源自略懂百科-http://wswcn.cn/54681.html

[cephadm@ceph-admin ~]$ ceph osd erasure-code-profile get default文章源自略懂百科-http://wswcn.cn/54681.html

k=2文章源自略懂百科-http://wswcn.cn/54681.html

m=1文章源自略懂百科-http://wswcn.cn/54681.html

plugin=jerasure文章源自略懂百科-http://wswcn.cn/54681.html

technique=reed_sol_van文章源自略懂百科-http://wswcn.cn/54681.html

[cephadm@ceph-admin ~]$文章源自略懂百科-http://wswcn.cn/54681.html

自定义纠删码配置文件文章源自略懂百科-http://wswcn.cn/54681.html

命令格式:ceph osd erasure-code-profile set [] [] [] [] [ ...] [--force]文章源自略懂百科-http://wswcn.cn/54681.html

• - directory:加载纠删码插件的目录路径,默认为/usr/lib/ceph/erasure-code;• - plugin:用于生成及恢复纠删码块的插件名称,默认为jerasure;• - crush-device-class:设备类别,例如hdd或ssd,默认为none,即无视类别;• - crush-failure-domain:故障域,默认为host,支持使用的包括osd、host、rack、row和room等;文章源自略懂百科-http://wswcn.cn/54681.html

• - --force:强制覆盖现有的同名配置文件;文章源自略懂百科-http://wswcn.cn/54681.html

例如,如果所需的体系结构必须承受两个OSD的丢失,并且存储开销为30%;文章源自略懂百科-http://wswcn.cn/54681.html

[cephadm@ceph-admin ~]$ ceph osd erasure-code-profile ls文章源自略懂百科-http://wswcn.cn/54681.html

default文章源自略懂百科-http://wswcn.cn/54681.html

[cephadm@ceph-admin ~]$ ceph osd erasure-code-profile set myprofile k=4 m=2 crush-failure-domain=osd文章源自略懂百科-http://wswcn.cn/54681.html

[cephadm@ceph-admin ~]$ ceph osd erasure-code-profile ls文章源自略懂百科-http://wswcn.cn/54681.html

default文章源自略懂百科-http://wswcn.cn/54681.html

myprofile文章源自略懂百科-http://wswcn.cn/54681.html

[cephadm@ceph-admin ~]$文章源自略懂百科-http://wswcn.cn/54681.html

纠删码插件文章源自略懂百科-http://wswcn.cn/54681.html

Ceph支持以插件方式加载使用的纠删编码插件,存储管理员可根据存储场景的需要优化选择合用的插件。目前,Ceph支持的插件包括如下三个:文章源自略懂百科-http://wswcn.cn/54681.html

1、jerasure:最为通用的和灵活的纠删编码插件,它也是纠删码池默认使用的插件;不过,任何一个OSD成员的丢失,都需要余下的所有成员OSD参与恢复过程;另外,使用此类插件时,管理员还可以通过technique选项指定要使用的编码技术;文章源自略懂百科-http://wswcn.cn/54681.html

• reed_sol_van:最灵活的编码技术,管理员仅需提供k和m参数即可;文章源自略懂百科-http://wswcn.cn/54681.html

• cauchy_good:更快的编码技术,但需要小心设置PACKETSIZE参数;• reed_sol_r6_op、liberation、blaum_roth或liber8tion:仅支持使用m=2的编码技术,功能特性类同于RAID 6;文章源自略懂百科-http://wswcn.cn/54681.html

2、 lrc:全称为Locally Repairable Erasure Code,即本地修复纠删码,除了默认的m个编码块之外,它会额外在本地创建指定数量(l)的奇偶校验块,从而在一个OSD丢失时,可以仅通过l个奇偶校验块完成恢复;文章源自略懂百科-http://wswcn.cn/54681.html

3、isa:仅支持运行在intel CPU之上的纠删编码插件,它支持reed_sol_van和cauchy两种技术;文章源自略懂百科-http://wswcn.cn/54681.html

例如,下面的命令创建了一个使用lrc插件的配置文件LRCprofile,其本地奇偶校验块为3,故障域为osd文章源自略懂百科-http://wswcn.cn/54681.html

[cephadm@ceph-admin ~]$ ceph osd erasure-code-profile set LRCprofile plugin=lrc k=4 m=2 l=3 crush-failure-domain=osd文章源自略懂百科-http://wswcn.cn/54681.html

[cephadm@ceph-admin ~]$ ceph osd erasure-code-profile ls文章源自略懂百科-http://wswcn.cn/54681.html

LRCprofile文章源自略懂百科-http://wswcn.cn/54681.html

default文章源自略懂百科-http://wswcn.cn/54681.html

myprofile文章源自略懂百科-http://wswcn.cn/54681.html

[cephadm@ceph-admin ~]$文章源自略懂百科-http://wswcn.cn/54681.html

原文链接:https://www.cnblogs.com/qiuhom-1874/p/16743611.html文章源自略懂百科-http://wswcn.cn/54681.html

文章源自略懂百科-http://wswcn.cn/54681.html

懵懂先生
  • 本文由 发表于 2022年10月20日 15:45:37
  • 转载请注明:http://wswcn.cn/54681.html
投稿文章

王者荣耀介绍(如何查看王者荣耀520新皮肤预告)

王者荣耀即将来到520情人节,今年520没有限定皮肤返场,但却有新的限定皮肤上线,而且一上就是两款传说皮肤,大家的钱包都快遭不住了。目前,官方已经曝光了520新皮肤的具体特效,两款皮肤都是蓝白配色,既...
投稿文章

视频录屏软件(怎样把直播课保存下来自己看)

直播录屏软件有哪些?随着网络直播的普及,越来越多的人开始使用直播功能来分享自己的生活、工作等。但是直播完毕后,有些人可能会想要保存直播内容,或者将直播内容进行剪辑后上传到其他平台。这时候,需要使用录屏...
投稿文章

互联网项目计划书范本(大学生创新创业项目申报书)

近年来,九江学院一直坚持区域性应用型办学定位,实施内涵式、特色化发展战略,服务地方经济社会发展需求,聚焦应用型人才培养目标,围绕专业能力、实践能力和创新创业能力等应用型人才核心能力,重构应用型人才培养...
投稿文章

sd高达g世纪p 「sd高达g世纪p和超越世界」

高达动作游戏 《SD高达 激斗同盟》于今日在 Switch/PS5/PS4/Xbox series X|S/Xbox One/PC 发售,支持中文。 万代南梦宫发布了本作的发售日宣传片,包含了游戏的 ...