I've been told that I can only verify my HW RAID array is working perfectly with KVM. However, I want to be automatically notified when there is a problem by my server.
Is there a way via SSH (that will be called via system() in php) that can detect that a drive is having problems? I don't need to identify which drive.
I have thought of one theory but I don't know if it will work in practice. If I were to run a PHP script to fopen('/dev/[filesystem]', 'r') and seeked every xGB for 1 byte and it seeks a position of the filesystem that's having problems, it should return an error. Am I correct in thinking this idea?
I use XFS filesystem, I have heard of xfs_check but that says it needs to be ran in read-only mode which is inconvenient.
I use 3ware RAID controller.