Discussion:
[linux-lvm] LVM ext3 and lvreduce
Joseph Kezar
2002-11-13 13:55:02 UTC
Permalink
I have LVM working, and I have created all my logical volumes for my
environment. All of my logical volumes have been mkfs.ext3'd.
Everything works, except for when I try to change the size with lvreduce
or lvextend. These tools are happy to work, but when I remount my
logvols and type: mount I see that in fact the size that is reported to
the OS has not changed.

Is there any incompatabilities with LVM and Ext3?
Is there a comparable tool for ext3 like e2fsadm?
Is it possible to resize an ext3 partition while it is online?
Pierre Lamb
2002-11-13 14:05:02 UTC
Permalink
Sounds like you changed the lv size but didin't extend
the file system. try the resize2fs after you changed
the lv size

Pierre
Post by Joseph Kezar
I have LVM working, and I have created all my
logical volumes for my
environment. All of my logical volumes have been
mkfs.ext3'd.
Everything works, except for when I try to change
the size with lvreduce
or lvextend. These tools are happy to work, but
when I remount my
logvols and type: mount I see that in fact the size
that is reported to
the OS has not changed.
Is there any incompatabilities with LVM and Ext3?
Is there a comparable tool for ext3 like e2fsadm?
Is it possible to resize an ext3 partition while it
is online?
_______________________________________________
linux-lvm mailing list
http://lists.sistina.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at
http://tldp.org/HOWTO/LVM-HOWTO/


__________________________________________________
Do you Yahoo!?
U2 on LAUNCH - Exclusive greatest hits videos
http://launch.yahoo.com/u2
Heinz J . Mauelshagen
2002-11-13 14:05:06 UTC
Permalink
Joseph,

you need to shrink the filesystem _before_ you lvreduce the logical volume.
Unmont it and use resize2fs to achieve this. e2fsadm which comes with LVM1
will run resize2fs and lvreduce correctly to achieve both size changes in
the correct sequence.

See e2fsadm(8) for details.
Post by Joseph Kezar
I have LVM working, and I have created all my logical volumes for my
environment. All of my logical volumes have been mkfs.ext3'd.
Everything works, except for when I try to change the size with lvreduce
or lvextend. These tools are happy to work, but when I remount my
logvols and type: mount I see that in fact the size that is reported to
the OS has not changed.
Is there any incompatabilities with LVM and Ext3?
Is there a comparable tool for ext3 like e2fsadm?
Is it possible to resize an ext3 partition while it is online?
_______________________________________________
linux-lvm mailing list
http://lists.sistina.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/
--
Regards,
Heinz -- The LVM Guy --

*** Software bugs are stupid.
Nevertheless it needs not so stupid people to solve them ***

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

Heinz Mauelshagen Sistina Software Inc.
Senior Consultant/Developer Am Sonnenhang 11
56242 Marienrachdorf
Germany
***@Sistina.com +49 2626 141200
FAX 924446
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Andreas Dilger
2002-11-13 17:02:02 UTC
Permalink
Post by Joseph Kezar
I have LVM working, and I have created all my logical volumes for my
environment. All of my logical volumes have been mkfs.ext3'd.
Everything works, except for when I try to change the size with lvreduce
or lvextend. These tools are happy to work, but when I remount my
logvols and type: mount I see that in fact the size that is reported to
the OS has not changed.
Is there any incompatabilities with LVM and Ext3?
No - ext3 is totally independent of LVM, except if you are doing snapshots.
Post by Joseph Kezar
Is there a comparable tool for ext3 like e2fsadm?
Yes, e2fsadm.
Post by Joseph Kezar
Is it possible to resize an ext3 partition while it is online?
Yes, but you need a new kernel patch and ext2online tools from CVS.
Find both at http://sourceforge.net/projects/ext2resize/

This is beta code now (i.e. we don't know of any bugs), excluding the
fact that ext2prepare doesn't work yet, so you can't online resize
past the next 16GB boundary unless you created a new filesystem with
the patched "mke2fs -O resize_inode" (patch at same place).

Cheers, Andreas
--
Andreas Dilger
http://www-mddsp.enel.ucalgary.ca/People/adilger/
http://sourceforge.net/projects/ext2resize/

Loading...