Hello. I have a snap Nextcloud setup, Nextcloud Hub II (23.0.3), Ubuntu 20.04.4.
It’s a simple test-ish local server I’m trying to run “on” my RAID0 out of a few flash drives.
To make it work this way, I created a nextcloud directory on the drive:
sudo mkdir /media/KINGSTON-RAID0/nextcloud
Then copied the data folder to this location:
sudo cp -a /var/snap/nextcloud/common/nextcloud/data/. /media/KINGSTON-RAID0/nextcloud/data
The config file I edited this way:
sudo nano /var/snap/nextcloud/30261/nextcloud/config/config.php
'datadirectory' => '/media/KINGSTON-RAID0/nextcloud/data',
Then I set the permissions and rebooted the system.
It works, but the uploading speed onto the server is too slow, around 2.4 MB/s. It feels like it gets loaded into the system drive first (the system runs on a slow sd card), then gets moved to the actual data location. To my observation, after the uploading is done, for a short period of time (the first 10 seconds or so) I see a .part file in the place where it should be, and only after a period of time it gets changed to the actual .png file.
sudo ls /media/KINGSTON-RAID0/nextcloud/data/xxx/files xxx.png.ocTransferId649570536.part
After some time:
sudo ls /media/KINGSTON-RAID0/nextcloud/data/xxx/files xxx.png
When I connect the same place as a local external drive through the Nextcloud plugin:
I get the full speed of around 10MB/s, which is the capabilities of the Ethernet port of my server.
How to make Nextcloud work the way I want it to?