...
Code Block | ||||
---|---|---|---|---|
| ||||
me@laptop:~/Downloads/vSRX$ lsblk NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT loop0 7:0 0 2.2M 1 loop /snap/gnome-calculator/222 . . . loop26 7:26 0 140.9M 1 loop /snap/gnome-3-26-1604/70 sda 8:0 0 149.1G 0 disk └─sda1 8:1 0 149.1G 0 part ├─ubuntu--vg-root 253:0 0 148.1G 0 lvm / └─ubuntu--vg-swap_1 253:1 0 976M 0 lvm [SWAP] sr0 11:0 1 1024M 0 rom affan@affan-laptop:~/Downloads/vSRX$ sudo lvdisplay --- Logical volume --- LV Path /dev/ubuntu-vg/root LV Name root VG Name ubuntu-vg LV UUID WpUD9o-Xf7d-QBU8-dFW9-oSgX-2Jn4-3ZbunW LV Write Access read/write LV Creation host, time ubuntu, 2018-04-30 11:37:26 +0100 LV Status available # open 1 LV Size 148.05 GiB Current LE 37902 Segments 1 Allocation inherit Read ahead sectors auto - currently set to 256 Block device 253:0 --- Logical volume --- LV Path /dev/ubuntu-vg/swap_1 LV Name swap_1 VG Name ubuntu-vg LV UUID X35PQl-Y6F5-oGuH-CB45-k0QA-ea3M-gUG46d LV Write Access read/write LV Creation host, time ubuntu, 2018-04-30 11:37:27 +0100 LV Status available # open 2 LV Size 976.00 MiB Current LE 244 Segments 1 Allocation inherit Read ahead sectors auto - currently set to 256 Block device 253:1 |
https://www.2daygeek.com/how-to-create-extend-swap-partition-in-linux-using-lvm/#