Hi All,
I have XCP 1.6 running with these settings:
IP eth0: 192.168.1.200 /24
Gateway: 192.168.1.1
DNS name: xcp1.example.com
DNS server: not defined
I have Openfiler 2.99.2 with these settings:
IP eth0: 192.168.1.201/24
Gateway: 192.168.1.1
DNS name: nas1.example.com
DNS server: not defined
iSCSi shares:3 shares,
** iqn.2006-01.com.example:nas.vms
** iqn.2006-01.com.example:nas.vms-snapshots
** iqn.2006-01.com.example:nas.iso-templates
from command line in Openfiler:
pvscan PV /dev/md0 VG vg_data lvm2 [190.72 GiB / 0 free]
Total: 1 [190.72 GiB] / in use: 1 [190.72 GiB] / in no VG: 0 [0 ]
lvscan ACTIVE '/dev/vg_data/vl_vms' [50.00 GiB] inherit
ACTIVE '/dev/vg_data/vl_vms_snapshots' [90.00 GiB] inherit
ACTIVE '/dev/vg_data/vl_iso_and_templates' [30.00 GiB] inherit
ACTIVE '/dev/vg_data/vl_share' [20.72 GiB] inherit
cat /proc/net/iet/volumetid:3 name:iqn.2006-01.com.example:nas.iso-templates
lun:0 state:0 iotype:blockio iomode:wt path:/dev/vg_data/vl_iso_and_templates
tid:2 name:iqn.2006-01.com.example:nas.vms-snapshots
lun:0 state:0 iotype:blockio iomode:wt path:/dev/vg_data/vl_vms_snapshots
tid:1 name:iqn.2006-01.com.example:nas.vms
lun:0 state:0 iotype:blockio iomode:wt path:/dev/vg_data/vl_vms
cat /etc/ietd.conf
Target iqn.2006-01.com.example:nas.vms
HeaderDigest None
DataDigest None
MaxConnections 1
InitialR2T Yes
ImmediateData No
MaxRecvDataSegmentLength 131072
MaxXmitDataSegmentLength 131072
MaxBurstLength 262144
FirstBurstLength 262144
DefaultTime2Wait 2
DefaultTime2Retain 20
MaxOutstandingR2T 8
DataPDUInOrder Yes
DataSequenceInOrder Yes
ErrorRecoveryLevel 0
IncomingUser nasusr code17
OutgoingUser nasusr code17
Lun 0 Path=/dev/vg_data/vl_vms,Type=blockio,ScsiSN=ZOdq2U-BJk2-WdFP,ScsiId=ZOdq2U-BJk2-WdFP,IOMode=wt
Target iqn.2006-01.com.example:nas.vms-snapshots
HeaderDigest None
DataDigest None
MaxConnections 1
InitialR2T Yes
ImmediateData No
MaxRecvDataSegmentLength 131072
MaxXmitDataSegmentLength 131072
MaxBurstLength 262144
FirstBurstLength 262144
DefaultTime2Wait 2
DefaultTime2Retain 20
MaxOutstandingR2T 8
DataPDUInOrder Yes
DataSequenceInOrder Yes
ErrorRecoveryLevel 0
IncomingUser nasusr code17
OutgoingUser nasusr code17
Lun 0 Path=/dev/vg_data/vl_vms_snapshots,Type=blockio,ScsiSN=a0DYkr-fw2Y-O2RH,ScsiId=a0D
Ykr-fw2Y-O2RH,IOMode=wt
Target iqn.2006-01.com.example:nas.iso-templates
HeaderDigest None
DataDigest None
MaxConnections 1
InitialR2T Yes
ImmediateData No
MaxRecvDataSegmentLength 131072
MaxXmitDataSegmentLength 131072
MaxBurstLength 262144
FirstBurstLength 262144
DefaultTime2Wait 2
DefaultTime2Retain 20
MaxOutstandingR2T 8
DataPDUInOrder Yes
DataSequenceInOrder Yes
ErrorRecoveryLevel 0
IncomingUser nasusr code17
OutgoingUser nasusr code17
Lun 0 Path=/dev/vg_data/vl_iso_and_templates,Type=blockio,ScsiSN=DwDny2-EtJb-ahxt,ScsiId
=DwDny2-EtJb-ahxt,IOMode=wt
** XCP------------------------------------------------------------------------
cat /etc/iscsi/iscsid.conf (Partial)
<Output removed>
# *************
# CHAP Settings
# *************
# To enable CHAP authentication set node.session.auth.authmethod
# to CHAP. The default is None.
node.session.auth.authmethod = CHAP
# To set a CHAP username and password for initiator
# authentication by the target(s), uncomment the following lines:
node.session.auth.username = nasusr
node.session.auth.password = code17
# To set a CHAP username and password for target(s)
# authentication by the initiator, uncomment the following lines:
#node.session.auth.username_in = username_in
#node.session.auth.password_in = password_in
# To enable CHAP authentication for a discovery session to the target
# set discovery.sendtargets.auth.authmethod to CHAP. The default is None.
#discovery.sendtargets.auth.authmethod = CHAP
# To set a discovery session CHAP username and password for the initiator
# authentication by the target(s), uncomment the following lines:
#discovery.sendtargets.auth.username = username
#discovery.sendtargets.auth.password = password
# To set a discovery session CHAP username and password for target(s)
# authentication by the initiator, uncomment the following lines:
#discovery.sendtargets.auth.username_in = username_in
#discovery.sendtargets.auth.password_in = password_in<Output removed>
fdisk -lDisk /dev/sda: 107.3 GB, 107374182400 bytes
256 heads, 63 sectors/track, 13003 cylinders
Units = cylinders of 16128 * 512 = 8257536 bytes
Device Boot Start End Blocks Id System
/dev/sda1 * 1 13004 104857599+ ee EFI GPT
Disk /dev/sdb: 32.2 GB, 32212254720 bytes
64 heads, 32 sectors/track, 30720 cylinders
Units = cylinders of 2048 * 512 = 1048576 bytes
Disk /dev/sdc: 96.6 GB, 96636764160 bytes
255 heads, 63 sectors/track, 11748 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk /dev/sdd: 53.6 GB, 53687091200 bytes
64 heads, 32 sectors/track, 51200 cylinders
Units = cylinders of 2048 * 512 = 1048576 bytes
Device Boot Start End Blocks Id System
/dev/sdd1 1 51200 52428784 83 Linux
iscsiadm -m node -p 192.168.1.201 --loginLogging in to [iface: default, target: iqn.2006-01.com.example:nas.vms-snapshots, portal: 192.168.1.201,3260]
Logging in to [iface: default, target: iqn.2006-01.com.example:nas.vms, portal: 192.168.1.201,3260]
Logging in to [iface: default, target: iqn.2006-01.com.example:nas.iso-templates, portal: 192.168.1.201,3260]
Login to [iface: default, target: iqn.2006-01.com.example:nas.vms-snapshots, portal: 192.168.1.201,3260]: successful
Login to [iface: default, target: iqn.2006-01.com.example:nas.vms, portal: 192.168.1.201,3260]: successful
Login to [iface: default, target: iqn.2006-01.com.example:nas.iso-templates, portal: 192.168.1.201,3260]: successful
** On Openfiler while running iscsi commands from XCP
BEFORE:
cat /proc/net/iet/session
tid:3 name:iqn.2006-01.com.example:nas.iso-templates
tid:2 name:iqn.2006-01.com.example:nas.vms-snapshots
tid:1 name:iqn.2006-01.com.example:nas.vms
AFTER:
cat /proc/net/iet/session
tid:3 name:iqn.2006-01.com.example:nas.iso-templates
sid:2251799968678400 initiator:iqn.2013-03.com.example:9bae7192
cid:0 ip:192.168.1.200 state:active hd:none dd:nonetid:2 name:iqn.2006-01.com.example:nas.vms-snapshots
sid:1970324958413312 initiator:iqn.2013-03.com.example:9bae7192
cid:0 ip:192.168.1.200 state:active hd:none dd:nonetid:1 name:iqn.2006-01.com.example:nas.vms
sid:1688849998479872 initiator:iqn.2013-03.com.example:9bae7192
cid:0 ip:192.168.1.200 state:active hd:none dd:none
From XCP interface:
1- Disk & Storage Repositories-> Attach Existing Storage Repository
2- Type the root password
3- Select Software iSCSI
4- In New Storage Repository Window, type:
** Name: VMs
** Desc: VMs
** Initiator IQN: iqn.2013-03.com.example:f503e924
** Port number: 3260
** Hostnameof iSCSI target: 192.168.1.201
** username: nasusr
** Password : nasusr password as defined in Openfiler
5- Hit OK
6- XCP show the iSCSI's I have in Openfiler.
7- I choose TPTG 0 iqn.2006-01.com.example:nas.vms
8- Probing for LUNs, I get an error message "(' timed out',)"
But when I go to local command shell and I type these commands, it works:
1-
iscsiadm -m discovery -t st -p 192.168.1.201: displays all the iSCSI I have in my openfiler
2-
iscsiadm -m node -p 192.168.1.201 --login: successful on all iSCSI disks
3-
fdisk -l: I see all the iSCSI drives with the mention "Donesn't contain a valide partition table"
I tried to apply the fix listed in
https://forums2.openfiler.com/index.php?/topic/1564-iscsi-and-xen-server-storage-repository-issue/page__hl__lvm.conf but I could n't find:
- In /etc/rc.sysinit:
if [ -x /sbin/lvm.static ]; then
if /sbin/lvm.static vgscan --mknodes --ignorelockingfailure > /dev/null 2>&1 ; then
action $"Setting up Logical Volume Management:" /sbin/lvm.static vgchange -a y --ignorelockingfailure
fi
fi- In /etc/rc.sysinit: keyword filter not found
I tried also adding iSCSI using XenCenter 6.1 build 644, but I'm getting the error message: Discovering LUNs failed
My questions:
1- Why I can't attach the iSCSI from the XCP interface : It works from the command line
2- Why fdisk -l says the iSCSI devices are not partitionned but iqn.2006-01.com.example:nas.vms is already ext3 formated in openfiler