Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Linux-HA: Dev
[PATCH 0 of 2] [updated] iSCSITarget, iSCSILogicalUnit: support graceful stop, add tgt support
 

Index | Next | Previous | View Flat


florian.haas at linbit

Jun 16, 2009, 12:09 AM


Views: 430
Permalink
[PATCH 0 of 2] [updated] iSCSITarget, iSCSILogicalUnit: support graceful stop, add tgt support

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: Linux-HA-Dev[at]lists.linux-ha.org
http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev
Home Page: http://linux-ha.org/

Subject User Time
[PATCH 0 of 2] [updated] iSCSITarget, iSCSILogicalUnit: support graceful stop, add tgt support florian.haas at linbit Jun 16, 2009, 12:09 AM
    Re: [PATCH 0 of 2] [updated] iSCSITarget, iSCSILogicalUnit: support graceful stop, add tgt support dejanmm at fastmail Jun 17, 2009, 7:18 AM
        Re: [PATCH 0 of 2] [updated] iSCSITarget, iSCSILogicalUnit: support graceful stop, add tgt support florian.haas at linbit Jun 22, 2009, 11:29 AM
            Re: [PATCH 0 of 2] [updated] iSCSITarget, iSCSILogicalUnit: support graceful stop, add tgt support florian.haas at linbit Jun 22, 2009, 11:37 AM

  Index | Next | Previous | View Flat
 
 


Interested in having your list archived? Contact lists@gossamer-threads.com
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.