Expanding diskspace for apps after installation - through USB or external Harddisk

en
raspberrypi

#1

Thanks for the great work on Yunohost!

I’ve recently installed my own server on a Raspberry Pi 3 B, and installed the Nextcloud app on it among others. Now if I am going to put a lot of files on this Nextcloud, especially video’s, then the 32GB memory on the SD card in the RPi will be full pretty quickly. Therefore, I would like to later be able to expand the memory of my server.

In that case I am expecting the following to work: if I stick a USB stick of like 32Gb or 64Gb or a 2Tb hard disk into one of the USB ports of the RPi, then I will be able to story many more files on my Nextcloud.

Is the above assumption correct, and if not. Would it be possible to make this wish a reality within Yunohost?


#2

Short answer is : yes

Long answer is : yes, but that depends on what exactly you want to achieve - and you will have to tweak a few things manually.

Let’s stick with the use case of “store many many more file on Nextcloud” which is fine and relatively easy I think. There is some documentation about this here :
https://yunohost.org/#/external_storage and https://yunohost.org/#/app_nextcloud_fr (second one only in french eh).

But basically once you added and configurer the drive, you should be able to add a “Local Storage” from Nextcloud’s admin interface ? Then you’ll have an additional folder in Nextcloud, (e.g. ‘MyDrive’) and everything you put into it shall be on your drive.


#3

Hello,
If you’re using a Rasp Pi, I would recommend having only the boot partition on the SD card and everything else on a USB HDD.
SD cards are not reliable enough to store any data on the long run (i.e. a few monthes in the case of a data server).
It’s a little slower but I had too many issues with dead SD cards. Moreover these issues can be veeeeeery tricky to find.
When I first start to experiment on selfhosting with my Pi, I killed 3 SD cards in around 1,5 year (thanskfully, data was already on an external drive). I moved everything to the external HD more than a year ago and I didn’t have any issue since then.

This will work, but be aware of some restrictions on nextcloud in this case: The data will be refreshed on the Nextcloud database only if you visit the folder within the web pages. This may be an issue if you plan to use the sync client and not to connect to the Nextcloud web pages.


#4

Hi ! Would you recommend a tutorial for that ?


#5

Hello,
Sorry, no, but I think you can find some pretty easily on the net.
Also, I think I saw on this forum that the RaspPi 3 can now boot directly from an hard disk, which would be better!