Power Management - Auto Power Off and On

I think that is lacking I find with rockstor is a simple and built in power management. I know I can set up cron from terminal, but normal user, this maybe trivial.

I as a non 24x7 user, would like to have the ability to power off my server at 11pm when everybody in the house is sleeping and to power back on automatically in the morning at 8am.

What do you think?

So far I am liking rockstor, I am trialling both rockstor and unraid, previously coming from OMV :slight_smile:

This has been discussed before, and I have personnaly requested the same feature.

But as Rockstor is supposed to run in many different setups it would be hard to implement.

Its easy enough to make the system shut down at specific times, but the powerup would have to be implemented by the computer itself, e.g. by the system BIOS.Either via the user himself entering a startup time, or controllable from software (I know some Dell computers support this)

My system for one, does not have any settings for automatic startup at set times. And no way to control it from software. So such a feature would turn my computer off, and I would have to turn it on myself.

@KarstenV true, i can always set via BIOS to turn the computer automatically (good idea)

I have homeassistant that I can set up to execute shell script to power off and power on via WOL.

1 Like

Rockstor advanced scheduled task is an open issue on Github :slight_smile:

Notes about this:
my idea is to have it with some default available tasks (turno off, reboot, etc) + a complete user custom tasks handler

Note about shutdown: shutdown on an ext4 fs, all fine - shutdown on a btrfs fs while some scheduled tasks performing snapshots or scrubs…well, we want to avoid this (someone could say “hey man, users schedule tasks so they have to care not to shutdown when tasks running” - not our idea, we must try to prevent user oversights)

Meanwhile, something you can play with :wink:
https://www.mythtv.org/wiki/ACPI_Wakeup

ah ok, so generally it is not a good idea with brtfs,
alright, hopefully something can be worked out, meanwhile I will try a workaround :slight_smile:

Hi @kwetiaw, well, we can do it, but with care :slight_smile: (ex. avoid corrupting fs)

Mirko

@kwetiaw @KarstenV @Flyer Linking also to:

Which has a reference to setting the bios rtc to wake a system (if the bios supports this of course).

This issue in turn links to:

And I think Mr @Flyer has already laid some ground work on this stuff.

@Flyer I don’t see a problem with a clean shutdown of btrfs, balances will resume on next boot and I think scrubs just get cancelled. And given snapshots are essentially instantaneous they will be completed as part of a regular fs shutdown, if requested in time of course . But replacing a drive should be a blocker action, at least on our part I think; but an extreme example. But we don’t yet have this in the UI anyway. Or were you thinking of side effects within our UI ie not robustly ‘tracking’ scrub or balance jobs? Nice link to the ACPI stuff there, I’ve popped it in to the latter referenced issue above. Apologies if I’m reading thing incorrectly here.

1 Like

@phillxnet you’re right about that and probably last forum post turned on an unnecessary “paranoia mode” making me an anxious btrfs mommy :laughing:

Shame on me, my git repo has a sleeping custom jobs branch, hope to work on this soon!

Mirko