ext4 not able to online resize
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
e2fsprogs (Ubuntu) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: e2fsprogs
Description: Ubuntu 10.04.1 LTS
Release: 10.04
e2fsprogs:
Installed: 1.41.11-1ubuntu2.1
Candidate: 1.41.11-1ubuntu2.1
Version table:
*** 1.41.11-1ubuntu2.1 0
500 http://
100 /var/lib/
1.
500 http://
I cannot online resize my ext4 filesystem.
root@server:
resize2fs 1.41.11 (14-Mar-2010)
Filesystem at /dev/vg/lv is mounted on /some/fs; on-line resizing required
old desc_blocks = 5, new_desc_blocks = 10
resize2fs: Input/output error While checking for on-line resizing support
root@server:
tune2fs 1.41.11 (14-Mar-2010)
Filesystem volume name: <none>
Last mounted on: /some/fs
Filesystem UUID: ca55b6cd-
Filesystem magic number: 0xEF53
Filesystem revision #: 1 (dynamic)
Filesystem features: has_journal ext_attr resize_inode dir_index filetype needs_recovery extent flex_bg sparse_super large_file huge_file uninit_bg dir_nlink extra_isize
Filesystem flags: signed_
Default mount options: (none)
Filesystem state: clean
Errors behavior: Continue
Filesystem OS type: Linux
Inode count: 4915200
Block count: 19660800
Reserved block count: 983040
Free blocks: 9603091
Free inodes: 4915139
First block: 0
Block size: 4096
Fragment size: 4096
Reserved GDT blocks: 1019
Blocks per group: 32768
Fragments per group: 32768
Inodes per group: 8192
Inode blocks per group: 512
Flex block group size: 16
Filesystem created: Tue Nov 30 09:36:42 2010
Last mount time: Tue Nov 30 09:38:36 2010
Last write time: Thu Dec 16 20:47:30 2010
Mount count: 1
Maximum mount count: 30
Last checked: Tue Nov 30 09:36:42 2010
Check interval: 15552000 (6 months)
Next check after: Sun May 29 10:36:42 2011
Lifetime writes: 148 GB
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: half_md4
Directory Hash Seed: a68a2094-
Journal backup: inode blocks
ProblemType: Bug
DistroRelease: Ubuntu 10.04
Package: e2fsprogs 1.41.11-1ubuntu2.1
ProcVersionSign
Uname: Linux 2.6.32-24-server x86_64
Architecture: amd64
Date: Fri Dec 17 15:39:51 2010
InstallationMedia: Ubuntu-Server 10.04 "Lucid Lynx" - Release Candidate amd64 (20100419.1)
ProcEnviron:
SHELL=/bin/bash
PATH=(custom, no user)
LANG=en_US.UTF-8
SourcePackage: e2fsprogs
Apparently it has something to do with this filesystem as I can resize a freshly created one mounted or not:
root@server: /usr/share/ doc/e2fsprogs# lvcreate -L1G -n lvtest vg /usr/share/ doc/e2fsprogs# mkfs.ext4 /dev/vg/lvtest
Logical volume "lvtest" created
root@server:
mke2fs 1.41.11 (14-Mar-2010)
Filesystem label=
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
Stride=0 blocks, Stripe width=0 blocks
65536 inodes, 262144 blocks
13107 blocks (5.00%) reserved for the super user
First data block=0
Maximum filesystem blocks=268435456
8 block groups
32768 blocks per group, 32768 fragments per group
8192 inodes per group
Superblock backups stored on blocks:
32768, 98304, 163840, 229376
Writing inode tables: done
Creating journal (8192 blocks): done
Writing superblocks and filesystem accounting information: done
This filesystem will be automatically checked every 29 mounts or /usr/share/ doc/e2fsprogs# lvextend -L+1G /dev/vg/lvtest /usr/share/ doc/e2fsprogs# resize2fs /dev/vg/lvtest
180 days, whichever comes first. Use tune2fs -c or -i to override.
root@server:
Extending logical volume lvtest to 2.00 GiB
Logical volume lvtest successfully resized
root@server:
resize2fs 1.41.11 (14-Mar-2010)
Resizing the filesystem on /dev/vg/lvtest to 524288 (4k) blocks.
The filesystem on /dev/vg/lvtest is now 524288 blocks long.
root@server: /usr/share/ doc/e2fsprogs# mkdir /mnt/test /usr/share/ doc/e2fsprogs# mount /dev/vg/lvtest /mnt/test/ /usr/share/ doc/e2fsprogs# lvextend -L+1G /dev/vg/lvtest /usr/share/ doc/e2fsprogs# resize2fs /dev/vg/lvtest
root@server:
root@server:
Extending logical volume lvtest to 3.00 GiB
Logical volume lvtest successfully resized
root@server:
resize2fs 1.41.11 (14-Mar-2010)
Filesystem at /dev/vg/lvtest is mounted on /mnt/test; on-line resizing required
old desc_blocks = 1, new_desc_blocks = 1
Performing an on-line resize of /dev/vg/lvtest to 786432 (4k) blocks.
The filesystem on /dev/vg/lvtest is now 786432 blocks long.