On Tue, Jun 26, 2018 at 3:51 AM, Masachika ISHIZUKA <i...@amail.plala.or.jp> wrote:
> > BTW, the triple "sync" is a waste of... well, not much except your time > in > > typing it into your script. The rule to sync discs three times assumes > that > > you are actually typing it. It is to allow enough time for the file > > system(s) to complete syncing before the system is halted (halt(8)) or > > power is removed. Both reboot(8) and shutdown(8) now take care of this. > > Only the first sync(8) really does anything. Typing it three times on a > > teletype takes long enough for metadata to be written. > > Thank you, Kevin. > > I want to sync nfs mounted disks before usb ethernet card is powered > down. > I think that '/etc/rc.d/nfsuserd stop' may be better than '/bin/sync'. > -- > Masachika ISHIZUKA > Thank you! You have given me an obvious and relevant example of why "shutdown -r" should normally be used and "reboot" should not. I don't use NFS, so it has not bitten me. I do recall dealing with similar issue MANY years ago on Solaris systems working with Auspex file servers. Probably dates to 1990 or shortly after. -- Kevin Oberman, Part time kid herder and retired Network Engineer E-mail: rkober...@gmail.com PGP Fingerprint: D03FB98AFA78E3B78C1694B318AB39EF1B055683 _______________________________________________ freebsd-net@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-net To unsubscribe, send any mail to "freebsd-net-unsubscr...@freebsd.org"