ISCSI Lun ID. identification

Status
Not open for further replies.

fugazi84

Cadet
Joined
Apr 4, 2012
Messages
2
Hi There,

I have a quick question regarding ISCSI Lun ID. When I'm using different software like Openfiler or Netapp Storage I have a chance to change LUN ID for ISCSI disk ( volume ) . Then on the client running command:

iscsiadm --mode session -P 3

Its giving the output like:


scsi7 Channel 00 Id 0 Lun: 1
Attached scsi disk sdc State: running
scsi7 Channel 00 Id 0 Lun: 2
Attached scsi disk sdd State: running
scsi7 Channel 00 Id 0 Lun: 10
Attached scsi disk sde State: running


Sample output from Netapp GUI:

/vol/vol6/test1 10G online client : 1
/vol/vol6/test2 10G online client : 2
/vol/vol6/test3 10G online client : 10


So after I login to Openfiler or Netapp I can easily check which LUN is associated to the local disk on the client ( in case of failure or identification )
Under FreeNAS I cannot find this information or lets say change LUN ID to 444, 445, 446 ( just example ). In other NAS storage apps I can change that without any problem. Or maybe there is local command from FreeNAS shell to check that?

I'm using FreeNAS 8.0.4 and using single test iqn with three LUNS allocated and presented to the Linux Client.

Thanks
 

fugazi84

Cadet
Joined
Apr 4, 2012
Messages
2
I found this information in config file: /usr/local/etc/istgt/istgt.conf

part of output:

[LogicalUnit1]
TargetName "test"
Mapping PortalGroup1 InitiatorGroup1
AuthMethod Auto
UseDigest Auto
ReadOnly No
UnitType Disk
UnitInquiry "FreeBSD" "iSCSI Disk" "0123" "000c29951bd700"
UnitOnline yes
BlockLength 512
QueueDepth 32
LUN0 Storage /dev/zvol/iscsi/alf_LUN1 auto
LUN0 Option Serial 000c29951bd7000
LUN1 Storage /dev/zvol/iscsi/alf_LUN2 auto
LUN1 Option Serial 000c29951bd7001
LUN2 Storage /dev/zvol/iscsi/alf_LUN3 auto
LUN2 Option Serial 000c29951bd7002


from client:


Host Number: 8 State: running
scsi8 Channel 00 Id 0 Lun: 0
Attached scsi disk sdc State: running
scsi8 Channel 00 Id 0 Lun: 1
Attached scsi disk sdd State: running
scsi8 Channel 00 Id 0 Lun: 2
Attached scsi disk sde State: running

Thats better than nothing :)
 
Status
Not open for further replies.
Top