ECS: How to increase the swap space on an ECS node

摘要: How to increase the available swap space by adding a swap file.

本文章適用於 本文章不適用於 本文無關於任何特定產品。 本文未識別所有產品版本。

說明

IMPORTANT! A new feature has been released in xDoctor 4-8.104.0 and later. This knowledge base (KB) article is now automated with xDoctor AutoPilot addressing most issues without the need for support involvement.

This feature is native to xDoctor 4-8.104.0 and later. For syntax and usage issues, see ECS: ObjectScale: How to run KB Automation Scripts (Auto Pilot).
 

  1. Perform the automation command from a primary node with xDoctor 4-8.104.0 and later.
Command: 
--target-node, --target-rack and --target-vdc is supported for this script.
# 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>
Example:

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. Review a summary of actions taken.

Example:

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. Confirm to update the Message of the Day (MOTD) with swap details and the changes applied.

Command:
Note:
If the current MOTD has the KB number or the word /swapfile in it the MOTD is not updated.

# yes or no

Example:

The next steps are to detect keywords in the MOTD content and update the MOTD with custom content for the KB specifics. IMPORTANT! You 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. Review the MOTD change summary for adding new MOTD content:

Example:

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."
            "=============================================================================================================================================="
        ],
        "************************************************************************************************************************************************",
        "************************************************************************************************************************************************"
    ]
}


Additional KB article consolidated into this automation:
ECS: xDoctor RAP137 Total swap memory inconsistent across the ECS rack

 

受影響的產品

ECS
文章屬性
文章編號: 000186358
文章類型: How To
上次修改時間: 18 11月 2025
版本:  16
向其他 Dell 使用者尋求您問題的答案
支援服務
檢查您的裝置是否在支援服務的涵蓋範圍內。