tytso / e2fsprogs

Ext2/3/4 file system utilities
http://ext4.wiki.kernel.org
378 stars 223 forks source link

Error during online resize #125

Closed tianyuanhao closed 2 years ago

tianyuanhao commented 2 years ago
EXT4-fs (sda2): mounted filesystem with ordered data mode. Quota mode: none.
EXT4-fs (sda2): resizing filesystem from 32768 to 2063872 blocks
EXT4-fs (sda2): resized filesystem to 2063872
EXT4-fs (sda2): Invalid checksum for backup superblock 32768
EXT4-fs error (device sda2) in ext4_update_backup_sb:164: Filesystem failed CRC
EXT4-fs (sda2): Invalid checksum for backup superblock 98304
EXT4-fs error (device sda2) in ext4_update_backup_sb:164: Filesystem failed CRC
EXT4-fs (sda2): Invalid checksum for backup superblock 163840
EXT4-fs error (device sda2) in ext4_update_backup_sb:164: Filesystem failed CRC
EXT4-fs (sda2): Invalid checksum for backup superblock 229376
EXT4-fs error (device sda2) in ext4_update_backup_sb:164: Filesystem failed CRC
EXT4-fs (sda2): Invalid checksum for backup superblock 294912
EXT4-fs error (device sda2) in ext4_update_backup_sb:164: Filesystem failed CRC
EXT4-fs (sda2): Invalid checksum for backup superblock 819200
EXT4-fs error (device sda2) in ext4_update_backup_sb:164: Filesystem failed CRC
EXT4-fs (sda2): Invalid checksum for backup superblock 884736
EXT4-fs error (device sda2) in ext4_update_backup_sb:164: Filesystem failed CRC
EXT4-fs (sda2): Invalid checksum for backup superblock 1605632
EXT4-fs error (device sda2) in ext4_update_backup_sb:164: Filesystem failed CRC

I get errors during resizing a mounted ext4 partition. After git bisect, I think this commit (https://github.com/torvalds/linux/commit/827891a38accfb4e04dbcdefe710f8746c6ad16d) is the cause of this issue.

tytso commented 2 years ago

Thanks for reporting the bug. The fix is here:

https://lore.kernel.org/all/Y1tTk5ILKICjJL82@mit.edu