File system corruption upon reboot with gmirror

Michel Talon talon at lpthe.jussieu.fr
Thu Sep 11 14:12:14 UTC 2008


Gunther Mayer wrote:

> > Don't use "reboot", use shutdown -r now. I also had the same problem
> > once
> > (had to get physical access to the box to fix it) and it was because
> > of
> > the "reboot".
> >   
> 
> Thanks. I guess I'll use shutdown -r now then in future. If it still 
> happens then I'll post again...

What's this stuff? shutdown -r is implemented using reboot.

if (doreboot) {
			execle(_PATH_REBOOT, "reboot", "-l", nosync, 
                         ^^^^^                ^^^^^^
				(char *)NULL, empty_environ);
			syslog(LOG_ERR, "shutdown: can't exec %s: %m.",
				_PATH_REBOOT);
			warn(_PATH_REBOOT);
		}




-- 

Michel TALON



More information about the freebsd-questions mailing list