From: Andrew Clausen <clausen@gnu.org>
To: Andreas Dilger <adilger@turbolinux.com>
Cc: parted@gnu.org, linux-lvm@msede.com
Subject: Re: [linux-lvm] LVM, partitions, RAID, and the Grand Scheme of Things TM
Date: Sun, 10 Sep 2000 00:38:42 +1100 [thread overview]
Message-ID: <39BA3D62.E21B13E1@gnu.org> (raw)
In-Reply-To: 200009070053.SAA05253@lynx.turbolabs.com
Andreas Dilger wrote:
>
> Andrew Clausen, you write:
> > First, we think it would be useful for the LVM tools to be able to
> > resize logical volumes, along with the file systems on it. Perhaps
> > a --filesystem parameter to lvreduce, lvextend and lvcreate?
>
> The existing LVM user tools ship with something called "e2fsadm" which
> does this for ext2 filesystems, first extending the LV and then the
> filesystem. I have updated e2fsadm to also handle online filesystem
> resizing, but this is not in the official tools yet.
I'm not sure I like this idea of file system specific programs
doing LVM stuff. What you describe here is better:
> Yesterday, a tool
> called lvmadm was announced which does this in a more generic way,
> similar to fsck, by calling a fs-specific resizer depending on the fs
> type.
It would be trivial (i.e. a bit of beaurocracy) to write a front end
to libparted, to do this (or even, a shell script wrapper of parted)
One thing: there is non-trivial interaction between the file system
and partition table handling (not with LVM), when resizing the start
of a partition. Some resizers (including ext2resize, and reiserfs's
resizer) can't resize the start, and use the partition as the
address space. When resizing the start, this doesn't make sense.
So, while it's rather cute to do:
# ext2resize /dev/hda3 [new-size]
It generalizes to:
# ext2resize /dev/hda3 [new-start] [new-end]
Doing this only makes sense if ext2resize (or whatever) updates the
partition table (as Parted does).
So, having /sbin/resize.* isn't as elegant as it looks. Were
you suggesting have resize.* deal with partition table stuff?
> I think Heinz's stated direction is that LVM will stay layered on top
> of MD/RAID rather than incorporating this functionality itself.
OK.
> > However, it doesn't look like partition tables will disappear anytime
> > soon. Rather, it looks like LVM will have to cooperate with partition
> > tables. And, perhaps Microsoft's new system as well (?).
>
> Personally, I would rather get all knowledge of partition tables out of
> LVM and have the existing partition table support in the kernel handle
> everything. Having a library to do all the partition-table parsing and
> writing would be a boon not only to parted, but also if it was added to
> fdisk, cfdisk, grub, et-al.
Yep. OTOH, Parted already has lots of partition table parsing stuff
already. It could be separated into a different library.
libparted's partition table API (version 1.3.x) is much cleaner than
anything else I've seen. It supports msdos, mac and pc98 so far.
> You should read the LVM mailing list archive for June. IBM has already
> proposed such a system, called LVMS, which would be the glue layer between
> LVM, partitions, filesystems, RAID, etc. From the sounds of it, they will
> try and leverage as much of the existing code from the kernel as possible.
Looks like I have lots of reading to do!
Thanks,
Andrew Clausen
next prev parent reply other threads:[~2000-09-09 13:38 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-09-06 6:08 [linux-lvm] LVM, partitions, RAID, and the Grand Scheme of Things TM Andrew Clausen
2000-09-07 0:53 ` Andreas Dilger
2000-09-09 13:38 ` Andrew Clausen [this message]
2000-09-11 21:13 ` Andreas Dilger
2000-09-11 18:21 ` [linux-lvm] LVM, partitions, RAID, and the Grand Scheme of ThingsTM Andrew Clausen
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=39BA3D62.E21B13E1@gnu.org \
--to=clausen@gnu.org \
--cc=adilger@turbolinux.com \
--cc=linux-lvm@msede.com \
--cc=parted@gnu.org \
/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.