We look at space
text
lvdisplay /dev/vg_system/lv_swap
— Logical volume —
LV Name /dev/vg_system/lv_swap
VG Name vg_system
LV Write Access read/write
LV Status available
# open 1
LV Size 1.00 GBwe disable the swap
text
swapoff -v /dev/vg_system/lv_swap
swapoff on /dev/vg_system/lv_swaptext
Ampliamos el tamaño el cual necesitamos, en mi caso 1GB
lvresize /dev/vg_system/lv_swap -L +1G
Extending logical volume swap_lv to 2.00 GB
Logical volume swap_lv successfully resizedWe give the volume swap format
text
mkswap /dev/vg_system/lv_swap
Setting up swapspace version 1, size = 2097152 kBWe activate the swap
text
swapon -va
swapon on /dev/vg_system/lv_swapTo verify that the increase has been satisfactory, we perform a cat to the /proc/swaps file
Bash
cat /proc/swaps
Filename Type Size Used Priority
/dev/vg_system/lv_swap partition 2097152 0 -2All the best.
Comments