when using the iSCSITarget RA, I always seem to get a target portal
of [::0]:3260. If I manually remove and add with targetcli, it
works fine - with the RA, the syslog says I got the right thing, but ...
With iSCSITarget: (from /var/log/messages)
iSCSITarget(t31)[27728]: INFO: Parameter auto_add_default_portal is now 'false'.
iSCSITarget(t31)[27767]: INFO: Created target iqn.2018-01.net.hostsuisse:server000816. Created TPG 1.
iSCSITarget(t31)[27779]: INFO: Using default IP port 3260 Binding to INADDR_ANY (0.0.0.0) Created network portal 0.0.0.0:3260.
Sounds good, but:
# targetcli ls
o- / ..................................................................................................... [...]
o- backstores .......................................................................................... [...]
| o- block .............................................................................. [Storage Objects: 1]
| | o- z32 .............................................. [/dev/Grp1/numberone (10.0GiB) write-thru activated]
| o- fileio ............................................................................. [Storage Objects: 0]
| o- pscsi .............................................................................. [Storage Objects: 0]
| o- ramdisk ............................................................................ [Storage Objects: 0]
o- iscsi ........................................................................................ [Targets: 1]
| o- iqn.2018-01.net.hostsuisse:server000816 ....................................................... [TPGs: 1]
| o- tpg1 .............................................................................. [gen-acls, no-auth]
| o- acls ...................................................................................... [ACLs: 0]
| o- luns ...................................................................................... [LUNs: 1]
| | o- lun1 ............................................................ [block/z32 (/dev/Grp1/numberone)]
| o- portals ................................................................................ [Portals: 1]
| o- [::0]:3260 ................................................................................... [OK]
I really don't see anything in the RA script that would cause this.
Can anyone suggest where to look?
--
Per Jessen, Zürich (9.8°C)
http://www.hostsuisse.com/ - dedicated server rental in Switzerland.
--
To unsubscribe, e-mail: opensuse-ha+unsubscribe(a)opensuse.org
To contact the owner, e-mail: opensuse-ha+owner(a)opensuse.org
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.