[Stgt-devel] [Scst-devel] Integration of SCST in the mainstream Linux kernel

Tomasz Chmielewski mangoo
Wed Feb 6 07:58:57 CET 2008

FUJITA Tomonori schrieb:


>> Anyway - if tgtd can be only killed with KILL signal - isn't it risky to 
>> do so? For example, something may be still cached, not full transferred? 
>> Will SCSI stack take care of it properly?
> No risk. It's just like power failure. The file system on the
> initiator machine just sees the I/O failure. It will not break your
> file system. With ext3, if power failure happens during a transaction,
> it just aborts the transaction.

Well, if the initiator sees any failure, it is a risk.
I have a target machine which used to freeze about once a week when I 
used IET. No kernel logs, no oops, no panic - just a freeze.

Whenever that happened, I used to just restart that frozen target 
machine, and initiators resumed their work without any failure (and 
filesystems didn't even know SCSI layer had problems with reading and 
writing for the whole night). With write cache enabled this could be 
different of course.

Curiously, this machine doesn't freeze when I use SCST or STGT.

So it's good to know a clean tgtd shutdown is somewhere on a TO DO list.

>>> You want to reboot a server running target devices while initiators
>>> connect to it. Rebooting the target server behind the initiators
>>> seldom works. System adminstorators in my workplace reboot storage
>>> devices once a year and tell us to shut down the initiator machines
>>> that use them before that.
>> Technically, it should always work (assuming the timeout on the 
>> initiators is bigger than time the target server reboot takes).
>> By default, for open-iscsi, timeout is 120 seconds, but in practice 
>> there is no problem in increasing it to even many days.
> Well, what happens if people try to shut down the initiator box while
> the target server is down?

The same should happen as if the initiator is running normally - tasks 
which want to read or write to disk will be in a uninterruptible sleep 
until the initiator can connect again (and continue the shutdown process).

> It might work only in an environment which you control everything.

True, but I guess that's the most of usage scenarios for iSCSI?
iSCSI target is not a web server in anonymous internet, where anyone can 

Tomasz Chmielewski

More information about the stgt mailing list