1

目前已经启动并运行了 velero,它运行良好。我唯一的问题是,卷的快照是在与原件相同的区域创建的,这有点违背了灾难恢复的目的。这面旗帜

--snapshot-location-config

没有区域的 arg。我知道默认快照位置有一个配置

volumesnapshotlocations.velero.io "default"

有谁知道如何修改默认设置,以便我可以将快照放入新区域?

4

2 回答 2

2

不支持从主要区域到不同区域的快照创建。
托管磁盘的 Azure 区域冗余快照和映像具有不错的 99.9999999999%(12 个 9)的持久性。一个区域中的可用区通常在物理上是分开的,即使中断影响了一个 AZ,您仍然可以从冗余 AZ 访问您的数据。

但是,如果您担心会影响几平方公里(一个区域中的多个区域)的灾难,您可以手动将快照移动到不同的区域,甚至可以自动化该过程。是一个指南。

于 2020-08-19T14:58:44.890 回答
0

--snapshot-location-config没有区域的 arg

--snapshot-location-config不创建存储,您必须自己创建。您可以指定不同的区域、不同的 Azure 订阅,甚至可以指定不同的提供商,例如 AWS。

对于 Azure,请按照此处的说明创建存储容器。

如果您的提供程序支持区域配置(Azure 没有 - 请参阅卷快照位置配置文档备份存储位置配置文档--config) ,则可以使用--config region=us-west-2. 检查您的提供程序插件以查看是否支持不同的区域、键名是什么以及支持哪些可能的值。

有关使用多个快照和备份位置的示例,请参阅Velero 位置文档

更新:

尽管velero snapshot-location create允许您指定 a --provider但 Location 文档的限制/警告部分明确指出仅支持一组凭据,此外 Azure 明确不允许在不同区域创建快照:

Velero 仅支持 VolumeSnapshotLocations 的一组凭据。Velero 将始终使用安装时提供的凭据(存储在 cloud-credentials 密钥中)进行卷快照。

Volume snapshots are still limited by where your provider allows you to create snapshots. For example, AWS and Azure do not allow you to create a volume snapshot in a different region than where the volume is. If you try to take a Velero backup using a volume snapshot location with a different region than where your cluster’s volumes are, the backup will fail.

I personally find this confusing -- how could one use a different provider without specifying credentials? Regardless, it seems as if storage of a snapshots in a different region in Azure is not possible.

于 2021-07-28T19:04:14.660 回答