> > > Is a delay needed between the final sync's and the actual power off? > > > > Apparently so. There is/was a recently added sysctl for this purpose. > > Poke around in the archives. > > > > Was that sysctl added to the -STABLE branch? I am running 3.1-BETA > and I cannot find it. No, they were added after the split and weren't backported to the 3.x branch.
But if you are impatient, you could just grab a copy of sys/kern/kern_shutdown.c from a 4.0 branch and copy it to your tree. The added sysctl is for now the only difference in this file. Then you can specify somewhere in your rc files sysctl -w kern.shutdown.poweroff_delay = x with x measured in ms. I have only seen one machine so far which suffers this problem of powering off the machine too fast. On all other machines I know of either the mainboard or the power supply (don't know which) have a small delay before powering off the machine, which seems to be long enough for the drives to flush their buffers. On this particular machine, I set the delay to 1.5 seconds, and I never got unclean filesystems again. Daniel To Unsubscribe: send mail to majord...@freebsd.org with "unsubscribe freebsd-current" in the body of the message