Resize disk on LVM Storage via iSCSI

MRosu

Renowned Member
Mar 27, 2016
29
3
68
38
I'm running about the latest install, though I don't think it's pertinent to this question.

There's an iSCSI share (from FreeNAS) that is mounted to a datacenter and shared in a cluster of two hosts. I created all VM disks on this LVM.

pvdisplay shows:

Code:
  --- Physical volume ---
  PV Name               /dev/sdb
  VG Name               VMStorageGroup
  PV Size               5.00 TiB / not usable 4.00 MiB
  Allocatable           yes
  PE Size               4.00 MiB
  Total PE              1310719
  Free PE               916479
  Allocated PE          394240
  PV UUID               ra2ohE-BkV8-H8xy-wKGN-LYAm-VrM8-QGBeQx

//I didn't include OS volume, which is separate.//

So I went to find the actual VM hard disk to resize it. I've taken care of everything within the VM.

I go to /dev/VMStorageGroup/

Inside I find the names for the hard disks, but no extensions ex: .raw.

Code:
vm-103-disk-1  vm-105-disk-1  vm-301-disk-1  vm-303-disk-1  vm-306-disk-1
vm-104-disk-1  vm-106-disk-1  vm-302-disk-1  vm-304-disk-1

ls -la shows this:

Code:
lrwxrwxrwx  1 root root    8 Jan 25 09:13 vm-103-disk-1 -> ../dm-10
lrwxrwxrwx  1 root root    7 Jan 16 12:05 vm-104-disk-1 -> ../dm-6
lrwxrwxrwx  1 root root    7 Jan 16 11:34 vm-105-disk-1 -> ../dm-7
lrwxrwxrwx  1 root root    7 Jan 16 11:27 vm-106-disk-1 -> ../dm-5
lrwxrwxrwx  1 root root    7 Jan 16 11:28 vm-301-disk-1 -> ../dm-8
lrwxrwxrwx  1 root root    7 Jan 17 19:49 vm-302-disk-1 -> ../dm-4
lrwxrwxrwx  1 root root    7 Jan 16 11:41 vm-303-disk-1 -> ../dm-3
lrwxrwxrwx  1 root root    8 Jan 16 11:30 vm-304-disk-1 -> ../dm-12
lrwxrwxrwx  1 root root    8 Jan 26 06:31 vm-306-disk-1 -> ../dm-11

I tried to resize the correct disk and it appeared to "work" but inside the VM, the disk size is still at its original.

Is this not the location of the actual disks?

What am I missing?

Thanks!
 
Last edited:
Okay some progress.

After some googling, the disks are links to device used by the LVM.

Still the question remains how to resize these....
 
Well I somewhat successfully resized the logical volume by using

Code:
lv -resize -L 25G /dev/VMStorageGroup/vm-###-disk-1

Within Proxmox, it shows a 25G, and also within the VM it shows the same.

The only odd thing is that if I use systemrescuecd and open Gparted, I can still see the original 250G device size, so I'm not sure what's going on.
 

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!