hey, i am using your iscsi plugin on unraid 7. I can see the target, but when i try to connect to it i get authorization failure. I have set the username root and its (unraid-)password in my client config, but it still wont let me connect. could you help me troubleshoot it or tell me where i can find logs regarding the iscsi plugin? Thanks.
Server: Unraid 7.0.0, iscsi plugin version: 2023.03.25a
Im trying to connect to the iscsi lun on unraid:
iscsi config:
o- / ......................................................................................................................... [...]
o- backstores .............................................................................................................. [...]
| o- block .................................................................................................. [Storage Objects: 0]
| o- fileio ................................................................................................. [Storage Objects: 1]
| | o- steam ......................................................... [/mnt/user/iscsi/steam.img (400.0GiB) write-back activated]
| | o- alua ................................................................................................... [ALUA Groups: 1]
| | o- default_tg_pt_gp ....................................................................... [ALUA state: Active/optimized]
| o- pscsi .................................................................................................. [Storage Objects: 0]
| o- ramdisk ................................................................................................ [Storage Objects: 0]
o- iscsi ............................................................................................................ [Targets: 1]
| o- iqn.2003-01.org.linux-iscsi.unraid.x8664:sn.05106e39d566 .......................................................... [TPGs: 1]
| o- tpg1 ............................................................................................... [no-gen-acls, no-auth]
| o- acls .......................................................................................................... [ACLs: 0]
| o- luns .......................................................................................................... [LUNs: 1]
| | o- lun0 .................................................... [fileio/steam (/mnt/user/iscsi/steam.img) (default_tg_pt_gp)]
| o- portals .................................................................................................... [Portals: 1]
| o- 0.0.0.0:3260 ..................................................................................................... [OK]
o- loopback ......................................................................................................... [Targets: 0]
o- vhost ............................................................................................................ [Targets: 0]
o- xen-pvscsi ....................................................................................................... [Targets: 0]
Im trying to login with this command on my client (Fedora Linux):
iscsiadm --mode discovery --type sendtargets --portal 192.168.1.100 --login
192.168.1.100:3260,1 iqn.2003-01.org.linux-iscsi.unraid.x8664:sn.05106e39d566
I then receive auth failure:
Logging in to [iface: default, target: iqn.2003-01.org.linux-iscsi.unraid.x8664:sn.05106e39d566, portal: 192.168.1.100,3260]
iscsiadm: Could not login to [iface: default, target: iqn.2003-01.org.linux-iscsi.unraid.x8664:sn.05106e39d566, portal: 192.168.1.100,3260].
iscsiadm: initiator reported error (24 - iSCSI login failed due to authorization failure)
on my client i adjusted this file to set the username and passowrd:
/var/lib/iscsi/nodes/iqn.2003-01.org.linux-iscsi.unraid.x8664:sn.05106e39d566/192.168.1.100,3260,1/default
node.session.auth.authmethod = CHAP
node.session.auth.username = root
node.session.auth.password = "password for root user on unraid"
I guess i would need to set the crendentials on the server in some config? But I couldnt find where. Even better would be if I could just disable CHAP completely so my LUN doesnt require credentials.
thanks!