Thank you for your patience, I know there are a lot of threads similar to this, and I've read them, but I must be missing something.
I recently went from a 500 gig proxmox drive to a 1tb drive. I copied the drive and I thought I went through the right steps to extend the partition and volume group and I think maybe theres something I still need to do.
I may be completely wrong, but I think the PV and VG are fully sized. I want to extend the LV known as data in order to store more vm-xxx-disk-x files (container data).
The /pve/data shows a size of 337G which I want to increase to full size. I dont want to mess with the metadata size.
So I did:
(no change)
I think what I need is resize2fs then maybe e2fsck .. but it seems that's done.
I've been at this for days. What am I missing?
Thanks so much!
I recently went from a 500 gig proxmox drive to a 1tb drive. I copied the drive and I thought I went through the right steps to extend the partition and volume group and I think maybe theres something I still need to do.
Code:
root@proxmox:~# pvs
PV VG Fmt Attr PSize PFree
/dev/nvme0n1p3 pve lvm2 a-- <930.51g 0
Code:
root@proxmox:~# vgs
VG #PV #LV #SN Attr VSize VFree
pve 1 45 0 wz--n- <930.51g 0
Code:
root@proxmox:~# lvs
LV VG Attr LSize Pool Origin Data% Meta% Move Log Cpy%Sync Convert
data pve twi-aotz-- 337.86g 93.83 3.64
root pve -wi-ao---- 577.75g
(and more continued... but not relevant)
Code:
root@proxmox:~# df -h
Filesystem Size Used Avail Use% Mounted on
udev 5.8G 0 5.8G 0% /dev
tmpfs 1.2G 2.8M 1.2G 1% /run
/dev/mapper/pve-root 569G 6.3G 538G 2% /
tmpfs 5.8G 37M 5.8G 1% /dev/shm
tmpfs 5.0M 0 5.0M 0% /run/lock
efivarfs 118K 54K 60K 48% /sys/firmware/efi/efivars
/dev/nvme0n1p2 1022M 12M 1011M 2% /boot/efi
/dev/fuse 128M 60K 128M 1% /etc/pve
tmpfs 1.2G 0 1.2G 0% /run/user/0
(I cut out network mounts)
Code:
root@proxmox:~# lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTS
nvme0n1 259:0 0 931.5G 0 disk
├─nvme0n1p1 259:1 0 1007K 0 part
├─nvme0n1p2 259:2 0 1G 0 part /boot/efi
└─nvme0n1p3 259:3 0 930.5G 0 part
├─pve-swap 252:0 0 8G 0 lvm [SWAP]
├─pve-root 252:1 0 577.8G 0 lvm /
├─pve-data_tmeta 252:2 0 3.4G 0 lvm
│ └─pve-data-tpool 252:4 0 337.9G 0 lvm
│ ├─pve-data 252:5 0 337.9G 1 lvm
│ ├─pve-vm--101--disk--0 252:6 0 100G 0 lvm
│ ├─pve-vm--102--disk--0 252:7 0 8G 0 lvm
│ ├─pve-vm--105--disk--0 252:8 0 4G 0 lvm
│ ├─pve-vm--104--disk--0 252:9 0 4G 0 lvm
│ ├─pve-vm--106--disk--0 252:10 0 4G 0 lvm
│ ├─pve-vm--150--disk--0 252:11 0 20G 0 lvm
│ ├─pve-vm--103--disk--0 252:12 0 5G 0 lvm
│ ├─pve-vm--202--disk--0 252:13 0 4M 0 lvm
│ ├─pve-vm--202--disk--1 252:14 0 134G 0 lvm
│ ├─pve-vm--202--disk--2 252:15 0 1G 0 lvm
│ ├─pve-vm--107--disk--0 252:16 0 4G 0 lvm
│ ├─pve-vm--151--disk--0 252:17 0 6G 0 lvm
│ ├─pve-vm--115--disk--0 252:18 0 8G 0 lvm
│ ├─pve-vm--108--disk--0 252:19 0 50G 0 lvm
│ ├─pve-vm--109--disk--0 252:20 0 10G 0 lvm
│ ├─pve-vm--160--disk--0 252:21 0 10G 0 lvm
│ ├─pve-vm--161--disk--0 252:22 0 8G 0 lvm
│ ├─pve-vm--114--disk--0 252:23 0 4G 0 lvm
│ ├─pve-vm--200--disk--0 252:24 0 2G 0 lvm
│ ├─pve-vm--110--disk--0 252:25 0 4G 0 lvm
│ ├─pve-vm--100--disk--0 252:26 0 4G 0 lvm
│ └─pve-vm--111--disk--0 252:27 0 2G 0 lvm
└─pve-data_tdata 252:3 0 337.9G 0 lvm
└─pve-data-tpool 252:4 0 337.9G 0 lvm
├─pve-data 252:5 0 337.9G 1 lvm
├─pve-vm--101--disk--0 252:6 0 100G 0 lvm
├─pve-vm--102--disk--0 252:7 0 8G 0 lvm
├─pve-vm--105--disk--0 252:8 0 4G 0 lvm
├─pve-vm--104--disk--0 252:9 0 4G 0 lvm
├─pve-vm--106--disk--0 252:10 0 4G 0 lvm
├─pve-vm--150--disk--0 252:11 0 20G 0 lvm
├─pve-vm--103--disk--0 252:12 0 5G 0 lvm
├─pve-vm--202--disk--0 252:13 0 4M 0 lvm
├─pve-vm--202--disk--1 252:14 0 134G 0 lvm
├─pve-vm--202--disk--2 252:15 0 1G 0 lvm
├─pve-vm--107--disk--0 252:16 0 4G 0 lvm
├─pve-vm--151--disk--0 252:17 0 6G 0 lvm
├─pve-vm--115--disk--0 252:18 0 8G 0 lvm
├─pve-vm--108--disk--0 252:19 0 50G 0 lvm
├─pve-vm--109--disk--0 252:20 0 10G 0 lvm
├─pve-vm--160--disk--0 252:21 0 10G 0 lvm
├─pve-vm--161--disk--0 252:22 0 8G 0 lvm
├─pve-vm--114--disk--0 252:23 0 4G 0 lvm
├─pve-vm--200--disk--0 252:24 0 2G 0 lvm
├─pve-vm--110--disk--0 252:25 0 4G 0 lvm
├─pve-vm--100--disk--0 252:26 0 4G 0 lvm
└─pve-vm--111--disk--0 252:27 0 2G 0 lvm
I may be completely wrong, but I think the PV and VG are fully sized. I want to extend the LV known as data in order to store more vm-xxx-disk-x files (container data).
The /pve/data shows a size of 337G which I want to increase to full size. I dont want to mess with the metadata size.
So I did:
Code:
root@proxmox:~# lvextend -l +100%FREE /dev/pve/data
New size (86493 extents) matches existing size (86493 extents).
(no change)
Code:
root@proxmox:~# resize2fs /dev/mapper/pve-root
resize2fs 1.47.0 (5-Feb-2023)
The filesystem is already 151454720 (4k) blocks long. Nothing to do!
Code:
root@proxmox:~# lsblk -f
NAME FSTYPE FSVER LABEL UUID FSAVAIL FSUSE% MOUNTPOINTS
nvme0n1
├─nvme0n1p1
├─nvme0n1p2 vfat FAT32 125C-B6DB 1010.3M 1% /boot/efi
└─nvme0n1p3 LVM2_m LVM2 OGfrkQ-Skxq-Ydir-iMTf-vf6d-gB0e-dTOjVY
├─pve-swap swap 1 0f581604-2412-415c-9de8-267b2621e7c0 [SWAP]
├─pve-root ext4 1.0 bb696978-2ebc-4cd8-9f5f-927271d74272 537.8G 1% /
(etc...)
I think what I need is resize2fs then maybe e2fsck .. but it seems that's done.
Code:
root@proxmox:~# resize2fs /dev/mapper/pve-root
resize2fs 1.47.0 (5-Feb-2023)
The filesystem is already 151454720 (4k) blocks long. Nothing to do!
I've been at this for days. What am I missing?
Thanks so much!
Last edited: