this post was submitted on 24 Aug 2025
1 points (100.0% liked)

Self-hosting

4412 readers
5 users here now

Hosting your own services. Preferably at home and on low-power or shared hardware.

Also check out:

founded 4 years ago
MODERATORS
1
Where to begin? (sh.itjust.works)
submitted 9 months ago* (last edited 9 months ago) by MrScottyTay@sh.itjust.works to c/selfhosting@slrpnk.net
 

Hi, so I've ended up bagging myself a big supermicro server. I'm wanting to try out a little bit of everything with it, but one thing I really want is to be able to have services that haven't been used for a bit to stop or sleep. And then to wake up again or start up on request, rather than me having manually stop and start services. Is that a thing?

I know of portainer and whatnot, but I'm wondering if anyone has any advice on this.

I'm planning on putting debian on it i think (unless someone can convince something else is better suited - i usually use arch on my personal devices btw ๐Ÿ˜œ)

Also i know some basics on raid but I've only ever messed with raid0 with usb drives on a pi. I have 8 bays but 2 are currently vacant. What is the process of just adding an extra drive to a raid, or replacing one that already exists?

top 7 comments
sorted by: hot top controversial new old
[โ€“] tofu@lemmy.nocturnal.garden 0 points 9 months ago (1 children)

If you want to have VMs as well, Proxmox is the to-go thing in selfhosting. Maybe your supermicro even has two network interfaces and can have a virtualized firewall or the like.

Not quite sure about your services go sleep thing. Ideally, services won't use much CPU while idling, but certainly RAM. You can probably build something like you described, but it's mostly not "a thing" afaik.

[โ€“] MrScottyTay@sh.itjust.works 0 points 9 months ago (1 children)

Ah so i might be thinking leaving a service running is worse than it actually is then?

The motherboard has two networks ports and a card with another two. There's also some fibre ports but i imagine I'll never end up using them haha.

I don't actually really know much about firewalls at all yet though

[โ€“] eutampieri@feddit.it 0 points 9 months ago

For the firewall you can try OPNsense or OpenWrt

[โ€“] greengnu@slrpnk.net 0 points 9 months ago

You write up a procedure for the setup of your server and any virtual machines contained within.

Using declarative Distros makes the procedure shorter and easier to maintain in the long run.

Then you use it to setup your system (fixing issues in your procedure along the way)

Then wipe and do it again (this time should be done without issue or you may need another spin)

Then slowly grow your documentation and what services you have running.

[โ€“] solariplex@slrpnk.net 0 points 9 months ago

Jerboa crashed mid-comment so i'll be brief.

Save yourself pain and increase your happiness by

  • using btrfs or zfs (snapshots, checksum and self-healing is great)
  • using declarative approach rather than imperative, and keep a copy of configs elsewhere (I accidentally nuked my system multiple times, you should expect to do the same)
  • keeping backups. If zfs, https://github.com/jimsalterjrs/sanoid and syncoid are great https://discourse.practicalzfs.com/t/setting-up-syncoid-for-offsite-backup/1611
  • have an extra tiny machine running the same system and workloads, where you test potentially risky stuff before doing so on the prod server
  • metrics solutions like prometheus and grafana are your friend
[โ€“] Chewie@slrpnk.net 0 points 9 months ago

Also i know some basics on raid but Iโ€™ve only ever messed with raid0 with usb drives on a pi. I have 8 bays but 2 are currently vacant. What is the process of just adding an extra drive to a raid, or replacing one that already exists?

It depends on your RAID controller (or software RAID). I use hardware RAID (on Dell and HP servers) as it's easy and a known technology, although these days people seem to be anti-HW RAID a bit.

When replacing a drive, you just eject the old drive, wait a few seconds put the new drive in, and most HW RAID controllers will start automatically rebuilding the array. Make sure your controller and drive bays support "hot swap" first! With HW RAID, replacing drives is great, because you can increase the capacity over time, because you can replace each drive with a bigger model, and once the last drive has been swapped over, you can expand the array and start using the extra capacity without having to move data around. With HW raid, most servers have an "Out-Of-Band" system (iLO, iDRAC, IPMI) which you can configure to alert you if a drive has died (or is about to die).

I would recommend keeping at least 1 spare of the same model HD of whatever you use, just in case.

I got burned by having a WD drive fail, and WD were being assholes about sending me a replacement (it was under warranty). Before I got the replacement, another drive started dying, and I couldn't afford to buy another drive. In the end I lost 12TB of data ๐Ÿ˜ญ

And re the above - "RAID is not a backup" :) plan accordingly....

For software RAID, most Linux OSes support it automatically. I only use it as it's easy to expand partitions (most of my Linux machines are VMs on a system with HW RAID).

This might be a useful article https://www.howtogeek.com/40702/how-to-manage-and-use-lvm-logical-volume-management-in-ubuntu/ (with a link to a previous one which is an introduction), which explains a bit about SW RAID.

[โ€“] ThorrJo@lemmy.sdf.org 0 points 9 months ago

inetd, xinetd et al were how this was done back in the day.

many services use very little energy when they are not actively being used. that's definitely not true across the board though.

I echo the suggestion of Proxmox.