Increase existing swap partition size / augmenter la taille de la partition swap existante

My YunoHost server

Hardware: Old laptop dell i3/3Go/500Go
YunoHost version: 4.1.8 (stable)
I have access to my server : Through SSH | through the webadmin | direct access via keyboard / screen | …
Are you in a special context or did you perform some particular tweaking on your YunoHost instance ? : no

Description of my issue

I installed yunohost with 2Go ram, with default settings. The swap partition is 976M.
I’m trying to increase the swap partition size after I have installed more apps and the memory required seems increased (netdata and phpsysinfo) .
How can I do it safely?
Thanks

Mon serveur YunoHost

Matériel: Vieil ordinateur i3/3Go/500Go
Version de YunoHost: 4.1.8 (stable)
J’ai accès à mon serveur : En SSH | Par la webadmin | En direct avec un clavier/écran | …
Êtes-vous dans un contexte particulier ou avez-vous effectué des modificiations particulières sur votre instance ? : non

Description du problème

J’ai installé yunohost avec les paramètres par défaut, la RAM était de 2Go.
J’ai installé plusieurs applications et j’ai l’impression que le besoin en ram est plus important (netdata et phpsysinfo).
Comment faire pour augmenter la taille de la partition swap en toute sécurité.

$ sudo swapon --show
NAME TYPE SIZE USED PRIO
/dev/sda5 partition 976M 0B -2

Merci

Donc après beaucoup de recherches, j’ai fini par suivre ce tutoriel :

J’ai ajouté un swapfile même si c’est pas recommandé de mélanger swapfile et partition swap, mais ça fait l’affaire.

1 Like

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.