Mailinglist Archive: opensuse-ha (4 mails)

< Previous Next >
[opensuse-ha] ERROR: This Target already exists in configFS
  • From: Per Jessen <per@xxxxxxxxxxxx>
  • Date: Wed, 28 Mar 2018 07:17:14 +0200
  • Message-id: <p9f8gq$ot3$1@saturn.local.net>
I'm trying to build a storage cluster, to begin with a test setup.
I'm using leap423, targetcli, Hawk, I have a drbd device with LVM on top.

When I try to start iSCSITarget:

2018-03-27T18:03:59+02:00 office31 iSCSITarget(t31)[15134]: INFO: Parameter
auto_add_default_portal is now 'false'.
2018-03-27T18:04:00+02:00 office31 iSCSITarget(t31)[15145]: INFO: Created
target iqn.2018-01.net.hostsuisse:server000816. Created TPG 1.
2018-03-27T18:04:00+02:00 office31 iSCSITarget(t31)[15156]: ERROR: This Target
already exists in configFS
2018-03-27T18:04:02+02:00 office31 iSCSITarget(t31)[15223]: INFO: Deleted
Target iqn.2018-01.net.hostsuisse:server000816.

The error is from rtslib, but it looks like the target creation
is being attempted twice??

t31 is a member of a group 'klop99' which contains:

lvm start
iscsitarget
iscsilogicalunit

I believe the problem is in:

/usr/lib/ocf/resource.d/heartbeat/iSCSITarget

Patch attached.


--
Per Jessen, Zürich (7.2°C)
http://www.cloudsuisse.com/ - your owncloud, hosted in Switzerland.

--- a/iSCSITarget 2017-05-17 23:07:09.000000000 +0200
+++ b/iSCSITarget 2018-03-27 21:56:41.064935364 +0200
@@ -346,7 +346,7 @@
IFS=':' read -a sep_portal <<< "$portal"
ocf_run targetcli
/iscsi/${OCF_RESKEY_iqn}/tpg1/portals create "${sep_portal[0]}"
"${sep_portal[1]}" || exit $OCF_ERR_GENERIC
else
- ocf_run targetcli /iscsi create
${OCF_RESKEY_iqn} || exit $OCF_ERR_GENERIC
+ ocf_run targetcli
/iscsi/${OCF_RESKEY_iqn}/tpg1/portals create || exit $OCF_ERR_GENERIC
fi
done
# in lio, we can set target parameters by manipulating

< Previous Next >
List Navigation