I'm building a non-critical local samba share out of a bunch of hard drives I have lying around.
I'm thinking of using LVM to group them into a single logical volume because LVM allows a lot of flexibility in modifying the underlying disk array
- for example, if I want to replace a physical disk; I can tell the array to move data off that disk. I can then disconnect the disk, add a new disk to the volume group and extend the filesystem to include it.
I was wondering if it was possible to automatically detect an impending drive failure (SSD and HDD) from SMART information where, if the system understands that a drive is beyond a certain health threshold, it automatically moves data off of that physical disk (using pvmove, assuming there is room on another disk/s) and ejects it from the volume group.
Obviously not viable for mission critical production systems - but in the case of a home lab - it would be helpful to avoid the loss of the data on all the drives while providing something of an alternative to parity-based redundancy systems where they are not possible (like in my case where I have a mixture of SSDs, HDDs of varying sizes)
I'd imagine this is possible but does something like this already exist?