Home > automation > Automatic shutdown of NFSRooted machines?

Automatic shutdown of NFSRooted machines?

July 31Hits:1
Advertisement

I've got a server and several client computers onsite. The client computers PXEBoot and get their / via NFS from the server. The server and clients are on limited battery backup, but the power goes out with some frequency due to factors beyond my control at this time. My problem is that when the power goes out, the server shuts down politely but the client machines do not.

I'm wondering, is there an existing elegant solution to getting the clients to shutdown before, or even just at the same time as the server? The clients only take seconds to shutdown, they can easily complete shutdown before the server does.

PS. Downtime isn't as big of a concern as a clean shutdown for these computers.

Answers

Assuming it's an APC UPS, there's support in APCUPSD for a client to query a server about its UPS status.

If not, then you could have the clients poll a server folder every X seconds, and if a particular file showed up in the folder, to start a clean shutdown. Have the server's normal shutdown procedures create that file, then sleep for 2X seconds. Make sure the server's normal startup procedures remove that file.

Related Articles

  • Automatic shutdown of NFSRooted machines?July 31

    I've got a server and several client computers onsite. The client computers PXEBoot and get their / via NFS from the server. The server and clients are on limited battery backup, but the power goes out with some frequency due to factors beyond my con

  • How do I automatically shutdown or pause my VirtualBox machine when I shutdown or restart my computer?April 22

    When I shut my Windows 7 computer down or restart it (maybe because of Microsoft updates or installation of software or me just being stupid) I want to automatically shutdown OR pause my VirtualBox machine just before it happens. Is there a way to do

  • How to run a command before the machine automatically shutdowns?June 29

    How to run a command before the machine automatically shutdowns? --------------Solutions------------- How about to put a script in the correct runlevel? I think runlevel 6 is shutdown, and then the dir to play in is /etc/rc6.d/ cron isn't the tool fo

  • How to automatically make Mac shutdown after Time Machine BackupSeptember 11

    How can I make my Macbook automatically shutdown after a Time Machine backup? I have a 40GB worth backup to do but I keep having to cancel it to go to bed. Would be great if I could leave it on to do it overnight. Any suggestions of how to do this in

  • Automatic shutdown when idle? May 1

    We have about 600 Windows XP PCs in a school of about 2000 students, the majority of the PCs are in ICT suites and class rooms. It is a regular occurance that half of the computers are left on overnight and about a quarter at weekends and holidays. I

  • Acer Asphire 5930G automatic shutdown

    Acer Asphire 5930G automatic shutdownSeptember 17

    I have this Acer Asphire 5930G laptop. It is almost 3 years now. But currently it Boots up or Go to Windows but it automatically shutdown within more or less than 5-10 minutes. I already checked the HDD and memory and it is ok. I already clean the cp

  • automatic shutdown after maintenance January 30

    Possible Duplicate: automate system maintenance How do I set the computer to automatically shutdown after a system maintenance(virus scan, drive defrag) is completed --------------Solutions------------- If you are running Vista or Win 7 you could try

  • How can I automatically shutdown the system after a specific time?

    How can I automatically shutdown the system after a specific time?January 2

    How can I automatically shutdown the system after a certain customizable time? --------------Solutions------------- Open a terminal window and type in: sudo shutdown -h +60 and just replace 60 with whatever number of minutes you want to take. More in

  • How to shutdown a virtual machine on ESXi5 over an ssh terminal session?October 16

    How can I shutdown a virtual machine when I am on the commandline of an ESXi5 host over ssh? Sidenote: To enable scripts on other machines to login to the ESXi without password, add the public key of the user on the other machine to the ESXi's "/etc/

  • How to disable automatic shutdown on UPS battery?July 21

    I have a UPS which is configured with Apcupsd. It shows all the stats correctly. The problem is that when I switch to battery mode, something sends a shutdown signal to the PC. My guess is that it might have something to do with the power utility fro

  • How to do a Automatic shutdown when Dropbox stops synching?July 29

    Is it possible, or rather is there a way to automatically shutdown Ubuntu (I'm running 12.04) when Dropbox stops synching? That would really suit my needs and cut power consumption. Thanks beforehand. --------------Solutions------------- I would crea

  • Automatic shutdown hindered by sleep mode

    Automatic shutdown hindered by sleep modeJuly 21

    I have an iMac (late 2009 model) running Yosemite. Recently, I have set up automatic shutdown in the Energy Saver settings under System Preferences. However, if my computer goes into sleep mode before the automatic shutdown - which I have scheduled t

  • Automate shutdown the centos server after it reaches 1hour of idle time through a script February 11

    How to automate shutdown the centos server after it reaches 1hour of idle time through script. please help me. Thanks in advance.

  • How can I remotly shutdown a windows machineMay 1

    I need to shutdown and / or reboot remote system. Can this be done remotely without physically being next to the server? --------------Solutions------------- Reboot now: shutdown /r /m \\computername /t 0 Shutdown now: shutdown /s /m \\computername /

  • How can I automatically log out all machines on a windows domain?September 22

    Our Sophos Anti-virus scans each night, but complains about files it can't access. Files that are in use by Firefox or Outlook. Is there a script we can configure to run each night before the scans, which logs the user out of the machine? Ideally, th

  • Remote shutdown windows 7 machines in a workgroupMarch 5

    I just have ended up in a situation where I have lots of noisy computers in my office that I want to be able to shut down remotely in an automated way. I'm currently not running using a domain but a workgroup and I would prefer to keep it that way if

  • Automatic shutdown prompt on Windows 7

    Automatic shutdown prompt on Windows 7June 21

    I'd like to download and install an app into my Windows 7 machine that at a fixed time, will automatically popup a shutdown timer, that can be cancelled if an user is actively using the computer, but will shutdown automatically in 5 minutes for examp

  • Which UPS, for home use, which can automatically shutdown the PC when battery is low? May 15

    I am planning to build a single server machine which is highly dependent on data residing in RAM for performance reasons. I am looking for a UPS which can power the PC during a blackout (very rare) and when the battery level is like %20, it sends a s

  • How to shutdown remote Win2k8 machine using WMIC?June 28

    What is the exact syntax to shutdown remote Win2k8 server using WMIC? (The reason WMIC must be used is because the remote machine in a different NT Domain and the local machine does not have access to that domain. WMIC takes /user: and /password: par

  • How to automatically shutdown laptop if unpluggedJuly 12

    I want my laptop to shutdown automatically after it gets disconnected from power. Can someone tell me if there exists some app for this for Windows 7 --------------Solutions------------- Type "Power Options" in Start Menu search text field and h

Copyright (C) 2017 ceus-now.com, All Rights Reserved. webmaster#ceus-now.com 14 q. 0.458 s.