All of lore.kernel.org
 help / color / mirror / Atom feed
* btrfs fail behavior when a device vanishes
@ 2015-12-31 20:11 Chris Murphy
  2015-12-31 20:17 ` Chris Murphy
                   ` (2 more replies)
  0 siblings, 3 replies; 10+ messages in thread
From: Chris Murphy @ 2015-12-31 20:11 UTC (permalink / raw)
  To: Btrfs BTRFS

This is a torture test, no data is at risk.

Two devices, btrfs raid1 with some stuff on them.
Copy from that array, elsewhere.
During copy, yank the active device.

dmesg shows many of these:

[ 7179.373245] BTRFS error (device sdc1): bdev /dev/sdc1 errs: wr
652123, rd 697237, flush 0, corrupt 0, gen 0

Why are the write errors nearly as high as the read errors, when there
is only a copy from this device happening?

Is Btrfs trying to write the read error count (for dev stats) of sdc1
onto sdc1, and that causes a write error?

Also, is there a command to make a block device go away? At least in
gnome shell when I eject a USB stick, it isn't just umounted, it no
longer appears with lsblk or blkid, so I'm wondering if there's a way
to vanish a misbehaving device so that Btrfs isn't bogged down with a
flood of retries.

In case anyone is curious, the entire dmesg from device insertion,
formatting, mounting, copying to then from, and device yanking is here
(should be permanent):
http://pastebin.com/raw/Wfe1pY4N

And the copy did successfully complete anyway, and the resulting files
have the same hashes as their originals. So, yay, despite the noisy
messages.


-- 
Chris Murphy

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2016-01-11  9:46 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-12-31 20:11 btrfs fail behavior when a device vanishes Chris Murphy
2015-12-31 20:17 ` Chris Murphy
2015-12-31 20:24 ` Hugo Mills
2015-12-31 20:43   ` Chris Murphy
2015-12-31 21:23 ` ronnie sahlberg
2016-01-01  1:09   ` ronnie sahlberg
2016-01-01  1:27     ` Chris Murphy
2016-01-01  1:37       ` ronnie sahlberg
2016-01-01  1:45       ` ronnie sahlberg
2016-01-11  9:46       ` Anand Jain

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.