<div dir="ltr"><div>Greetings,</div><div><br></div><div>I am new to xfs and am running into a problem</div><div>and would appreciate any guidance on how to proceed.</div><div><br></div><div>After an i/o error from the block device that xfs is using,</div>
<div>an umount results in a message like:</div><div>[  370.636473] XFS (sdx): Log I/O Error Detected.  Shutting down filesystem</div><div>[  370.644073] XFS (h           ���h"h          ���H#h          ���bsg): Please umount the filesystem and rectify the problem(s)</div>
<div>Note the garbage on the previous line which suggests memory corruption.</div><div>About half the time I get the garbled log message. About half the time umount hangs.</div><div><br></div><div>And then I get this kind of error and the system is unresponsive:</div>
<div>Message from syslogd@debian at Apr  4 09:27:40 ...</div><div> kernel:[  680.080022] BUG: soft lockup - CPU#2 stuck for 22s! [umount:2849]</div><div><br></div><div>The problem appears to be similar to this issue:</div>
<div><a href="http://www.spinics.net/lists/linux-xfs/msg00061.html">http://www.spinics.net/lists/linux-xfs/msg00061.html</a></div><div><br></div><div>I can reproduce the problem easily using open-iscsi to create</div><div>
the block device with an iscsi initiator.</div><div>I use lio to create an iscsi target.</div><div><br></div><div>The problem is triggered by doing an iscsi logout which causes</div><div>the block device to return i/o errors to xfs.</div>
<div>Steps to reproduce the problem are below.</div><div><br></div><div>Using VirtualBox, I can reproduce it with two processors but not one.</div><div>I first saw this on a 3.8 kernel and most recently reproduced it with 3.14+.</div>
<div><br></div><div>Thanks,</div><div>Bob</div><div><br></div><div><div>virtual box setup</div><div>-----------------</div><div>1 GB ram</div><div>8 GB disk</div><div>2 processors</div><div>Operating System: Linux</div><div>
Version: Debian (64 bit)</div><div>Bridged networking</div><div>iso: debian-7.4.0-amd64-netinst.iso</div><div>Software selection</div><div>    select SSH server</div><div>    select Standard system utilities</div><div>    deselect everything else</div>
<div>    </div><div>dhcp ip address: 172.17.5.129</div><div><br></div><div>upgrade linux to 3.14.0+</div><div>------------------------</div><div>ssh 172.17.5.129</div><div>su</div><div>cd /mnt/ksrc/linux</div><div>make modules_install</div>
<div>make install</div><div>reboot</div><div><br></div><div>install tools</div><div>-------------</div><div>ssh 172.17.5.129</div><div>su</div><div>apt-get install xfsprogs</div><div>apt-get install open-iscsi</div><div>apt-get install --no-install-recommends targetcli python-urwid</div>
<div>reboot</div><div><br></div><div>reproduce bug</div><div>-------------</div><div>ssh 172.17.5.129</div><div>su</div><div>targetcli</div><div>    cd backstores</div><div>    fileio/ create name=file_backend file_or_dev=my_disk size=100M</div>
<div>    /iscsi create</div><div>    portals/ create 172.17.5.129</div><div>    cd <</div><div>    luns/ create /backstores/fileio/file_backend</div><div>    cd <</div><div>    set attribute authentication=0 demo_mode_write_protect=0 generate_node_acls=1 cache_dynamic_acls=1</div>
<div>    exit</div><div><br></div><div>iscsiadm -m discovery -t sendtargets -p 172.17.5.129</div><div>iscsiadm -m node --login --target iqn.from_previous_iscsiadm_cmd_output</div><div>fdisk -l</div><div>mkfs -t xfs -f /dev/sdXX</div>
<div>mkdir /mnt/vola</div><div>mount -t xfs /dev/sdXX /mnt/vola</div><div>iscsiadm -m node -U all</div><div>umount /mnt/vola</div></div></div>