LINBIT / linstor-gateway

Manages Highly-Available iSCSI targets, NVMe-oF targets, and NFS exports via LINSTOR
GNU General Public License v3.0
28 stars 6 forks source link

Can't add volume on existing iscsi service #18

Open daodaodaodaodao opened 1 year ago

daodaodaodaodao commented 1 year ago

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?

chrboe commented 1 year ago

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

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

Thanks.

daodaodaodaodao commented 1 year ago
image
chrboe commented 1 year ago

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.