linux-btrfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Monitoring for disk failures
@ 2014-01-27 11:43 Alin Dobre
  2014-01-27 13:10 ` Duncan
  2014-01-28  9:03 ` Anand Jain
  0 siblings, 2 replies; 4+ messages in thread
From: Alin Dobre @ 2014-01-27 11:43 UTC (permalink / raw)
  To: linux-btrfs

Hi all!

I am trying to create a very simple script that would alert in case of
disk failures from a RAID Btrfs.

Digging into the code, I have noticed that the "btrfs fi sh" command
should display a warning if there is a missing disk. However, testing in
a Qemu, I used "drive_del" via QMP to remove a "live" SCSI drive,
already mounted as part of a RAID10 array, the "fi sh" command still
gave no indication that the drive is missing. Then, I tried removing a
scsi disk from the host via "echo 1 >/sys/block/sdX/device/delete" to
actually make the kernel SCSI host forget about it, and "fi sh" still
doesn't show anything.

I have tested using btrfs-progs v3.12 and kernel 3.13.0.

Do you guys know what's wrong with the setup explained above or do you
have any indication on how to detect if there is a failing disk, part of
a Btrfs RAID?

Cheers,
Alin.

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

end of thread, other threads:[~2014-01-28  9:05 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-01-27 11:43 Monitoring for disk failures Alin Dobre
2014-01-27 13:10 ` Duncan
2014-01-28  9:15   ` Anand Jain
2014-01-28  9:03 ` Anand Jain

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).