Subject: resize2fs: Invalid argument While checking for on-line resizing support Package: e2fsprogs Version: 1.43~WIP-2015-05-18-1 Severity: normal
Dear Maintainer, Using latest resize2fs 1.43-WIP (18-May-2015), but same behavior is observed on Jessie package. I've run a session (see attachment) on a board with 8G eMMC: 1. resizing partition works fine, it expands as expected 2. resizing the filesystem fails resize2fs: Invalid argument While checking for on-line resizing support resize2fs: Invalid argument While trying to add group #25 3. filesystem is actually *partly* resized Filesystem Size Used Avail Use% Mounted on /dev/mmcblk0p9 3.1G 1.2G 1.9G 40% / 4. same steps on same board model with 4G works fine, resize2fs included: on boot Filesystem Size Used Avail Use% Mounted on /dev/mmcblk0p9 2.0G 1.6G 383M 81% / after running the commands: Filesystem Size Used Avail Use% Mounted on /dev/mmcblk0p9 3.0G 1.6G 1.5G 52% / Note: running on arm64 architecture (in case it matters). Any ideas, what's happening/going wrong? -- System Information: Debian Release: 8.2 APT prefers stable-updates APT policy: (500, 'stable-updates'), (500, 'stable') Architecture: arm64 (aarch64)
root@developer:~# sgdisk -e /dev/mmcblk0 Warning: The kernel is still using the old partition table. The new table will be used at the next reboot. The operation has completed successfully. root@developer:~# partprobe root@developer:~# parted /dev/mmcblk0 resizepart 9 Yes 100% Warning: Partition /dev/mmcblk0p9 is being used. Are you sure you want to continue? Information: You may need to update /etc/fstab. root@developer:~# partprobe root@developer:~# parted /dev/disk/by-label/rootfs print Model: Unknown (unknown) Disk /dev/mmcblk0p9: 7200MB Sector size (logical/physical): 512B/512B Partition Table: loop Disk Flags: Number Start End Size File system Flags 1 0.00B 7200MB 7200MB ext4 root@developer:~# dumpe2fs /dev/disk/by-label/rootfs dumpe2fs 1.43-WIP (18-May-2015) Filesystem volume name: rootfs Last mounted on: /root Filesystem UUID: ff313567-e9f1-5a5d-9895-3ba130b4a864 Filesystem magic number: 0xEF53 Filesystem revision #: 1 (dynamic) Filesystem features: has_journal resize_inode filetype needs_recovery extent sparse_super large_file uninit_bg Default mount options: (none) Filesystem state: clean Errors behavior: Remount read-only Filesystem OS type: Linux Inode count: 131072 Block count: 524288 Reserved block count: 0 Free blocks: 235568 Free inodes: 84035 First block: 0 Block size: 4096 Fragment size: 4096 Reserved GDT blocks: 127 Blocks per group: 32768 Fragments per group: 32768 Inodes per group: 8192 Inode blocks per group: 512 Last mount time: Thu Jan 1 00:00:30 1970 Last write time: Thu Jan 1 00:00:30 1970 Mount count: 1 Maximum mount count: -1 Last checked: Thu Jan 1 00:00:00 1970 Check interval: 0 (<none>) Reserved blocks uid: 0 (user root) Reserved blocks gid: 0 (group root) First inode: 11 Inode size: 256 Required extra isize: 28 Desired extra isize: 28 Journal inode: 8 Default directory hash: tea Journal backup: inode blocks Journal features: journal_incompat_revoke Journal size: 32M Journal length: 8192 Journal sequence: 0x00000002 Journal start: 1 Group 0: (Blocks 0-32767) csum 0x042a [ITABLE_ZEROED] Primary superblock at 0, Group descriptors at 1-1 Reserved GDT blocks at 2-128 Block bitmap at 129 (+129) Inode bitmap at 130 (+130) Inode table at 131-642 (+131) 78 free blocks, 22 free inodes, 707 directories Free blocks: 16027-16034, 16075, 16309, 17656-17662, 17699-17759 Free inodes: 818, 3211, 3234, 3239-3243, 3250-3253, 3294, 3298, 3303-3306, 3327, 3350, 3460, 3694 Group 1: (Blocks 32768-65535) csum 0xe7d9 [ITABLE_ZEROED] Backup superblock at 32768, Group descriptors at 32769-32769 Reserved GDT blocks at 32770-32896 Block bitmap at 32897 (+129) Inode bitmap at 32898 (+130) Inode table at 32899-33410 (+131) 182 free blocks, 8 free inodes, 1072 directories Free blocks: 43036, 43072-43078, 43889-43922, 44055-44129, 44608-44610, 44630-44654, 44850-44861, 45079-45096, 46823-46826, 53512-53514 Free inodes: 10318-10319, 10338, 10361, 12330-12333 Group 2: (Blocks 65536-98303) csum 0xeb7a [ITABLE_ZEROED] Block bitmap at 65536 (+0) Inode bitmap at 65537 (+1) Inode table at 65538-66049 (+2) 1 free blocks, 45 free inodes, 409 directories Free blocks: 98303 Free inodes: 16852, 16898, 17002, 17134, 17175, 17331, 17544, 17595, 17910, 18001, 18329, 18426, 18478, 18526, 18587, 19429, 19831, 22547, 22565-22567, 22619, 22927, 22971, 22984-22990, 23012, 23019-23022, 23108, 23121, 23126-23129, 23133, 23229, 23409 Group 3: (Blocks 98304-131071) csum 0x363f [ITABLE_ZEROED] Backup superblock at 98304, Group descriptors at 98305-98305 Reserved GDT blocks at 98306-98432 Block bitmap at 98433 (+129) Inode bitmap at 98434 (+130) Inode table at 98435-98946 (+131) 1 free blocks, 0 free inodes, 557 directories Free blocks: 131071 Free inodes: Group 4: (Blocks 131072-163839) csum 0x6dbe [ITABLE_ZEROED] Block bitmap at 131072 (+0) Inode bitmap at 131073 (+1) Inode table at 131074-131585 (+2) 1 free blocks, 0 free inodes, 2360 directories Free blocks: 163839 Free inodes: Group 5: (Blocks 163840-196607) csum 0x9f20 [ITABLE_ZEROED] Backup superblock at 163840, Group descriptors at 163841-163841 Reserved GDT blocks at 163842-163968 Block bitmap at 163969 (+129) Inode bitmap at 163970 (+130) Inode table at 163971-164482 (+131) 216 free blocks, 2127 free inodes, 515 directories Free blocks: 165747-165756, 166106-166109, 166510-166512, 171328-171335, 171341, 171343-171383, 192563-192580, 193098-193134, 194166-194203, 195356-195377, 195853-195886 Free inodes: 44320-44321, 44327, 44329, 44604, 44609-44612, 46902-46903, 46907, 46983-46984, 47040-49152 Group 6: (Blocks 196608-229375) csum 0x7e83 [ITABLE_ZEROED] Block bitmap at 196608 (+0) Inode bitmap at 196609 (+1) Inode table at 196610-197121 (+2) 323 free blocks, 8190 free inodes, 0 directories, 8190 unused inodes Free blocks: 210196-210232, 212091-212112, 212672-212686, 215037-215073, 215870-215906, 218926-218961, 219839-219856, 220508-220556, 221336-221373, 221872-221877, 223404, 223916, 225672-225673, 225681-225683, 225745-225746, 226146, 226192-226193, 226216-226223, 226251, 226354, 226374-226375, 226383, 226490, 226625-226626 Free inodes: 49155-57344 Group 7: (Blocks 229376-262143) csum 0x9e9e [ITABLE_ZEROED] Backup superblock at 229376, Group descriptors at 229377-229377 Reserved GDT blocks at 229378-229504 Block bitmap at 229505 (+129) Inode bitmap at 229506 (+130) Inode table at 229507-230018 (+131) 0 free blocks, 8180 free inodes, 0 directories, 8180 unused inodes Free blocks: Free inodes: 57357-65536 Group 8: (Blocks 262144-294911) csum 0x75d5 [ITABLE_ZEROED] Block bitmap at 262144 (+0) Inode bitmap at 262145 (+1) Inode table at 262146-262657 (+2) 20265 free blocks, 8078 free inodes, 23 directories, 8067 unused inodes Free blocks: 266016-277503, 277728-277775, 277783, 278512-278527, 278560-278562, 278571-279064, 279071-279092, 279094-279103, 279173-279175, 279184-279188, 279676-279689, 284423-284676, 284690-284692, 284753-284754, 285023, 285042-285140, 285182-285183, 285881-285887, 285921-285951, 285989-286145, 286182-286207, 286210-286719, 286740-287240, 287242-287247, 287274-287279, 287297-287813, 287815-287818, 287820, 287867, 287869-288255, 288293-288377, 289251-289279, 289281, 289291-291935, 292026-294911 Free inodes: 65602, 65626, 65641, 65645-65647, 65651, 65653-65655, 65660, 65662-73728 Group 9: (Blocks 294912-327679) csum 0x1482 [ITABLE_ZEROED] Backup superblock at 294912, Group descriptors at 294913-294913 Reserved GDT blocks at 294914-295040 Block bitmap at 295041 (+129) Inode bitmap at 295042 (+130) Inode table at 295043-295554 (+131) 2217 free blocks, 8159 free inodes, 0 directories, 8148 unused inodes Free blocks: 296279-296959, 302412-303103, 312924-313343, 315397-315400, 321116-321535 Free inodes: 73752, 73754, 73756, 73758, 73760, 73762, 73764, 73766, 73768, 73770, 73772-81920 Group 10: (Blocks 327680-360447) csum 0x6e08 [ITABLE_ZEROED] Block bitmap at 327680 (+0) Inode bitmap at 327681 (+1) Inode table at 327682-328193 (+2) 13520 free blocks, 8018 free inodes, 31 directories, 8018 unused inodes Free blocks: 331775, 337919, 341860-341861, 342006-342015, 346623, 346943-360447 Free inodes: 82095-90112 Group 11: (Blocks 360448-393215) csum 0xedfb [ITABLE_ZEROED] Block bitmap at 360448 (+0) Inode bitmap at 360449 (+1) Inode table at 360450-360961 (+2) 32243 free blocks, 8183 free inodes, 0 directories, 8183 unused inodes Free blocks: 360973-393215 Free inodes: 90122-98304 Group 12: (Blocks 393216-425983) csum 0x8cbd [ITABLE_ZEROED] Block bitmap at 393216 (+0) Inode bitmap at 393217 (+1) Inode table at 393218-393729 (+2) 32251 free blocks, 8160 free inodes, 0 directories, 8152 unused inodes Free blocks: 393733-425983 Free inodes: 98330, 98332, 98334, 98336, 98338, 98340, 98342, 98344-106496 Group 13: (Blocks 425984-458751) csum 0xfd4c [INODE_UNINIT, ITABLE_ZEROED] Block bitmap at 425984 (+0) Inode bitmap at 425985 (+1) Inode table at 425986-426497 (+2) 32254 free blocks, 8192 free inodes, 0 directories Free blocks: 426498-458751 Free inodes: 106497-114688 Group 14: (Blocks 458752-491519) csum 0x1bcc [ITABLE_ZEROED] Block bitmap at 458752 (+0) Inode bitmap at 458753 (+1) Inode table at 458754-459265 (+2) 32251 free blocks, 8188 free inodes, 0 directories, 8188 unused inodes Free blocks: 459268, 459270-491519 Free inodes: 114693-122880 Group 15: (Blocks 491520-524287) csum 0xf9cf [ITABLE_ZEROED] Block bitmap at 491520 (+0) Inode bitmap at 491521 (+1) Inode table at 491522-492033 (+2) 32161 free blocks, 8180 free inodes, 0 directories, 8180 unused inodes Free blocks: 492042-492543, 492546-492660, 492664, 492745-524287 Free inodes: 122893-131072 root@developer:~# resize2fs /dev/disk/by-label/rootfs resize2fs 1.43-WIP (18-May-2015) Filesystem at /dev/disk/by-label/rootfs is mounted on /; on-line resizing required old_desc_blocks = 1, new_desc_blocks = 1 resize2fs: Invalid argument While checking for on-line resizing support root@developer:~# resize2fs -f /dev/disk/by-label/rootfs resize2fs 1.43-WIP (18-May-2015) Filesystem at /dev/disk/by-label/rootfs is mounted on /; on-line resizing required old_desc_blocks = 1, new_desc_blocks = 1 Performing an on-line resize of /dev/disk/by-label/rootfs to 1757691 (4k) blocks. resize2fs: Invalid argument While trying to add group #25