在 MetroCluster 配置中替换 FabricPool 镜像
如果 FabricPool 镜像中的某一对象存储被销毁或在 MetroCluster 配置中变得永久不可用,可将该对象存储转化为镜像(若该对象存储还不是镜像),并从 FabricPool 镜像中删除已损坏的对象存储,然后将新对象存储镜像添加到 FabricPool。
- 如果已损坏的对象存储还不是镜像,请使用 storage aggregate object-store modify 命令将其转化为镜像。
storage aggregate object-store modify -aggregate -aggregate fp_aggr1_A01 -name mcc1_ostore1 -mirror-type mirror
- 使用 storage aggregate object-store unmirror 命令从 FabricPool 中删除该对象存储镜像。
storage aggregate object-store unmirror -aggregate <aggregate name> -name mcc1_ostore1
- 删除该镜像数据存储后,可使用 storage aggregate object-store modify 命令及 -force-tiering-on-metrocluster true 选项,强制在主数据存储上恢复分层。镜像缺失会干扰 MetroCluster 配置的复制要求。
storage aggregate object-store modify -aggregate <aggregate name> -name mcc1_ostore1 -force-tiering-on-metrocluster true
- 使用 storage aggregate object-store config create 命令创建替换对象存储。
storage aggregate object-store config create -object-store-name mcc1_ostore3 -cluster clusterA -provider-type SGWS -server <SGWS-server-1> -container-name <SGWS-bucket-1> -access-key <key> -secret-password <password> -encrypt <true|false> -provider <provider-type> -is-ssl-enabled <true|false> ipspace <IPSpace>
- 使用 storage aggregate object-store mirror 命令将对象存储镜像添加到 FabricPool 镜像。
storage aggregate object-store mirror -aggregate aggr1 -name mcc1_ostore3-mc
- 使用 storage aggregate object-store show 命令显示对象存储信息。
storage aggregate object-store show -fields mirror-type,is-mirror-degraded
aggregate object-store-name mirror-type is-mirror-degraded
-------------- ----------------- ------------- ------------------
aggr1 mcc1_ostore1-mc primary -
mcc1_ostore3-mc mirror true - 使用 storage aggregate object-store show-resync-status 命令监控镜像再同步状态。
storage aggregate object-store show-resync-status -aggregate aggr1
Complete
Aggregate Primary Mirror Percentage
--------- ----------- ---------- ----------
aggr1 mcc1_ostore1-mc mcc1_ostore3-mc 40%
提供反馈