Skip to content

FS#2951 - x86_64 ext4 generic: online resizing of root partition fails #7729

Open
@openwrt-bot

Description

@openwrt-bot

jneuhauser:

Used HW/SW:

  • PCEngines APU2C4
  • OpenWrt SNAPSHOT, r12776-437eb41f23

Steps to reproduce:

  • Install needed packages:
    root@OpenWrt:~# opkg update && opkg install fdisk resize2fs
  • Extend root partition from 104 MB to 256 MB with fdisk:
    root@OpenWrt:~# fdisk /dev/mmcblk0 << EOF
    p
    d
    2
    n
    p
    2
    33792
    +256M

w
EOF

  • Extend ext4 filesystem:
    root@OpenWrt:~# resize2fs /dev/mmcblk0p2

Here are the output of resize2fs:
root@OpenWrt:~# resize2fs /dev/mmcblk0p2
resize2fs 1.45.4 (23-Sep-2019)
Filesystem at /dev/mmcblk0p2 is mounted on /; on-line resizing required
old_desc_blocks = 1, new_desc_blocks = 1
Performing an on-line resize of /dev/mmcblk0p2 to 65664 (4k) blocks.
resize2fs: Invalid argument While trying to add group #1

Here are the dmesg output:
root@OpenWrt:~# dmesg | tail -n 6
[50698.949591] EXT4-fs (mmcblk0p2): resizing filesystem from 32768 to 65664 blocks
[50698.957030] EXT4-fs (mmcblk0p2): resizing filesystem from 32768 to 65536 blocks
[50698.969299] EXT4-fs warning (device mmcblk0p2): reserve_backup_gdb:1033: reserved block 8 not at offset 7
[50698.978959] EXT4-fs warning (device mmcblk0p2): ext4_resize_fs:2120: error (-22) occurred during file system resize
[50698.989429] EXT4-fs (mmcblk0p2): resized filesystem to 32768
[50698.999227] EXT4-fs warning (device mmcblk0p2): reserve_backup_gdb:1033: reserved block 8 not at offset 7

Offline resizing does work as expected.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions