From owner-freebsd-net@freebsd.org Tue Jun 26 17:05:39 2018 Return-Path: Delivered-To: freebsd-net@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id CBAF510031DA for ; Tue, 26 Jun 2018 17:05:39 +0000 (UTC) (envelope-from kob6558@gmail.com) Received: from mail-ua0-x22f.google.com (mail-ua0-x22f.google.com [IPv6:2607:f8b0:400c:c08::22f]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 607B479A53 for ; Tue, 26 Jun 2018 17:05:39 +0000 (UTC) (envelope-from kob6558@gmail.com) Received: by mail-ua0-x22f.google.com with SMTP id z16-v6so11386239uaz.10 for ; Tue, 26 Jun 2018 10:05:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=D3w45E0KygllRMA1+n+DAijoxBHl9VuhSQ7lF1CalWs=; b=UitePm/SrwoL77BrJctnjozLJ+XBBO1xIX3HLQASwgBh4zDGGT30adtA9b1qF02Sbw dI9P/NlgqvjWkO42r4HiIkVh6XZ6969htOC9NO3L5Zt7YVSZyk4hG6HbhvZsG6AIddEA TVKIDm5ddf8QMTBL+78OmSKfeKkyLpzHAm2Td9Vwjd1CItRUWvpyVTMKC5TlZId83MvK AxjSXjBgZjypgAM4/jP087HFI+eNJ7NSFakUVKPCD3sWGzbO3/W4CC9Pni/CDhkM6c5b D1nW97c6Xv7YisUSXkrLNpts/vwwqkJJhb0W9zOvbsLgM7QPqdLFvPdmRSGGxlYBTZuJ UFNw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=D3w45E0KygllRMA1+n+DAijoxBHl9VuhSQ7lF1CalWs=; b=EyiWfAoRAUPXZmS1kIUPpx8i7vFON6Os18UHIRpDSWAxMZxgFwq4LeO3IGJLHu06x5 y0Kdk5ZUiA84wgOCclOC3eRxRV1MNVNHmnfXLJXadP32Ua63xpsxZrAZhM9wps3tpRvF lFqQ9lmS9n8oO8rVVcYn2RHzn3NjIX/hsTwMniG37r1ZPxEQ+ifSO/gXi44mYPbeMkBI W4GPplTqTi+08S2LWvR5X4oob/F0VY6bRw9d1UynXFNsCAJNw6yvxVvwhecnrNDWW8kj 1KrXrh7MJtmHev68Lpt2p25yh0PHVDfxEYqUOrkKqlWiWLW8p3bgMXkKSvAQdbX03PZp wsFA== X-Gm-Message-State: APt69E04R0bfs60pttXXZgbXA+h+ovp9RJrdQFyHPUnALXY8v0mACtGY ZrOT6BsCf57Xfe7OQSAZdH5LtAisomDK9PT7+pA= X-Google-Smtp-Source: AAOMgpd6ncCbuHmy3l5HbNa5oMzKCZMA5fEsuuuEesIrjjZQdDIXLM0noUx7l5+wjKmNCGMrnEo6Aoz1kD4ihEvESDE= X-Received: by 2002:a9f:3409:: with SMTP id q9-v6mr1624657uab.161.1530032738688; Tue, 26 Jun 2018 10:05:38 -0700 (PDT) MIME-Version: 1.0 Sender: kob6558@gmail.com Received: by 2002:a67:8f05:0:0:0:0:0 with HTTP; Tue, 26 Jun 2018 10:05:38 -0700 (PDT) In-Reply-To: <20180626.195157.1921635683346441969.ish@amail.plala.or.jp> References: <20180625.234518.743785892819344523.ish@amail.plala.or.jp> <20180626.195157.1921635683346441969.ish@amail.plala.or.jp> From: Kevin Oberman Date: Tue, 26 Jun 2018 10:05:38 -0700 X-Google-Sender-Auth: 2vDqFbxImWz5WPagifsl69BlV-E Message-ID: Subject: Re: usb ethernet adapter does not work after reboot To: Masachika ISHIZUKA Cc: freebsd-net Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.26 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.26 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 26 Jun 2018 17:05:40 -0000 On Tue, Jun 26, 2018 at 3:51 AM, Masachika ISHIZUKA 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