This FAQ is part of the
Linux NTFS Project.
The latest version can be found online at
ldm.html
If you have an LDM question that isn't answered in this FAQ, or you have comments about the FAQ, please email me: rich@flatcap.org
- Most frequently asked questions
- Other interesting bits
- Note carefully
1.1 What is the LDM? | |
1.2 Why is it so good? | |
1.3 Why should I use LDM? | |
1.4 Who designed the LDM? | |
1.5 Which operating systems use it? |
3.1 Can Linux edit LDM Partitions? | |
3.2 Are there any tools for LDM? | |
3.3 When will there be some tools LDM? |
4.1 Kernel Support | |
4.2 ldminfo | |
4.3 /etc/raidtab | |
4.4 mount |
The Logical Disk Manager (LDM) is a blanket term for a new way of partitioning a disk. The LDM controls Windows Dynamic Disks which support spanned, striped, mirrored and RAID5 volumes. The LDM stores its information in a database at the end of each physical disk.
The LDM was introduced in Windows 2000. Before that, Windows NT used volume sets, which stored their information in the registry.
To see why the LDM is so good, it's necessary to look at what was wrong the old method of partitioning disks. todo
The LDM is basically without limits. The old method of partitioning a disk was very limited. It has limits on its size and the geometry of the disk affected the partitions. For a brief history of partitioning, see the LDM Documentation.
limits, complicated, extendable, journalled (reliable), all on diskTODO
TODO
TODO
Yes. The LDM driver was accepted into the Linux Kernel (2.4.8) in August 2001. That driver has now been rewritten from scratch.
The simplest way to decide is to find out which Linux Kernel version you have. Run the command:
uname -r
Kernel Version | LDM Driver |
---|---|
2.4.8 - 2.4.19 | old |
2.4.20+ | new |
2.5.0 - 2.5.28 | old |
2.5.29+ | new |
The old driver was rather crude. It allocated a lot of memory todo
TODO
At the moment, only Mandrake installs a kernel that supports LDM, though the installer doesn't understand LDM. The kernel they use has the old driver.
Neither Veritas nor Microsoft have released any documentation about the internals of the LDM, so we had to reverse engineer the database from scratch. The method was roughly:
If this sounds like a lot of work, then you probably understand how hard the task has been. We now understand pretty much everything about the LDM database.
Actually writing the driver was far simpler than gathering the information.
As we reverse engineered the database, we documented everything. The docs are available online at: ../ldm/index.html or for download at: ../downloads.html
The docs contain a high-level overview and a complete technical breakdown.
The LDM Driver was written by Richard Russon (FlatCap) in 2001. He has been helped by: Anton Altaparmakov and Jakob Kemi. The driver was added to the Linux Kernel in August 2001 (2.4.8).
Jakob Kemi has written a tool, ldmtool, to edit the partition types of LDM partition, but it can't edit anything else. The source is available in our bitkeeper respository or from our download page.
There are two: ldmtool, above, and ldminfo. ldminfo simply dumps the contents of an LDM database in a human-readable format. It's more of a debugging aid, than a useful utility.
No time soon. The LDM Driver was written for fun and there seems to be very little demand for it. As such the author will fix any bugs but is reluctant to put much more work into it.
The LDM is comprehensively documented and the author is happy to help anyone if they wish to write some utilities.
TODO
TODO
TODO http://tldp.org/HOWTO/Software-RAID-HOWTO.html
raiddev /dev/md0 raid-level 5 nr-raid-disks 3 chunk-size 16k persistent-superblock 0 device /dev/hdb1 raid-disk 0 device /dev/hdc1 raid-disk 1 device /dev/hdd1 raid-disk 2
TODO
Copyright © flatcap (Richard Russon) |