• 首页
  • 首页
  • 最新资讯
  • 盈利购彩官网
  • 让建站和SEO变得简单

    让不懂建站的用户快速建站,让会建站的提高建站效率!

    你的位置:盈利购彩 > 最新资讯 > 如何树立Ceph Rgw对象存储与公有云同步

    如何树立Ceph Rgw对象存储与公有云同步

    发布日期:2022-05-15 15:23    点击次数:198

    本文转载自微信公众号「新钛云服」,作家祝祥。转载本文请酌量新钛云服公众号。

    容灾 (Disaster Recovery),即容灾备份或灾备,是业务开导性系统的一个子集,用于保险 IT 系统在碰到当然灾害、人为操作舛讹或盘算轻视后的数据还原和业务复原。

    Ceph RGW 广阔据中心(multisite)功能旨在兑现他乡双活,提供了备份容灾的本领。而且具有多个数据中心供用户聘请,存放资源。

    主节点在对外提供就业时,用户数据在主节点落盘后即向用户回复“写奏效”强横,然后实时纪录数据变化的干系日记信息。备节点则实时相比主备数据互异,并实时将互异化数据拉回备节点。异步复制技艺适用于远距离的容灾有操办,对系统性能影响较小。

    以往的容灾都是在单该大略多该ceph集群之间的,本次主要由于模拟 ceph 的 RGW 不错与其他扫数的S3云供应商(https://docs.ceph.com/en/latest/radosgw/cloud-sync-module/)进行数据同步,从而兑现Ceph的RGW对象存储的灾备。

    本色 条目: Ceph 集群 2 个 RGW 看守程度正在运转 S3 操办

    咱们将使用三个端点:

    http://192.168.112.5:80

    RGW 为咱们现存的集群处分的端点

    http://192.168.112.6:80

    咱们将创建一个新端点,它将依赖 RGW 将数据同步到另一个 S3 提供者

    http://192.168.105.5:80

    咱们将用于推送/同步数据的 S3 操办

    检查咱们现存的存储池:

    扫数 rgw 都有一个区域和区域组,它可能是default.

    您不错检查池的称呼:

    (docker-croit)@mycephcluster / $ ceph osd lspools 1 device_health_metrics 2 .rgw.root 3 default.rgw.control 4 default.rgw.log 5 default.rgw.meta 6 default.rgw.buckets.non-ec 7 default.rgw.buckets.index 8 default.rgw.buckets.data 

    大略径直检查区域或区域组:

    (docker-croit)@mycephcluster / $ radosgw-admin zone get --rgw-zone=default {    "id": "303a00f5-f50d-43fd-afee-aa0503926952",    "name": "default", ... } 
    (docker-croit)@mycephcluster / $ radosgw-admin zonegroup get --rgw-zonegroup=default {    "id": "881cf806-f6d2-47a0-b7dc-d65ee87f8ef4",    "name": "default",    "api_name": "default",    "is_master": "true", ...    "zones": [       {            "id": "303a00f5-f50d-43fd-afee-aa0503926952",            "name": "default", 

    准备存储池:

    咱们的新区将需要一些池。咱们将手动创建它们以确保莫得问题(举例每个 osd 有太多 PG)箝制它们的创建。

    (docker-croit)@mycephcluster / $ for pool in sync.rgw.meta sync.rgw.log sync.rgw.control sync.rgw.buckets.non-ec sync.rgw.buckets.index sync.rgw.buckets.data; do ceph osd pool create $pool 16 16 replicated; done pool 'sync.rgw.meta' created pool 'sync.rgw.log' created pool 'sync.rgw.control' created pool 'sync.rgw.buckets.non-ec' created pool 'sync.rgw.buckets.index' created pool 'sync.rgw.buckets.data' created 

    创建新区域:

    咱们的新区域将定名为sync:

    (docker-croit)@mycephcluster / $ radosgw-admin zone create --rgw-zonegroup=default --rgw-zone=sync --endpoints=http://192.168.112.6/ --tier-type=cloud {    "id": "7ead9532-0938-4698-9b4a-2d84d0d00869",    "name": "sync",    "domain_root": "sync.rgw.meta:root",    "control_pool": "sync.rgw.control",    "gc_pool": "sync.rgw.log:gc",    "lc_pool": "sync.rgw.log:lc",    "log_pool": "sync.rgw.log",    "intent_log_pool": "sync.rgw.log:intent",    "usage_log_pool": "sync.rgw.log:usage",    "roles_pool": "sync.rgw.meta:roles",    "reshard_pool": "sync.rgw.log:reshard",    "user_keys_pool": "sync.rgw.meta:users.keys",    "user_email_pool": "sync.rgw.meta:users.email",    "user_swift_pool": "sync.rgw.meta:users.swift",    "user_uid_pool": "sync.rgw.meta:users.uid",    "otp_pool": "sync.rgw.otp",    "system_key": {        "access_key": "",        "secret_key": ""   },    "placement_pools": [       {            "key": "default-placement",            "val": {                "index_pool": "sync.rgw.buckets.index",                "storage_classes": {                    "STANDARD": {                        "data_pool": "sync.rgw.buckets.data"                   }               },                "data_extra_pool": "sync.rgw.buckets.non-ec",                "index_type": 0           }       }   ],    "realm_id": "46669d35-f7ed-4374-8247-2b8f41218109" } 
    rgw-zonegroup:咱们的新区域将成为默许区域组的一部分。 端点:咱们的新区域需要它我方的 RGW,因此它使用新的端点。 tier-type :咱们使用cloud层类型,请参阅文档(https://docs.ceph.com/en/latest/radosgw/cloud-sync-module/)了解更多诞生

    修改现存区域:

    咱们需要添加现存default区域的端点。

    (docker-croit)@mycephcluster / $ radosgw-admin zone modify --rgw-zonegroup=default --rgw-zone=default --endpoints=http://192.168.112.5:80 {    "id": "303a00f5-f50d-43fd-afee-aa0503926952",    "name": "default",    "domain_root": "default.rgw.meta:root",    "control_pool": "default.rgw.control",    "gc_pool": "default.rgw.log:gc",    "lc_pool": "default.rgw.log:lc",    "log_pool": "default.rgw.log",    "intent_log_pool": "default.rgw.log:intent",    "usage_log_pool": "default.rgw.log:usage",    "roles_pool": "default.rgw.meta:roles",    "reshard_pool": "default.rgw.log:reshard",    "user_keys_pool": "default.rgw.meta:users.keys",    "user_email_pool": "default.rgw.meta:users.email",    "user_swift_pool": "default.rgw.meta:users.swift",    "user_uid_pool": "default.rgw.meta:users.uid",    "otp_pool": "default.rgw.otp",    "system_key": {        "access_key": "",        "secret_key": ""   },    "placement_pools": [       {            "key": "default-placement",            "val": {                "index_pool": "default.rgw.buckets.index",                "storage_classes": {                    "STANDARD": {                        "data_pool": "default.rgw.buckets.data"                   }               },                "data_extra_pool": "default.rgw.buckets.non-ec",                "index_type": 0           }       }   ],    "realm_id": "46669d35-f7ed-4374-8247-2b8f41218109" } 

    创建系统用户:

    系统用户将用于同步数据,不错通过 CLI 创建此用户。

    (docker-croit)@mycephcluster / $ radosgw-admin user create --uid=syncuser --display-name=syncuser --system {    "user_id": "syncuser",    "display_name": "syncuser",    "email": "",    "suspended": 0,    "max_buckets": 1000,    "subusers": [],    "keys": [       {            "user": "syncuser",            "access_key": "VGIF31FGOHZ0Q6MQRBQR",            "secret_key": "1FwPZH0ICfV1e1zi8okXApJJJEB0XHfiOxe1mmTr"       }   ],    "swift_keys": [],    "caps": [],    "op_mask": "read, write, delete",    "system": "true",    "default_placement": "",    "default_storage_class": "",    "placement_tags": [],    "bucket_quota": {        "enabled": false,        "check_on_raw": false,        "max_size": -1,        "max_size_kb": 0,        "max_objects": -1   },    "user_quota": {        "enabled": false,        "check_on_raw": false,        "max_size": -1,        "max_size_kb": 0,        "max_objects": -1   },    "temp_url_keys": [],    "type": "rgw",    "mfa_ids": [] } 

    树立同步区域以使用此系统用户:

    咱们将改动两个区域以使用咱们的新系统用户。

    (docker-croit)@mycephcluster / $ radosgw-admin user info --uid syncuser| jq '.keys' [ {    "user": "syncuser",    "access_key": "VGIF31FGOHZ0Q6MQRBQR",    "secret_key": "1FwPZH0ICfV1e1zi8okXApJJJEB0XHfiOxe1mmTr" } ] 
    (docker-croit)@mycephcluster / $ radosgw-admin zone modify --rgw-zonegroup=default --rgw-zone=default --access-key=VGIF31FGOHZ0Q6MQRBQR --secret=1FwPZH0ICfV1e1zi8okXApJJJEB0XHfiOxe1mmTr {     "id": "303a00f5-f50d-43fd-afee-aa0503926952",     "name": "default",     "domain_root": "default.rgw.meta:root",     "control_pool": "default.rgw.control",     "gc_pool": "default.rgw.log:gc",     "lc_pool": "default.rgw.log:lc",     "log_pool": "default.rgw.log",     "intent_log_pool": "default.rgw.log:intent",     "usage_log_pool": "default.rgw.log:usage",     "roles_pool": "default.rgw.meta:roles",     "reshard_pool": "default.rgw.log:reshard",     "user_keys_pool": "default.rgw.meta:users.keys",     "user_email_pool": "default.rgw.meta:users.email",     "user_swift_pool": "default.rgw.meta:users.swift",     "user_uid_pool": "default.rgw.meta:users.uid",     "otp_pool": "default.rgw.otp",     "system_key": {         "access_key": "VGIF31FGOHZ0Q6MQRBQR",         "secret_key": "1FwPZH0ICfV1e1zi8okXApJJJEB0XHfiOxe1mmTr"     },     "placement_pools": [         {             "key": "default-placement",             "val": {                 "index_pool": "default.rgw.buckets.index",                 "storage_classes": {                     "STANDARD": {                         "data_pool": "default.rgw.buckets.data"                     }                 },                 "data_extra_pool": "default.rgw.buckets.non-ec",                 "index_type": 0             }         }     ],     "realm_id": "46669d35-f7ed-4374-8247-2b8f41218109" } 
    (docker-croit)@mycephcluster / $ radosgw-admin zone modify --rgw-zonegroup=default --rgw-zone=sync --access-key=VGIF31FGOHZ0Q6MQRBQR --secret=1FwPZH0ICfV1e1zi8okXApJJJEB0XHfiOxe1mmTr {     "id": "7ead9532-0938-4698-9b4a-2d84d0d00869",     "name": "sync",     "domain_root": "sync.rgw.meta:root",     "control_pool": "sync.rgw.control",     "gc_pool": "sync.rgw.log:gc",     "lc_pool": "sync.rgw.log:lc",     "log_pool": "sync.rgw.log",     "intent_log_pool": "sync.rgw.log:intent",     "usage_log_pool": "sync.rgw.log:usage",     "roles_pool": "sync.rgw.meta:roles",     "reshard_pool": "sync.rgw.log:reshard",     "user_keys_pool": "sync.rgw.meta:users.keys",     "user_email_pool": "sync.rgw.meta:users.email",     "user_swift_pool": "sync.rgw.meta:users.swift",     "user_uid_pool": "sync.rgw.meta:users.uid",     "otp_pool": "sync.rgw.otp",     "system_key": {         "access_key": "VGIF31FGOHZ0Q6MQRBQR",         "secret_key": "1FwPZH0ICfV1e1zi8okXApJJJEB0XHfiOxe1mmTr"     },     "placement_pools": [         {             "key": "default-placement",             "val": {                 "index_pool": "sync.rgw.buckets.index",                 "storage_classes": {                     "STANDARD": {                         "data_pool": "sync.rgw.buckets.data"                     }                 },                 "data_extra_pool": "sync.rgw.buckets.non-ec",                 "index_type": 0             }         }     ],     "tier_config": {         "connection": {             "access_key": "JO4RQ1787A6OGI6XMFDW",             "endpoint": "http://192.168.105.5:80",             "secret": "Dx5kKGUUeR0DaSRYueBWhV6oDRvJ9oXH2gPcVJ6s"         }     },     "realm_id": "46669d35-f7ed-4374-8247-2b8f41218109" } 

    确保默许区域是主区域:

    (docker-croit)@mycephcluster / $ radosgw-admin zonegroup get {     "id": "881cf806-f6d2-47a0-b7dc-d65ee87f8ef4",     "name": "default",     "api_name": "default",     "is_master": "true",     "endpoints": [],     "hostnames": [],     "hostnames_s3website": [],     "master_zone": "303a00f5-f50d-43fd-afee-aa0503926952",     "zones": [         {             "id": "303a00f5-f50d-43fd-afee-aa0503926952",             "name": "default", 

    若是defaultzone 不是 master,则不错通过现实强制它radosgw-admin zone modify --rgw-zonegroup=default --rgw-zone=default --master --default

    提交改动并考据树立:

    (docker-croit)@mycephcluster / $ radosgw-admin period update --commit {     "id": "1861622f-b748-410d-b4a9-7338f4b6842b",     "epoch": 3,     "predecessor_uuid": "b6cd42db-6567-4a4b-9433-aee238da0c9d",     "sync_status": [],     "period_map": {         "id": "1861622f-b748-410d-b4a9-7338f4b6842b",         "zonegroups": [             {                 "id": "881cf806-f6d2-47a0-b7dc-d65ee87f8ef4",                 "name": "default",                 "api_name": "default",                 "is_master": "true",                 "endpoints": [],                 "hostnames": [],                 "hostnames_s3website": [],                 "master_zone": "303a00f5-f50d-43fd-afee-aa0503926952",                 "zones": [                     {                         "id": "303a00f5-f50d-43fd-afee-aa0503926952",                         "name": "default",                         "endpoints": [                             "http://192.168.112.5:80"                         ],                         "log_meta": "false",                         "log_data": "true",                         "bucket_index_max_shards": 11,                         "read_only": "false",                         "tier_type": "",                         "sync_from_all": "true",                         "sync_from": [],                         "redirect_zone": ""                     },                     {                         "id": "7ead9532-0938-4698-9b4a-2d84d0d00869",                         "name": "sync",                         "endpoints": [                             "http://192.168.112.6/"                         ],                         "log_meta": "false",                         "log_data": "true",                         "bucket_index_max_shards": 11,                         "read_only": "false",                         "tier_type": "cloud",                         "sync_from_all": "true",                         "sync_from": [],                         "redirect_zone": ""                     }                 ],                 "placement_targets": [                     {                         "name": "default-placement",                         "tags": [],                         "storage_classes": [                             "STANDARD"                         ]                     }                 ],                 "default_placement": "default-placement",                 "realm_id": "46669d35-f7ed-4374-8247-2b8f41218109",                 "sync_policy": {                     "groups": []                 }             }         ],         "short_zone_ids": [             {                 "key": "303a00f5-f50d-43fd-afee-aa0503926952",                 "val": 2796720163             },             {                 "key": "7ead9532-0938-4698-9b4a-2d84d0d00869",                 "val": 2175446857             }         ]     },     "master_zonegroup": "881cf806-f6d2-47a0-b7dc-d65ee87f8ef4",     "master_zone": "303a00f5-f50d-43fd-afee-aa0503926952",     "period_config": {         "bucket_quota": {             "enabled": false,             "check_on_raw": false,             "max_size": -1,             "max_size_kb": 0,             "max_objects": -1         },         "user_quota": {             "enabled": false,             "check_on_raw": false,             "max_size": -1,             "max_size_kb": 0,             "max_objects": -1         }     },     "realm_id": "46669d35-f7ed-4374-8247-2b8f41218109",     "realm_name": "default",     "realm_epoch": 2 } 

    树立新区域:

    咱们的云同步模块需要一些树立(https://docs.ceph.com/en/latest/radosgw/cloud-sync-module/#cloud-sync-tier-type-configuration)。

    咱们将界说用于同步数据的端点和 S3 用户凭证。良好:若是您的密钥以 0 开始,您将无法树立它。举例,使用05XXXXXXXX时 ,打听密钥将被瑕疵地存储:

    (docker-croit)@mycephcluster / $ radosgw-admin zone modify --rgw-zonegroup=default --rgw-zone=sync --tier-config=connection.endpoint=http://192.168.105.5:80,connection.access_key=05XXXXXXXX,connection.secret=56NwS1p7krU0IMYaXXXXXXXXXXXXX (docker-croit)@mycephcluster / $ radosgw-admin zone get --rgw-zone=sync | jq '.tier_config' {   "connection": {     "access_key": 5,     "endpoint": "http://192.168.105.5:80",     "secret": 56NwS1p7krU0IMYaXXXXXXXXXXXXX   } } 
    (docker-croit)@mycephcluster / $ radosgw-admin zone modify --rgw-zonegroup=default --rgw-zone=sync --tier-config=connection.endpoint=http://192.168.105.5:80,connection.access_key=JO4RQ1787A6OGI6XMFDW,connection.secret=Dx5kKGUUeR0DaSRYueBWhV6oDRvJ9oXH2gPcVJ6s {     "id": "7ead9532-0938-4698-9b4a-2d84d0d00869",     "name": "sync",     "domain_root": "sync.rgw.meta:root",     "control_pool": "sync.rgw.control",     "gc_pool": "sync.rgw.log:gc",     "lc_pool": "sync.rgw.log:lc",     "log_pool": "sync.rgw.log",     "intent_log_pool": "sync.rgw.log:intent",     "usage_log_pool": "sync.rgw.log:usage",     "roles_pool": "sync.rgw.meta:roles",     "reshard_pool": "sync.rgw.log:reshard",     "user_keys_pool": "sync.rgw.meta:users.keys",     "user_email_pool": "sync.rgw.meta:users.email",     "user_swift_pool": "sync.rgw.meta:users.swift",     "user_uid_pool": "sync.rgw.meta:users.uid",     "otp_pool": "sync.rgw.otp",     "system_key": {         "access_key": "",         "secret_key": ""     },     "placement_pools": [         {             "key": "default-placement",             "val": {                 "index_pool": "sync.rgw.buckets.index",                 "storage_classes": {                     "STANDARD": {                         "data_pool": "sync.rgw.buckets.data"                     }                 },                 "data_extra_pool": "sync.rgw.buckets.non-ec",                 "index_type": 0             }         }     ],     "tier_config": {         "connection": {             "access_key": "JO4RQ1787A6OGI6XMFDW",             "endpoint": "http://192.168.105.5:80",             "secret": "Dx5kKGUUeR0DaSRYueBWhV6oDRvJ9oXH2gPcVJ6s"         }     },     "realm_id": "46669d35-f7ed-4374-8247-2b8f41218109" } 

    检查树立是否已正确愚弄。

    (docker-croit)@mycephcluster / $ radosgw-admin zone get --rgw-zone=sync | jq '.tier_config' {   "connection": {     "access_key": "JO4RQ1787A6OGI6XMFDW",     "endpoint": "http://192.168.105.5:80",     "secret": "Dx5kKGUUeR0DaSRYueBWhV6oDRvJ9oXH2gPcVJ6s"   } } 

    提交改动:

    (docker-croit)@mycephcluster / $ radosgw-admin zone get --rgw-zone=sync {     "id": "7ead9532-0938-4698-9b4a-2d84d0d00869",     "name": "sync",     "domain_root": "sync.rgw.meta:root",     "control_pool": "sync.rgw.control",     "gc_pool": "sync.rgw.log:gc",     "lc_pool": "sync.rgw.log:lc",     "log_pool": "sync.rgw.log",     "intent_log_pool": "sync.rgw.log:intent",     "usage_log_pool": "sync.rgw.log:usage",     "roles_pool": "sync.rgw.meta:roles",     "reshard_pool": "sync.rgw.log:reshard",     "user_keys_pool": "sync.rgw.meta:users.keys",     "user_email_pool": "sync.rgw.meta:users.email",     "user_swift_pool": "sync.rgw.meta:users.swift",     "user_uid_pool": "sync.rgw.meta:users.uid",     "otp_pool": "sync.rgw.otp",     "system_key": {         "access_key": "",         "secret_key": ""     },     "placement_pools": [         {             "key": "default-placement",             "val": {                 "index_pool": "sync.rgw.buckets.index",                 "storage_classes": {                     "STANDARD": {                         "data_pool": "sync.rgw.buckets.data"                     }                 },                 "data_extra_pool": "sync.rgw.buckets.non-ec",                 "index_type": 0             }         }     ],     "tier_config": {         "connection": {             "access_key": "JO4RQ1787A6OGI6XMFDW",             "endpoint": "http://192.168.105.5:80",             "secret": "Dx5kKGUUeR0DaSRYueBWhV6oDRvJ9oXH2gPcVJ6s"         }     },     "realm_id": "46669d35-f7ed-4374-8247-2b8f41218109" } 

    树立 RGW:

    咱们需要修改每个 radosgw 树立以通过删除rgw zone = default和添加来处分正确的区域

    [client.rgw.$(hostname)] host = $(hostname) rgw zone = default  [client.rgw.$(hostname)] host = $(hostname) rgw zone = sync 

    在咱们的基础技艺上,咱们/etc/ceph/ceph.conf通过添加以下本色进行剪辑:

    [client.rgw.new-croit-host-C0DE01] host = new-croit-host-C0DE01 rgw zone = default [client.rgw.new-croit-host-C0DE02] host = new-croit-host-C0DE02 rgw zone = sync 

    若是你使用 croit,你不错浮浅地ceph.conf用这个本色替换模板。

    [global] auth cluster required = cephx auth service required = cephx auth client required = cephx auth supported = cephx mon client hunt interval = {{huntInterval}} mon client hunt parallel = {{huntParallel}} fsid = {{fsid}} mon host = {{commaSeparatedList mons}}  {{~#if full}} {{~#unless server.managementHost}} crush location = host={{server.hostname}} {{~/unless}}  {{~#if publicNets}} public network = {{publicNets}} {{~/if}}  {{~#if privateNets}} cluster network = {{privateNets}} {{~/if}} log file = /dev/null mon cluster log file = /dev/null mon cluster log to syslog = true log to syslog = true err to syslog = true  {{~#replaceAll "rgw zone = default" ""~}} {{~#options}} {{key}} = {{value}} {{~/options}} {{~/replaceAll}}  [client.rgw.new-croit-host-C0DE01] host = new-croit-host-C0DE01 rgw zone = default [client.rgw.new-croit-host-C0DE02] host = new-croit-host-C0DE02 rgw zone = sync {{~/if}} 

    要愚弄改动,您必须重新启动 RGW。

    root@new-croit-host-C0DE01 ~ $ systemctl restart ceph-radosgw@rgw.new-croit-host-C0DE01.service root@new-croit-host-C0DE02 ~ $ systemctl restart ceph-radosgw@rgw.new-croit-host-C0DE02.service 
    测试 S3 同步

    咱们将使用 s3cmd 进行测试。

    在源和操办上生成用户并树立他们的 s3cmd 树立文献。检查 API 打听是否有用。

    ~ s3cmd -c .s3cfg_source ls ~ s3cmd -c .s3cfg_target ls ~ 

    若是您有 API 瑕疵瑕疵,请检查您的凭证、端点。

    在源上创建一个存储桶并添加对象:

    咱们最初创建一个bucket:

    ~ s3cmd -c .s3cfg_source mb s3://mystetbucket Bucket 's3://mystetbucket/' created ~ s3cmd -c .s3cfg_source ls 2021-06-24 15:06  s3://mystetbucket 

    当今咱们在源上添加一个对象:

    ~ s3cmd -c .s3cfg_source put /tmp/myobject s3://mystetbucket/synctest                                                                                                                                                                                 64 WARNING: Module python-magic is not available. Guessing MIME types based on file extensions. upload: '/tmp/myobject' -> 's3://mystetbucket/synctest'  [1 of 1]  13 of 13   100% in    0s   325.90 B/s  done 

    并检查它是否已同步到操办:

    ~ s3cmd -c .s3cfg_target ls s3:// 2021-06-24 15:30  s3://rgw-default-271b93c16a9565d8 ~ s3cmd -c .s3cfg_target ls s3://rgw-default-271b93c16a9565d8                           DIR  s3://rgw-default-271b93c16a9565d8/mystetbucket/ ~ s3cmd -c .s3cfg_target ls s3://rgw-default-271b93c16a9565d8/mystetbucket/ 2021-06-24 15:36           13  s3://rgw-default-271b93c16a9565d8/mystetbucket/synctest 
    技能和秘诀

    您不错随时加多调试日记纪录以便于调试:

    root@new-croit-host-C0DE02 ~ $ ceph --admin-daemon /var/run/ceph/ceph-client.rgw.new-croit-host-C0DE02.96866.94534872347832.asok config set debug_rgw_sync 5 root@new-croit-host-C0DE02 ~ $ ceph --admin-daemon /var/run/ceph/ceph-client.rgw.new-croit-host-C0DE02.96866.94534872347832.asok config set debug_rgw 5 

    检查同步现象:

    (docker-croit)@mycephcluster / $ radosgw-admin sync status --rgw-zone=sync           realm 46669d35-f7ed-4374-8247-2b8f41218109 (default)       zonegroup 881cf806-f6d2-47a0-b7dc-d65ee87f8ef4 (default)            zone 7ead9532-0938-4698-9b4a-2d84d0d00869 (sync)   metadata sync syncing                 full sync: 0/64 shards                 incremental sync: 64/64 shards                 metadata is caught up with master       data sync source: 303a00f5-f50d-43fd-afee-aa0503926952 (default)                         syncing                         full sync: 0/128 shards                         incremental sync: 128/128 shards                         data is caught up with source 

    参考著述:

    https://docs.ceph.com/en/latest/radosgw/multisite/

    https://docs.ceph.com/en/latest/radosgw/cloud-sync-module/#cloud-sync-tier-type-configuration

    https://croit.io/blog/setting-up-ceph-cloud-sync-module

    祝祥

    资深云探讨架构师

    OpenStack官方特邀讲师

    上万台云主机和几十PB散布式存储的

     

    成立处分教学