[Bug 1796788] Re: resize2fs: Illegal indirect block found while trying to resize

Theodore Ts'o tytso at mit.edu
Wed Oct 10 15:25:30 UTC 2018


Note a file system which is significantly shrunk --- which tends to be
the case with resize2fs -M --- is going to have files fragmented which
will have performance implications.   It's not clear to me what you are
trying to optimize for --- I assume you're just wanting to save on
download bandwidth so you want a highly compressed image?

You might want to consider using a raw qemu image, e.g:

     e2image -Q /dev/sda1 /tmp/sda1.qcow
     bzip /tmp/sda1.qcow      # optional

which can then be unpacked via:

     bunzip /tmp/sda1.qcow.bz2
     e2image -r /dev/sda1.qcow /dev/sda1

You can of course also use qemu-img from the qemu package.  e2image -Q
is a bit more efficient though since it will only include blocks which
are in use in the file system, where as qemu-img is not aware of the
underlying file system.

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to e2fsprogs in Ubuntu.
https://bugs.launchpad.net/bugs/1796788

Title:
  resize2fs: Illegal indirect block found while trying to resize

Status in e2fsprogs package in Ubuntu:
  Confirmed

Bug description:
  The new resize2fs(1.43+) failed to resize attached image file, and
  e2fsck didn't report any error before the resizing.

  Test steps:
  1/ e2fsck -fy userdata.img
  2/ resize2fs userdata.img 220M

  Result:
  When using resize2fs from e2fsprogs 1.43+(tested 1.43.4/1.43.5/1.44.4), it would abort with:
  Resizing the filesystem on userdata.img to 225280 (1k) blocks.
  resize2fs: Illegal indirect block found while trying to resize userdata.img
  Please run 'e2fsck -fy userdata.img' to fix the filesystem
  after the aborted resize operation.

  More information:
  1/ The image is generated on xenial with genext2fs
  2/ It works well on xenial with e2fsprogs 1.42.13-1ubuntu1
  3/ It works well when resizing with a size less than 220M, for example "resize2fs userdata.img 219M"
  4/ online resize works

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/e2fsprogs/+bug/1796788/+subscriptions



More information about the foundations-bugs mailing list