linux-lvm.redhat.com archive mirror
 help / color / mirror / Atom feed
* [linux-lvm] Re: ext2 online resizer available
       [not found] <199910172057.WAA20340@wsdw01.win.tue.nl>
@ 1999-10-17 21:17 ` Andreas Dilger
  0 siblings, 0 replies; 2+ messages in thread
From: Andreas Dilger @ 1999-10-17 21:17 UTC (permalink / raw)
  To: Guest section DW; +Cc: Linux LVM mailing list, Linux FS development list

Andries writes:
> Such things are possible these days.
> Find a recent kernel and a recent util-linux (source) distribution.
> In the fdisk directory you'll find tiny utilities addpart.c and delpart.c
> that will add and remove partitions on a disk that is otherwise in use.

The issue isn't being able to add and remove other partitions on a disk,
but rather to change the size of the underlying partition for a filesystem
that is currently mounted.  I tried again with util-linux-2.9g, but the
kernel still thinks the partition is the old size.  I will have to look
into this to see if it is possible to update the kernel partition info
for the mounted partition with an IOCTL.

Cheers, Andreas
-- 
Andreas Dilger  \ "If a man ate a pound of pasta and a pound of antipasto,
                 \  would they cancel out, leaving him still hungry?"
http://www-mddsp.enel.ucalgary.ca/People/adilger/               -- Dogbert

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [linux-lvm] Re: ext2 online resizer available
       [not found] <Pine.LNX.4.05.9910170632090.29538-100000@ns.snowman.net>
@ 1999-10-17 20:25 ` Andreas Dilger
  0 siblings, 0 replies; 2+ messages in thread
From: Andreas Dilger @ 1999-10-17 20:25 UTC (permalink / raw)
  To: Stephen Frost; +Cc: Linux LVM mailing list, Linux FS development list

Stephen writes:
> On Sat, 16 Oct 1999, Andreas Dilger wrote:
> > my online ext2 resizer is now available in a fully functional state.  If
> > the underlying partition supports it, it is possible to resize an ext2
> > filesystem while it is mounted and in use by applications.
> 
> 	Have you looked at all into how well it works on RAID partitions?
> Ideally I'd love to be able to stick a pair of disks into a system, rescan
> the SCSI bus to pick them up, add them onto the end of my RAID 0+1 (striped/
> mirrored) raid, and then increase the ext2 partition on the RAID.  All
> without having to drop the system.  I'm fairly sure it can't be done with
> the current set of tools and whatnot, but that's one thing I'd love to see.
> 	Don't get me wrong, ext2 resizing is very nice, just would be nice
> to be able to resize RAID things to go along with it...

I haven't ever used the MD RAID device, so I can't say for sure.  The real
issue is whether or not the MD RAID device uses DOS-style partitions made
with fdisk, or if you access the device directly (e.g. equivalent to using
/dev/hda instead of /dev/hda1 as the underlying device).  If you still have
DOS-style partitions on the MD device, then you can't use ext2online.

I have tried several times to make a small partition via fdisk, make and
mount a filesystem on it, and then while it is mounted use fdisk to
extend the partition at the end.  However, the kernel complains that the
partition is in use, and still thinks the partition is the old size.  I
have no problem with making a filesystem smaller than the full device size
and then extending the filesystem to fill the device while it is in use.
This is, of course, totally useless for a real system as you would not
make a huge partition and then only put a small filesystem in it.

I have also tried making a loopback device on a file, mounting it, increase
the size of the file and then grow the filesystem.  Again the kernel/loop
device think the size is the original file size and doesn't let me grow
past the end.

I think the only real solutions at this point are to use LVM, which allows
you to online resize the LVs.  If you use RAID on a device without partition
tables, and you are able to resize the device and the kernel can understand
that, then you can use ext2online to grow the filesystem.

Cheers, Andreas
-- 
Andreas Dilger  \ "If a man ate a pound of pasta and a pound of antipasto,
                 \  would they cancel out, leaving him still hungry?"
http://www-mddsp.enel.ucalgary.ca/People/adilger/               -- Dogbert

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~1999-10-17 21:17 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <199910172057.WAA20340@wsdw01.win.tue.nl>
1999-10-17 21:17 ` [linux-lvm] Re: ext2 online resizer available Andreas Dilger
     [not found] <Pine.LNX.4.05.9910170632090.29538-100000@ns.snowman.net>
1999-10-17 20:25 ` Andreas Dilger

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).