this post was submitted on 11 Jan 2024
36 points (95.0% liked)

Selfhosted

39435 readers
8 users here now

A place to share alternatives to popular online services that can be self-hosted without giving up privacy or locking you into a service you don't control.

Rules:

  1. Be civil: we're here to support and learn from one another. Insults won't be tolerated. Flame wars are frowned upon.

  2. No spam posting.

  3. Posts have to be centered around self-hosting. There are other communities for discussing hardware or home computing. If it's not obvious why your post topic revolves around selfhosting, please include details to make it clear.

  4. Don't duplicate the full text of your blog or github here. Just post the link for folks to click.

  5. Submission headline should match the article title (don’t cherry-pick information from the title to fit your agenda).

  6. No trolling.

Resources:

Any issues on the community? Report it using the report flag.

Questions? DM the mods!

founded 2 years ago
MODERATORS
 

My current setup has my DHCP + DNS on my Unifi USG. However, as I have all my apps hosted on a different server (unifi, plex, home assistant, NAS, etc.) I've ran into issues trying to get things set up.

Basically, Unifi needs to know where the unifi server is, but it's assigning the IP address to it.

Should I put DHCP+DNS onto it's own system? Should I put it on my current server? And any non-Pi recommendations for systems? (I've had the PI filesystem clobber itself too many times)

Edit: I'm starting to think that the real problem is having UNIFI on the same system as the server, as it prevents me reconfiguring any of the server routing information without also disconnecting unifi...

Edit 2: I'm going to try switching the server from a static DHCP lease to a static IP. If that's doesn't work, then I think I'll move the unifi server onto it's own system. Thanks!

you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 4 points 11 months ago (3 children)

Sidnenote about the PI filesystem self-clobbering: Are you running off of an SD card? Running off an external SSD is way more reliable in my experience. Even a decent USB stick tends to be better than micro-SD in the long run, but even the cheapest external SSD blows both of them out of the water. Since I switched my PIs over to that, they've never had any disk-related issues.

[–] [email protected] 1 points 11 months ago

You can use log2ram to mitigate that.

Alternatively, you can even boot a root filesystem residing on an NFS share, but in the case of a rpi hosting the network's DNS and DHCP services, you could end up with a chicken and egg problem.

[–] [email protected] 1 points 11 months ago (1 children)

I've completely bricked two SD cards using a Pi. The USB option sounds interesting, I'll have to try it.

[–] [email protected] 2 points 11 months ago (1 children)

Grab this cable: https://www.amazon.com/gp/product/B00XLAZODE/ (make sure it's the USB 3.1 version, not the USB 3.0) then plug in any SATA device. you should be able to find a 512GB SATA SSD for less than $40.

[–] [email protected] 1 points 11 months ago

Damn this is so much simpler than the USB 2 version I have from 8 years ago...

[–] [email protected] 0 points 11 months ago (1 children)

Yeah, whoever thought that sd cards were a good idea for anything even resembling operating systems is a dum dum

[–] Still 4 points 11 months ago (1 children)

what do you mean? they're fine unless you want to read or write to them... wait a minute

[–] [email protected] 3 points 11 months ago

They're fine if the OS is read-only. Unraid loads from a USB drive, but the entire OS is copied into RAM on boot and there's barely any reads or writes after that.