From owner-freebsd-questions@FreeBSD.ORG Wed Dec 1 07:15:41 2010 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 58F0E1065673 for ; Wed, 1 Dec 2010 07:15:41 +0000 (UTC) (envelope-from demelier.david@gmail.com) Received: from mail-ww0-f50.google.com (mail-ww0-f50.google.com [74.125.82.50]) by mx1.freebsd.org (Postfix) with ESMTP id D668B8FC15 for ; Wed, 1 Dec 2010 07:15:40 +0000 (UTC) Received: by wwf26 with SMTP id 26so2407639wwf.31 for ; Tue, 30 Nov 2010 23:15:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:cc:subject:references:in-reply-to :content-type:content-transfer-encoding; bh=u8Qoxri4CvnbdRQyhZ+Hw37MfaihtFxPOLgRkyWQs1s=; b=hWk2Igc3XSguxWnBAiZEI3fXLELawF4Rcp+yP1ltbZe2WoG3P2pWEN4hm1bZ8EV0/Y +OG3VU1hi/EX/aQfXdOCMcqnXyIhdaxHN9tjJKkQaIYP6x1vA3lfp2+RmJ/lU4cm6F8N TXjJ6XHHrA+blMVMJV5j6fOE7mPISFP7UaT2A= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; b=Oz+M8Q/vrOEu6YaKPCEXzkrJdUgV3bgcfmkx+a29RUUQEOJtF3I5HmAsX2X9q5k4ga PMeNc/h2IZvkkbkodIemVZuq6lyelMNLf81rd/f5zNy/Ukcu4AUT4i7CMsvXlO9qdXjK XcZm1Z6YQq5YAvY68ewQ+1KWFZ+SsurmPwIzU= Received: by 10.227.156.21 with SMTP id u21mr8907573wbw.9.1291187739580; Tue, 30 Nov 2010 23:15:39 -0800 (PST) Received: from Melon.malikania.fr (wifi-osiris-sec-182-60.u-strasbg.fr [130.79.182.60]) by mx.google.com with ESMTPS id 11sm4935791wbi.12.2010.11.30.23.15.38 (version=SSLv3 cipher=RC4-MD5); Tue, 30 Nov 2010 23:15:38 -0800 (PST) Message-ID: <4CF5F5F8.9070408@gmail.com> Date: Wed, 01 Dec 2010 08:15:04 +0100 From: David Demelier User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; en-US; rv:1.9.2.12) Gecko/20101130 Thunderbird/3.1.6 MIME-Version: 1.0 To: Paul B Mahol References: <4CF5624F.4020901@gmail.com> <20101130221550.2cf6d726@davenulle.org> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Patrick Lamaiziere , freebsd-questions@freebsd.org Subject: Re: 8 partitions maximum X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 01 Dec 2010 07:15:41 -0000 On 30/11/2010 23:29, Paul B Mahol wrote: > On 11/30/10, David DEMELIER wrote: >> 2010/11/30 Paul B Mahol: >>> On 11/30/10, David DEMELIER wrote: >>>> 2010/11/30 Patrick Lamaiziere: >>>>> Le Tue, 30 Nov 2010 21:45:03 +0100, >>>>> David Demelier a ecrit : >>>>> >>>>>> Hello, >>>>> Hello, >>>>> >>>>>> We all know that we can only have 8 ufs partitions in one freebsd >>>>>> slice. Since OpenBSD and NetBSD can support at most 32 partitions >>>>>> iirc. >>>>>> >>>>>> I wonder why FreeBSD still lacks more ufs partitions in one slice? >>>>>> >>>>>> Is there any plan to grow up max partitions or every work is >>>>>> dedicated to ZFS? >>>>> hmmm, isn't already done in 8.X ? >>>>> from what's cooking for FreeBSD 8.0 >>>>> http://ivoras.sharanet.org/freebsd/freebsd8.html >>>>> << >>>>> bsdlabel gets extended to 26 partitions >>>>> >>>>> Status: Committed to -CURRENT >>>>> Will appear in 8.0: sure >>>>> Author: Marcel Moolenaar >>>>> Web: commit message >>>>> >>>>> bsdlabel is (finally!) extended to support more than 8 partitions. The >>>>> new limit of 26 partitions comes from the number of lower-case letters. >>>>> >>>>> To make use of this change, GEOM_PART needs to be used instead of >>>>> GEOM_BSD (this is default in 8.0 but will not work with older kernels). >>>> I don't have GEOM_PART in my kernel, but if you said it's default it >>>> should be pulled in. >>>> >>>>> Regards. >>>>> _______________________________________________ >>>>> freebsd-questions@freebsd.org mailing list >>>>> http://lists.freebsd.org/mailman/listinfo/freebsd-questions >>>>> To unsubscribe, send any mail to >>>>> "freebsd-questions-unsubscribe@freebsd.org" >>>>> >>>> But why : >>>> >>>> # /dev/md2s1: >>>> 8 partitions: >>>> # size offset fstype [fsize bsize bps/cpg] >>>> a: 10m 16 4.2BSD 0 0 >>>> b: 10m * 4.2BSD 0 0 >>>> d: 10m * 4.2BSD 0 0 >>>> e: 10m * 4.2BSD 0 0 >>>> f: 10m * 4.2BSD 0 0 >>>> g: 10m * 4.2BSD 0 0 >>>> h: 10m * 4.2BSD 0 0 >>>> i: 10m * 4.2BSD 0 0 >>>> j: 10m * 4.2BSD 0 0 >>>> k: 10m * 4.2BSD 0 0 >>>> >>>> c: 2047973 0 unused 0 0 # "raw" part, >>>> don't >>>> edit >>>> >>>> line 11: partition name out of range a-h: i >>>> line 12: partition name out of range a-h: j >>>> line 13: partition name out of range a-h: k >>>> re-edit the label? [y]: >>>> >>>> I'm on 8.1-RELEASE. >>> To make use of such feature you need to recreate table with gpart(8). >>> >>> bsdlabel is not going to work. >>> >> markand@Melon ~ $ sudo dd if=/dev/zero of=myfile.img bs=1m count=100 >> 100+0 records in >> 100+0 records out >> 104857600 bytes transferred in 2.095537 secs (50038530 bytes/sec) >> markand@Melon ~ $ sudo mdconfig -a -f myfile.img -u 2 >> markand@Melon ~ $ sudo gpart create -s MBR md2 >> md2 created >> markand@Melon ~ $ sudo gpart show md2s1 >> gpart: No such geom: md2s1. >> markand@Melon ~ $ sudo gpart add -t freebsd md2 >> md2s1 added >> markand@Melon ~ $ sudo gpart add -t freebsd-ufs md2s1 >> gpart: No such geom: md2s1. >> markand@Melon ~ $ sudo gpart create -s BSD md2s1 > gpart create -s BSD -n 26 md2s1 markand@Melon ~ $ sudo gpart create -s BSD -n 26 md0s1 gpart: entries '26': Invalid argument markand@Melon ~ $ sudo gpart create -s BSD -n 8 md0s1 md0s1 created