this post was submitted on 14 Jul 2024
54 points (96.6% liked)

Selfhosted

40041 readers
687 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 1 year ago
MODERATORS
 

I'm new to selfhosting and I find myself rarely using the server, only when I need to retrieve a document or something.

I was thinking of implementing something to make it power on, on demand, but I'm not sure if this might be harmful for the HDDs, and I'm not sure how to implment it if so.

What's your recommendation to do so? I'm running a dell optiplex 3050

you are viewing a single comment's thread
view the rest of the comments
[–] Mir@programming.dev 2 points 3 months ago (1 children)

Right now I'm turning it over night but during the day I find that I might use it one day a few times and another day not at all. Wake up on demand would be great, I'm worried about the wear from doing it like 3-4 times a day

[–] hendrik@palaver.p3x.de 1 points 3 months ago

I'm not sure if 3-4 times a day is a lot. I had computers (especially laptops) which were way more aggressive with spinning up and down the disks. Maybe you can look it up. A decent (enterprise(?)) hdd should have some datasheet available including info about how often you can powercycle or spin them up/down.

And I wouldn't wake up disks deliberately. If you don't mind the 5-10s waiting, you can just spin them down at the end of the day and leave them that way. The next day they'll either spin up on first access, or they won't. And save that one cycle. I'm not sure though if you can change the spindown timeout during the day without also waking it up. I mean you could run a script that spins them down at 22:00 and sets the timeout to 1h, and at 07:30 you run a script to keep them awake for a 6h period. But you'd need to test if changing that setting wakes them up. Or I'd rather not run a script like that. Sometimes executing hdparm spins up a disk, even if unnecessary.