Increasing an LVM on PVE which is mounted by a client, what do I need to keep in mind?

gctwnl

Member
Aug 24, 2022
86
16
13
My PVE has the following physical volumes:
Code:
root@pve:~# vgs -o +lv_size,lv_name
  VG          #PV #LV #SN Attr   VSize    VFree   LSize    LV             
  pve           1   6   0 wz--n- <931.01g  15.99g <794.79g data           
  pve           1   6   0 wz--n- <931.01g  15.99g    8.00g swap           
  pve           1   6   0 wz--n- <931.01g  15.99g   96.00g root           
  pve           1   6   0 wz--n- <931.01g  15.99g   32.00g vm-100-disk-0 
  pve           1   6   0 wz--n- <931.01g  15.99g   32.00g vm-100-disk-1 
  pve           1   6   0 wz--n- <931.01g  15.99g  500.00g vm-100-disk-2 
  rna-mepdm-1   1   2   0 wz--n-   <1.75t 788.36g  500.00g vm-100-disk-0 
  rna-mepdm-1   1   2   0 wz--n-   <1.75t 788.36g  500.00g rna-pbs-mepdm-1

rna-mepdm-1 is an external RAID which is entirely LUKS-encrypted:

Code:
root@pve:~# pvs
  PV                                                    VG          Fmt  Attr PSize    PFree 
  /dev/mapper/luks-fa1483bd-f599-4dcf-9732-c09069472150 rna-mepdm-1 lvm2 a--    <1.75t 788.36g
  /dev/nvme0n1p3                                        pve         lvm2 a--  <931.01g  15.99g

It has 1.7TB of which 1TB has been given to different backups (PBS and restic). rna-mepdm-1:vm-100-disk-0 has been set as scsi1, so it is mounted on the Ubuntu client from /dev/sdb1

I want to increase the size of volume rna-mepdm-1:vm-100-disk-0 with lvresize. I may also decrease the size of rna-mepdm-1:rna-pbs-mepdm-1 where I keep PBS backups of clients which is very much oversized as the VM itself hardly ever changes (as most of what changes is on a separate data volume which is backed up by restic)

I was wondering if there is anything I have to keep in mind. E.g. can I do this 'live' while the VM is running?