Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
We are in the process of moving from building A to building B. We have close to 100 Linux servers. It can take close to two hours just to shut each of the server down. I was thinking about writing cronjob to shut the server down.
Thats a question we really cant answer, but a simple power off/power on shouldn't be too big of a change. I make a copy of pretty much everything when doing patching or refreshing a server to new hardware.
I would suggest you look at using at or specifying the shutdown command with a specific time as opposed to scheduling a cron, the point being here is that if you forget to remove one of the cron entries on one of your servers at some point in time it will run the cron again and shut it down.
Just to add something that's bitten me in the past (and something you're probably already doing)...make absolutely SURE you have good, verified backups before doing a shutdown.
I have suffered at the hands of thermal shock twice. Hard drives that are up and spinning 24/7 for a long time, heat up, and naturally wear. A quick reboot is fine...but off for several hours, being moved, and brought into a cool new server room, can cause the drives to seize, and not come back up. We recovered once by heating an array with a hair-dryer, and things started working, but the other time, data was lost. Just FYI.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.