resizing proxmox partition

daddy_fatsacks

Active Member
Mar 25, 2017
8
0
41
43
Hello All,

I had installed PVE onto a 64GB leaving 8GB for a zil disk. I no longer wish to have this 8GB allocated as I see zil as something which I will never use.

My current partition scheme looks like this :


NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sda 8:0 0 59.6G 0 disk
├─sda1 8:1 0 1M 0 part
├─sda2 8:2 0 256M 0 part
├─sda3 8:3 0 51.4G 0 part
│ ├─pve-swap 253:0 0 20G 0 lvm [SWAP]
│ ├─pve-root 253:1 0 14.8G 0 lvm /
│ ├─pve-data_tmeta 253:2 0 1G 0 lvm
│ │ └─pve-data-tpool 253:4 0 9G 0 lvm
│ │ └─pve-data 253:5 0 9G 0 lvm
│ └─pve-data_tdata 253:3 0 9G 0 lvm
│ └─pve-data-tpool 253:4 0 9G 0 lvm
│ └─pve-data 253:5 0 9G 0 lvm
└─sda4 8:4 0 8G 0 part


sda4 is the space that I would like to reclaim back, into sda3 to increase one of the logical volumes there.

could someone guide me on how to do this?
 
I had installed PVE onto a 64GB leaving 8GB for a zil disk. I no longer wish to have this 8GB allocated as I see zil as something which I will never use.

My current partition scheme looks like this :


NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sda 8:0 0 59.6G 0 disk
├─sda1 8:1 0 1M 0 part
├─sda2 8:2 0 256M 0 part
├─sda3 8:3 0 51.4G 0 part
│ ├─pve-swap 253:0 0 20G 0 lvm [SWAP]
│ ├─pve-root 253:1 0 14.8G 0 lvm /
│ ├─pve-data_tmeta 253:2 0 1G 0 lvm
│ │ └─pve-data-tpool 253:4 0 9G 0 lvm
│ │ └─pve-data 253:5 0 9G 0 lvm
│ └─pve-data_tdata 253:3 0 9G 0 lvm
│ └─pve-data-tpool 253:4 0 9G 0 lvm
│ └─pve-data 253:5 0 9G 0 lvm
└─sda4 8:4 0 8G 0 part


sda4 is the space that I would like to reclaim back, into sda3 to increase one of the logical volumes there.

Note: if you make a mistake during the following process you system may not boot any more - strongly recommended: to backup your disk first!

* Remove part4
* Remove part3 and create it again, starting at the same point as before but occupying the disk until the end
* Resize pv /dev/sda3
* You can now define a new lv or extend one of the existing ones.

See also https://blue42.net/linux/5-steps-linux-lvm-extend-volume-no-reboot/ (note: Since Proxmox uses GPT don'tuse fdisk but partx or parted instead)
 

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!