ECS:如何增加 ECS 節點上的交換空間

Summary: 如何通過添加交換檔來增加可用的交換空間。

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

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

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

  1. 從具有 xDoctor 4-8.104.0 及更新版本的主要節點執行自動化命令。
命令: 
--target-node, --target-rack--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
正在檢查現有的螢幕工作階段...
開始螢幕工作階段「autopilot_kb_205933_20250627_212503」...
螢幕工作階段「autopilot_kb_205933_20250627_212503」已成功啟動。
正在附加到螢幕工作階段「autopilot_kb_205933_20250627_212503」...

 

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

範例:

工作 [解決 SWAP 和 fstab 問題的摘要] *********************************************************************************************************************************************
確定:[169.254.1.7] => {
    "msg": [
        "************************************************************************************************************************************************",
        "************************************************************************************************************************************************",
        " An 8GB swap file was created and configured as /swapfile with swap enabled.「」
fstab 已更新 /swapfile 的項目,並在變更前建立備份:/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

範例:

接下來的步驟是偵測 MOTD 內容中的關鍵字,並使用針對 KB 細節的自訂內容更新 MOTD。重要!您需要客戶權限才能對 KB 執行此動作。您要輸入「是」或「Y」來繼續執行這些步驟,還是透過輸入「否」或「N」來跳過 MOTD 更新動作:
: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.如果節點已重新製作映像,請重新套用。」
            “==============================================================================================================================================]

”************************************************************************************************************************************************“、”
************************************************************************************************************************************************”
]
}


其他 KB 文章整合至此自動化中:
ECS:xDoctor RAP137 整個 ECS 機架的總交換記憶體不一致

 

Affected Products

ECS
Article Properties
Article Number: 000186358
Article Type: How To
Last Modified: 18 Nov 2025
Version:  16
Find answers to your questions from other Dell users
Support Services
Check if your device is covered by Support Services.