Skip to contentSkip to conversation

reacting to fs errors

DISCUSSION [email protected] 2 participants 2 messages May 4, 2003 VFS

lore
Share & tools
lore
#0 lore raw

We recently had a drive go flakey, and for an hour there were errors like this:

kernel: EXT3-fs error (device sd(8,49)): ext3_readdir: directory #36481 contains a hole at offset 4096
kernel: EXT3-fs error (device sd(8,49)): ext3_readdir: bad entry in directory #135553: rec_len %% 4 != 0 - offset=0, inode=2667577872, rec_len=439, name_len=16

as well as corrupted files. Eventually, the system panicked with "Ththththaats all folks. Too dangerous to continue." But we would've preferred the system have halted (or stopped using that filesystem) immediately upon detection of the first serious error so that our apps did not continue to use bad data. I was wondering if you could make this an option. Solaris has a mount option, onerror=panic|lock|umount.
(http://www.freebsd.org/cgi/man.cgi?query=mount_ufs&manpath=SunOS+5.9)
You could also have an onerror=continue option to keep things the way they are currently.

#1 lore raw
Quoted 6 lines · On Sun, May 04, 2003 at 10:44:33AM -0400, [email protected] wrote:

"Ththththaats all folks. Too dangerous to continue." But we would've preferred the system have halted (or stopped using that filesystem) immediately upon detection of the first serious error so that our apps did not continue to use bad data. I was wondering if you could make this an option. Solaris has a mount option, onerror=panic|lock|umount.
(http://www.freebsd.org/cgi/man.cgi?query=mount_ufs&manpath=SunOS+5.9)

We already have that for both ext2 & ext3:

                else if (!strcmp (this_char, "errors")) {
                        if (!strcmp (value, "continue")) {
                        else if (!strcmp (value, "remount-ro")) {
                        else if (!strcmp (value, "panic")) {

Debian sets up root with errors=remount-ro by default.

Signature · 3 lines
"It's not Hollywood.  War is real, war is primarily not about defeat or
victory, it is about death.  I've seen thousands and thousands of dead bodies.
Do you think I want to have an academic debate on this subject?" -- Robert Fisk