Hello everyone,

a couple of patches for the freshly merged iSCSITarget and
iSCSILogicalUnit RAs. This is an updated version of the patch set I
submitted yesterday.

The first patch adds support for graceful "stop" operations for the
iSCSITarget RA. It now looks for active sessions/connections on the
target, and shuts them down. Many thanks to lge for the sed magic.

Also in the first patch, there is a generic do_cmd command wrapper
that captures command output and exit codes, which is particularly
helpful on IET as ietadm is notoriously terse (thanks to lmb -- I
stole the idea from your drbd OCF RA).

The second patch adds tgt support to both resource agents (including
graceful connection shutdown for iSCSITarget, again many thanks to
lge).

What's changed versus yesterday's patch set is that the "stop"
operation for iSCSILogicalUnit now loops on LU removal. tgt will not
allow an LU to be removed while it has pending I/O, so we'll have to
wait for I/O on that LU to drain before it can be deleted. This should
complete well within the 10-second stop timeout.

I also ran into an ugly bug in tgtadm where, upon iSCSITarget "stop",
connection removal may seemingly complete successfully when really it
doesn't. The only way to remove such a "dangling" connection seems to
be sending a KILL signal to tgtd and then restarting it -- TERM won't
do it. I am cc'ing Hannes Reinecke from SUSE here; maybe Hannes can
share some insight.

As always, feedback and comments are much appreciated.

Cheers,
Florian




_______________________________________________________
Linux-HA-Dev: [email protected]
http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev
Home Page: http://linux-ha.org/

Reply via email to