ECS: memoria de intercambio total xDoctor RAP137 incoherente en todo el rack de ECS
Summary: La memoria de intercambio total es incoherente en todo el rack ECS.
Symptoms
xDoctor informa lo siguiente:
------------------------------------------------------------
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.0Cause
- Después de un reinicio del nodo, la configuración de SWAP no se guardó en
/etc/fstab. - La partición SWAP nativa no se cargó durante el arranque.
- Se volvió a crear la imagen del nodo y no se le aplicó SWAP.
- Nunca se aplicó más SWAP a un clúster que tenía una expansión.
- Confirme la coherencia de SWAP en todos los nodos.
Comando:
# doit free -m | grep Swap
Ejemplo:
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
- Confirme si /etc/fstab se actualizó para utilizar 8 GB adicionales de SWAP en el nodo y si existe la entrada de partición SWAP nativa.
Comando:
# svc_exec 'grep swap /etc/fstab'
Ejemplo:
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
- Valide si el archivo SWAP está presente en todos los nodos.
# svc_exec 'ls -lh /swapfile'Ejemplo:
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
¡IMPORTANTE! Se lanzó una nueva función en xDoctor 4-8.104.0 y versiones posteriores. Esta base de conocimientos (KB) ahora está automatizada con xDoctor Autopilot, lo que aborda la mayoría de los problemas sin necesidad de participación del soporte.
Esta característica es nativa de xDoctor 4-8.104.0 y superior, para problemas de sintaxis y uso , consulte ECS: ObjectScale: Cómo ejecutar los scripts de automatización de KB (piloto automático).(Es posible que sea necesario iniciar sesión en el soporte de Dell)
- Ejecute el comando de automatización desde un nodo principal con xDoctor 4-8.104.0 y versiones posteriores.
Nota:--target-node, --target-rack and --target-vdces compatible con este 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>
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'...
-
Revise un resumen de las acciones realizadas.
Ejemplo:
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. ",
"************************************************************************************************************************************************",
"************************************************************************************************************************************************"
]
}
-
Confirme para actualizar el MOTD con los detalles de intercambio y los cambios aplicados.
Nota: Si el MOTD actual tiene el número de base de conocimientos o la palabra /swapfile, el MOTD no se actualizará.
Comando:
# yes or no
Ejemplo:
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
-
Revise el resumen de cambios de MOTD para agregar nuevo contenido de MOTD:
Ejemplo:
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.",
"=============================================================================================================================================="
],
"************************************************************************************************************************************************",
"************************************************************************************************************************************************"
]
}