I installed CentOS on my home-server with 2 IDE 160GB MAXTOR HDD / RAID-1, LVM and ext3 partitions. Previous OS on this machine was FC2. I often "play" with LVM and, sometimes, have to extand or reduce some volumes size. I was surprised to see that resize2fs isn''t included anymore ! The replacing tool is ext2online but this one seems to only be able to grow a filesystem (not reducing it). What tool do I have to use to shrink a ext3 filesystem ? Also the simple command-line tool "tree" doesn''t look to be included in this release ? Is that the case also for RHEL4 ? If so, I can''t understand why it was removed from the distro :-|. Thanks for your replies. Gilles.
On Sat, 2005-03-26 at 19:02 +0100, Gilles CHAUVIN wrote:> The replacing tool is ext2online but this one seems to only be able to > grow a filesystem (not reducing it). What tool do I have to use to > shrink a ext3 filesystem ?ext2online. Unmount the filesystem first. -- Ignacio Vazquez-Abrams <ivazquez@ivazquez.net> http://centos.ivazquez.net/ gpg --keyserver hkp://subkeys.pgp.net --recv-key 38028b72 -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://lists.caosity.org/pipermail/centos/attachments/20050326/6bb5e162/attachment.bin
On Sat, 26 Mar 2005 13:33:58 -0500, Ignacio Vazquez-Abrams <ivazquez@ivazquez.net> wrote:> On Sat, 2005-03-26 at 19:02 +0100, Gilles CHAUVIN wrote: > > The replacing tool is ext2online but this one seems to only be able to > > grow a filesystem (not reducing it). What tool do I have to use to > > shrink a ext3 filesystem ? > > ext2online. Unmount the filesystem first. > > -- > Ignacio Vazquez-Abrams <ivazquez@ivazquez.net> > http://centos.ivazquez.net/ > > gpg --keyserver hkp://subkeys.pgp.net --recv-key 38028b72 > > > _______________________________________________ > CentOS mailing list > CentOS@caosity.org > http://lists.caosity.org/mailman/listinfo/centos > > > >Thanks but that doesn''t seems to be the correct solution :( # mount /dev/VG00/GCN # ext2online /dev/VG00/GCN ext2online v1.1.18 - 2001/03/18 for EXT2FS 0.5b ext2online: new size is same as current (262144) # umount /dev/VG00/GCN # ext2online /dev/VG00/GCN ext2online v1.1.18 - 2001/03/18 for EXT2FS 0.5b ext2online: can''t find /dev/mapper/VG00-GCN, is it mounted? usage: ext2online [...] Am I doing something wrong or is ext2online not the correct tool for this ? Gilles.
On Sat, 2005-03-26 at 19:48 +0100, Gilles CHAUVIN wrote:> On Sat, 26 Mar 2005 13:33:58 -0500, Ignacio Vazquez-Abrams > <ivazquez@ivazquez.net> wrote: > > On Sat, 2005-03-26 at 19:02 +0100, Gilles CHAUVIN wrote: > > > The replacing tool is ext2online but this one seems to only be able to > > > grow a filesystem (not reducing it). What tool do I have to use to > > > shrink a ext3 filesystem ? > > > > ext2online. Unmount the filesystem first. > > > > > > Thanks but that doesn''t seems to be the correct solution :( > > # mount /dev/VG00/GCN > > # ext2online /dev/VG00/GCN > ext2online v1.1.18 - 2001/03/18 for EXT2FS 0.5b > ext2online: new size is same as current (262144) > > # umount /dev/VG00/GCN > > # ext2online /dev/VG00/GCN > ext2online v1.1.18 - 2001/03/18 for EXT2FS 0.5b > ext2online: can''t find /dev/mapper/VG00-GCN, is it mounted? > usage: ext2online [...] > > Am I doing something wrong or is ext2online not the correct tool for this ?The ext2online man page says: ... It is possible to use ext2resize(8) to shrink and enlarge an unmounted filesystem. -- C. Linus Hicks <lhicks at nc dot rr dot com>
On Sat, 26 Mar 2005 15:33:11 -0500, C. Linus Hicks <lhicks@nc.rr.com> wrote:> The ext2online man page says: > > ... It is possible to use > ext2resize(8) to shrink and enlarge an unmounted filesystem. >Of course I did read the man page and I also saw this part of the man but, guess what, ext2resize doesn''t exists in RHEL4 / CentOS 4. I''ve found this => https://bugzilla.redhat.com/beta/show_bug.cgi?id=150003#c5 "The reason ext2resize is disabled is because the version available for RHEL4 was discovered, at the last moment, to be incompatible with the new online resize code. That has since been fixed and ext2resize is scheduled to be in RHEL4 update 1." So, if I understand correctly, no FS shrinking till next update :( !
On Sat, 2005-03-26 at 22:02 +0100, Gilles CHAUVIN wrote:> On Sat, 26 Mar 2005 15:33:11 -0500, C. Linus Hicks <lhicks@nc.rr.com> wrote: > > The ext2online man page says: > > > > ... It is possible to use > > ext2resize(8) to shrink and enlarge an unmounted filesystem. > > > Of course I did read the man page and I also saw this part of the man > but, guess what, ext2resize doesn''t exists in RHEL4 / CentOS 4. > > I''ve found this => https://bugzilla.redhat.com/beta/show_bug.cgi?id=150003#c5 > "The reason ext2resize is disabled is because the version available > for RHEL4 was > discovered, at the last moment, to be incompatible with the new online resize > code. That has since been fixed and ext2resize is scheduled to be in RHEL4 > update 1." > > So, if I understand correctly, no FS shrinking till next update :( !You could go to: http://sourceforge.net/projects/ext2resize/ to get it. They have 1.1.19 with the notes saying: Update for various fixes: Patches for e2fsprogs-1.35 Patches for kernel-2.6.9-rc2-mm4 gcc-3.4 compiler fixes 64-bit host fixes. Also note that the e2fsprogs RPM puts ext2online in /usr/sbin whereas the sf rpm for 1.1.19 puts it, along with ext2resize in /sbin. -- C. Linus Hicks <lhicks at nc dot rr dot com>
On Sat, 26 Mar 2005 16:07:58 -0500, C. Linus Hicks <lhicks@nc.rr.com> wrote:> You could go to: > > http://sourceforge.net/projects/ext2resize/ > > to get it. They have 1.1.19 with the notes saying: >I''ve downloaded the latest e2fsprogs RPM from rawhide and had a look at its spec-file. I''ve found two interesting things in the changelog : (this part is not a surprise :p) * Wed Dec 22 2004 Stephen C. Tweedie - Disable offline resize for now: resize2fs is incompatible with online resize, and can result in corrupt filesystems. and * Mon Feb 21 2005 Stephen C. Tweedie 1.36-1.2 - Re-enable resize2fs I''ll try to compile this .src.rpm against CentOS4 and see what it does. Gilles.
On Sat, 26 Mar 2005 22:41:01 +0100, Gilles CHAUVIN <gcnweb@gmail.com> wrote:> I''ll try to compile this .src.rpm against CentOS4 and see what it does. >For those who cares, I''ve compiled the e2fsprogs-1.36-1.3 found in the rawhide repository ( http://download.fedora.redhat.com/pub/fedora/linux/core/development/SRPMS/e2fsprogs-1.36-1.3.src.rpm ). The resize2fs tool is back and seems to perform well ! The END :) ! Gilles.