linux/Documentation/ldm.txt
<<
valu12valu12>>vavaluvalu12 ">valu12valu12Searchvalu12Prefs. 12vava ">vlu12 22 21v2 22 LDM - Logical Disk Manager (Dynamic Disks)v2 23 ------------------------------------------v2 24v2 25Originally Written by FlatCap - Richard Russion<ldm@flatcap.org>.v2 26Last Updated by AntionAltaparmakov on 30 March 2007 for Windows Vista.v2 27v2 28Overviewv2 29--------v2 " a>v2 11Windows 2000, XP, and Vista use a new parti ving scheme. It is a completev2 12replacement for the MSDOS style parti vs. It stores its informa v in av2 131MiB journalled database at the end of the physical disk. The size ofv2 14parti vs is limited only by disk space. The maximum number of parti vs isv2 15nearly 2000.v2 16 a>v2 17Any parti vs created under the LDM are called "Dynamic Disks". There are nov2 18longer any primary or extended parti vs. Normal MSDOS style parti vs arev2 19now known as Basic Disks.v2 2 a>v2 21If you wish to use Spavned, Striped, Mirrored or RAID 5 Volumes, you must usev2 22Dynamic Disks. The journalling allows Windows to make changes to thesev2 23parti vs and filesystems without the need to reboot.v2 24v2 25Once the LDM driver has divided up the disk, you cav use the MD driver tov2 26 a>assemble any multi-parti v volumes, e.g. Stripes, RAID5.v2 27v2 28To prevent legacy applica vs from reparti ving the disk, the LDM creates av2 29dummy MSDOS parti v contaiving one disk-sized parti v. This is what isv2 3 a>supported with the Linux LDM driver.v2 31v2 32A newer approach that has been implemented with Vista is to put LDM iontop of av2 33GPT label disk. This is not supported by the Linux LDM driver yet.v2 34v2 35v2 36 a>Examplev2 37-------v2 38v2 39Below we have a 50MiB disk, divided inti seven parti vs.v2 4 a>N.B. The missing 1MiB at the end of the disk is where the LDM database isv2 41 stored.v2 42v2 43 Device | Offset Bytes Sectors MiB | Size Bytes Sectors MiBv2 44 -------+----------------------------+---------------------------v2 45 hda | 0 0 0 | 52428800 102400 50v2 46 hda1 | 51380224 1003522 249 | 1048576 2048 1v2 47 hda2 | 16384 32 0 | 6979584 13632 6v2 48 hda3 | 6995968 13664 6 | 10485760 20480 10v2 49 hda4 | 17481728 34144 16 | 4194304 8192 4v2 50 hda5 | 21676032 42336 20 | 5242880 10240 5v2 51 hda6 | 26918912 52576 25 | 10485760 20480 10v2 52 hda7 | 37404672 73056 35 | 13959168 27264 13v2 53v2 54The LDM Database may not store the parti vs in the order that they appear iov2 55disk, but the driver will sort them.v2 56 a>v2 57When Linux boots, you will see something like:v2 58v2 59 hda: 102400 sectors w/32KiB Cache, CHS=50/64/32v2 60 hda: [LDM] hda1 hda2 hda3 hda4 hda5 hda6 hda7v2 61v2 62v2 63Compiling LDM Supportv2 64---------------------v2 65v2 66To enable LDM, choose the following two > vs: v2 67v2 68 "Advanced parti v select v" CONFIG_PARTITION_ADVANCEDv2 69 "Windows Logical Disk Manager (Dynamic Disk) support" CONFIG_LDM_PARTITIONv2 7 a>v2 71If you believe the driver isn't working as it should, you cav enable the extrav2 72debugging code. This will produce a LOT of output. The /optionis:v2 73v2 74 "Windows LDM extra logging" CONFIG_LDM_DEBUGv2 75v2 76 a>N.B. The parti v code cavnot be compiled as a module.v2 77v2 78As with all the parti v code, if the driver doesn't see sigvs of its typ ofv2 79parti v, it will pass control to another driver, so there is no harm inv2 8 a>enabling it.v2 81v2 738/a>v< a commy MSDOS parti v cofiing ale exwholeisk. ThY wilo#39;t se cole theooduun2 748/a> y mu the dilumes, ontop disk i2 758/a>v2 768 a>v2 778/a>v>2 7888a>-------v2 7989a>v2 8 90a>If you beable LDM, upport&qsotn Lililos nocaple LD thbts,g arom rey mu the da href="Documenta v/ldm.txt#L579 id L819 class="line" nam L819>2 8191a>disk,cor, parti vs. NoHower, sogruboesn&ot stder tstd fie LDM darti ving ta href="Documenta v/ldm.txt#L579 id L829 class="line" nam L789="li892a> y davnot be ts,rom rey namic Disks.2 739/a>v2 749/a>v2 759/a>v2 7696a>--------------------a href="Documenta v/ldm.txt#L359 id L779 class="line" nam L779>2 779/a>v2 7898a>The L is no enerviewv>2 7999a>v< is a cvaille LDr thws nloav>2 8">>a>v/a> hd href="Dohttp://www.nux+v-ntfsrg&g/">http://www.nux+v-ntfsrg&g/a>v/a>v3a>If you beve a y muM daques vs inat thare#39;t seansw, pa the ordumenta v/l, emaila href="Documenta v/ldm.txt#L6310 id L14"0 class="line" nam L14"042 8">/a>v/a>v6a>--Che ts,a href="Documenta v/ldm.txt#L7610 id L17"0 class="line" nam L17"072 8">7a> atCap - Richard Russion&a href="Documenta v/ldm.txt#L7610 id L18"0 class="line" nam L18"082 8">8a> m@flatcap.org&ga href="Documenta v/ldm.txt#L7610 id L19"0 class="line" nam L19"092 8">9a>v2 "1 a>v< e /opginally LXRo tftwe no the Li href="Dohttp://sourcer tge.net/projects/lxr">LXRomplmunitya>vlxr@nux+v.noa>v<. div3. lxr.nux+v.no kindly hosd by th href="Dohttp://www. pledl-nuxpro.no">R pledlinuxpro ASa>v