ECS:xDoctor RAP137 整個 ECS 機架的總交換記憶體不一致

Summary: 整個 ECS 機架的記憶體交換總量不一致。

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.

Symptoms

xDoctor 報告:

------------------------------------------------------------
WARNING - Total swap memory inconsistent across the ECS rack
------------------------------------------------------------
Node      = Nodes
Extra     = {'Nodes': {'16383': ['169.254.1.8', '169.254.1.7', '169.254.1.6', '169.254.1.4', '169.254.1.3', '169.254.1.2', '169.254.1.1'], '8191': ['169.254.1.5']}}
Timestamp = 2022-12-01_145111
PSNT      = CKM00190800120 @ 4.8-87.0

Cause

  • 節點重新開機後,交換組態並未儲存於 /etc/fstab.
  • 原生「交換」磁碟分割在開機時未載入。
  • 節點已重新製作映像,且「交換」未套用於節點。
  • 從未將更多「交換」套用到有擴充的叢集。 
  1. 確認所有節點上「交換」是否具有一致性。
注意:我們看到以下輸出顯示機架 1 節點 1 在「交換」中只有 8G 與叢集不相符。


命令:

# doit free -m | grep Swap

範例:

admin@ecsnode1:~> svc_exec 'free -m | grep Swap'
svc_exec v1.0.4 (svc_tools v2.8.0)                 Started 2022-11-30 22:15:56

Output from node: r1n1                                retval: 0
Swap:        8191         552         23

Output from node: r1n2                                retval: 0
Swap:        8191          2        8191

Output from node: r1n3                                retval: 0
Swap:        16383          4      16379

Output from node: r1n4                                retval: 0
Swap:        16383          0      16383

Output from node: r1n5                                retval: 0
Swap:        16383          0      16383

Output from node: r1n6                                retval: 0
Swap:        16383          3      16380

Output from node: r1n7                                retval: 0
Swap:        16383          4      16379

Output from node: r1n8                                retval: 0
Swap:        16383        699      15684

 

  1. 確認 /etc/fstab 是否已更新以使用節點上「交換」額外的 8 GB,以及原生「交換」磁碟分割項目是否存在。

命令:

# svc_exec 'grep swap /etc/fstab'

範例:

admin@ecsnode1:~> svc_exec 'grep swap /etc/fstab'
svc_exec v1.0.4 (svc_tools v2.8.0)                 Started 2022-11-30 22:19:21

Output from node: r1n1                                retval: 0
LABEL=SWAP swap swap defaults 0 0                     <-- missing extended swap partition

Output from node: r1n2                                retval: 0
/swapfile     swap swap defaults 0 0                  <-- missing native swap partition

Output from node: r1n3                                retval: 0
LABEL=SWAP swap swap defaults 0 0
/swapfile     swap swap defaults 0 0

Output from node: r1n4                                retval: 0
LABEL=SWAP swap swap defaults 0 0
/swapfile     swap swap defaults 0 0

Output from node: r1n5                                retval: 0
LABEL=SWAP swap swap defaults 0 0
/swapfile     swap swap defaults 0 0

Output from node: r1n6                                retval: 0
LABEL=SWAP swap swap defaults 0 0
/swapfile     swap swap defaults 0 0

Output from node: r1n7                                retval: 0
LABEL=SWAP swap swap defaults 0 0
/swapfile     swap swap defaults 0 0

Output from node: r1n8                                retval: 0
LABEL=SWAP swap swap defaults 0 0
/swapfile     swap swap defaults 0 0

 

  1. 驗證「交換」檔案是否存在所有節點上。
命令: 
# svc_exec 'ls -lh /swapfile'
範例:
admin@ecsnode1:~> svc_exec 'ls -lh /swapfile'
svc_exec v1.0.4 (svc_tools v2.8.0)                 Started 2022-11-30 22:26:48

Output from node: r1n1                                retval: 0
ls: cannot access '/swapfile': No such file or directory

Output from node: r1n2                                retval: 0
-rw------- 1 root root 8.0G Feb 11  2022 /swapfile

Output from node: r1n3                                retval: 0
-rw------- 1 root root 8.0G Feb 11  2022 /swapfile

Output from node: r1n4                                retval: 0
-rw------- 1 root root 8.0G Feb 11  2022 /swapfile

Output from node: r1n5                                retval: 0
-rw------- 1 root root 8.0G Feb 11  2022 /swapfile

Output from node: r1n6                                retval: 0
-rw------- 1 root root 8.0G Feb 11  2022 /swapfile

Output from node: r1n7                                retval: 0
-rw------- 1 root root 8.0G Feb 11  2022 /swapfile

Output from node: r1n8                                retval: 0
-rw------- 1 root root 8.0G Jul 26 02:03 /swapfile

Resolution

重要!xDoctor 4-8.104.0 及更新版本中已發佈一項新功能。此知識庫 (KB) 現已搭配 xDoctor AutoPilot 自動化處理,無需支援人員參與即可解決大部分問題。

此功能原生於 xDoctor 4-8.104.0 及更新版本,如需語法和使用問題,請參閱 ECS:ObjectScale:如何執行 KB 自動化指令檔 (自動試用)。(可能需要登入 Dell 支援) 
 

  1. 從具有 xDoctor 4-8.104.0 及更新版本的主要節點執行自動化命令。
    便條: --target-node, --target-rack and --target-vdc 此腳本支援。
命令: 
# sudo xdoctor autopilot --kb 205933 --target-node <NAN IP>
# sudo xdoctor autopilot --kb 205933 --target-rack <Rack Name>
# sudo xdoctor autopilot --kb 205933 --target-vdc <VDC Name>
範例:
admin@ecsnode1:~> sudo xdoctor autopilot --kb 205933 --target-node 169.254.1.1
Checking for existing screen sessions...
Starting screen session 'autopilot_kb_205933_20250627_212503'...
Screen session 'autopilot_kb_205933_20250627_212503' started successfully.
Attaching to screen session 'autopilot_kb_205933_20250627_212503'...

 

  1. 檢閱所採取動作的摘要。

範例:

TASK [Summary for SWAP and fstab issues addressed] *********************************************************************************************************************************************
ok: [169.254.1.7] => {
    "msg": [
        "************************************************************************************************************************************************",
        "************************************************************************************************************************************************",
        " An 8GB swap file was created and configured as /swapfile with swap enabled. ",
        " fstab was updated with entries for /swapfile, and a backup prior to the change was created in: /etc/fstab.28734.2024-08-28@19:44:38~. ",
        " No duplicate entries were found in fstab. ",
        "************************************************************************************************************************************************",
        "************************************************************************************************************************************************"
    ]
}

 

  1. 確認以使用交換詳細資訊和應用的更改更新 MOTD。
    便條:如果您目前的 MOTD 當中包含 KB 號碼或「/swapfile」這個字,MOTD 即不會更新。

命令:

# yes or no

範例:

The next steps are to detect keywords in the MOTD content and update the MOTD with custom content for the KB specifics. IMPORTANT! You will need customer permission to do this action for the KB. Would you like to proceed with the steps by typing 'Yes' or 'Y', or skip the MOTD update actions by typing 'No' or 'N':
: y
  1. 檢閱 MOTD 變更摘要以新增 MOTD 內容:

範例:

TASK [MOTD summary] ****************************************************************************************************************************************************************************
ok: [169.254.1.7] => {
    "msg": [
        "************************************************************************************************************************************************",
        "New MOTD content:",
        "************************************************************************************************************************************************",
        "************************************************************************************************************************************************",
        [
            "",
"==============================================================================================================================================",
            "2024-08-28 | SR#84955203 | KB 186358 has been applied to this system, adding an 8GB swap file to /swapfile. Please reapply if a node has been reimaged.",
            "=============================================================================================================================================="
        ],
        "************************************************************************************************************************************************",
        "************************************************************************************************************************************************"
    ]
}

 

Affected Products

ECS Appliance
Article Properties
Article Number: 000205933
Article Type: Solution
Last Modified: 24 Jul 2025
Version:  8
Find answers to your questions from other Dell users
Support Services
Check if your device is covered by Support Services.