Open K0zka opened 5 years ago
smartmontools
Windows: wmic diskdrive get status
should theoretically do the trick
When there is an lvm VG with single PV in it, which signals SMART failure, then we can not remove the PV (one should always remain). There is no operation for completely removing the VG either. But this leads to keep having the disk failure detected as a problem.
The idea for this is that if it is the only PV in the VG and there are no virtual storage allocations on it, the problem detector should consider it fine. I will do this if tomorrow I still believe this is a good idea.
but in any case a storage failure should create an alert #51
Supressing the problem detection if there is only one failing PV in the VG does not seem to be such a good idea. But what else could one do:
For testing, some documentation here https://www.kernel.org/doc/Documentation/fault-injection/fault-injection.txt
Right now FS does not track any information about the backing block device. Therefore when the a storage device is signals future problem, kerub could evacuate the filesystem, but it does not even know it should.
check the drives periodically for predicted errors, create a problem when a drive fails