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

[Xen-users] Failed to create SR with lvmoiscsi on xcp1.6[ [opterr=Logical Volume partition creation error [opterr=error is 5]]



Hello Experts,
When I try to create SR with lvm over iSCSI,  it always failed, I list my xe command and debug info:
   [root@xcp16 log]# xe sr-create host-uuid=a226200e-f7ff-4dee-b679-e5f114d1e465 content-type=user name-label=shared_disk_sr shared=true device-config:target=192.168.1.2 device-config:targetIQN=iqn.2013-07.example:shareddisk device-config:SCSIid=1IET_00010001 type=lvmoiscsi
The SR is not available [opterr=Logical Volume partition creation error [opterr=error is 5]]
 
Below is log info from /var/log/SMlog:
[23260] 2013-07-04 17:44:50.989457      PATHDICT: key 192.168.1.2:3260: {'path': '/dev/iscsi/iqn.2013-07.example:shareddisk/192.168.1.2:3260', 'ipaddr': '192.168.1.2', 'port': 3260L}
[23260] 2013-07-04 17:44:50.989570      Path found: /dev/iscsi/iqn.2013-07.example:shareddisk/192.168.1.2:3260
[23260] 2013-07-04 17:44:50.990372      IQN match. Incrementing sessions to 1
[23260] 2013-07-04 17:44:51.023807      lock: released /var/lock/sm/4f834073-fda6-765a-c83c-f1ef1edf8c80/sr
[23260] 2013-07-04 17:44:51.023906      lock: closed /var/lock/sm/4f834073-fda6-765a-c83c-f1ef1edf8c80/sr
[23260] 2013-07-04 17:44:51.024039      LVMCache created for VG_XenStorage-4f834073-fda6-765a-c83c-f1ef1edf8c80
[23260] 2013-07-04 17:44:51.051901      ['/usr/sbin/vgs', 'VG_XenStorage-4f834073-fda6-765a-c83c-f1ef1edf8c80']
[23260] 2013-07-04 17:44:51.121525      FAILED in util.pread: (rc 5) stdout: '', stderr: '  Volume group "VG_XenStorage-4f834073-fda6-765a-c83c-f1ef1edf8c80" not found
'
[23260] 2013-07-04 17:44:51.121780      LVMCache: will initialize now
[23260] 2013-07-04 17:44:51.121861      LVMCache: refreshing
[23260] 2013-07-04 17:44:51.121966      ['/usr/sbin/lvs', '--noheadings', '--units', 'b', '-o', '+lv_tags', '/dev/VG_XenStorage-4f834073-fda6-765a-c83c-f1ef1edf8c80']
[23260] 2013-07-04 17:44:51.191609      FAILED in util.pread: (rc 5) stdout: '', stderr: '  Volume group "VG_XenStorage-4f834073-fda6-765a-c83c-f1ef1edf8c80" not found
  Skipping volume group VG_XenStorage-4f834073-fda6-765a-c83c-f1ef1edf8c80
'
[23260] 2013-07-04 17:44:51.191860      LVHDSR.create for 4f834073-fda6-765a-c83c-f1ef1edf8c80
[23260] 2013-07-04 17:44:51.191961      ['/usr/sbin/vgs', 'VG_XenStorage-4f834073-fda6-765a-c83c-f1ef1edf8c80']
[23260] 2013-07-04 17:44:51.260404      FAILED in util.pread: (rc 5) stdout: '', stderr: '  Volume group "VG_XenStorage-4f834073-fda6-765a-c83c-f1ef1edf8c80" not found
'
[23260] 2013-07-04 17:44:51.298741      ['sginfo', '-s', '/dev/sdc']
[23260] 2013-07-04 17:44:51.311490        pread SUCCESS
[23260] 2013-07-04 17:44:51.312346      ['scsi_id', '-g', '-s', '/block/sdc']
[23260] 2013-07-04 17:44:51.324570        pread SUCCESS
[23260] 2013-07-04 17:44:51.355285      ['/bin/dd', 'if=/dev/zero', 'of=/dev/disk/by-id/scsi-1IET_00010001', 'bs=1M', 'count=100', 'oflag=direct']
[23260] 2013-07-04 17:44:52.197256        pread SUCCESS
[23260] 2013-07-04 17:44:52.197478      ['/usr/sbin/pvcreate', '--metadatasize', '10M', '/dev/disk/by-id/scsi-1IET_00010001']
[23260] 2013-07-04 17:44:52.275753      FAILED in util.pread: (rc 5) stdout: '', stderr: '  Device /dev/disk/by-id/scsi-1IET_00010001 not found (or ignored by filtering).
'
[23260] 2013-07-04 17:44:52.315650      Raising exception [55, Logical Volume partition creation error [opterr=error is 5]]
[23260] 2013-07-04 17:44:52.385703      lock: acquired /var/lock/sm/iscsiadm/running
[23260] 2013-07-04 17:44:52.399347      lock: released /var/lock/sm/iscsiadm/running
[23260] 2013-07-04 17:44:52.399472      lock: closed /var/lock/sm/iscsiadm/running
[23260] 2013-07-04 17:44:52.399785      lock: acquired /var/lock/sm/iscsiadm/running
[23260] 2013-07-04 17:44:53.975428      lock: released /var/lock/sm/iscsiadm/running
[23260] 2013-07-04 17:44:53.975579      lock: closed /var/lock/sm/iscsiadm/running
[23260] 2013-07-04 17:44:54.010024      lock: acquired /var/lock/sm/iscsiadm/running
[23260] 2013-07-04 17:44:54.022967      lock: released /var/lock/sm/iscsiadm/running
[23260] 2013-07-04 17:44:54.023116      lock: closed /var/lock/sm/iscsiadm/running
[23260] 2013-07-04 17:44:54.061827      Raising exception [47, The SR is not available [opterr=Logical Volume partition creation error [opterr=error is 5]]]
[23260] 2013-07-04 17:44:54.062075      lock: released /var/lock/sm/4f834073-fda6-765a-c83c-f1ef1edf8c80/sr
[23260] 2013-07-04 17:44:54.063280      ***** generic exception: sr_create: EXCEPTION SR.SROSError, The SR is not available [opterr=Logical Volume partition creation error [opterr=error is 5]]
  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 260, in _run
    return sr.create(self.params['sr_uuid'], long(self.params['args'][0]))
  File "/opt/xensource/sm/LVMoISCSISR", line 422, in create
    raise xs_errors.XenError("SRUnavailable", opterr=inst)
  File "/opt/xensource/sm/xs_errors.py", line 49, in __init__
    raise SR.SROSError(errorcode, errormessage)
 
BTW, do you know how to share the same LUN on iSCSI target server if the two host servers are located in the different pool?
Thanks for your help in advance.

Ray Shi
_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxx
http://lists.xen.org/xen-users

 


Rackspace

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