I'd bet there is a swap_1 LV, but don't know the size. I don't know what the default LVM setup under lubuntu is either. If you'd like some help, a little information would be good.
Code:
sudo pvs
sudo vgs
sudo lvs
lsblk -e 7 -o name,size,type,fstype,mountpoint
With those commands, we should know nearly everything about the disk layout.
For example,
Code:
~$ sudo pvs
PV VG Fmt Attr PSize PFree
/dev/vda5 vg00 lvm2 a-- <29.50g 0
/dev/vdb1 vg00 lvm2 a-- <10.00g 4.39g
~$ sudo vgs
VG #PV #LV #SN Attr VSize VFree
vg00 2 3 0 wz--n- 39.49g 4.39g
~$ sudo lvs
LV VG Attr LSize Pool Origin Data% Meta% Move Log Cpy%Sync Convert
home vg00 -wi-ao---- 12.00g
root vg00 -wi-ao---- 19.00g
swap_1 vg00 -wi-ao---- 4.10g
~$ lsblk -e 7 -o name,size,type,fstype,mountpoint
NAME SIZE TYPE FSTYPE MOUNTPOINT
sr0 1024M rom
vda 30G disk
├─vda1 512M part vfat /boot/efi
├─vda2 1K part
└─vda5 29.5G part LVM2_member
├─vg00-root 19G lvm ext4 /
├─vg00-swap_1 4.1G lvm swap [SWAP]
└─vg00-home 12G lvm ext4 /home
vdb 10G disk
└─vdb1 10G part LVM2_member
└─vg00-root 19G lvm ext4 /
Simple. The swap is swap_1 and 4.10G in size.
I prefer
a) having an LV over a swap partition or swap file. Personal preference.
b) leaving some space unused inside the VG, for needs like snapshots and last minute growth of other LVs in 5 seconds. For example, I can extend any of the existing LVs using the free 4.39G of space. With LVM, the tremendous flexibility comes by NOT using all the storage for mounted file systems. I needed more storage than the first HDD had, so I added another and merged it into a single VG, vg00. From that point on, any LV could use that space to grow or for snapshots.
It comes down to personal preference. I know that some things didn't work (don't work?) with swapfiles that have worked for 20 yrs with swap partitions and swap LVs. Just not enough testing and a desire to push that junk onto the users. For a non-LTS, I suppose that could be acceptable, but for an LTS, everything should work, perfect, always.
Bookmarks