Date: Tue, 26 Jun 2018 10:05:38 -0700 From: Kevin Oberman <rkoberman@gmail.com> To: Masachika ISHIZUKA <ish@amail.plala.or.jp> Cc: freebsd-net <freebsd-net@freebsd.org> Subject: Re: usb ethernet adapter does not work after reboot Message-ID: <CAN6yY1s-N6auzhtPm_MJyqG-_G0492CjK-8%2B00HpPO8m9n1zCg@mail.gmail.com> In-Reply-To: <20180626.195157.1921635683346441969.ish@amail.plala.or.jp> References: <20180625.234518.743785892819344523.ish@amail.plala.or.jp> <CAN6yY1syiS84b8pRRc9uqBT_OEDGQHKVBGsBR2H-Sx6_F=1jQQ@mail.gmail.com> <20180626.195157.1921635683346441969.ish@amail.plala.or.jp>
next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, Jun 26, 2018 at 3:51 AM, Masachika ISHIZUKA <ish@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: rkoberman@gmail.com PGP Fingerprint: D03FB98AFA78E3B78C1694B318AB39EF1B055683
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAN6yY1s-N6auzhtPm_MJyqG-_G0492CjK-8%2B00HpPO8m9n1zCg>