Enlarge pbs-root is enough?

charleslcso

Member
Oct 1, 2022
31
1
13
Hello,

I just cloned my PBS disk-to-disk to a larger SSD, and I want the unused space to be used.

Here is the output from lsblk and lvdisplay:

root@pbs:~# lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sda 8:0 0 3.6T 0 disk
├─sda1 8:1 0 1007K 0 part
├─sda2 8:2 0 1G 0 part /boot/efi
└─sda3 8:3 0 1.8T 0 part
- ├─pbs-swap 253:0 0 8G 0 lvm [SWAP]
- └─pbs-root 253:1 0 1.8T 0 lvm /


root@pbs:~# lvdisplay
File descriptor 21 (/var/log/proxmox-backup/tasks/06/UPID:bs:000002C9::6579BD5E:termproxy::root@pam leaked on lvdisplay invocation. Parent PID 4444: -bash
WARNING: PV a6eXd9-y6nj-otA1-xUtu-AIb7 prefers device /dev/sda3 because device is used by LV.
--- Logical volume ---
LV Path /dev/pbs/swap
LV Name swap
VG Name pbs
LV UUID aD7n-B3iO-7VEN-XUUZ-0bwlyj
LV Write Access read/write
LV Creation host, time proxmox, 2023-11-15 19:06:52 +0800
LV Status available
# open 2
LV Size 8.00 GiB
Current LE 2048
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 253:0

--- Logical volume ---
LV Path /dev/pbs/root
LV Name root
VG Name pbs
LV UUID J97fyP-aLvx-tvUC-abIJ-zNPBgE
LV Write Access read/write
LV Creation host, time proxmox, 2023-11-15 19:06:53 +0800
LV Status available
# open 1
LV Size 1.79 TiB
Current LE 470532
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 253:1


From the page, 3. Enlarge the filesystem(s) in the partitions on the virtual disk, Online for Linux guests with LVM, I believe it is a 2-step process:

- enlarge the physical volume using pvresize /dev/sda3 <- the 3rd partition
- enlarge the logical volume and the filesystem using lvresize --extents +100%FREE --resizefs /dev/pbs/root <- just the pbs-root is enough?


Am I correct?
 
Last edited:

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!