Skip to contentSkip to conversation

IBM to release LVM Technology to the Linux

linux-lvm [email protected] 4 participants 4 messages Jun 22, 2000 – Jun 26, 2000 1 message not in the archive

lore
Share & tools
lore
#0 lore raw

Martin,

Welcome to the discussion, and thanks for sharing your opinion.

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Andreas" == Andreas Dilger <[email protected]> writes:

Andreas> Having used both the AIX LVM, the Linux LVM, and the good-old Andreas> DOS partitions, I would have to disagree with your statement Andreas> that logical extents are of very little benefit. One of the Andreas> worst things to do in a DOS-partitioned world is to resize Andreas> the partitions themselves. You always have to over-estimate Andreas> the partition sizes in case you need more space in the Andreas> future, or add a whole new partition if you run out of space Andreas> in the existing partition.

Martin>Andreas, you are preaching to the choir. Partitions don't belong in Martin>an LVM architecture at all. They are a legacy thing which needs to go
Martin>away.

What is a partition? By definition, a partition is a contiguous block of disk space.

What is an extent? By definition, an extent is a contiguous block of disk space.

What is the difference between them? Besides the names, nothing in and of themselves. What's different is how they are managed, specifically the structures and rules used to manage them.

Martin>Also, I don't tend to agree with most of the infrastructure proposed Martin>in the IBM whitepaper. If IBM's intention is that this will be a Martin>cross-OS LVM architecture, well then fine -- lots of abstractions are
Martin>obviously needed.

Our customers have asked for a migration path to Linux from their existing platforms. Migration is made much easier and much less expensive when the new platform can read and write to the volumes/partitions/etc. used by the old platform. Furthermore, most of our customers will require a testing period where the new platform and the old platform are compared on the same hardware using the same datasets. Again, the ability of the new platform to use the volumes/partitions/etc. of the old platform can greatly speed the testing process while reducing costs. Finally, an LVMS based upon the architecture in the white paper would, with the proper plug-in modules, ease migration from several platforms (both IBM and non-IBM) to Linux by allowing Linux to use the volumes/partitions/etc. of these platforms.

As far as being a cross-OS LVM architecture, this is true. This architecture was designed with the idea of being OS neutral where possible, and is being considered for implementation on other IBM platforms.

Martin>If it is supposed to be Linux specific, however, I don't see why one Martin>would waste engineering resources implementing plug-ins for reading Martin>Macintosh partitions types etc. We already have an adequate framework
Martin>for that in the kernel.

The MacIntosh partitioning scheme was merely an example. With the proper plug-ins, an LVMS based upon the architecture in the white paper would be able to access and manipulate logical volumes (and volume groups) created by AIX, for example. Again, though, implementing support for other OS partitioning schemes and logical volume management schemes aids in migration to Linux.

Another thing to remember is that users want power without risk. This is especially true in the corporate world. To make it there, Linux needs a very powerful, flexible logical volume management system which minimizes the risk of losing data. This calls for an architecture which integrates all aspects of volume/disk management into a single, easy to use entity. All processes which could be automated should be automated to prevent "accidents", such as the improper shrinking of a volume containing data. Right now it is rather easy to accidentally shrink a volume before shrinking the filesystem on the volume, or to shrink the filesystem on the volume by the wrong amount. Is fdisk volume group aware (have not tried this yet)? If it isn't, a user could make a mistake and delete a partition which belongs to a volume group. The current system has holes in it, and these holes need to be plugged before Linux can be a major player in the corporate world. These holes can be plugged in a patch work fashion, or they can be eliminated by adopting an architecture (not necessarily the one in the white paper) in which they don't exist or can't occur.

Martin>The scheme I've been toying with over the past months:
Martin>
Martin> - Logical Disk = Either partition or whole disk. Martin>
Martin> - The Logical Disk provides allocation space for extents. Martin>
Martin> - Extents are allocated on the available logical disks based upon
Martin> heuristics in the feature set/system administrator preferences.
Martin>
Martin> - Logical Volume consists of one or more extents accessed through one
Martin> or more feature sets (RAID0, RAID1, RAID5, encryption, whatever).
Martin>
Martin>The extents can be of varying size depending on the application. A 30
Martin>GB RAID5 LV could be constructed from 4 x 10 GB extents on 4 different
Martin>physical disks + a 10 GB hot spare extent on a fifth disk, for Martin>instance.

I don't understand your example. Change the word extent to partition and you have:

A 30 GB RAID5 LV could be constructed from 4 x 10 GB partitions on 4
different
physical disks + a 10 GB hot spare partition on a fifth disk, for instance.

This is exactly what you would have under the LVMS described in the white paper. Your example shows nothing which could not be done through the LVMS architecture with partitions. Am I missing something here?

Regards,

Ben

#1 lore raw
Quoted 8 lines

Another thing to remember is that users want power without risk. This is especially true in the corporate world. To make it there, Linux needs a very powerful, flexible logical volume management system which minimizes the risk of losing data. This calls for an architecture which integrates all aspects of volume/disk management into a single, easy to use entity. All processes which could be automated should be automated to prevent "accidents", such as the improper shrinking of a volume containing data. Right now it is rather easy to accidentally shrink a volume before

Quoted 8 lines

shrinking the filesystem on the volume, or to shrink the filesystem on the volume by the wrong amount. Is fdisk volume group aware (have not tried this yet)? If it isn't, a user could make a mistake and delete a partition which belongs to a volume group. The current system has holes in it, and these holes need to be plugged before Linux can be a major player in the corporate world. These holes can be plugged in a patch work fashion, or they can be eliminated by adopting an architecture (not necessarily the one in the white paper) in which they don't exist or can't occur.

% man e2fsadm

DESCRIPTION
e2fsadm allows resizing of a logical volume (see lvm(8), lvcreate(8)) containing an unmounted ext2 filesystem and then extending the filesystem by resize2fs(8) afterwards or reducing the filesystem first and then reducing the logical volume afterwards.

First thing is Linux-LVM is still evolving and will only get better. Now IBM and SGI have their own volume management systems which is fine, and porting them to Linux can only be a good thing too. At the end of the day its the users in the community that choose. Now its in the community and IBM users interest for IBM to port AIX systems to Linux, so people can simply install Linux and use there existing AIX hard drives. The same goes for SGI. And work is already underway with JFS and XFS for example.
I actually like the system being evolved by Linux-LVM since it follows the Unix
philosophy do one thing and to it well (the opposite of Micr$oft).

-- Dale.

#3 lore raw
In reply to a message not in the archive
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Ben" == benr <[email protected]> writes:

[Musings deleted]

Ben> This is exactly what you would have under the LVMS described in Ben> the white paper. Your example shows nothing which could not be Ben> done through the LVMS architecture with partitions. Am I missing Ben> something here?

I am advocating:

1. Using existing partitioning schemes to encapsulate logical disks.

This is only relevant in the migration case and if people want to test LVMS on a few disks that are already partitioned. If your system has hundreds of disks connected, you'll use a 1:1 physical to logical disk mapping anyway.

2. Avoid using existing partitioning schemes to encapsulate logical partitions/extents.

Signature · 3 lines
Martin K. Petersen, Principal Linux Consultant, Linuxcare, Inc.
[email protected], http://www.linuxcare.com/
Linuxcare. Support for the revolution.
#4 lore raw
In reply to [email protected]
Quoted 5 lines · Ben

What is a partition? By definition, a partition is a contiguous block of disk space.

What is an extent? By definition, an extent is a contiguous block of disk space.

For the purpose of this email, I will refer to fixed-size (e.g. 4MB or 16MB) chunks of the disk as logical blocks (LBs) and variable-sized chunks of the disk as extents.

Quoted 3 lines

What is the difference between them? Besides the names, nothing in and of themselves. What's different is how they are managed, specifically the structures and rules used to manage them.

I agree with this... However unless you make your LVMS infrastructure handle many thousands of extents in an efficient manner, it will not work well with the existing LVM implementations. You suggest that the Linux/AIX LVM can be abstracted by a partition plugin, but this would could be very expensive to handle each LVM LB as an individual partition. In practise this is not usually true, but I have seen (poorly configured, mind you) AIX PVs that are fragmented into many tens of LVs, and each LV is spread over 10 disks, making many hundreds of separate extents in a single VG.

Quoted 6 lines

The MacIntosh partitioning scheme was merely an example. With the proper plug-ins, an LVMS based upon the architecture in the white paper would be able to access and manipulate logical volumes (and volume groups) created by AIX, for example. Again, though, implementing support for other OS partitioning schemes and logical volume management schemes aids in migration to Linux.

I totally agree with this. With some careful coding, the existing Linux codebase for partition/filesystems/devices/raid can be used for LVMS, rather than re-implementing everything and bloating the kernel. Linux already has 90% of the functionality needed to do this - all it requires is the framework to handle it in an abstract way like LVMS proposes. There will be enough people that DON'T want to use LVMS (for whatever reason) that it should not be reworked to only work with LVMS.

Quoted 10 lines

I don't understand your example. Change the word extent to partition and you have:

A 30 GB RAID5 LV could be constructed from 4 x 10 GB partitions on 4
different
physical disks + a 10 GB hot spare partition on a fifth disk, for instance.

This is exactly what you would have under the LVMS described in the white paper. Your example shows nothing which could not be done through the LVMS architecture with partitions. Am I missing something here?

The real problem is that if you want to grow your volume, you need to create 4 new extents. If you want to grow it again, you need 4 more extents, etc. What it boils down to is that you really want logical blocks that are small enough to use disk space efficiently, and handled efficiently enough (memory/disk maps to organize them) that you can have many hundreds/thousands to make a single filesystem.

One of the great benefits of having small LBs, as opposed to working with large extents, is that you can easily work with individual LBs to move/mirror/re-sync. If you need to do the same thing with a large extent, it can be much more CPU/disk intensive than it needs to be, or can lock out the user/application longer than needed.

AIX LVM has a simple bitmap which tracks stale LBs in a mirror LV (maybe caused by the disk being unavailable for a moment). If you resync the LV, it only copies those parts that are stale, whereas you would need to copy the whole partition with your monolithic LVMS. The same could be said for re-syncing a RAID 5 volume - you would only need to re-calculate the parity on the LB that was stale, rather than the whole partition. If you externally keep a bitmap of blocks for mirroring/raid/remapping within the extent, what is the point of having extents in the first place?

This isn't to say that I don't see some benefit in using whole partitions instead of LBs. It could be likened to an extent-based filesystem (like XFS) compared to a block-based filesystem like ext2. In most cases you really allocate the space in large chunks, so extents are good. However, in some cases (e.g. log files (in a filesystem), or /usr (for AIX LVM)) you tend to allocate space in small increments, and having many separate extents.

If you can show me how an "Linux LVM" or "AIX LVM" partition plugin can actually work in the context of LVMS, without duplicating 90% of the LVMS functionality, and without requiring huge amounts of disk or memory space to handle a non-contiguous LV, then I will agree that LVMS is superior and work on its development.

Cheers, Andreas

Signature · 3 lines
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