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$>
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 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

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

I believe the problem is in:


Patch attached.

Per Jessen, Zürich (7.2°C) - 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
- ocf_run targetcli /iscsi create
+ ocf_run targetcli
/iscsi/${OCF_RESKEY_iqn}/tpg1/portals create || exit $OCF_ERR_GENERIC
# in lio, we can set target parameters by manipulating

< Previous Next >
List Navigation