HA-Yellow: Nextcloud and its own nvme: proof of concept #1370
-
Hi there, this is my journey: the goal? i want to host my cloud myself. the obstacles? my result: How to do it?
What to add inthe mentioned files?
now it should work and spare your precious emmc |
Beta Was this translation helpful? Give feedback.
Replies: 9 comments 6 replies
-
Great how-to thanks very much! I'll add a link from the readme page |
Beta Was this translation helpful? Give feedback.
-
Hi there @alexbelgium and @senna1992 thanks for sharing, as I'm looking to implement this I have a few questions: Please validate my understanding of the process:
Questions:
|
Beta Was this translation helpful? Give feedback.
-
Questions:
Notes to the Step by Step guide: |
Beta Was this translation helpful? Give feedback.
-
@senna1992 thanks a bunch. |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
do avoid confusion, here are my config files in changed form: [access them using vim inside of the container's terminal with portainer on HA] |
Beta Was this translation helpful? Give feedback.
-
@senna1992 sorry for the noob questions, I'm new to this; for the life of me I can't find the variables to update in Portainer. It's the Environment ones, right? I can't find one that doesn't look like a bad idea to edit... |
Beta Was this translation helpful? Give feedback.
-
Hello, Can I also use an external regular SSD within an USB enclosure ? |
Beta Was this translation helpful? Give feedback.
-
Yes but make sure to use uuid or another unique permanent identifier
…________________________________
From: saken2 ***@***.***>
Sent: Wednesday, February 19, 2025 8:16:41 PM
To: alexbelgium/hassio-addons ***@***.***>
Cc: senna1992 ***@***.***>; Mention ***@***.***>
Subject: Re: [alexbelgium/hassio-addons] HA-Yellow: Nextcloud and its own nvme: proof of concept (Discussion #1370)
Hi there,
this is my journey:
the goal? i want to host my cloud myself. the basics? homeassistant yellow with m.2 ssd and cm4 with emmc.
the obstacles? running nextcloud ootb it stores everything inside of the emmc - and therefore bloats the HASS backups. running HASS on the same partition as nextclouds data storage - a crash could cuase huge data loss. every upload runs through the emmc ootb, so it crashed my smarthome for about 2 days repeatedly.
my result: installed the m.2 nvme preformatted to ext4. installed nextcloud on the pi and added the ssd to the addons config under local disc. changed the temp directory used by nextcloud (using docker to access the containers console).
How to do it?
* First get a good grade ssd (i got western digital RED because they say it is rated for nas usage)
* make it ext4 and create two folders (data and temp)
* grab the /dev/name using "advanced ssh terminal" addon and command "lsblk -f"
* drink coffee
* setup nextcloud, mariadb (the nc protocol view shows what to enter as server for your mariadb)
* edit two config files (see below) within the container (/data/config/php/www2.conf and /data/config/www/nextcloud/config/config.php)
* run chown abc:abc /path/to/your/tempfolder
* run chmod u+w /path/to/your/tempfolder
* restart
* check folder size (growing) with du -h -s /path/to/your/tempfolder while uploading something using the pc/mac client.
What to add inthe mentioned files?
1. config.php: add 'tempdirectory' => '/path/to/your/tempfolder'**,**
2. www2.conf: add
* env[TMP] = /path/to/your/tempfolder
* env[TMPDIR] = /path/to/your/tempfolder
* env[TEMP] = /path/to/your/tempfolder
now it should work and spare your precious emmc
Hello, Can I also use an external regular SSD within an USB enclosure ?
—
Reply to this email directly, view it on GitHub<#1370 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/BDT5ST5COAIO3WNIXUEZQQT2QTKBTAVCNFSM6AAAAABHCM2GH6VHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTEMRVGQYDIOI>.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
Great how-to thanks very much! I'll add a link from the readme page