This is a static archive of the old Zorin Forum.

The information below may be outdated. Visit the new Zorin Forum here ›

If you have registered on the old forum, you will need to create an account on the new forum.

Making hibernatable swap

kcaps

Sun Jan 26, 2020 9:00:42 am

The default swap partition which is created during install with LVM is < 1GB. How can I make it bigger so that I don't have to use a swap file? I thought this is exactly what LVM is good for.
Some informations:
Code:
sudo pvs
  PV             VG       Fmt  Attr PSize    PFree
  /dev/nvme0n1p2 zorin-vg lvm2 a--  <476.44g    0

sudo lvs
  LV     VG       Attr       LSize   Pool Origin Data%  Meta%  Move Log Cpy%Sync Convert
  root   zorin-vg -wi-ao---- 475.48g                                                   
  swap_1 zorin-vg -wi-ao---- 980.00m

sudo lvextend -L 8G /dev/zorin-vg/swap_1
  Insufficient free space: 1803 extents needed, but only 0 available

Aravisian

Sun Jan 26, 2020 9:22:14 am

kcaps wrote:The default swap partition which is created during install with LVM is < 1GB. How can I make it bigger so that I don't have to use a swap file? I thought this is exactly what LVM is good for.
Some informations:
Code:
sudo pvs
  PV             VG       Fmt  Attr PSize    PFree
  /dev/nvme0n1p2 zorin-vg lvm2 a--  <476.44g    0

sudo lvs
  LV     VG       Attr       LSize   Pool Origin Data%  Meta%  Move Log Cpy%Sync Convert
  root   zorin-vg -wi-ao---- 475.48g                                                   
  swap_1 zorin-vg -wi-ao---- 980.00m

sudo lvextend -L 8G /dev/zorin-vg/swap_1
  Insufficient free space: 1803 extents needed, but only 0 available

kcaps, please take a look at 54 in this link:
https://askubuntu.com/questions/1106795 ... rtitioning

Swarfendor437

Sun Jan 26, 2020 2:15:24 pm

Guess I never had this issue as I avoid installing with LVM enabled. I always create the swap (and '/' and '/home') manually - double the RAM installed.