Adding hard drives

mathewb

Member
Feb 12, 2021
19
0
6
44
Hi there I am trying to add hard drives to my proxmox server I am using
cd /dev/disk/by-id
ls
cfdisk /dev/disk/by-id/ata-WDC_WD20EZRZ-00Z5HB0_WD-WCC4M1FP4EXZ

pvcreate /dev/disk/by-id/ata-WDC_WD20EZRZ-00Z5HB0_WD-WCC4M1FP4EXZ-part1

vgextend pve /dev/disk/by-id/ata-WDC_WD20EZRZ-00Z5HB0_WD-WCC4M1FP4EXZ-part1

lvextend /dev/pve/data -L +1.8t
I now that dev/pve/date -l+1.8t will add more space to local lvm (your pve name) how do I add more space to local (your pve name)
 
Hi,
it's basically the same, but there is an extra step:

Use lvextend pve/root -L+<size><unit> and then resize the file system with resize2fs /dev/mapper/pve-root.