Linux LVM users
 help / color / mirror / Atom feed
* [linux-lvm] [Fwd: Re: ext2 online resizer available]
@ 1999-10-17  9:45 Michael Marxmeier
  1999-10-17 12:25 ` Luca Berra
  0 siblings, 1 reply; 2+ messages in thread
From: Michael Marxmeier @ 1999-10-17  9:45 UTC (permalink / raw)
  To: linux-lvm

[admin: I've added Stephen to the list of valid posters]

-------- Original Message --------
Subject: Re: ext2 online resizer available
Date: Sun, 17 Oct 1999 06:39:06 -0400 (EDT)
From: Stephen Frost <sfrost@ns.snowman.net>
To: Andreas Dilger <adilger@enel.ucalgary.ca>
CC: Linux FS development list <linux-fsdevel@vger.rutgers.edu>,Linux
LVM mailing list <linux-lvm@msede.com>,Linux kernel development list
<linux-kernel@vger.rutgers.edu>

On Sat, 16 Oct 1999, Andreas Dilger wrote:

> Hello all,
> 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...

		Stephen


-
To unsubscribe from this list: send the line "unsubscribe
linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

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

* Re: [linux-lvm] [Fwd: Re: ext2 online resizer available]
  1999-10-17  9:45 [linux-lvm] [Fwd: Re: ext2 online resizer available] Michael Marxmeier
@ 1999-10-17 12:25 ` Luca Berra
  0 siblings, 0 replies; 2+ messages in thread
From: Luca Berra @ 1999-10-17 12:25 UTC (permalink / raw)
  To: linux-lvm

[-- Attachment #1: Type: text/plain, Size: 885 bytes --]

On Sun, Oct 17, 1999 at 11:45:33AM +0200, Michael Marxmeier wrote:
> 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...

when we will have raid atop lvm this will be trivial, for the time
being you can use Hubert Tonneau's pliant script (pliant is a programming
language) to resize a raid (see attached mail from linux-raid)

Regards,
Luca

-- 
Luca Berra -- bluca@comedia.it
    Communications Media & Services S.r.l.

[-- Attachment #2: Type: message/rfc822, Size: 6300 bytes --]

From: Hubert Tonneau <hubert.tonneau@heliosam.fr>
To: linux-raid@vger.rutgers.edu
Cc: Ingo Molnar <mingo@chiara.csoma.elte.hu>
Subject: Reconfiguring a RAID system without data loss
Date: Fri, 01 Oct 1999 13:54:47 +0200
Message-ID: <37F4A107.31989F5E@heliosam.fr>

Release 2 of the Pliant utility for reconfiguring (adding disks, changing
the RAID level or the chunk size) a software RAID without loosing (at your
own risks: test it on sample datas before using it on real ones) datas is
available.
The new code is expected to event survive to a disk failure in the middle
of the RAID reconfiguration (provided the RAID level is 1 or 5 :-) )

The script will be included in Pliant release 28 that will be available
at http://pliant.cams.ehess.fr/ in a few days.

If some of you want to stress test it, I can now send a snapshot by email
because the changes that will append in Pliant before release 28 have
nothing to do with this RAID script.

-----

Ingo wrote that this script should be written in C for several reasons:
- speed
- portability

These are my answers to these arguments:
- Although it would be faster if written in C because Pliant code generator
  is not as efficient as GCC, this is not that important because:
  . there is nothing in Pliant itself that make it slower than C, so at
    some point, the speed will be excacly the same as with C.
  . on a 300Mhz processor, the conversion speed could be about 10 MB/s,
    so it's completely IO bounded on my laptop.
- Now the portability argument is very valuable because Pliant currently
  runs only and i386 (Alpha port planned next year, but others are not
  scheduled yet).
- There is an additional strong argument for writting the script in C:
  Pliant is a young language that changes much for the moment.

Now, these are my arguments for writting the script in Pliant:
- Compiling a C program is a big problem because a C compiler is idiot:
  you need a set of extra tools (make, .configure script, ...) in
  order to cope with differences on various machines.
  On the other hand, a Pliant script is always run directly from
  it's source code (Pliant is what I call a dynamic compiler, you
  could also read on the fly, or not stupid), so for free softwares
  it's definetly better because you get rid of the binaries
  nightmare.
- In standard C, there is no provision for 64 bits arithmetics,
  whereas in Pliant, the unlimited intergers are a basic feature.
- A Pliant program is faster debugged because when you set the
  debugging level to 2 or more, all arithmetic overflows are
  reported: it was important for such an application.
- The Pliant code is probably shorter than the C code would be.
- I prefer Pliant (I designed it :-) )

Ingo also specifyed that at some point, this conversion should be
done on the fly in kernel space.
This would be the ultimate rafinement, but it does not worth the
troubles (except for changing the chunk size) until we get the ability
to resize an ext2 partition without umounting it. I seems to be
already possible, but with strong restrictions, so, for the moment, the
'ext2resize' utility seems to be the safest solution.
Now believing that no Pliant code will go in Linux kernel might also
be wrong on the long term. My opinion is that it may well append the
other way round at some point. Pliant would be the boot loader that
would load and compile on the fly the Linux kernel. In Pliant, there is
provision for several syntaxes, so the parts of Linux that are written
in C would be seen as Pliant programs: a Pliant C parser module will make
it transparent. Now Pliant would bring the flexibility to Linux kernel:
the ability to compile on the fly some drivers when the harward is
detected or some network frames are received, or recompile on the fly
with different optimising options, when some statistics have been
collected, and the cost would only be a bigger kernel (because Pliant
contains the compiler and some extra informations).
Lastly Pliant compiling machinery is much more powerfull than C compilers
one, so on a large project such as the Linux kernel you can get a much
cleaner and easyer to maintain code, even if keeping the C syntax.

-----

As a conclusion, I will maintain the script, in Pliant, until somebody
rewrites it in C.
Ingo, please don't include the script in the RAID user levels tools
since it may need to be adjusted if I make more changes in Pliant itself:
just specifying that it's available and the Pliant URL. I may also send
you a small HTML page specifying how to use it, which could be included
in the documentation of the user level tools.

This is a sample usage of the script:
pliant module /pliant/admin/raid.pli command 'raid_convert "/dev/md0" "/dev/hda5 /dev/hda6 /dev/hda7" "/dev/hda5 /dev/hda6 /dev/hda7 /dev/hda8" 5 64*2^10'

The third parameter (5) is the requested RAID level.
The fourth parameter (64*2^10=64K) is the requested chunk size.

Regards,
Hubert Tonneau


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

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

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1999-10-17  9:45 [linux-lvm] [Fwd: Re: ext2 online resizer available] Michael Marxmeier
1999-10-17 12:25 ` Luca Berra

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox