The discussion started about the opensaf_reboot script. It’s purpose is to do self-fencing of the local node. The faster the better. “reboot –f” is what we use and “-f” is described in my man page. If some comment is wrong or not in the script is not important /Hans
From: Anders Widell Sent: den 2 april 2014 14:30 To: Hans Feldt; Tony Hart Cc: [email protected] Subject: Re: [users] opensaf_reboot - reboot -f (does it sync the file system) 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]><mailto:[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]<mailto:[email protected]> >> https://lists.sourceforge.net/lists/listinfo/opensaf-users >> >> > > ------------------------------------------------------------------------------ _______________________________________________ Opensaf-users mailing list [email protected]<mailto:[email protected]> https://lists.sourceforge.net/lists/listinfo/opensaf-users ------------------------------------------------------------------------------ _______________________________________________ Opensaf-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/opensaf-users
