Can't create VM after resize of iSCSI target

inter

New Member
May 31, 2012
1
0
1
I have an iSCSI target created in OpenFiler and LVM sitting on top of that.

After resizing the iSCSI target in OpenFiler, I'm no longer able to create a VM with LVM, both with the API and with the UI. The only error the UI shows is "Error: create failed - lvcreate 'LVM/pve-vm-100' error: Attempted to decrement suspended device counter below zero." Unfortunately, searching didn't return any useful results to point me in the direction of a solution. Does anyone have any suggestions?

Thanks in advance.
 
You have to rescan drives on iscsi initiator:

echo 1 > /sys/block/<pv device>/device/rescan

You will see something like this in dmesg:

sd 8:0:0:0: [sdc] 4294967296 512-byte logical blocks: (2.19 TB/2.00 TiB)
sdc: detected capacity change from 1099511627776 to 2199023255552