linstor-gateway icon indicating copy to clipboard operation
linstor-gateway copied to clipboard

Can't add volume on existing iscsi service

Open daodaodaodaodao opened this issue 2 years ago • 3 comments

Hello! I create one iscsi resource, it has one LUN with id 1, i want to create another LUN with id 2 based on this IQN and service ip

linstor-gateway iscsi create iqn.2019-08.com.home:lunidtest 192.168.5.7/24 10G --resource-group=hdd-rg-pc-2

before add volume I stopped iscsi iqn

linstor-gateway iscsi stop iqn.2019-08.com.home:lunidtest

Then try to add volume 5gb with LUN id 2

linstor-gateway iscsi add-volume iqn.2019-08.com.home:lunidtest 2 5G

After that i try to start iscsi with 2 LUNs and have errors Pasted image 20230301162707

How I can add volumes to iscsi correctly? and why adding LUN 2 was killed my exist LUN 1?

daodaodaodaodao avatar Mar 02 '23 12:03 daodaodaodaodao

Hi, I think this is a "half-known" bug.

Can you paste the output of linstor volume list so we can verify this?

Thanks.

chrboe avatar Mar 02 '23 16:03 chrboe

image

daodaodaodaodao avatar Mar 04 '23 07:03 daodaodaodaodao

Unfortunately, this is a bug in LINSTOR. Newly created volumes are always Inconsistent. The LINSTOR team is working on fixing the issue.

In the meantime, a viable workaround may be to create all volumes at the same time, like:

linstor-gateway iscsi create iqn.2019-08.com.home:lunidtest 192.168.5.7/24 10G 5G --resource-group=hdd-rg-pc-2

I will keep this issue open until the bug is fixed in LINSTOR.

chrboe avatar Mar 06 '23 15:03 chrboe