[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-API] XCP and HBA storage problem.


  • To: xen-api@xxxxxxxxxxxxx
  • From: George Shuklin <george.shuklin@xxxxxxxxx>
  • Date: Sun, 09 Dec 2012 05:19:56 +0400
  • Delivery-date: Sun, 09 Dec 2012 01:19:13 +0000
  • List-id: User and development list for XCP and XAPI <xen-api.lists.xen.org>

Ok, and here is the answer:

/usr/bin/sg_luns -q /dev/disk/by-scsibus/3600508b1001cd7d63a2561e9f119d5a9-0:0:0:0

You should try to mount that volume to any generic linux and check if sg_luns can read it luns. If not - dig into storage specific stuff.



On 08.12.2012 15:38, Yatsko Mykhailo wrote:

Here is the part referring to the last attempt of sr-probe

Â

[14338] 2012-12-08 13:28:01.795411ÂÂÂÂÂ Setting LVM_DEVICE to /dev/disk/by-scsid/3600c0ff000134320d6dab75001000000

[14338] 2012-12-08 13:28:01.804276ÂÂÂÂÂ Setting LVM_DEVICE to /dev/disk/by-scsid/3600c0ff000134320d6dab75001000000

[14338] 2012-12-08 13:28:01.833284ÂÂÂÂÂ LVMCache created for VG_XenStorage-

[14338] 2012-12-08 13:28:01.833563ÂÂÂÂÂ lock: closed /var/lock/sm/sr

[14338] 2012-12-08 13:28:01.833669ÂÂÂÂÂ LVMCache created for VG_XenStorage-

[14338] 2012-12-08 13:28:01.833913ÂÂÂÂÂ sr_probe {'subtask_of': 'OpaqueRef:c9a23e90-3535-9bd2-e901-d50a860501d8', 'sr_sm_config': {}, 'args': [], 'host_ref'$

[14338] 2012-12-08 13:28:01.834056ÂÂÂÂÂ mpath cmd: list maps

[14338] 2012-12-08 13:28:01.846616ÂÂ ÂÂÂmpath output: multipathd> multipathd>

[14338] 2012-12-08 13:28:01.846820ÂÂÂÂÂ Refreshing LUN 3600c0ff000134320d6dab75001000000

[14338] 2012-12-08 13:28:01.846965ÂÂÂÂÂ ['ls', '/sys/class/scsi_host', '-1', '--color=never']

[14338] 2012-12-08 13:28:01.858676ÂÂÂÂÂÂÂ pread SUCCESS

[14338] 2012-12-08 13:28:01.859584ÂÂÂÂÂ Full rescan of HostID 0

[14338] 2012-12-08 13:28:04.062037ÂÂÂÂÂ Refreshing channel 0:0:0

[14338] 2012-12-08 13:28:04.063085ÂÂÂÂÂ Dom0 disks: ['/dev/sda']

[14338] 2012-12-08 13:28:04.063183ÂÂÂ ÂÂ['/usr/bin/sg_luns', '-q', '/dev/disk/by-scsibus/3600508b1001cd7d63a2561e9f119d5a9-0:0:0:0']

[14338] 2012-12-08 13:28:04.085292ÂÂÂÂÂ FAILED in util.pread: (rc 9) stdout: '', stderr: 'Report Luns command not supported (support mandatory in SPC-3)

'

[14338] 2012-12-08 13:28:04.085482ÂÂÂÂÂ Failed to detect or query LUN on Channel 0:0:0

[14338] 2012-12-08 13:29:04.722586ÂÂÂÂÂ ***** generic exception: sr_probe: EXCEPTION SR.SROSError, Error reporting error, unknown key Device not appeared yet

 File "/opt/xensource/sm/SRCommand.py", line 96, in run

ÂÂÂ return self._run_locked(sr)

 File "/opt/xensource/sm/SRCommand.py", line 143, in _run_locked

ÂÂÂ return self._run(sr, target)

 File "/opt/xensource/sm/SRCommand.py", line 269, in _run

ÂÂÂ txt = sr.probe()

 File "/opt/xensource/sm/LVMoHBASR", line 162, in probe

ÂÂÂ self.mpathmodule.refresh(self.SCSIid,0)

 File "/opt/xensource/sm/mpath_dmp.py", line 179, in refresh

ÂÂÂ raise xs_errors.XenError('Device not appeared yet')

 File "/opt/xensource/sm/xs_errors.py", line 52, in __init__

ÂÂÂ raise SR.SROSError(1, "Error reporting error, unknown key %s" % key)

Â

[14338] 2012-12-08 13:29:04.722979ÂÂÂÂÂ lock: closed /var/lock/sm/sr

Â

Â

From: xen-api-bounces@xxxxxxxxxxxxx [mailto:xen-api-bounces@xxxxxxxxxxxxx] On Behalf Of George Shuklin
Sent: Friday, December 07, 2012 10:34 PM
To: xen-api@xxxxxxxxxxxxxxxxxxx
Subject: Re: [Xen-API] XCP and HBA storage problem.

Â

Ok, now it at least visible what happens.

next step: look to the /var/log/SMlog after sr-probe.

PS Please, reply to maillist, i'm not a personal support service.

On 07.12.2012 11:56, Yatsko Mykhailo wrote:

Well, I canât even probe the device.

xe sr-probe type=lvmohba returns

Error code: SR_BACKEND_FAILURE_107

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

If I set the SCSIid -Â xe sr-probe type=lvmohba device-config:SCSIid=*****

Error code: SR_BACKEND_FAILURE_1

Error parameters: , Error reporting error, unknown key Device not appeared yet,

And xe sr-create shared=true type=lvmohba name-label=LUN9 device-config:SCSIid=**** returns the same

Error code: SR_BACKEND_FAILURE_1

Error parameters: , Error reporting error, unknown key Device not appeared yet,

Â

As for software iSCSI â I can easily fire it up through XenCenter with multipathing and all the stuff I need, but using HBA capabilities is quite critical to me. If it may help, the device I use is HP StorageWorks P2000 G3 with 4 1Gbit Ethernet storage ports per controller. The wiring is OK, I doublechecked it. Also I even tried to connect the storage directly to the servers to get rid of possible failure point at the switch.

From: xen-api-bounces@xxxxxxxxxxxxx [mailto:xen-api-bounces@xxxxxxxxxxxxx] On Behalf Of George Shuklin
Sent: Thursday, December 06, 2012 10:25 PM
To: xen-api@xxxxxxxxxxxxxxxxxxx
Subject: Re: [Xen-API] XCP and HBA storage problem.

Â

Well, may be output of the xe sr-create should be attached? Guessing 'what is wrong' is kinda useless activity without logs or command output.

On 06.12.2012 20:08, Yatsko Mykhailo wrote:

Certainly. And lvmoiscsi works fine. I need to fire it up as lvmohba, which causes troubles.

Â

Ð ÐÐÐÐÐÐÑ,
ÐÑÐÐ ÐÐÑÐÐÐÐ ÐÐÐÐÐÐÐÐÑÐÐÐÑ
ÐÐÑÑÐÐÐÐÐ ÐÐÐÑÐÑÑÑÑÐÑÐÑ
Adelina Holding LLC
ÐÑÐÐÑÐ ÑÐÑÐÑÑÐÐÑ ÐÑÐÑÑÐÐÐÐ
_________________________________
03065, Ð. ÐÐÑÐ, ÐÑÐ. ÐÐÐÑÐ
, 4
E-mail: myatsko@xxxxxxxxxxxxxx
Web: www.adelina.com.ua
ÐÐÐ.: +380501440657
ÐÐÐÑ: +38 (032) 235 17 75

Â

From: xen-api-bounces@xxxxxxxxxxxxx [mailto:xen-api-bounces@xxxxxxxxxxxxx] On Behalf Of George Shuklin
Sent: Thursday, December 06, 2012 5:21 PM
To: xen-api@xxxxxxxxxxxxx
Subject: Re: [Xen-API] XCP and HBA storage problem.

Â

Did you try to performs xe sr-create with type=lvmoiscsi?

05.12.2012 14:45, Yatsko Mykhailo ÐÐÑÐÑ:

Hi everyone.

I am a complete newbie to Xen. I run the following config:

HP ProLiant DL360 G7 server, 2 absolutely identical items, running latest XCP. They are joined in a pool. Also there is a HP StorageWorks P2000 G3 storage array. This is the config I have troubles with.

Currently we are planning to migrate to Xen-based solutions from VMWare-based. We have other 2 servers (also identical to those mentioned above), which make use of the same storage device. VMWare servers connect to the storage over HBA.

XCP ones do not recognize LUNs (though there is one made specially for them and not in use by any other machine) when adding a HBA storage, but work fine if adding it as software iSCSI. ÂThere are no restrictions as for access at the storage side, no passwords etc.

Any piece of advice would be highly appreciated.

Â

Ð ÐÐÐÐÐÐÑ,
ÐÑÐÐ ÐÐÑÐÐÐÐ ÐÐÐÐÐÐÐÐÑÐÐÐÑ
ÐÐÑÑÐÐÐÐÐ ÐÐÐÑÐÑÑÑÑÐÑÐÑ
Adelina Holding LLC
ÐÑÐÐÑÐ ÑÐÑÐÑÑÐÐÑ ÐÑÐÑÑÐÐÐÐ
___________________
______________
03065, Ð. ÐÐÑÐ, ÐÑÐ. ÐÐÐÑÐ
, 4
E-mail: myatsko@xxxxxxxxxxxxxx
Web: www.adelina.com.ua
ÐÐÐ.: +380501440657
ÐÐÐÑ: +38 (032) 235 17 75

Â






_______________________________________________
Xen-api mailing list
Xen-api@xxxxxxxxxxxxx
http://lists.xen.org/cgi-bin/mailman/listinfo/xen-api

Â



_______________________________________________
Xen-api mailing list
Xen-api@xxxxxxxxxxxxx
http://lists.xen.org/cgi-bin/mailman/listinfo/xen-api
_______________________________________________
Xen-api mailing list
Xen-api@xxxxxxxxxxxxx
http://lists.xen.org/cgi-bin/mailman/listinfo/xen-api

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.