Forum
Welcome, Guest
Username: Password: Remember me
This is the optional category header for the Suggestion Box.
  • Page:
  • 1

TOPIC:

cant create second iscsi SR 3 years 6 months ago #2199

  • gerry kernan
  • gerry kernan's Avatar Topic Author
  • Offline
  • Posts: 16
hi
im trying to create a 2nd iscsi SR . xen is finding the target but when i get prompted to format the new SR it bombs out .
found error below in /var/log/user.log

Sep 27 12:48:34 xensrva iscsi-ha-ERROR-/etc/iscsi-ha/init/iscsi-ha.mon: The server failed to handle your request, due to an internal error. The given message may give details useful for debugging the problem.
Sep 27 12:48:34 xensrva iscsi-ha-ERROR-/etc/iscsi-ha/init/iscsi-ha.mon: message: Storage_error ([S(Internal_error);S(Db_exn.Read_missing_uuid("SR", "", "1860041e-12f6-8441-8cb1-3712d594a6dc"))])
Sep

Please Log in or Create an account to join the conversation.

cant create second iscsi SR 3 years 5 months ago #2205

  • Salvatore Costantino
  • Salvatore Costantino's Avatar
  • Offline
  • Posts: 722
Hi Gerry,
It would be helpful to see a few lines of debug just above the error to better see what may have triggered it and whether it is related to the additional SR you are adding.

Assuming you are adding a second internal SR to be managed by iscsi-ha, there are a number of files that need to be edited to make that work. There are several threads on this forum with the detailsa. In short, you will need to update the drbd, lvm, iscsi-ha and tgt config files.

This post has all the steps.. It's a bit of a long post, but all the info is in there. The most common issue I have seen with adding SRs is that users don't properly edit the XML in the TGT targets file.

www.halizard.com/forum/general-discussion/20-2-or-more-iscsi

Please Log in or Create an account to join the conversation.

cant create second iscsi SR 3 years 5 months ago #2207

  • gerry kernan
  • gerry kernan's Avatar Topic Author
  • Offline
  • Posts: 16
hi Salvatore

log extract

Sep 29 16:15:18 xensrva xapi: [error||63601879 UNIX /var/lib/xcp/xapi||backtrace]
Sep 29 16:15:18 xensrva xapi: [debug||63601880 UNIX /var/lib/xcp/xapi||dummytaskhelper] task dispatch:PBD.get_all_records D:e0f87bc65369 created by task D:5967568a2d00
Sep 29 16:15:18 xensrva xapi: [ info||63601748 |sm_exec D:c7c03d3713a2|xapi] Session.destroy trackid=bce48dff77252432d128eda9a8539fa7
Sep 29 16:15:18 xensrva xapi: [error||63601748 ||backtrace] sm_exec D:c7c03d3713a2 failed with exception Storage_error ([S(Backend_error);[S(SR_BACKEND_FAILURE_107);[S();S(The SCSIid parameter is missing or incorrect);S(<?xml version="1.0" ?>#012<iscsi-target>#012#011<LUN>#012#011#011<vendor>IET</vendor>#012#011#011<serial>beaf170</serial>#012#011#011<LUNid>70</LUNid>#012#011#011<size>1792149217280</size>#012#011#011<SCSIid>360000000000000000e00000000010046</SCSIid>#012#011</LUN>#012#011<LUN>#012#011#011<vendor>IET</vendor>#012#011#011<serial>beaf150</serial>#012#011#011<LUNid>50</LUNid>#012#011#011<size>1798596845568</size>#012#011#011<SCSIid>360000000000000000e00000000010032</SCSIid>#012#011</LUN>#012</iscsi-target>#012#012)]]])
Sep 29 16:15:18 xensrva xapi: [error||63601748 ||backtrace] Raised Storage_error ([S(Backend_error);[S(SR_BACKEND_FAILURE_107);[S();S(The SCSIid parameter is missing or incorrect);S(<?xml version="1.0" ?>#012<iscsi-target>#012#011<LUN>#012#011#011<vendor>IET</vendor>#012#011#011<serial>beaf170</serial>#012#011#011<LUNid>70</LUNid>#012#011#011<size>1792149217280</size>#012#011#011<SCSIid>360000000000000000e00000000010046</SCSIid>#012#011</LUN>#012#011<LUN>#012#011#011<vendor>IET</vendor>#012#011#011<serial>beaf150</serial>#012#011#011<LUNid>50</LUNid>#012#011#011<size>1798596845568</size>#012#011#011<SCSIid>360000000000000000e00000000010032</SCSIid>#012#011</LUN>#012</iscsi-target>#012#012)]]])
Sep 29 16:15:18 xensrva xapi: [error||63601748 ||backtrace] 1/8 xapi Raised at file ocaml/xapi/sm_exec.ml, line 216
Sep 29 16:15:18 xensrva xapi: [error||63601748 ||backtrace] 2/8 xapi Called from file lib/xapi-stdext-pervasives/pervasiveext.ml, line 24
Sep 29 16:15:18 xensrva xapi: [error||63601748 ||backtrace] 3/8 xapi Called from file lib/xapi-stdext-pervasives/pervasiveext.ml, line 35
Sep 29 16:15:18 xensrva xapi: [error||63601748 ||backtrace] 4/8 xapi Called from file ocaml/xapi/server_helpers.ml, line 80
Sep 29 16:15:18 xensrva xapi: [error||63601748 ||backtrace] 5/8 xapi Called from file ocaml/xapi/server_helpers.ml, line 99
Sep 29 16:15:18 xensrva xapi: [error||63601748 ||backtrace] 6/8 xapi Called from file lib/xapi-stdext-pervasives/pervasiveext.ml, line 24
Sep 29 16:15:18 xensrva xapi: [error||63601748 ||backtrace] 7/8 xapi Called from file lib/xapi-stdext-pervasives/pervasiveext.ml, line 35
Sep 29 16:15:18 xensrva xapi: [error||63601748 ||backtrace] 8/8 xapi Called from file lib/backtrace.ml, line 177
Sep 29 16:15:18 xensrva xapi: [error||63601748 ||backtrace]
Sep 29 16:15:18 xensrva xapi: [error||63601748 ||storage_access] SR.create failed SR:OpaqueRef:f65dc4fd-16fb-4aec-9acc-5d1264b08ca8 error:INTERNAL_ERROR: [ Storage_error ([S(Backend_error);[S(SR_BACKEND_FAILURE_107);[S();S(The SCSIid parameter is missing or incorrect);S(<?xml version="1.0" ?>#012<iscsi-target>#012#011<LUN>#012#011#011<vendor>IET</vendor>#012#011#011<serial>beaf170</serial>#012#011#011<LUNid>70</LUNid>#012#011#011<size>1792149217280</size>#012#011#011<SCSIid>360000000000000000e00000000010046</SCSIid>#012#011</LUN>#012#011<LUN>#012#011#011<vendor>IET</vendor>#012#011#011<serial>beaf150</serial>#012#011#011<LUNid>50</LUNid>#012#011#011<size>1798596845568</size>#012#011#011<SCSIid>360000000000000000e00000000010032</SCSIid>#012#011</LUN>#012</iscsi-target>#012#012)]]]) ]
Sep 29 16:15:18 xensrva xapi: [error||63601748 ||backtrace] SR.create D:5967568a2d00 failed with exception Storage_error ([S(Backend_error);[S(SR_BACKEND_FAILURE_107);[S();S(The SCSIid parameter is missing or incorrect);S(<?xml version="1.0" ?>#012<iscsi-target>#012#011<LUN>#012#011#011<vendor>IET</vendor>#012#011#011<serial>beaf170</serial>#012#011#011<LUNid>70</LUNid>#012#011#011<size>1792149217280</size>#012#011#011<SCSIid>360000000000000000e00000000010046</SCSIid>#012#011</LUN>#012#011<LUN>#012#011#011<vendor>IET</vendor>#012#011#011<serial>beaf150</serial>#012#011#011<LUNid>50</LUNid>#012#011#011<size>1798596845568</size>#012#011#011<SCSIid>360000000000000000e00000000010032</SCSIid>#012#011</LUN>#012</iscsi-target>#012#012)]]])
Sep 29 16:15:18 xensrva xapi: [error||63601748 ||backtrace] Raised Storage_error ([S(Backend_error);[S(SR_BACKEND_FAILURE_107);[S();S(The SCSIid parameter is missing or incorrect);S(<?xml version="1.0" ?>#012<iscsi-target>#012#011<LUN>#012#011#011<vendor>IET</vendor>#012#011#011<serial>beaf170</serial>#012#011#011<LUNid>70</LUNid>#012#011#011<size>1792149217280</size>#012#011#011<SCSIid>360000000000000000e00000000010046</SCSIid>#012#011</LUN>#012#011<LUN>#012#011#011<vendor>IET</vendor>#012#011#011<serial>beaf150</serial>#012#011#011<LUNid>50</LUNid>#012#011#011<size>1798596845568</size>#012#011#011<SCSIid>360000000000000000e00000000010032</SCSIid>#012#011</LUN>#012</iscsi-target>#012#012)]]])
Sep 29 16:15:18 xensrva xapi: [error||63601748 ||backtrace] 1/1 xapi Raised at file (Thread 63601748 has no backtrace table. Was with_backtraces called?, line 0
Sep 29 16:15:18 xensrva xapi: [error||63601748 ||backtrace]
Sep 29 16:15:18 xensrva xapi: [error||63601748 ||storage_interface] Storage_error ([S(Backend_error);[S(SR_BACKEND_FAILURE_107);[S();S(The SCSIid parameter is missing or incorrect);S(<?xml version="1.0" ?>#012<iscsi-target>#012#011<LUN>#012#011#011<vendor>IET</vendor>#012#011#011<serial>beaf170</serial>#012#011#011<LUNid>70</LUNid>#012#011#011<size>1792149217280</size>#012#011#011<SCSIid>360000000000000000e00000000010046</SCSIid>#012#011</LUN>#012#011<LUN>#012#011#011<vendor>IET</vendor>#012#011#011<serial>beaf150</serial>#012#011#011<LUNid>50</LUNid>#012#011#011<size>1798596845568</size>#012#011#011<SCSIid>360000000000000000e00000000010032</SCSIid>#012#011</LUN>#012</iscsi-target>#012#012)]]]) (File "storage/storage_interface.ml", line 420, characters 51-58)
Sep 29 16:15:18 xensrva xapi: [error||63601741 |Async.SR.create R:63ff0a6999a6|storage_interface] Storage_error ([S(Backend_error);[S(SR_BACKEND_FAILURE_107);[S();S(The SCSIid parameter is missing or incorrect);S(<?xml version="1.0" ?>#012<iscsi-target>#012#011<LUN>#012#011#011<vendor>IET</vendor>#012#011#011<serial>beaf170</serial>#012#011#011<LUNid>70</LUNid>#012#011#011<size>1792149217280</size>#012#011#011<SCSIid>360000000000000000e00000000010046</SCSIid>#012#011</LUN>#012#011<LUN>#012#011#011<vendor>IET</vendor>#012#011#011<serial>beaf150</serial>#012#011#011<LUNid>50</LUNid>#012#011#011<size>1798596845568</size>#012#011#011<SCSIid>360000000000000000e00000000010032</SCSIid>#012#011</LUN>#012</iscsi-target>#012#012)]]]) (File "storage/storage_interface.ml", line 415, characters 50-57)
Sep 29 16:15:18 xensrva xapi: [error||63601741 |Async.SR.create R:63ff0a6999a6|storage_interface] Storage_error ([S(Backend_error);[S(SR_BACKEND_FAILURE_107);[S();S(The SCSIid parameter is missing or incorrect);S(<?xml version="1.0" ?>#012<iscsi-target>#012#011<LUN>#012#011#011<vendor>IET</vendor>#012#011#011<serial>beaf170</serial>#012#011#011<LUNid>70</LUNid>#012#011#011<size>1792149217280</size>#012#011#011<SCSIid>360000000000000000e00000000010046</SCSIid>#012#011</LUN>#012#011<LUN>#012#011#011<vendor>IET</vendor>#012#011#011<serial>beaf150</serial>#012#011#011<LUNid>50</LUNid>#012#011#011<size>1798596845568</size>#012#011#011<SCSIid>360000000000000000e00000000010032</SCSIid>#012#011</LUN>#012</iscsi-target>#012#012)]]]) (File "storage/storage_interface.ml", line 420, characters 51-58)
Sep 29 16:15:18 xensrva xapi: [debug||63601741 |Async.SR.create R:63ff0a6999a6|storage_utils] Got failure: checking for redirect, call was: -> SR.create({physical_size:I(0);device_config:{targetIQN:S(iqn.2015.com.halizard:noSAN);port:S(3260);target:S(10.10.10.3)};name_description:S(SHOULD NEVER BE CREATED);name_label:S(__gui__);sr:S(f9c91d54-6497-e3dc-5ac7-c913365e0cf8);dbg:S(OpaqueRef:63ff0a69-99a6-4af7-a5e9-9855fc24e109)}), results.contents: ["Backend_error",["SR_BACKEND_FAILURE_107",["","The SCSIid parameter is missing or incorrect","<?xml version=\"1.0\" ?>\n<iscsi-target>\n\t<LUN>\n\t\t<vendor>IET</vendor>\n\t\t<serial>beaf170</serial>\n\t\t<LUNid>70</LUNid>\n\t\t<size>1792149217280</size>\n\t\t<SCSIid>360000000000000000e00000000010046</SCSIid>\n\t</LUN>\n\t<LUN>\n\t\t<vendor>IET</vendor>\n\t\t<serial>beaf150</serial>\n\t\t<LUNid>50</LUNid>\n\t\t<size>1798596845568</size>\n\t\t<SCSIid>360000000000000000e00000000010032</SCSIid>\n\t</LUN>\n</iscsi-target>\n\n"]]]
Sep 29 16:15:18 xensrva xapi: [debug||63601741 |Async.SR.create R:63ff0a6999a6|storage_utils] Not a redirect: -> SR.create({physical_size:I(0);device_config:{targetIQN:S(iqn.2015.com.halizard:noSAN);port:S(3260);target:S(10.10.10.3)};name_description:S(SHOULD NEVER BE CREATED);name_label:S(__gui__);sr:S(f9c91d54-6497-e3dc-5ac7-c913365e0cf8);dbg:S(OpaqueRef:63ff0a69-99a6-4af7-a5e9-9855fc24e109)})
Sep 29 16:15:18 xensrva xapi: [error||63601741 |Async.SR.create R:63ff0a6999a6|storage_interface] Storage_error ([S(Backend_error);[S(SR_BACKEND_FAILURE_107);[S();S(The SCSIid parameter is missing or incorrect);S(<?xml version="1.0" ?>#012<iscsi-target>#012#011<LUN>#012#011#011<vendor>IET</vendor>#012#011#011<serial>beaf170</serial>#012#011#011<LUNid>70</LUNid>#012#011#011<size>1792149217280</size>#012#011#011<SCSIid>360000000000000000e00000000010046</SCSIid>#012#011</LUN>#012#011<LUN>#012#011#011<vendor>IET</vendor>#012#011#011<serial>beaf150</serial>#012#011#011<LUNid>50</LUNid>#012#011#011<size>1798596845568</size>#012#011#011<SCSIid>360000000000000000e00000000010032</SCSIid>#012#011</LUN>#012</iscsi-target>#012#012)]]]) (File "storage/storage_interface.ml", line 415, characters 50-57)
Sep 29 16:15:18 xensrva xapi: [debug||63601881 ||dummytaskhelper] task SR.attach D:cdcb153245f8 created by task R:f7f304441296
Sep 29 16:15:18 xensrva xapi: [error||63601881 ||backtrace] SR.attach D:cdcb153245f8 failed with exception Db_exn.Read_missing_uuid("SR", "", "f9c91d54-6497-e3dc-5ac7-c913365e0cf8")
Sep 29 16:15:18 xensrva xapi: [error||63601881 ||backtrace] Raised Db_exn.Read_missing_uuid("SR", "", "f9c91d54-6497-e3dc-5ac7-c913365e0cf8")
Sep 29 16:15:18 xensrva xapi: [error||63601881 ||backtrace] 1/1 xapi Raised at file (Thread 63601881 has no backtrace table. Was with_backtraces called?, line 0
Sep 29 16:15:18 xensrva xapi: [error||63601881 ||backtrace]
Sep 29 16:15:18 xensrva xapi: [error||63601881 ||storage_interface] Db_exn.Read_missing_uuid("SR", "", "f9c91d54-6497-e3dc-5ac7-c913365e0cf8") (File "storage/storage_interface.ml", line 423, characters 51-58)
Sep 29 16:15:18 xensrva xapi: [error||63601823 UNIX /var/lib/xcp/xapi|PBD.plug R:f7f304441296|storage_interface] Storage_error ([S(Internal_error);S(Db_exn.Read_missing_uuid("SR", "", "f9c91d54-6497-e3dc-5ac7-c913365e0cf8"))]) (File "storage/storage_interface.ml", line 415, characters 50-57)
Sep 29 16:15:18 xensrva xapi: [error||63601823 UNIX /var/lib/xcp/xapi|PBD.plug R:f7f304441296|storage_interface] Storage_error ([S(Internal_error);S(Db_exn.Read_missing_uuid("SR", "", "f9c91d54-6497-e3dc-5ac7-c913365e0cf8"))]) (File "storage/storage_interface.ml", line 420, characters 51-58)

Please Log in or Create an account to join the conversation.

cant create second iscsi SR 3 years 5 months ago #2208

  • gerry kernan
  • gerry kernan's Avatar Topic Author
  • Offline
  • Posts: 16
/etc/iscsi-ha/iscsi-ha.conf
DRBD_RESOURCES=iscsi1:iscsi2
ISCSI_TARGET_SERVICE=tgtd
DRBD_VIRTUAL_IP=10.10.10.3
DRBD_VIRTUAL_MASK=255.255.255.0
DRBD_INTERFACE=xenbr2
MONITOR_MAX_STARTS=5
MONITOR_DELAY=10
MONITOR_KILLALL=1
MONITOR_SCANRATE=5
ENABLE_LOGGING=1
MAIL_USE_SHARED_PARAMS=0
MAIL_ON=1
MAIL_SUBJECT='HA-Lizard noSAN SYSTEM ALERT - FROM HOST: xensrva'
MAIL_FROM=root@localhost
MAIL_TO=root@localhost
MAIL_SCREEN_TIME=30
SMTP_SERVER=127.0.0.1
SMTP_PORT=25
SMTP_USER=
SMTP_PASS=
#END CONFIG FILE

/etc/tgt/targets.conf
# This is a sample config file for tgt-admin.
#
# The "#" symbol disables the processing of a line.

# Set the driver. If not specified, defaults to "iscsi".
default-driver iscsi

# Set iSNS parameters, if needed
#iSNSServerIP 192.168.111.222
#iSNSServerPort 3205
#iSNSAccessControl On
#iSNS On

# Continue if tgtadm exits with non-zero code (equivalent of
# --ignore-errors command line option)
#ignore-errors yes

#</target>
############### BEGIN HALIZARD INSERTION ###############
<target iqn.2015.com.halizard:noSAN>
<backing-store /dev/drbd1>
lun 50
</backing-store>
<backing-store /dev/drbd2>
lun 70
</backing-store>
</target>
############### END HALIZARD INSERTION ###############


grep drbd /etc/lvm/lvm.conf
filter = [ "r|/dev/sdb|", "r|/dev/drbd1|", "r|/dev/sdc|", "r|/dev/drbd2|" ]
#filter = [ "r|/dev/sdd1|" "r|/dev/sdb1|", "r|/dev/sdc1|", "r|/dev/VG_Xen.*/*|", "r|/dev/drbd.*|", "r|/dev/VGX.*|"]
#filter = [ "r|/dev/sdc|", "r|/dev/drbd.*|"]

Please Log in or Create an account to join the conversation.

cant create second iscsi SR 3 years 5 months ago #2209

  • gerry kernan
  • gerry kernan's Avatar Topic Author
  • Offline
  • Posts: 16
got sorted ,
it must have been something on the partition , i created a FS on the drbd partition and then i was able to add it as an iscsi SR

gerry

Please Log in or Create an account to join the conversation.

  • Page:
  • 1