Azure 儲存體備援Azure Storage redundancy

Microsoft Azure 儲存體帳戶中的資料一律會進行複寫以確保持久性及高可用性。The data in your Microsoft Azure storage account is always replicated to ensure durability and high availability. 「Azure 儲存體」會複製您的資料,以保護該資料不受計劃性和非計劃性事件影響,包括暫時性硬體故障、網路或電力中斷和大規模天然災害。Azure Storage copies your data so that it is protected from planned and unplanned events, including transient hardware failures, network or power outages, and massive natural disasters. 您可以選擇在相同資料中心內、在相同地區的不同資料中心內、或跨不同區域複寫您的資料。You can choose to replicate your data within the same data center, across zonal data centers within the same region, or across geographically separated regions.

複寫可確保您的儲存體帳戶符合儲存體的服務等級協定 (SLA) 即使遇到失敗時也一樣。Replication ensures that your storage account meets the Service-Level Agreement (SLA) for Storage even in the face of failures. 請參閱 SLA 以取得 Azure 儲存體持續性和可用性保證的相關資訊。See the SLA for information about Azure Storage guarantees for durability and availability.

Azure 儲存體會定期驗證使用迴圈冗余檢查(CRCs)所儲存之資料的完整性。Azure Storage regularly verifies the integrity of data stored using cyclic redundancy checks (CRCs). 如果偵測到資料損毀,則會使用多餘的資料修復。If data corruption is detected, it is repaired using redundant data. Azure 儲存體也會計算所有網路流量的總和檢查碼,以在儲存或抓取資料時偵測損毀的資料封包。Azure Storage also calculates checksums on all network traffic to detect corruption of data packets when storing or retrieving data.

選擇備援選項Choosing a redundancy option

建立儲存體帳戶時,您可以選取下列其中一個備援選項:When you create a storage account, you can select one of the following redundancy options:

下表快速簡要說明針對所指定類型的事件 (或具有類似影響的事件),每個複寫策略將為您提供的持久性和可用性範圍。The following table provides a quick overview of the scope of durability and availability that each replication strategy will provide you for a given type of event (or event of similar impact).

狀況Scenario LRSLRS ZRSZRS GRS/RA-GRSGRS/RA-GRS 切換/RA-切換(預覽)GZRS/RA-GZRS (preview)
資料中心內的節點無法供使用Node unavailability within a data center Yes Yes Yes Yes
整個資料中心 (區域或非區域) 變成無法供使用An entire data center (zonal or non-zonal) becomes unavailable No yesYes Yes Yes
全區域服務中斷A region-wide outage No No yesYes Yes
在全區域服務無法供使用的情況下對資料 (位於遠端、異地複寫區域) 進行讀取存取Read access to your data (in a remote, geo-replicated region) in the event of region-wide unavailability No No 是(使用 RA-GRS)Yes (with RA-GRS) 是(使用 RA-切換)Yes (with RA-GZRS)
設計為可在指定的一年中讓物件持久性達到 __Designed to provide __ durability of objects over a given year 至少 99.999999999% (11 個 9)at least 99.999999999% (11 9's) 至少 99.9999999999% (12 個 9)at least 99.9999999999% (12 9's) 至少 99.99999999999999% (16 個 9)at least 99.99999999999999% (16 9's) 至少 99.99999999999999% (16 個 9)at least 99.99999999999999% (16 9's)
支援的儲存體帳戶類型Supported storage account types GPv2、GPv1、BlobGPv2, GPv1, Blob GPv2GPv2 GPv2、GPv1、BlobGPv2, GPv1, Blob GPv2GPv2
讀取要求的可用性 SLAAvailability SLA for read requests 至少 99.9% (非經常性存取層為 99%)At least 99.9% (99% for cool access tier) 至少 99.9% (非經常性存取層為 99%)At least 99.9% (99% for cool access tier) GRS 至少 99.9% (非經常性存取層為 99%)At least 99.9% (99% for cool access tier) for GRS

針對 RA-GRS,至少 99.99% (非經常性存取層為 99.9%)At least 99.99% (99.9% for cool access tier) for RA-GRS
切換至少 99.9% (非經常性存取層為 99%)At least 99.9% (99% for cool access tier) for GZRS

針對 RA-切換,至少 99.99% (非經常性存取層為 99.9%)At least 99.99% (99.9% for cool access tier) for RA-GZRS
寫入要求的可用性 SLAAvailability SLA for write requests 至少 99.9% (非經常性存取層為 99%)At least 99.9% (99% for cool access tier) 至少 99.9% (非經常性存取層為 99%)At least 99.9% (99% for cool access tier) 至少 99.9% (非經常性存取層為 99%)At least 99.9% (99% for cool access tier) 至少 99.9% (非經常性存取層為 99%)At least 99.9% (99% for cool access tier)

系統會複寫儲存體帳戶中的所有資料,包括區塊 blob 和附加 blob、分頁 blob、佇列、資料表和檔案。All data in your storage account is replicated, including block blobs and append blobs, page blobs, queues, tables, and files. 雖然 ZRS 需要一般用途 v2 儲存體帳戶,但會複寫所有類型的儲存體帳戶。All types of storage accounts are replicated, although ZRS requires a general-purpose v2 storage account.

如需每個備援選項的定價資訊,請參閱 Azure 儲存體定價For pricing information for each redundancy option, see Azure Storage Pricing.

如需 Azure 儲存體持續性和可用性保證的相關資訊,請參閱 Azure 儲存體 SLAFor information about Azure Storage guarantees for durability and availability, see the Azure Storage SLA.

注意

Azure 進階儲存體目前僅支援本機多餘的儲存體(LRS)。Azure Premium Storage currently supports only locally redundant storage (LRS).

變更複寫策略Changing replication strategy

您可以使用 [ Azure 入口網站]、[ Azure Powershell]、[ Azure CLI] 或其中一個Azure 儲存體用戶端程式庫,來變更儲存體帳戶的複寫原則。You can change your storage account's replication strategy by using the Azure portal, Azure Powershell, Azure CLI, or one of the Azure Storage client libraries. 變更儲存體帳戶的複寫類型並不會造成停機。Changing the replication type of your storage account does not result in down time.

注意

目前,您無法使用 Azure 入口網站或 Azure 儲存體用戶端程式庫,將您的帳戶轉換成 ZRS、切換或 RA-切換。Currently, you cannot use the Azure portal or the Azure Storage client libraries to convert your account to ZRS, GZRS, or RA-GZRS. 若要將您的帳戶遷移至 ZRS,請參閱建立高可用性 Azure 儲存體應用程式的區域冗余儲存體(ZRS) ,以取得詳細資料。To migrate your account to ZRS, see Zone-redundant storage (ZRS) for building highly available Azure Storage applications for details. 若要遷移切換或 RA 切換,請參閱異地區域冗余儲存體以取得高可用性和最大持久性(預覽) ,以取得詳細資料。To migrate GZRS or RA-GZRS, see Geo-zone-redundant storage for highly availability and maximum durability (preview) for details.

變更我帳戶的複寫策略是否會產生任何費用?Are there any costs to changing my account's replication strategy?

這取決於您的轉換途徑。It depends on your conversion path. 從最低到最昂貴、Azure 儲存體的冗余供應專案 LRS、ZRS、GRS、RA-GRS、切換和 RA-切換排序。Ordering from least to the most expensive, Azure Storage redundancy offerings LRS, ZRS, GRS, RA-GRS, GZRS, and RA-GZRS. 例如,LRS 到任何其他類型的複寫都會產生額外費用,因為您要移至更複雜的複製層級。For example, going from LRS to any other type of replication will incur additional charges because you are moving to a more sophisticated redundancy level. 遷移GRS 或 RA-GRS 會產生輸出頻寬費用,因為您的資料(在您的主要區域中)已複寫到您的遠端次要區域。Migrating to GRS or RA-GRS will incur an egress bandwidth charge because your data (in your primary region) is being replicated to your remote secondary region. 這項費用是初始設定時的一次性成本。This charge is a one-time cost at initial setup. 複製資料之後,就不會有任何進一步的遷移費用。After the data is copied, there are no further migration charges. 您只需支付複寫現有資料的任何新或更新的費用。You are only charged for replicating any new or updates to existing data. 如需有關頻寬費用的詳細資料,請參閱 Azure 儲存體定價頁面找到。For details on bandwidth charges, see Azure Storage Pricing page.

如果您將儲存體帳戶從 GRS 遷移至 LRS,則不會產生額外費用,但會從次要位置刪除您的複寫資料。If you migrate your storage account from GRS to LRS, there is no additional cost, but your replicated data is deleted from the secondary location.

如果您將儲存體帳戶從 GRS 到 GRS 或 LRS 遷移,則該帳戶會以 RA-GRS 計費,超過其轉換日期的30天。If you migrate your storage account from RA-GRS to GRS or LRS, that account is billed as RA-GRS for an additional 30 days beyond the date that it was converted.

另請參閱See also