From: Eric Sandeen <sandeen@redhat.com>
To: Rishikesh K Rajak <risrajak@in.ibm.com>
Cc: linux-ext4@vger.kernel.org,
"Aneesh Kumar K.V" <aneesh.kumar@linux.vnet.ibm.com>
Subject: Re: BUG: Reducing the lvm partition on ext4 filesystem " ( 2.6.27-rc1 )
Date: Wed, 13 Aug 2008 10:17:40 -0500 [thread overview]
Message-ID: <48A2FB14.2040306@redhat.com> (raw)
In-Reply-To: <OF80EF388C.3D9E8928-ON652574A4.0028C9C8-652574A4.0029043A@in.ibm.com>
Rishikesh K Rajak wrote:
> Hi All,
>
> I have created the lvm partition on my machine and found there is some
> problem with reducing the size with resize2fs tool on 2.6.27-rc1 kernel.
>
> I am not sure this is an exact bug of ext4 filesystem or there is some
> problem with e2fsprogs/resize2fs tool.
>
> here is the bug link which i raised :
> http://bugzilla.kernel.org/show_bug.cgi?id=11317
>
I added comments to the bug, but:
[root@e326 sbin]# mount
...
/dev/mapper/my_volg-vol01 on /mnt type ext4dev (rw)
[root@e326 sbin]# umount /mnt/tmpmount/
[root@e326 sbin]# df -h
(unfortunately current size of ext4 fs is not shown)
First you slice off the end of the block device:
[root@e326 sbin]# lvreduce -L 4G /dev/mynew_vg/vol01
WARNING: Reducing active logical volume to 4.00 GB
THIS MAY DESTROY YOUR DATA (filesystem etc.)
Do you really want to reduce vol01? [y/n]: y
Reducing logical volume vol01 to 4.00 GB
Logical volume vol01 successfully resized
(bells should be going off here!)
*then* you try to shrink the fs:
[root@e326 sbin]# ./resize2fs /dev/mynew_vg/vol01
resize2fs 1.41-WIP (17-Jun-2008)
Please run 'e2fsck -f /dev/mynew_vg/vol01' first.
and it finds that your block device is smaller than your fs:
[root@e326 sbin]# ./e2fsck -f /dev/mynew_vg/vol01
e2fsck 1.41-WIP (17-Jun-2008)
The filesystem size (according to the superblock) is 11304960 blocks
The physical size of the device is 4194304 blocks
You need to resize the fs, then resize the block device it's on.
This looks like user error to me.
-Eric
prev parent reply other threads:[~2008-08-13 15:18 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-08-13 7:31 BUG: Reducing the lvm partition on ext4 filesystem " ( 2.6.27-rc1 ) Rishikesh K Rajak
2008-08-13 15:17 ` Eric Sandeen [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=48A2FB14.2040306@redhat.com \
--to=sandeen@redhat.com \
--cc=aneesh.kumar@linux.vnet.ibm.com \
--cc=linux-ext4@vger.kernel.org \
--cc=risrajak@in.ibm.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.