6장. Mirroring data for hybrid and Multicloud buckets
You can use the simplified process of the Multicloud Object Gateway (MCG) to span data across cloud providers and clusters. Before you create a bucket class that reflects the data management policy and mirroring, you must add a backing storage that can be used by the MCG. For information, see Chapter 4, 3장. Adding storage resources for hybrid or Multicloud.
You can set up mirroring data by using the OpenShift UI, YAML or MCG command-line interface.
See the following sections:
6.1. Creating bucket classes to mirror data using the MCG command-line-interface 링크 복사링크가 클립보드에 복사되었습니다!
Prerequisites
- Ensure to download Multicloud Object Gateway (MCG) command-line interface.
Procedure
From the Multicloud Object Gateway (MCG) command-line interface, run the following command to create a bucket class with a mirroring policy:
$ noobaa bucketclass create placement-bucketclass mirror-to-aws --backingstores=azure-resource,aws-resource --placement MirrorSet the newly created bucket class to a new bucket claim to generate a new bucket that will be mirrored between two locations:
$ noobaa obc create mirrored-bucket --bucketclass=mirror-to-aws