âP.S.â Part is only possibility to move data between the HDDs without even unmount it. E.g. when older disk dies and you can still move data to the new one.
Regarding ZFS, I belive you need to cleanup your /etc/fstab and live only needed parts, e.g. boot and with LVM.
But i donât know what do do here, as far as i know the nextcloudâvg-root and swap are necessary. And i am not seeing and ZFS references.
I have started my sql en apache and i got the error âmake sure .ocdata is present in main directoryâ.
So i compared with my production NC, and the user data is not in the /mnt/ncdata directory on my test nextcloud. The files are in the /mnt/ncdata/ncdata.
So somewhere down the line i made a mistake. So i need to move the files from /mnt/ncdata/ncdata to /mnt/ncdata. i moved the files with this command:
So that would mean the file didnât move when i moved all the files (from /mnt/ncdata/ncdata to /mnt/ncdata). But when i âlsâ in the folder /mnt/ncdata/ncdata it doesnât show any files. Isnât that weird?
So i used âmv -v /mnt/ncdata/ncdata/.ocdata /mnt/ncdataâ . Now when i search for the .ocdata file, it shows me that the file is located in /mnt/ncdata. So that should be ok now.
When i try to open the nextcloud by browser, it only says now that the data directory is not writeable. So we went from 2 to 1 error
So you can set the premisson like âgrouchysysadminâ written.
chmod 0750 /mnt/ncdata/ â ( 7|5|0 mean => user: rwx | group: rx | other: - )
w = write / r=read / x=execute / - = no premissions
In your case: chmod 0750 /mnt/ncdata/
maybe you have to set the same premission to every subdirectory.
find /mnt/ncdata/ -type d -print0 | xargs -0 chmod 0750
And every file in the data folder
find /mnt/ncdata/ -type f -print0 | xargs -0 chmod 0640
â exept: .htaccess
chown root:www-data .htaccess
chmod 0644 .htaccess
Are you sure i should use âsudo chmod -Rf 777 /mnt/dataâ?
I did
chown -R www-data:www-data /mnt/ncdata
chmod -R 750 /mnt/ncdata
And it looks like itâs working. I can login, create folders and upload files
My next problem was that updating is was not working. I fixed that with:
chown -R www-data:www-data /var/www/nextcloud
My only problem now is that settings tell me âthere are errors in your setupâ (translated from Dutch). But it doesnât tell me what kind of errors.
I think i found the error, when i do sudo -u www-data php occ files:scan --all
It tells me that Home storage of user BLABLA is not writeable
I tried chmod 750 /mnt/ncdata and chmod 770 /mnt/ncdata, 750/770 doesnât solve the problem.
I donât know if itâs useful in your case, but try this when you are in your nextcloud server directorie :
sudo -u www-data php occ maintenance:repair