跳转至主要内容
  • 快速、轻松地下订单
  • 查看订单并跟踪您的发货状态
  • 创建并访问您的产品列表
  • 使用“Company Administration”(公司管理),管理Dell EMC站点、产品和产品级联系人。

Dell Unity:如何在 SP 維護活動期間正確管理寫入快取 (使用者可修正)

摘要: 本文針對寫入快取管理 (停用、啟用、檢查、排清) 提供 Unity SP 維護活動的最佳實務。 以下概述的步驟適用於 Unity OS 5.3 及更低版本。 當 SP 在執行 OS 5.4 及更高版本的 Unity 陣列上進入服務模式時,寫入快取會自動停用。

本文可能已自动翻译。如果您对其质量有任何反馈,请使用此页面底部的表单告知我们。

文章内容


说明

建議的最佳做法是,執行任何排定 SP 硬體維護活動前,先停用寫入快取。萬一在執行維護活動時,同儕 SP 發生次要問題,這麼做可避免該問題帶來的任何潛在影響。

SP 硬體維護活動定義為更換下列任一零件清單:
 
零件
DIMM
SFP
SP
BBU
I/O 模組
M.2 SATA
DPE 機箱
風扇
夾層
DPE PSU - 電源供應單元

此外,以下活動也被視為受影響的硬體維護活動,建議禁用寫入緩存:
 
活動
資料現地 (DIP) 升級

TSE 應檢閱並遵循本 Dell 知識文章內部備註中的工作訂單建立指示。

svc_cache命令已更新,包含三個新交換器:--get、--disable 和 --enable。此更新必須由 Dell 技術支援或您的授權服務提供商載入至您的 Unity 系統。這是一個好處,允許在不需要 root shell 的情況下完成緩存更新,並參與更高級別的支援。

更新:
svc_cache 命令更新現在已包含在 Unity OE 版本 5.2 及更新版本中。如此一來,就不需要在 Unity 陣列升級至更新的 OE 代碼後手動安裝。

以下概述的步驟適用於 Unity OS 5.3 及更低版本。  當 SP 在執行 OS 5.4 及更高版本的 Unity 陣列上進入服務模式時,寫入快取會自動停用。
 
注意:
根據所使用的瀏覽器,字體可能會扭曲命令中的 -(雙連字元),尤其是粗體行。

svc_cache 命令之後,參數前面有一個 --(雙連字元)而不是單個 - 。
如果將粗體命令從此知識庫複製到記事本,則會更明確地定義雙連字元。

此處列出了新命令,並在下面進行了更詳細的說明:
svc_cache --force-enableCacheOperations
svc_cache --get
svc_cache --disable
svc_cache --enable
svc_cache --disableCacheOperations

確定是否已安裝
更新的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。
 
如果套裝已安裝:
  執行 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. 確認寫入快取已停用:  svc_cache --get
Write Cache State:             3       (已啟用)
Write Cache State:             7       (未知)
Write Cache State:             8 (已停用)
請參閱「其他備註」一節中的詳細範例輸出。

目標是達到狀態 8 (已停用)。如果 svc_cache --get 的輸出為 7 狀態,則表示髒頁仍在排清。再次重新執行 svc_cache --get cmd,直到狀態為 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. 確認寫入快取已啟用:svc_cache --get (狀態 3 為啟用)。  

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


其他信息


範例輸出:

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#

文章属性


受影响的产品

Dell EMC Unity

上次发布日期

06 5月 2024

版本

24

文章类型

How To