Dell Unity:如何在 SP 維護活動期間管理寫入快取

Summary: 本文提供在 Unity 儲存處理器 (SP) 維護活動期間,管理寫入快取的最佳實務 (停用、啟用、檢查、排清)。(使用者可修正)

This article applies to This article does not apply to This article is not tied to any specific product. Not all product versions are identified in this article.

Instructions

建議的最佳做法是,執行任何排定的 Unity SP 硬體維護活動前,先停用寫入快取。萬一其他 SP 正在進行排定維護活動時,同儕 SP 發生次要問題,這麼做可避免該問題帶來的任何潛在影響。此外,建議的最佳做法是,在執行資料現地 (DIP) 升級之前,或在不中斷升級 (NDU) 之前主動將 SP 重新開機,以停用寫入快取。

注意:Dell 先前建議在 NDU 期間停用寫入快取。Dell 已修訂本指南。除了在 NDU 之前主動重新開機 (如果您選擇進行這些重新開機) 外, 在 NDU 期間應保持 啟用 寫入快取。
 
注意:客戶始終保留選項,以決定在其環境中禁用寫緩存是否適合他們。客戶擁有最終決定權。客戶如果 Dell Technologies 正在執行您的升級或維護活動,且您對寫入快取有偏好, 請務必在 活動開始前瞭解您的決定。
 
警示:停用寫入快取會影響系統效能。確保在低 I/O 視窗中執行活動,以最大程度地減少對生產的影響。
 

SP 硬體維護活動定義為更換下列任何零件清單:

零件
DIMM
SFP
SP
BBU
I/O 模組
M.2 SATA
DPE 機箱
風扇
夾層
DPE PSU - 電源供應單元

本文提供的在任何排定 SP 硬體維護活動之前手動停用寫入快取的步驟適用於 Unity OE 5.3 及更低版本。當 SP 在執行 OE 5.4 及更新版本的 Unity 陣列上進入服務模式時,寫入快取會自動停用。

在執行下列升級或升級前活動之前,停用寫入快取也是建議的最佳做法:

活動
資料現地 (DIP) 升級。
NDU 前主動式 SP 重新開機

本文提供的關於在任何排程升級活動之前手動停用寫入快取的步驟適用於 Unity OE 5.1 版或更新版本。在任何 Unity OE 版本上執行升級時,Unity 寫入快取不會自動停用。

svc_cache 命令可用來停用寫入快取、啟用寫入快取,以及使用三個開關顯示寫入快取狀態:

--disable
--enable
--get
可使用 svc_cache 命令會隨附於 UnityOS 5.2 及更新版本。

若為 Unity OE 5.0 和 5.1, svc_cache 命令必須由 Dell 技術支援或授權服務供應商手動載入至 Unity 系統。這允許在不需要根shell的情況下完成緩存更改,並參與更高級別的支援。

注意:根據所使用的瀏覽器,字體可能會扭曲命令中的 -(雙連字元),尤其是粗體行。

svc_cache 命令前面有一個 --(雙連字元)而不是單個 - 。
如果將粗體命令從本文複製到記事本,則雙連字元的定義更明確。

svc_cache 下面更詳細地解釋了此處列出的參數:
svc_cache --force-enableCacheOperations
svc_cache --get
svc_cache --disable
svc_cache --enable
svc_cache --disableCacheOperations


判斷是否 svc_cache 命令已安裝:

如果您執行 svc_cache 命令,您可以確定是否已安裝套件。它會根據 svc_cache 已使用新命令安裝命令。若要對此進行測試,請使用 svc_cache --get 命令。


如果尚未安裝套件:

執行 svc_cache --get 命令傳回命令的用法

19:44:58 service@APM00123456789 spa:~/user# svc_cache --get
This script displays and clears the Cache Dirty or Cache Lost LUNs(CDCA) on this system.
Usage: svc_cache [<qualifiers>]
若發生此情況,請聯絡 Dell 技術支援 或您的授權服務提供商,並引述此 Dell 文章 ID。


如果套件已安裝 (已與 OS 5.2 及更新版本搭售):

執行 svc_cache --get 命令會產生兩個結果之一,具體取決於命令是否已解鎖。
  1. 如果套件已安裝,但命令未啟用,系統將傳回錯誤:
19:44:58 service@APM00123456789 spa:~/user# svc_cache --get

--- ERROR: This option can only be used after enabling cache operations.
如果發生這種情況,您必須使用下列命令啟動命令:
 svc_cache --force-enableCacheOperations 
  1. 如果已安裝套件且已啟用命令集,則 svc_cache --get 命令按預期返回緩存狀態。繼續在下一個步驟停用寫入快取。


停用寫入快取:

  1. 取得寫入快取的狀態: svc_cache --get (狀態 3 已啟用,狀態 7 為停用或未知,狀態 8 為停用)。如果已停用寫入快取,則不需要執行進一步動作。
  2. 停用寫入快取: svc_cache --disable (此命令只需在一個 SP 上執行,即可停用兩個 SP 上的快取)。
  3. 確認寫入快取已停用:  ssvc_cache --get

Write Cache State: 3 (已啟用)
寫入快取狀態:7 (未知)
寫入快取狀態:8 (停用)

請參閱「其他備註」區段中更詳細的輸出範例。

目標是達到狀態 8 (已停用)。如果輸出 svc_cache --get 是 7 的狀態,這意味著髒頁仍在刷新。重新執行 svc_cache --get 命令,直到狀態為 8(禁用)。

如果禁用需要一些時間,您還可以使用指標來監視並確保所有臟緩存頁面都已刷新或刷新:

uemcli /metrics/value/rt -path sp.*.blockCache.global.summary.dirtyBytes show -interval 5 -count 5

一旦 svc_cache --get 顯示狀態 8,或髒頁顯示 0,您可以繼續您的活動。


啟用寫入快取:

當兩個 SP 都重新連線時:
  1. 取得寫快取的狀態: svc_cache --get (狀態 3 為啟用,狀態 7 為停用或未知,狀態 8 為停用)。
  2. 啟用寫入快取: svc_cache --enable (此命令只需在一個 SP 上執行,即可在兩個 SP 上啟用快取)
  3. 確認已啟用寫入快取:ssvc_cache --get (狀態 3 已啟用)。  

最後,當您完成活動時,應禁用寫入緩存命令:

svc_cache --disableCacheOperations

Additional Information

寫入快取和 Unity 不中斷升級 (NDP) 的相關資訊: 

首先,Dell 強烈建議 您在開始之前,從我們的 SolVe 程序產生器 列印更新的程序 (需要客戶登入 Dell 支援),並參考指定的文章。這可確保您掌握升級期間可能遇到的任何潛在問題的最新資訊,為您提供獲得成功結果的最佳機會。

簡而言之, Dell Technologies 建議您停用 NDU 作業的寫入快取時,就是在 NDU 之前執行主動 SP 重新開機。除此之外, 在 NDU 期間,寫入快取應保持啟用狀態。


輸出範例:

svc_cache --get 顯示尚未安裝命令集:

19:44:58 service@APM00123456789 spa:~/user# svc_cache --get
This script displays and clears the Cache Dirty or Cache Lost LUNs(CDCA) on this system.
Usage: svc_cache [<qualifiers>]

svc_cache --get 顯示命令集尚未啟用:

19:44:58 service@APM00123456789 spa:~/user# svc_cache --get
 --- ERROR: This option can only be used after enabling cache operations.

如果發生這種情況,您必須使用下列命令啟動命令:

svc_cache --force-enableCacheOperations 

svc_cache --get 顯示寫入快取已啟用:

16:28:43 service@APM00123456789 spa:~/user# svc_cache --get
execute sptool -i
sptool -i output: SPA
current SP-A, other SP-B

execute: c4admintool -c get_cache
Get Cache Info.

         SP WWID:       wwn = 06:00:00:00:05:00:00:00:00:00:00:00:00:00:00:02
         SP WWID:       wwn = 06:00:00:00:05:00:00:00:01:00:00:01:01:00:00:02
                  System Cache Information

         Write Cache State:             3       (enabled)
         SP WWID:       wwn = 06:00:00:00:05:00:00:00:00:00:00:00:00:00:00:02
                  System Cache Information

         Write Cache State:             3       (enabled)
         SP WWID:       wwn = 06:00:00:00:05:00:00:00:01:00:00:01:01:00:00:02

 ** c4admintool_main: exit CSX_STATUS_SUCCESS

16:28:48 service@APM00123456789 spa:~/user#


svc_cache --get showing write cache is disabled:
16:29:00 service@APM00123456789 spa:~/user# svc_cache --get
execute sptool -i
sptool -i output: SPA
current SP-A, other SP-B

execute: c4admintool -c get_cache
Get Cache Info.

         SP WWID:       wwn = 06:00:00:00:05:00:00:00:00:00:00:00:00:00:00:02
         SP WWID:       wwn = 06:00:00:00:05:00:00:00:01:00:00:01:01:00:00:02
                  System Cache Information

         Write Cache State:             8       (disabled)
         SP WWID:       wwn = 06:00:00:00:05:00:00:00:00:00:00:00:00:00:00:02
                  System Cache Information

         Write Cache State:             8       (disabled)
         SP WWID:       wwn = 06:00:00:00:05:00:00:00:01:00:00:01:01:00:00:02

 ** c4admintool_main: exit CSX_STATUS_SUCCESS

16:31:30 service@APM00123456789 spa:~/user#

svc_cache --disable

16:28:48 service@APM00123456789 spa:~/user# svc_cache --disable
execute sptool -i
sptool -i output: SPA
current SP-A, other SP-B

execute: c4admintool -c set_cache -o disable -t write
currentArg 3 argc 7
currentArg 3 argc 7
Set Write Cache Disabled SP A(0).
#:2022-03-04 16:29:00.035 GMT :U:( 1:1):00007f7168fd0280:25459:Unknown:: TLDflarecons:TLDconfig.cpp   :09584=>TLDconfig_SetCacheBuildTree Enable 0, Type 2, SP = 0
#:2022-03-04 16:29:00.035 GMT :U:( 1:1):00007f7168fd0280:25459:Unknown:: TLDconfig:  :TLDconfig.cpp   :09592=>Set cache state to disabled - 8

         SP WWID:       wwn = 06:00:00:00:05:00:00:00:00:00:00:00:00:00:00:02
         SP WWID:       wwn = 06:00:00:00:05:00:00:00:01:00:00:01:01:00:00:02
c4admintool: -TAG_REQUEST(0x10016)
c4admintool: --TAG_OPERATION(0x10017)
<snip>
c4admintool: -------TAG_WRITE_CACHE(0x102ca)
c4admintool: --------TAG_STATE(0x10079) - 8

 ** c4admintool_main: exit CSX_STATUS_SUCCESS

16:29:00 service@APM00123456789 spa:~/user#

svc_cache --enable

16:32:43 service@APM00123456789 spa:~/user# svc_cache --enable
execute sptool -i
sptool -i output: SPA
current SP-A, other SP-B

execute: c4admintool -c set_cache -o enable -t write
currentArg 3 argc 7
currentArg 3 argc 7
Set Write Cache Enabled SP A(0).
#:2022-03-04 16:32:47.905 GMT :U:( 0:1):00007f8011b49280:09830:Unknown:: TLDflarecons:TLDconfig.cpp   :09584=>TLDconfig_SetCacheBuildTree Enable 1, Type 2, SP = 0
#:2022-03-04 16:32:47.905 GMT :U:( 0:1):00007f8011b49280:09830:Unknown:: TLDconfig:  :TLDconfig.cpp   :09589=>Set cache state to enabled - 3

         SP WWID:       wwn = 06:00:00:00:05:00:00:00:00:00:00:00:00:00:00:02
         SP WWID:       wwn = 06:00:00:00:05:00:00:00:01:00:00:01:01:00:00:02
c4admintool: -TAG_REQUEST(0x10016)
c4admintool: --TAG_OPERATION(0x10017)
<snip>
c4admintool: -------TAG_WRITE_CACHE(0x102ca)
c4admintool: --------TAG_STATE(0x10079) - 3

 ** c4admintool_main: exit CSX_STATUS_SUCCESS

16:32:48 service@APM00123456789 spa:~/user#

svc_cache --get 顯示寫入快取已啟用:

16:33:43 service@APM00123456789 spa:~/user# svc_cache --get
execute sptool -i
sptool -i output: SPA
current SP-A, other SP-B

execute: c4admintool -c get_cache
Get Cache Info.

         SP WWID:       wwn = 06:00:00:00:05:00:00:00:00:00:00:00:00:00:00:02
         SP WWID:       wwn = 06:00:00:00:05:00:00:00:01:00:00:01:01:00:00:02
                  System Cache Information

         Write Cache State:             3       (enabled)
         SP WWID:       wwn = 06:00:00:00:05:00:00:00:00:00:00:00:00:00:00:02
                  System Cache Information

         Write Cache State:             3       (enabled)
         SP WWID:       wwn = 06:00:00:00:05:00:00:00:01:00:00:01:01:00:00:02

 ** c4admintool_main: exit CSX_STATUS_SUCCESS

16:33:48 service@APM00123456789 spa:~/user#

Affected Products

Dell EMC Unity
Article Properties
Article Number: 000196684
Article Type: How To
Last Modified: 16 May 2025
Version:  32
Find answers to your questions from other Dell users
Support Services
Check if your device is covered by Support Services.