Bug 240463 - netwait is required for systems with SSD's as boot device
Summary: netwait is required for systems with SSD's as boot device
Status: New
Alias: None
Product: Base System
Classification: Unclassified
Component: conf (show other bugs)
Version: 12.0-RELEASE
Hardware: amd64 Any
: --- Affects Only Me
Assignee: freebsd-rc (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-09-09 23:19 UTC by aryeh.friedman
Modified: 2019-09-11 02:53 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description aryeh.friedman 2019-09-09 23:19:56 UTC
After switching to an SSD as my boot device various services that required a working network connection fail and/or have long pauses in startup.   In order to give if_XXX time to go from down to up (/etc/netstart forces it down at start of run) before such services are started netwait_if="XXX" is required.   For example ntpdate, NIS and nfs mounts fail in the following /etc/rc.conf and /etc/fstab is the netwait lines are missing from missing from /etc/rc.conf.

/etc/rc.conf:

hostname="neomarx"
ifconfig_re0="inet 192.168.11.40 netmask 255.255.255.0"
defaultrouter="192.168.11.1"
static_routes="specmed"
route_specmed="-net 10.31.10.0/24 192.168.11.30"
sshd_enable="YES"
ntpdate_enable="YES"
# Set dumpdev to "AUTO" to enable crash dumps, "NO" to disable
dumpdev="AUTO"
zfs_enable="YES"
netwait_enable="YES"
netwait_if="re0"
nisdomainname="office"                                                          
nis_client_enable="YES"       
rpc_lockd_enable="YES"                                                          
rpc_statd_enable="YES"            
dbus_enable="YES"
tomcat9_enable="YES"
apache24_enable="YES"
mysql_enable="YES"
vboxnet_enable="YES"
devfs_system_ruleset="system"
devd_enable="YES"

/etc/fstab:

# Device                Mountpoint      FStype  Options         Dump    Pass#
/dev/ada0p3             none    swap    sw              0       0
/dev/ada1p3             none    swap    sw              0       0
server:/data/home       /usr/home               nfs     rw              0 0
server:/usr/local/com   /usr/local/com          nfs     rw              0 0
linprocfs   /compat/linux/proc  linprocfs       rw      0       0
linsysfs    /compat/linux/sys   linsysfs        rw      0       0
tmpfs    /compat/linux/dev/shm  tmpfs   rw,mode=1777    0       0
fdesc   /dev/fd         fdescfs         rw      0       0