Resize OS LVM

mcdowellster

Well-Known Member
Jun 13, 2018
31
4
48
39
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
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!