booting a new kernel remotely

Neil Rickert rickert at mp.cs.niu.edu
Sun Sep 30 02:21:37 AEST 1990


In article <1990Sep29.153337.6707 at ccu.umanitoba.ca> mills at ccu.umanitoba.ca (Gary Mills) writes:
>
>Does anyone know of a nice way to boot a new kernel when logged in via
>a dial-up line?  When I do it from the console, I do a `shutdown +5',
>and when it comes down to single-user mode, I do a couple of syncs, hit
>break to get to the monitor, and do a `b vmunix.new -s'.  When it comes
>up, I rename the kernel, and hit ^D to go to multi-user mode.  The machine
>is down for less than five minutes.  This is under SunOS 4.1.  When I'm
>dialed in, `shutdown -r +5' does not work once I have renamed
>/vmunix.new to /vmunix.  I can use `reboot', but it doesn't give the
>warning messages to the users.  Also, the boot checks all the disks, so
>the machine is down for about twenty minutes.  How do other people do this?

 You can use 'wall' to scare the users of before you rename the kernel images.
At the same time create /etc/.nologin to prevent new logins.
Next you can umount all of the disk partitions, so that on reboot only
the root partition should be checked.  Finally do the rename and reboot.

-- 
=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=
  Neil W. Rickert, Computer Science               <rickert at cs.niu.edu>
  Northern Illinois Univ.
  DeKalb, IL 60115.                                  +1-815-753-6940



More information about the Comp.unix.misc mailing list