Mailinglist Archive: opensuse-ha (4 mails)

< Previous Next >
Re: [opensuse-ha] ERROR: This Target already exists in configFS
  • From: Kristoffer Grönlund <kgronlund@xxxxxxxx>
  • Date: Wed, 28 Mar 2018 08:34:08 +0200
  • Message-id: <>
Per Jessen <per@xxxxxxxxxxxx> writes:

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.

Hi Per,

This looks like a possible bug indeed. Would you mind filing a pull
request upstream [1] with your patch? That would be the best place to
get the patch evaluated.



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

// Kristoffer Grönlund
// kgronlund@xxxxxxxx
To unsubscribe, e-mail: opensuse-ha+unsubscribe@xxxxxxxxxxxx
To contact the owner, e-mail: opensuse-ha+owner@xxxxxxxxxxxx

< Previous Next >
List Navigation
Follow Ups