【问题标题】:How to restore a blob snapshot to a managed disk如何将 Blob 快照还原到托管磁盘
【发布时间】:2019-02-13 14:08:09
【问题描述】:

我目前正在从 ACS 迁移到 AKS。

我可以对现有存储 Blob 进行快照,并将它们还原到 Azure 中任何位置的不同存储 Blob。

到目前为止,我还没有看到任何有效的方法可以将 blob 快照还原到托管磁盘(这是 AKS 中的强制存储)。

自命令以来这样做的皇家方式是什么

az storage blob copy start --destination-blob $destinationVHDFileName --destination-container $storageContainerName --account-name $storageAccountName --account-key $storageAccountKey --source-uri $sas

不适用于磁盘?

【问题讨论】:

标签: azure azure-blob-storage azure-aks azure-disk


【解决方案1】:

Migrating from Azure Container Service (ACS) to Azure Kubernetes Service (AKS),正如评论所说,你可以看一下文档。

对于disk migration,我认为磁盘应该是持久卷磁盘,您可以对磁盘进行快照并从快照创建新磁盘作为AKS中的持久卷。将磁盘添加为 AKS 中的持久卷,您可以按照Manually create and use a volume with Azure disks in Azure Kubernetes Service (AKS) 中的步骤操作。

此外,您需要静默写入应用程序并关闭它。否则它会丢失迁移中的数据。迁移后检查应用程序是否按预期工作。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2017-07-08
    • 1970-01-01
    • 1970-01-01
    • 2021-11-14
    • 1970-01-01
    • 2017-07-26
    • 2019-04-13
    • 2018-05-25
    相关资源
    最近更新 更多