On Tuesday 02 Feb 2010 21:26:19 Ferenc Wagner wrote:
> > But that will not help trigger a real restart where say, you discovered
> > more  targets and removed the old ones, if you don't do a stoptargets,
> > you won't be able to logout of those targets.
> 
> I think it's the other way around: if you DO stoptargets, then you won't
> be able to log out of the targets.  But that probably doesn't matter much.
> 
> In my opinion, the open-iscsi init scripts and general behaviour should
> be more modelled after that of multipath-tools(-boot), even "around"
> that, as iscsi devices can be multipathed (multipath maintainer Cc-d).
> /usr/share/initramfs-tools/scripts/local-top/multipath already requires
> iscsi, so the scene is set. :)  Basically start iscsi before multipath,
> and stop it after multipath.  Btw. "starting" multipath in the initramfs
> doesn't entail starting multipathd, which is similar in purpose to
> iscsid.  Similarly, stopping multipath means stopping multipathd, not
> flushing the in-kernel mappings of the devices.  iSCSI should behave
> much the same, although it's complicated by the login/logout issue,
> which could be optionally supported by the open-iscsi init script via
> separate verbs for the convenience of the sysadmin.  Or it could be left
> out and relegated to iscsiadm for the sake of simplicity.
> 
> In short: I'd still say that /etc/init.d/open-iscsi stop should not
> execute stoptargets.  It could still support the stoptargets verb, but
> it would be nice to stop unused targets only.  However, I don't know how
> one could do that.
> 

I totally agree. stoptargets (logout of iscsi sessions) is not really 
required. And if we *really* need to have that, we first need to ensure that 
all iscsi devices are unmounted. SLES does something similar (but still 
buggy).

I will check is open-iscsi has the equivalent of `multipath -F`

On similar topic, I want to bring the following bug to your attention. This 
involves both iscsi and multipath.

https://bugzilla.redhat.com/show_bug.cgi?id=456228

Regards,
Ritesh
-- 
Ritesh Raj Sarraf
RESEARCHUT - http://www.researchut.com
"Necessity is the mother of invention."

Attachment: signature.asc
Description: This is a digitally signed message part.

Reply via email to