Resize OS LVM

mcdowellster

Well-Known Member
Jun 13, 2018
31
4
48
40
Hello all,

I made a huge mistake when I installed my proxmox storage (ceph) node. I installed the OS on those terrible slow Dell dual SD card devices. The limited size (16gb) left the OS and swap pretty tiny. I have cloned that install into two 120GB SSDs. Performance is way better and IO delay is way down.

Done loads of reading on the tropic but I want some advice. I want to now increase the swap partition and the LVM partition to match the much larger (faster) OS storage. I would prefer not to use a live CD but to run some cli commands while the OS is running. First is it possible? If so, what is the process?

Second is this risky?

Thanks guys!
 
Done loads of reading on the tropic but I want some advice. I want to now increase the swap partition and the LVM partition to match the much larger (faster) OS storage. I would prefer not to use a live CD but to run some cli commands while the OS is running. First is it possible? If so, what is the process?


Regarding OS LVM, see e.g. https://linuxtechlab.com/beginners-guide-resizing-lvm/

Regarding swap:
- disable swap by
Code:
swapoff
- increase swap lvm be
Code:
lvextend
- enable swap by
Code:
swapon