-----BEGIN PGP SIGNED MESSAGE-----
On 5/2/14, 11:44 AM, Martin Papik wrote:
>> so something, somewhere thinks it's mounted. Check /proc/mounts?
> There was nothing in /proc/mounts, nor was there any visible reference
> in /proc. If there was, the first thing I would have done is to make
> sure no process is using the FS. But I only did it later based on a hunch.
BTW sorry for replying twice, my mailer was being weird and the first
one didn't seem to send.
>>> Please let me know what I can do short of zeroing the log, which
>>> I believe would result in some data loss.
>> Hate to say it, but a reboot may be simplest. Zeroing the log
>> won't help. OTOH, if you lost USB connectivity, you already lost
>> some data.
> Please explain why losing USB connectivity means I've lost data. Is a
> SATA/SCSI/NBD disconnect less likely to lose data?
If the device goes away and does not come back, any pending buffered data
to that device will be lost. That's true of any filesystem, on any type
i.e. these IOs have nowhere to go:
> [346220.652432] Buffer I/O error on device sdb104, logical block
and if they can't ever hit the disk, they'll be lost.
In the USB case when it comes back with a new name, as far as I know
there is no mechanism to handle that anywhere in the kernel.
> Is XFS is not stable enough to function without a need to reboot in
> case of a relatively minor HW failure? Minor meaning affecting only
> some disks.
It's not a question of XFS stability, IMHO. XFS was talking to device A;
device A went away and never came back.
The issue of being unable to repair it seems to have been a result of files
still open on the (disappeared) device? Once you resolved that, all was
well, and no reboot was needed, correct?
I suggested the reboot as a big-hammer fix to clear the mysterious stale
mount; turns out that was not required, apparently.
If ustat(device) was reporting that it's mounted, but /proc/partitions
didn't show it, then the device was in some kind of limbo state, I guess,
and that sort of umount handling is below XFS (or any other filesystem),
as far as I know.
What initiated the unmount, was it you (after the USB disconnect) or some
-----BEGIN PGP SIGNATURE-----
Version: GnuPG/MacGPG2 v2.0.17 (Darwin)
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/
-----END PGP SIGNATURE-----