[Bug 219556] iSCSI subsystem blindly announces non-existing file (was: emulators/virtualbox-ose: VBoxSVC consumes 100% CPU and does not exit)

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Wed May 31 17:54:03 UTC 2017


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=219556

--- Comment #6 from Martin Birgmeier <la5lbtyi at aon.at> ---
This indeed works, I do not even need to rescan the bus on the client. The
following message is logged when trying "dd if=/dev/da0 of=/dev/null bs=1m
count=1" on the client after making the target available:

May 31 19:43:46 mizar kernel: (da0:iscsi1:0:0:0): Capacity data has changed

However, I then proceeded to remove the target from the configuration. On the
client this leads to the message

May 31 17:44:41 mizar iscsid[4380]: hal.xyzzy (iqn.1995-06.xyzzy.hal:disk1):
target returned error: Not found
May 31 19:44:41 mizar kernel: WARNING: hal.xyzzy (iqn.1995-06.xyzzy.hal:disk1):
connection error; reconnecting
May 31 19:44:41 mizar iscsid[4220]: child process 4380 terminated with exit
status 1

But device da0 on the client still exists. If I now do dd if=/dev/da0
of=/dev/null bs=1m count=1" on the client again, I get a non-interruptible hang
until I make the target available again, and even then the hang only terminates
after a timeout of 60 seconds:

May 31 19:45:42 mizar iscsid[4387]: hal.xyzzy (iqn.1995-06.xyzzy.hal:disk1):
target returned error: Not found
May 31 19:45:42 mizar kernel: WARNING: hal.xyzzy (iqn.1995-06.xyzzy.hal:disk1):
login timed out after 61 seconds; reconnecting
May 31 19:45:42 mizar iscsid[4220]: child process 4387 terminated with exit
status 1
May 31 19:46:43 mizar kernel: WARNING: hal.xyzzy (iqn.1995-06.xyzzy.hal:disk1):
login timed out after 61 seconds; reconnecting

The dd then succeeds.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-emulation mailing list