Power Management on a linux server
dear all,
I have a home linux server where I would like to do some kind of power
saving.
I have been looking around to see if I find any howto, but all are
related with laptops.
What I would like to do is to power up and shutdown the PCs either
remotely or
automatically (with cron) or whatever.
I have different kinds of computers: Pentium Celeron, Pentium II for
software routers (xDSL) and
Pentium III and AMD K-7 for two servers.
If it is not easy to do some kind of software suspend/shutdowns or
resumes/powerups, It could be
cheap to do some kind of hardware tweak?
BTW, I have a small UPS, I have tested that sends the shutdown to the
linux server, but what I would like
to achieve is to for instance to powerup the server at 9 AM and shut it down at for instance 9 PM.
Also I would like to know if there is any software to control the
temperature of the CPU or the fans of the box
in the command prompt.
Many thanks in advance
Miguel
Quoted 7 lines · Miguel González Castaños
dear all,
BTW, I have a small UPS, I have tested that sends the shutdown to the
linux server, but what I would like
to achieve is to for instance to powerup the server at 9 AM and shut it down at for instance 9 PM.
Easy enough with UPS control: put a timer on your AC power (you can get cheep ones at most hardware stores). Make sure you set the BIOS to start the PC when power resumes.
-
To unsubscribe from this list: send the line "unsubscribe linux-admin" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
And for the PCs where I dont have an UPS? Is there any other choice?
Many thanks for your answer
Miguel
Scott Taylor ha escrito:
Quoted 9 lines
Quoted 7 lines · Miguel González Castaños
dear all,
BTW, I have a small UPS, I have tested that sends the shutdown to the
linux server, but what I would like
to achieve is to for instance to powerup the server at 9 AM and shut it down at for instance 9 PM.
Quoted 8 lines
Easy enough with UPS control: put a timer on your AC power (you can get cheep ones at most hardware stores). Make sure you set the BIOS to start the PC when power resumes.
-
To unsubscribe from this list: send the line "unsubscribe linux-admin" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
-
To unsubscribe from this list: send the line "unsubscribe linux-admin" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Well,
That could get interesting.
A hardware solution could be cobbled together by a power timer set to turn on at the specified time (with the bios set to turn on on power), and set to turn off some period of time after a cron shutdown. Kinda cheezy though...
Obviously, turning the machine off is not a big deal, it's turning it back on...
You could always explore the wonderful (dripping sarcasm) world of Wake On Lan, assuming your hardware supports it. But WOL is voodoo magic (literally...anything that requires you to send out a "magic" packet is a little shaddy)
Signature · 1 line
Mikel Bauer
Quoted 29 lines · Miguel González Castaños
And for the PCs where I dont have an UPS? Is there any other choice?
Many thanks for your answer
Miguel
Scott Taylor ha escrito:
Quoted 10 lines
Quoted 7 lines · Miguel González Castaños
dear all,
BTW, I have a small UPS, I have tested that sends the shutdown to the linux server, but what I would like
to achieve is to for instance to powerup the server at 9 AM and shut it down at for instance 9 PM.Quoted 8 lines
Easy enough with UPS control: put a timer on your AC power (you can get cheep ones at most hardware stores). Make sure you set the BIOS to start the PC when power resumes.
-
To unsubscribe from this list: send the line "unsubscribe linux-admin" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Quoted 6 lines
-
To unsubscribe from this list: send the line "unsubscribe linux-admin" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
-
To unsubscribe from this list: send the line "unsubscribe linux-admin" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Quoted 7 lines · Mikel Bauer
A hardware solution could be cobbled together by a power timer set to turn on at the specified time (with the bios set to turn on on power), and set to turn off some period of time after a cron shutdown. Kinda cheezy though...
Obviously, turning the machine off is not a big deal, it's turning it back on...
How about using a cron job to shut the system down, then have the timer set to turn off the power some reasonable time later (say 10-15 minutes to make sure that the shutdown had completed and to allow for any clock / timer setting differences? Then when the system powers back up, same process as the suggestion for the boxes connected to UPS.
Signature · 1 line
Bob Swift
Quoted 2 lines · Mikel Bauer
Obviously, turning the machine off is not a big deal, it's turning it back on...
About: NVRAM WakeUp can read and write the WakeUp time in the BIOS (via /dev/nvram on recent 2.4.x kernels). On this WakeUp time the computer will be powered on automatically from the soft-off state.
Changes: This release added support for configuration files, a manual page for the configuration file, and support for mainboard auto-detection. The ACTUALLY_WRITE option was removed,as the program now writes by default. A new option --nowrite option emulates the old default behaviour. Some of the auto-detection information was guessed and may be incorrect.
License: GNU General Public License (GPL)
URL: http://freshmeat.net/projects/nvram-wakeup/
Milan
Many thanks for this reply. Sounds exactly what I am looking for. I would need
a software solution rather than a hardware solution, mainly because not all the PCs
have an UPS connected and are phisycally available.
If you could give more information of which kind of configuration I would need to set up
in the machine, and if It could be used in any kind of BIOS.
Many thanks
Miguel
"Milan P. Stanic" ha escrito:
Quoted 23 lines · Mikel Bauer
Quoted 2 lines
Obviously, turning the machine off is not a big deal, it's turning it back on...
About: NVRAM WakeUp can read and write the WakeUp time in the BIOS (via
/dev/nvramon recent 2.4.x kernels). On this WakeUp time the computer will be powered on automatically from the soft-off state.Changes: This release added support for configuration files, a manual page for the configuration file, and support for mainboard auto-detection. The
ACTUALLY_WRITEoption was removed,as the program now writes by default. A new option --nowrite option emulates the old default behaviour. Some of the auto-detection information was guessed and may be incorrect.License: GNU General Public License (GPL)
URL: http://freshmeat.net/projects/nvram-wakeup/
Milan
-
To unsubscribe from this list: send the line "unsubscribe linux-admin" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Quoted 3 lines · Miguel González Casta?os
If you could give more information of which kind of configuration I would need to set up in the machine, and if It could be used in any kind of BIOS.
BIOS must have support for wake-up, I think. You can try to find newer BIOS for your mainboard if it doesn't have wake-up feature and upgrade it.
In the nvram-wakeup package are two README's, read them and you will know what to do.
Milan
-
To unsubscribe from this list: send the line "unsubscribe linux-admin" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html