Jump to content
Welcome to our new Citrix community!
  • 0

Help needed with iSCSI config


Mithun Ranjalkar

Question

OS version:-

 

[root@aeugmsdcimpnlhyp2 ~]# cat /etc/redhat-release

XenServer release 7.6.0 (xenenterprise)

              [root@aeugmsdcimpnlhyp2 ~]#

 

 

We are configured iSCSI disk on the server.(using targetcli)

 

Output:-

> ls

o- / ......................................................................................................................... [...]

  o- backstores .............................................................................................................. [...]

  | o- block .................................................................................................. [Storage Objects: 1]

  | | o- iscsi_HYP2 ........................................................... [/dev/VG_DATA/lv_data (3.6TiB) write-thru activated]

  | |   o- alua ................................................................................................... [ALUA Groups: 1]

  | |     o- default_tg_pt_gp ....................................................................... [ALUA state: Active/optimized]

  | o- fileio ................................................................................................. [Storage Objects: 0]

  | o- pscsi .................................................................................................. [Storage Objects: 0]

  | o- ramdisk ................................................................................................ [Storage Objects: 0]

  o- iscsi ............................................................................................................ [Targets: 1]

  | o- iqn.2019-07.net.myatos.idm.dcim:hyp2 .............................................................................. [TPGs: 1]

  |   o- tpg1 ............................................................................................... [no-gen-acls, no-auth]

  |     o- acls .......................................................................................................... [ACLs: 1]

  |     | o- iqn.2019-03.com.example:01dc2f97 ..................................................................... [Mapped LUNs: 1]

  |     |   o- mapped_lun0 ............................................................................ [lun0 block/iscsi_HYP2 (rw)]

  |     o- luns .......................................................................................................... [LUNs: 1]

  |     | o- lun0 ..................................................... [block/iscsi_HYP2 (/dev/VG_DATA/lv_data) (default_tg_pt_gp)]

  |     o- portals .................................................................................................... [Portals: 1]

  |       o- 0.0.0.0:3260 ..................................................................................................... [OK]

  o- loopback ......................................................................................................... [Targets: 0]

 

All disk is under LVM :-

 

--- Logical volume ---

  LV Path                /dev/VG_DATA/lv_data

  LV Name                lv_data

  VG Name                VG_DATA

  LV UUID                asVcGj-Xf0S-zm5N-mo5O-srmu-kUFP-qS7KQy

  LV Write Access        read/write

  LV Creation host, time aeugmsdcimpnlhyp2, 2019-07-23 14:55:07 +0200

  LV Status              available

  # open                 1

  LV Size                3.55 TiB

  Current LE             930612

  Segments               4

  Allocation             inherit

  Read ahead sectors     auto

  - currently set to     256

  Block device           252:1

Also tried with the command line :-

 

[root@aeugmsdcimpnlhyp2 ~]# xe sr-probe type=lvmoiscsi device-config:target=192.168.0.201

Error code: SR_BACKEND_FAILURE_96

Error parameters: , The request is missing or has an incorrect target IQN parameter, <?xml version="1.0" ?>

<iscsi-target-iqns>

        <TGT>

                <Index>0</Index>

                <IPAddress>192.168.0.201</IPAddress>

                <TargetIQN>iqn.2019-07.net.myatos.idm.dcim:hyp2</TargetIQN>

        </TGT>

        <TGT>

                <Index>1</Index>

                <IPAddress>192.168.0.201</IPAddress>

                <TargetIQN>*</TargetIQN>

        </TGT>

</iscsi-target-iqns>

 

 

[root@aeugmsdcimpnlhyp2 ~]# xe sr-probe type=lvmoiscsi device-config:target=192.168.0.201 device-config:targetIQN=iqn.2019-07.net.myatos.idm.dcim:hyp2

Error code: SR_BACKEND_FAILURE_107

Error parameters: , The SCSIid parameter is missing or incorrect, <?xml version="1.0" ?>

<iscsi-target>

        <LUN>

                <vendor>LIO-ORG</vendor>

                <serial>2bcefa03-a806-4f63-8aee-c24b2f52a2ba</serial>

                <LUNid>0</LUNid>

                <size>3907346497536</size>

                <SCSIid>360014052bcefa03a8064f638aeec24b2</SCSIid>

        </LUN>

</iscsi-target>

 

 

[root@aeugmsdcimpnlhyp2 ~]#  xe sr-create name-label="HYP2 iSCSI Storage" type=lvmoiscsi content-type=user device-config:target=192.168.0.201 device-config:port=3260 device-config:targetIQN=iqn.2019-07.net.myatos.idm.dcim:hyp2 device-config:SCSIid=360014052bcefa03a8064f638aeec24b2

Error code: SR_BACKEND_FAILURE_47

Error parameters: , The SR is not available [opterr=Logical Volume group creation failed],

[root@aeugmsdcimpnlhyp2 ~]#

 

 

Please let me know if any more information required.

 

 

With regards,

Mithun

error.jpg

Link to comment

9 answers to this question

Recommended Posts

  • 0

Did you do an iscsiadm discovery process from each host? Also when you connect, it's often best to do a wildcard-based connection from the XenServer console if you have multipathing in place. Can you ping the storage device from each XenServer host? You're using a private network, which is good, but you have to make sure the routing goes through all the way from each host to the storage device and that the IQN of each host is permitted to connect to the iSCSI storage device.

 

-=Tobias

Link to comment
  • 0

iscsiadm dicsovery yes . 

there is no seprate storage we are using server disk converted as iscsi LUN.

Node1 and Node2 

node 2 is the new H/W .

we are configured iscsi on node2 local disk converted in to LVM and assined in iscsi and that disk we are using as LUN.

SR is configured on Node1 but we are tried on Node 2 it is giving errror. also recreated all steps and tried fresh mount on node2 but still same issue.

multipating is disabled.(becouse getting DMP)

initiator is on node2 also we want to configure lun on node 2 on same.

 

initiator and target are same.

 

it is possible?

 

With regards,

Mithun

 

Link to comment
  • 0

You need separate LUNs of you use different pools; a LUN AFAIK cannot be shared among multiple pools. Just carve out in that case a separate volume on your storage device and create a new LUN for it. If it's within the same pool, you should be able to discover and attach the LUN as long as the IQN is permitted to conenct on the storage device and the networking is properly set up.

 

-=Tobias

Link to comment
  • 0

Apprecate your help and thanks for your prompt reply!

Our current setup is as below:

HYPERVISOR 1
 - contains the production VMs
 
HYPERVISOR 2
 - contains the local disk ( we do not have a separate storage )
 - this disk is configured (iSCSI) and need to be accessible from HYP2 and if possible (at later stage) also HYP1
 
So we want to connect the HYPERVISOR 2 disk ( the iSCSI target) over the local network from HYP2 it self as iSCSI storage LUN.

we have not configured above servers in a Pool as they are on different xen os versions.

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...