Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 11 Mar 2012 12:31:31 -0700
From:      Adrian Chadd <adrian@freebsd.org>
To:        "Andrey V. Elsukov" <bu7cher@yandex.ru>
Cc:        freebsd-current <freebsd-current@freebsd.org>, freebsd-geom@freebsd.org
Subject:   Re: [RFC, RFT] LDM support (aka Windows Dynamic Volumes)
Message-ID:  <CAJ-VmomRRdbsymYZrJQrH67AwPtn6sKEGyeMKSeB3fDQYWDahA@mail.gmail.com>
In-Reply-To: <4F5C71DC.3010203@yandex.ru>
References:  <4F5C71DC.3010203@yandex.ru>

next in thread | previous in thread | raw e-mail | index | archive | help
This is awesome!

Is it just read-only, or does it allow creation/destruction of LDM volumes?


Adrian

2012/3/11 Andrey V. Elsukov <bu7cher@yandex.ru>:
> Hi, All
>
> i wrote GEOM_PART_LDM class. It provides basic support of Logical Disk Ma=
nager
> partitioning scheme [1]. Since LDM metadata is not documented i used seve=
ral
> articles found in the web and linux implementation as reference [2].
> Only generic volumes is supported. Spanned, striped and raid5
> configurations aren't implemented. Mirrored volumes also are not shown by=
 default,
> but they can be accessed when kern.geom.part.ldm.show_mirrors=3D1 (by you=
r own risk).
>
> Currently only LDM on top of MBR is supported. Also only "gpart destroy" =
is allowed
> with LDM scheme.
>
> you can compile class without patching, the source code is here:
> http://people.freebsd.org/~ae/LDM/
>
> [1] http://en.wikipedia.org/wiki/Logical_Disk_Manager
> [2] http://fxr.watson.org/fxr/source/fs/partitions/?v=3Dlinux-2.6
>
> Example:
> /* da1 and da2 disks without geom_part_ldm module */
> # gpart show da1 da2
> =3D> =A0 =A0 =A0 63 =A0104857537 =A0da1 =A0MBR =A0(50G)
> =A0 =A0 =A0 =A0 63 =A0 =A0 =A0 1985 =A0 =A01 =A0ms-ldm-data =A0(992k)
> =A0 =A0 =A0 2048 =A0 =A0 204800 =A0 =A02 =A0ms-ldm-data =A0[active] =A0(1=
00M)
> =A0 =A0 206848 =A0104648704 =A0 =A03 =A0ms-ldm-data =A0(49G)
> =A0104855552 =A0 =A0 =A0 2048 =A0 =A0 =A0 - free - =A0(1.0M)
>
> =3D> =A0 =A0 32 =A02097120 =A0da2 =A0MBR =A0(1.0G)
> =A0 =A0 =A0 32 =A0 =A0 =A0 31 =A0 =A0 =A0 - free - =A0(15k)
> =A0 =A0 =A0 63 =A02095041 =A0 =A01 =A0ms-ldm-data =A0(1G)
> =A02095104 =A0 =A0 2048 =A0 =A0 =A0 - free - =A0(1.0M)
>
> # kldload ./geom_part_ldm.ko
> # gpart show da1 da2
> =3D> =A0 =A0 =A0 63 =A0104855489 =A0da1 =A0LDM =A0(50G)
> =A0 =A0 =A0 =A0 63 =A0 =A0 =A0 1985 =A0 =A0 =A0 - free - =A0(992k)
> =A0 =A0 =A0 2048 =A0 =A0 204800 =A0 =A01 =A0ntfs =A0(100M)
> =A0 =A0 206848 =A0104648704 =A0 =A02 =A0ntfs =A0(49G)
>
> =3D> =A0 =A0 63 =A02095041 =A0da2 =A0LDM =A0(1.0G)
> =A0 =A0 =A0 63 =A0 =A0 =A0 65 =A0 =A0 =A0 - free - =A0(32k)
> =A0 =A0 =A0128 =A01024000 =A0 =A01 =A0ntfs =A0(500M)
> =A01024128 =A01067008 =A0 =A02 =A0ntfs =A0(521M)
> =A02091136 =A0 =A0 3968 =A0 =A0 =A0 - free - =A0(2M)
>
> --
> WBR, Andrey V. Elsukov
>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAJ-VmomRRdbsymYZrJQrH67AwPtn6sKEGyeMKSeB3fDQYWDahA>