OK yes you are right. The goal was to skip init shutdown but sync file systems. Then we discovered potential problems with that and added supervision of "reboot -f" /Hans
On 04/02/2014 02:30 PM, Anders Widell wrote: > Well, reboot without sync is a bit risky. I remember we added the > OPENSAF_REBOOT_TIMEOUT configuration option in > nid.conf to handle various potential problems like for example a hanging sync > during reboot. If reboot supervision is > enabled with this configuration option, then the reboot will be escalated to > a reboot without sync if it has been > hanging longer than the configured time-out. > > regards, > Anders Widell > > 2014-04-01 17:36, Hans Feldt skrev: >> >> It is supposed to be without sync to avoid possible dependencies to external >> systems during a failfast reboot >> >> Skickat från min Sony Xperia™-smartphone >> >> >> >> ---- Tony Hart skrev ---- >> >> Hi Anders, >> Yes in this particular case it would be busybox. >> >> On Apr 1, 2014, at 10:56 AM, Anders Widell <[email protected]> >> wrote: >> >> > The reboot command in sysvinit does sync, unless you specify the -n option: >> > >> > OPTIONS >> > -n Don't sync before reboot or halt. Note that the kernel and stor‐ >> > age drivers may still sync. >> > >> > On Ubuntu, the reboot command is provided by upstart rather than by >> > sysvinit, and the upstart version of reboot does not seem to have the -n >> > option. So potentially it may behave differently. Where does your reboot >> > command come from? sysvinit or upstart? Or maybe busybox? >> > >> > regards, >> > Anders Widell >> > >> > 2014-04-01 16:36, Tony Hart skrev: >> >> The opensaf_reboot script shuts-down the system using ‘reboot -f’ the >> >> comment say that this command will do a >> filesystem sync. Is this correct? Research on the web suggests that >> ‘reboot -f’ DOES NOT do a filesystem sync. >> >> >> >> Can anyone confirm? >> >> >> >> # Stop some important opensaf processes to prevent bad things from >> >> happening >> >> $icmd pkill -STOP osafamfwd >> >> $icmd pkill -STOP osafamfnd >> >> $icmd pkill -STOP osafamfd >> >> $icmd pkill -STOP osaffmd >> >> >> >> # Reboot (not shutdown) system WITH file system sync >> >> $icmd /sbin/reboot -f >> >> >> >> >> >> thanks >> >> — >> >> tony >> >> ------------------------------------------------------------------------------ >> >> _______________________________________________ >> >> Opensaf-users mailing list >> >> [email protected] >> >> https://lists.sourceforge.net/lists/listinfo/opensaf-users >> >> >> >> >> > >> > >> >> ------------------------------------------------------------------------------ >> _______________________________________________ >> Opensaf-users mailing list >> [email protected] >> https://lists.sourceforge.net/lists/listinfo/opensaf-users > ------------------------------------------------------------------------------ _______________________________________________ Opensaf-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/opensaf-users
