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
 

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!