36.6 Adding Space to an Ubuntu LVM Swap Volume
On systems using Logical Volume Management, an alternative to adding swap via file or disk partition is to extend the logical volume used for the swap space.
The first step is to identify the current amount of swap available and the volume group and logical volume used for the swap space using the lvdisplay utility (for more information on LVM, refer to the chapter entitled “Adding a New Disk to an Ubuntu Volume Group and Logical Volume”):
# lvdisplay
.
.
--- Logical volume ---
LV Path /dev/vgubuntu/swap_1
LV Name swap_1
VG Name vgubuntu
LV UUID nJPip0-Q6dx-Mfe3-4Aao-gWAa-swDk-7ZiPdP
LV Write Access read/write
LV Creation host, time ubuntu, 2020-01-13 13:16:18 -0500
LV Status available
# open ...