Add line to nextcloud .user.ini file: upload_tmp_dir = /mnt/my8TBeZ/nextcloud/data/tmp
Add line to config.php: 'tempdirectory' => '/mnt/my8TBeZ/nextcloud/data/tmp'
Trigger a transfer and monitor disk usage
Expected behaviour
The SD card (RPi) should be left alone!
Actual behaviour
There are continuous ~100 MB writes/deletes to the SD during any transfer.
Server configuration
Operating system:
RPi Raspbian Web server:
Apache Database:
MySQL PHP version:
7.3 Nextcloud version: (see Nextcloud admin page)
18.0.1.3 Updated from an older Nextcloud/ownCloud or fresh install:
Fresh install Where did you install Nextcloud from:
Nextcloud servers
Then added a line to my fstab file for automatic mounting.
I can read and write just fine to this drive, NC has no issues putting data on it. The issue is this hand-off behavior from the SD to the external HDD.
Edit:
Here is my fstab file. The last line is commented out, it was an attempt to fix the issue:
proc /proc proc defaults 0 0
PARTUUID=5e3da3da-01 /boot vfat defaults 0 2
PARTUUID=5e3da3da-02 / ext4 defaults,noatime 0 1
# a swapfile is not a swap partition, no line here
# use dphys-swapfile swap[on|off] for that
UUID=EA6AExxxxxx1 /mnt/my8TBeZ ntfs-3g auto,users,permissions 0 0
#/dev/sda1 /mnt/my8TBeZ ntfs defaults,uid=1000,grid=1000 umask=007 0 1
In my reading ntfs-3g is the solution to this issue.
And again, I am writing and reading from the drive just fine. All of the files end up on the drive in the end, but during the transfer the SD card is being used way too much. Surely if there was a permission issue with the drive I’d see behavior worse than this?