Skip to main content
  • Place orders quickly and easily
  • View orders and track your shipping status
  • Enjoy members-only rewards and discounts
  • Create and access a list of your products
  • Manage your Dell EMC sites, products, and product-level contacts using Company Administration.

Dell Unity:如何在 SP 维护活动期间正确管理写入高速缓存(用户可纠正)

Summary: 本文提供了有关写入高速缓存管理(禁用、启用、检查、刷新)的 Unity SP 维护活动的最佳实践。 下面概述的步骤适用于 Unity OS 5.3 及更低版本。 在运行 OS 5.4 及更高版本的 Unity 阵列上将 SP 置于服务模式时,会自动禁用写入高速缓存。

This article may have been automatically translated. If you have any feedback regarding its quality, please let us know using the form at the bottom of this page.

Article Content


Instructions

建议的最佳实践是在执行任何计划的 SP 硬件维护活动之前禁用写入高速缓存。这是为了避免万一在执行维护活动时对等 SP 上发生次要问题所造成的任何潜在影响。

SP 硬件维护活动定义为对以下任何部件列表的任何更换:
 
部件
DIMM
SFP
SP
BBU
I/O 模块
M.2 SATA
DPE 机箱
风扇
夹层
DPE PSU — 电源装置

此外,以下活动也被视为受影响的硬件维护活动,建议禁用写入高速缓存:
 
活动
就地 (DIP) 升级

TSE 应查看并遵循此戴尔知识库文章的内部注释中的工单创建说明。

svc_cache 命令已更新,以包括三个新开关:--get、--disable 和 --enable。此更新必须由戴尔技术支持或您的授权服务提供商加载到您的 Unity 系统。这样做的好处是,无需 root shell 即可完成高速缓存更新,并获得更高级别的支持。

更新:
svc_cache 命令更新现在捆绑在 Unity OE 版本 5.2 及更高版本中。这样,在 Unity 阵列升级到更新的 OE 代码后,就无需手动安装。

下面概述的步骤适用于 Unity OS 5.3 及更低版本。  在运行 OS 5.4 及更高版本的 Unity 阵列上将 SP 置于服务模式时,会自动禁用写入高速缓存。
 
注意:
根据所使用的浏览器,字体可能会使命令中的 --(双连字符)失真,尤其是粗体行。

在 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>]
  如果发生这种情况,请联系戴尔技术支持或您的授权服务提供商,并引用此戴尔知识库文章 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
写入高速缓存状态:             3       (已启用)
写入高速缓存状态:             7       (未知)
写入高速缓存状态:             8(已禁用)
请参阅“其他说明”部分中的更多详细示例输出。

目标是达到 8 (disabled) 状态。如果 --get svc_cache输出为 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 都恢复在线状态时:
ENABLE WRITE CACHE:
  1. 获取写入高速缓存的状态:svc_cache --get(状态 3 为已启用,状态 7 为正在禁用或未知,状态 8 为已禁用)。
  2. 启用写入高速缓存:  svc_cache --enable(只需在一个 SP 上运行该命令,即可在两个 SP 上启用高速缓存)
  3. 确认写入高速缓存已启用:svc_cache --get(状态 3 已启用)。  

最后,当您完成活动后,您应该禁用写入高速缓存命令:
svc_cache --disableCacheOperations


Additional Information


输出示例:

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#

Article Properties


Affected Product

Dell EMC Unity

Last Published Date

06 May 2024

Version

24

Article Type

How To