From owner-freebsd-geom@FreeBSD.ORG Sun Mar 11 19:31:32 2012 Return-Path: Delivered-To: freebsd-geom@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 58624106564A; Sun, 11 Mar 2012 19:31:32 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-pz0-f54.google.com (mail-pz0-f54.google.com [209.85.210.54]) by mx1.freebsd.org (Postfix) with ESMTP id 1F44F8FC0C; Sun, 11 Mar 2012 19:31:32 +0000 (UTC) Received: by dald2 with SMTP id d2so4556729dal.13 for ; Sun, 11 Mar 2012 12:31:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=Vz50eMuWhrioL0HIUk+Mka4sAeRBjhGh1LVTzsN3uYo=; b=lknCiJB7eAlaifQJA824AnUbn/MUQt1KF/xGhjkC/JbziEyTROL9VZxOR3EF0tk1hC ML4QJg7UPWoZraDRMzXr08TVVGC6pcLzfRsgpJVQ8OxduZ0j01uIx1vK3BZT1Z+8aySz FwEJ49WZtHwyJ01s3wX/XH65x39TglpoRY5bAb1ruusKAIJce1aynlGyCZOuFZSi6G6+ w8xlsNfV5vW1pLpjPYpKEBFuzUlloEtgFwQmL9Fn/6yPbIQgrsIE3fgtbES1ZirbgPTK q2OhOZ0iEPzs7u73LyDFsUdp4gj9yaqBg78c8es61lMqIXo7aJDHOZd8OpQUmsRKemBv NdPA== MIME-Version: 1.0 Received: by 10.68.225.104 with SMTP id rj8mr15199225pbc.135.1331494291756; Sun, 11 Mar 2012 12:31:31 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.143.33.5 with HTTP; Sun, 11 Mar 2012 12:31:31 -0700 (PDT) In-Reply-To: <4F5C71DC.3010203@yandex.ru> References: <4F5C71DC.3010203@yandex.ru> Date: Sun, 11 Mar 2012 12:31:31 -0700 X-Google-Sender-Auth: s4gH0MYreRHnEKR2cu_Pt4ORdlI Message-ID: From: Adrian Chadd To: "Andrey V. Elsukov" Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: freebsd-current , freebsd-geom@freebsd.org Subject: Re: [RFC, RFT] LDM support (aka Windows Dynamic Volumes) X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 11 Mar 2012 19:31:32 -0000 This is awesome! Is it just read-only, or does it allow creation/destruction of LDM volumes? Adrian 2012/3/11 Andrey V. Elsukov : > 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 >