I have a Raspberry PI at home, running Raspian and some servers like Apache, MySQL and ssh. The Raspberry is directly connected (LAN) to the home router and to a 2TB external ext4-formatted hard drive. As there is important stuff on it (backups, pictures, documents, etc.) I rsync
the whole external drive every 2 weeks to another external drive. Everything worked fine up to now but lately the
main drive seems to have some troubles... (gets mounted ro
, fsck fixes several errors)
Because of this (and also because storage will soon run out) I'm currently looking for safer - if possible automatic - methods to have the data saved securely.
First I thought of a RAID that would save files and backups over multiple drives. Although I'm not sure how I would implement this...
Later I found glusterfs which seemed to have some advantages:
- Gluster can split up large files (AFAIK improves access speed)
- Gluster can save files on multiple volumes, and is able to manage a drive failure automatically
However I'm again not sure if my Raspberry Pi could act as a gluster master as well as a gluster slave; still running the other services as well.
I'd like to be able to "hot-swap" a broken drive and let the system recover itself, without having to care about data integrity. Safety and availability are more important than the access speed. Storage capacity should be beetween 2TB-4TB.
How many drives and what software configuration would I need to set up to have this comfort?
Thank you for any suggestions!