ext4 not able to online resize

Bug #691726 reported by Michael Heldebrant
12
This bug affects 2 people
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://hivemind.epicsys.com/aptmirror/ubuntu/ lucid-updates/main Packages
        100 /var/lib/dpkg/status
     1.41.11-1ubuntu2 0
        500 http://hivemind.epicsys.com/aptmirror/ubuntu/ lucid/main Packages

I cannot online resize my ext4 filesystem.

root@server:/usr/share/doc/e2fsprogs# resize2fs /dev/vg/lv
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:/usr/share/doc/e2fsprogs# tune2fs -l /dev/vg/lv
tune2fs 1.41.11 (14-Mar-2010)
Filesystem volume name: <none>
Last mounted on: /some/fs
Filesystem UUID: ca55b6cd-d717-4ca6-b82d-a9ab5d8dc687
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_directory_hash
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-bb57-4282-bbbd-4752e4e7d77a
Journal backup: inode blocks

ProblemType: Bug
DistroRelease: Ubuntu 10.04
Package: e2fsprogs 1.41.11-1ubuntu2.1
ProcVersionSignature: Ubuntu 2.6.32-24.43-server 2.6.32.15+drm33.5
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

Revision history for this message
Michael Heldebrant (mheldebr) wrote :
Revision history for this message
Michael Heldebrant (mheldebr) wrote :

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
  Logical volume "lvtest" created
root@server:/usr/share/doc/e2fsprogs# mkfs.ext4 /dev/vg/lvtest
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
180 days, whichever comes first. Use tune2fs -c or -i to override.
root@server:/usr/share/doc/e2fsprogs# lvextend -L+1G /dev/vg/lvtest
  Extending logical volume lvtest to 2.00 GiB
  Logical volume lvtest successfully resized
root@server:/usr/share/doc/e2fsprogs# resize2fs /dev/vg/lvtest
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
root@server:/usr/share/doc/e2fsprogs# mount /dev/vg/lvtest /mnt/test/
root@server:/usr/share/doc/e2fsprogs# lvextend -L+1G /dev/vg/lvtest
  Extending logical volume lvtest to 3.00 GiB
  Logical volume lvtest successfully resized
root@server:/usr/share/doc/e2fsprogs# resize2fs /dev/vg/lvtest
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.

Revision history for this message
Michael Heldebrant (mheldebr) wrote :

Apparently this was a SAN issue that didn't force a ro on this filesystem. I noted the issues later and remounted this filesystem and then it was able to resize online.

Revision history for this message
Phillip Susi (psusi) wrote :

Then I will close this bug report.

Changed in e2fsprogs (Ubuntu):
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.