Problem with ISCSI target on Nexentastor

Sarge

Renowned Member
Dec 17, 2015
28
2
68
49
Hello,
I have setup ISCSI target on Nexentastor.
Created data store, zvol,.. etc as in the manual.

But in Proxmox I have problem.
When I connect to the ISCSI target, I see the LUN as image, and I can not do anything with it.
Option Use LUN directly - ineffectual.

For test, with MS iscsi client, I connected without any problem :-(
 

Attachments

  • proxmox_problem.jpg
    proxmox_problem.jpg
    27.4 KB · Views: 16
Thanks!
I added the ZFS over ISCSI as in instruction: https://pve.proxmox.com/wiki/Storage:_ZFS_over_iSCSI

zfs: ZFS_over_ISCSI
iscsiprovider comstar
portal 172.16.2.150
blocksize 4k
target iqn.2010-08.org.illumos:02:40dbea77-4e90-6ce1-cacd-93c71e9e2102
pool test
nowritecache
content images

But, I can't write down anything there!
Where I was mistaken(maybe in the name of a pool)?
 

Attachments

  • proxmox_problem3.jpg
    proxmox_problem3.jpg
    64.7 KB · Views: 11
  • proxmox_problem4.jpg
    proxmox_problem4.jpg
    94.4 KB · Views: 10
Did you remember this?
  • Nexenta: Apart from performing the steps above the following is required: rm /root/.bash_profile. To avoid to go in nmc console by default.
 
Thanks,
I made on nexenta:

-bash-4.2$ su
Password:
root@nexenta:~# rm /root/.bash_profile
root@nexenta:~#

With no result :-(
What it is possible to make?
 
You did remember to do this?
  • Login once to zfs san from each proxmox node
ssh -i /etc/pve/priv/zfs/172.16.2.150_id_rsa root@172.16.2.150

The authenticity of host '172.16.2.150 (172.16.2.150)' can't be established.
RSA key fingerprint is 8c:f9:46:5e:40:65:b4:91:be:41:a0:25:ef:7f:80:5f.
Are you sure you want to continue connecting (yes/no)? yes
 
I made it in the beginning, according to the manual.
And now:

root@pve1:~# ssh -i /etc/pve/priv/zfs/172.16.2.150_id_rsa root@172.16.2.150
root@nexenta:~# exit
logout
Connection to 172.16.2.150 closed.
root@pve1:~#

What it is possible to make?
 
Creating a pool (volume in Nexenta language):
Now we need to create Data Set which later on will be shared via iSCSI to ESXi host. Go to Data Management \ Data Sets and click Create on the left side of the window.
Create the target:
Next step is iSCSI target configuration. I used following name for it iqn.2014-02.local.marusiak:storage.nexentastor but please reffer to IQN or EUI format from RFC 3720. In order to share storage with specific ESXi hosts I suggest to create iSCSI Initiator Groups. Click Data Management \ SCSI Target \ Remote Initiators and either give IQN or EUI names you know from ESXi or create one by yourself. I followed second path and I configured ESXi initiators by myself. This implicates that you will need to change this on ESXi side as well.

 
Yes, my bad! Thanks!
My error, name of pool - volume1:

root@nexenta:~# zpool status
pool: volume1
state: ONLINE
scan: none requested
config:

NAME STATE READ WRITE CKSUM
volume1 ONLINE 0 0 0
c0t1d0 ONLINE 0 0 0
errors: No known data errors

I corrected this, and next create remote initiators for proxmox.
Looked in the SCSI target/Target Groups, and copy working proxmox initiators.
Then paste it to the Remote Initiators with delete Chap user and password.
Then recreated ZFS over ISCSI storage in proxmox.
And now this storage working.

Thank you!
 

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!