JBD2: Spotted dirty metadata buffer....

From: Wolfgang Walter
Date: Mon Nov 21 2016 - 10:28:13 EST


Hello,

I'm testing EXT4 with an external journal (data=journal). When writing I rather often get

JBD2: Spotted dirty metadata buffer (dev = dm-22, blocknr = 1008028301). There's a risk of filesystem corruption in case of system crash.

Now other message is logged. If I unmount the filesystem an do an forced fsck, all seems fine.

The filesystem as it's journal are on a LV (which is again backed by DRBD). The journal, too.

Im using stable kernel 4.8.8.

I created the journal with:

mkfs.ext4 -O journal_dev -v -b 4096 -L jdyn /dev/export/jdyn

I created the filesystem with:

mkfs.ext4 -J device=UUID=625d871f-c278-4acb-916d-774dc78dbd8a -v -b 4096 -E stride=$((512/4)),stripe_width=$((512/4*3)),lazy_itable_init=0,nodiscard -O inline_data,mmp -L dyn /dev/export/dyn


I tested it also with data=writeback. I didn't see these errors then.

Regards,
--
Wolfgang Walter
Studentenwerk München
Anstalt des öffentlichen Rechts