I have installed NextCloud from snap onto my Ubuntu server that has a 256GB SSD and 5 X 4TB HDs in a ZFS raidz1 array. Of course, snap setup everything on the SSD. But, I thought it would be a good idea to move the data directory to the ZFS array to take advantage of the redundancy and data-scrubbing of ZFS. This did not go well. But before I ask the community why it didn’t work, I will ask the community if it was a good idea in the first place. If I do decide it is a good idea, I will start another thread to discuss what I did wrong.
If I understand NextCloud correctly, and I’m not sure I do, it comes in three parts:
User Files - I absolutely want this on ZFS for the redundancy and it wouldn’t all fit on the SSD anyway.
App Data - I can download this from the internet again, so I don’t care about redundancy and it won’t amount to much storage. The SSD is fine for this.
database/data directory - This is what I’m not sure about. If the database is lost to data corruption or drive failure what have I lost? It sounds like there is a rescan command to reindex all the user files in the database. But do I lose history, versioning or sharing rules with other users?
I do backups from this server, but I consider ZFS an important first line of data integrity. How do the experienced administrators treat their NextCloud databases?