Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 7 Apr 2011 21:26:18 +0400
From:      cronfy <cronfy@gmail.com>
To:        freebsd-hackers@freebsd.org
Subject:   call boot(0) from DDB to avoid filesystem corruption
Message-ID:  <BANLkTikkkrYATBUJf0j8bWdu5=G801m-Dg@mail.gmail.com>

next in thread | raw e-mail | index | archive | help
Hello!

I am trying to find a way to avoid filesystem corruption after system
crashes. I am using FreeBSD 7.3 with DDB enabled. Sometimes system freezes
and only DDB (via CTRL-ALT-ESC) is available.

Documentation says there is 'call boot(0)' function that performs graceful
shutdown from DDB. To test it, I set up fresh install of FreeBSD 7.3 on a
new server. Then I started background 'tar -zxf ports.tar.gz' on all
partitions: /home, /usr, /var, /tmp and finally /. Waited ~30 seconds and
pressed CTRL-ALT-ESC -> call boot(0) -> Enter.

Unfortunately, DDB freezed on syncing bufdaemon. I had been waiting for ~5
minutes, but system freezed completely: I could not drop to DDB anymore and
keyboard was not working. I had to restart by reset.

What can be the reason of this last system freeze? I am using Adaptec
controller 3405 with FreeBSD's driver, can it be the cause? I do not know
indeed how to ask a good question about this situation because I have no
more ideas. Any help would be appreciated!

-- 
cronfy



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?BANLkTikkkrYATBUJf0j8bWdu5=G801m-Dg>