Work Out Long-Term Data Storage Solution for Nextcloud #73
Loading…
x
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
As we encountered permissions-related issues moving Nextcloud data to a SMB share (described in #72), we need to work out a long-term solution for storing expanding Nextcloud data.
A. Determine how to meet Nextcloud's permissions requirements for a shared volume.
B. Build out a more resilient and expandable storage solution for Nextcloud on the server itself.
The former is preferred.
assigned to @Jafner
First thing we're going to try is stripping the ACL from the dataset on the TrueNAS side.
Although, the docs don't seem to mention it.
Took the following steps:
sudo umount /mnt/nas/DockerData
sudo mount /mnt/nas/DockerData
sudo chmod 0770 /mnt/nas/DockerData/nextcloud/data/
stat /mnt/nas/DockerData/nextcloud/data/
. Which returned the following:Apparently it is possible to disable the Nextcloud permissions check by adding
'check_data_directory_permissions' => false,
to nextcloud's config file (at$DOCKER_DATA/config/www/nextcloud/config/config.php
). We'll keep this in mind if we can't figure out how to mutate permissions.Yeah, we're just gonna do that. Our data does not exist in a multi-tennant environment.
Alright, I'm having more trouble than I expected getting the ACL set back up.
Encountered:
The solution was to recursively apply a 775 ACL to the dataset in TrueNAS.
mentioned in commit
0795e52712
mentioned in issue #67
Going forward, I think the proper solution is to provision a large enough local storage volume for current estimated user needs, then set up a regular job to rsync that directory
/mnt/md0/nextcloud/data
over to a backup location on the NAS.Gonna do some quick maffs on the value prop of buying storage just to replace Google Drive.
I paid $265 for a 4TB SSD. Google "One Storage" does not offer a plan greater than 2TB, so we'll simply double that number: $20/mo. ($5/mo./TB). The break even point would be 13.25 months. Before that point, it is cheaper to use cloud storage.
We've added a 4TB SSD at
/mnt/data
for use with Nextcloud. Until we need to increase capacity, the plan is:With that, we can close this issue.
mentioned in issue #74