Différences
Ci-dessous, les différences entre deux révisions de la page.
| Prochaine révision | Révision précédente | ||
| swapoff [2020/03/12 15:15] – créée nekan | swapoff [2021/03/05 15:31] (Version actuelle) – nekan | ||
|---|---|---|---|
| Ligne 1: | Ligne 1: | ||
| - | ~~CLOSETOC~~ | + | |
| - | ====== | + | ====== |
| + | <label type=" | ||
| + | |||
| + | ===== Procédure | ||
| La partition '' | La partition '' | ||
| Ligne 7: | Ligne 10: | ||
| * On commence par vérifier l' | * On commence par vérifier l' | ||
| <sxh bash> | <sxh bash> | ||
| - | {{ : | + | <image shape=" |
| * Dans cet exemple, on voit que l' | * Dans cet exemple, on voit que l' | ||
| <sxh bash> | <sxh bash> | ||
| - | --- //[[nekan@shyrkasystem.com|Nicolas THOREZ]] 2020/03/12 15:01// | + | ===== Augmenter la partition ===== |
| + | |||
| + | <callout type=" | ||
| + | <callout type=" | ||
| + | |||
| + | Si de manière récurrente, | ||
| + | |||
| + | * On vérifie les disques déjà existants : | ||
| + | <sxh bash> | ||
| + | Retour console : | ||
| + | <sxh bash> | ||
| + | fd0 2:0 1 4K 0 disk | ||
| + | sda 8:0 0 | ||
| + | ├─sda1 | ||
| + | ├─sda2 | ||
| + | └─sda5 | ||
| + | ├─test--1--vg-root | ||
| + | └─test--1--vg-swap_1 | ||
| + | sr0 | ||
| + | |||
| + | * On ajoute un disque à notre VM (ou un disque physique à notre serveur, auquel cas, il ne faudra pas oublier de redémarrer ce dernier). | ||
| + | * On scanne les périphériques à la recherche du nouveau disque. Dans la séquence, ci-dessous on remplacera '' | ||
| + | <sxh bash> | ||
| + | |||
| + | * On revérifie les disques existant et on note le nom du nouveau disque ('' | ||
| + | <sxh bash> | ||
| + | Retour console : | ||
| + | <sxh bash> | ||
| + | fd0 2:0 1 4K 0 disk | ||
| + | sda 8:0 0 | ||
| + | ├─sda1 | ||
| + | ├─sda2 | ||
| + | └─sda5 | ||
| + | ├─test--1--vg-root | ||
| + | └─test--1--vg-swap_1 | ||
| + | sdb 8:16 | ||
| + | sr0 | ||
| + | |||
| + | * On récupère le chemin de la partition '' | ||
| + | <sxh bash> | ||
| + | |||
| + | Retour console | ||
| + | |||
| + | <sxh bash> | ||
| + | LV Path / | ||
| + | LV Name swap_1 | ||
| + | VG Name test-1-vg | ||
| + | LV UUID 8IAOTo-LzMy-9Q8s-Nipm-tQLU-UH0H-emgQ9T | ||
| + | LV Write Access | ||
| + | LV Creation host, time test-1, 2018-01-05 14:39:45 +0100 | ||
| + | LV Status | ||
| + | # open 2 | ||
| + | LV Size 2,00 GiB | ||
| + | Current LE 512 | ||
| + | Segments | ||
| + | Allocation | ||
| + | Read ahead sectors | ||
| + | - currently set to 256 | ||
| + | Block device | ||
| + | </sxh> | ||
| + | |||
| + | * On vérifie que la '' | ||
| + | <sxh bash> | ||
| + | |||
| + | * On intègre le nouveau disque à LVM : | ||
| + | <sxh bash> | ||
| + | |||
| + | * Une fois la '' | ||
| + | <sxh bash> | ||
| + | |||
| + | * On étend la partition : | ||
| + | <sxh bash> | ||
| + | |||
| + | * On redimensionne la partition : | ||
| + | <sxh bash> | ||
| + | |||
| + | * On recrée la '' | ||
| + | <sxh bash> | ||
| + | |||
| + | * Finalement, on peut réactiver la '' | ||
| + | <sxh bash> | ||
| + | |||
| + | * On vérifie : | ||
| + | <sxh bash> | ||
| + | Retour console : | ||
| + | <sxh bash> | ||
| + | LV Path / | ||
| + | LV Name swap_1 | ||
| + | VG Name onl-infra-intrus-1-vg | ||
| + | LV UUID 8IAOTo-LzMy-9Q8s-Nipm-tQLU-UH0H-emgQ9T | ||
| + | LV Write Access | ||
| + | LV Creation host, time onl-infra-intrus-1, | ||
| + | LV Status | ||
| + | # open 0 | ||
| + | LV Size <10,00 GiB | ||
| + | Current LE | ||
| + | Segments | ||
| + | Allocation | ||
| + | Read ahead sectors | ||
| + | - currently set to 256 | ||
| + | Block device | ||
| + | Autre vérification : | ||
| + | <sxh bash> | ||
| + | Retour console : | ||
| + | <sxh bash> | ||
| + | Mem: 7,8Gi | ||
| + | Swap: | ||
| ~~DISCUSSION~~ | ~~DISCUSSION~~ | ||