From owner-freebsd-questions@FreeBSD.ORG Tue Nov 30 21:53:29 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 6631B106566B for ; Tue, 30 Nov 2010 21:53:29 +0000 (UTC) (envelope-from demelier.david@gmail.com) Received: from mail-bw0-f54.google.com (mail-bw0-f54.google.com [209.85.214.54]) by mx1.freebsd.org (Postfix) with ESMTP id E3A708FC0C for ; Tue, 30 Nov 2010 21:53:28 +0000 (UTC) Received: by bwz2 with SMTP id 2so5777669bwz.13 for ; Tue, 30 Nov 2010 13:53:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=xUNPxcZMRi3u0zChtFH+CixqWFdhiRu/6BxkEzBUt7A=; b=AucVMqxqq41a4Qjep7LuFniGMPCk3iiUFqeqDkbUXmU/vAtL5AKjDH8EC5+ulf2pVA pIpXWSOB8kxcU+YV6LceR4Ur5t6zaUsGbzlIt+ChA4fRjwtzNn+YvAzwzGrSC17IJ98z kUdlhPBoa3mksnncxjSoN+W60WmzFsfqcnWEs= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=WUXTvjJo1sPdIkWWQiq6Gn6xzQXIIrhGT6Ikh8GvxC85bFD8uWgeMItxJmJParR9GZ +wgdCEm/3CRZKd73n9Egcx9rxEcva849Fj8qNyQIgGR70M4/ppSxtza083QKo0f/W/+9 T4nz04K1xBGUc41hFF4QRtLUw6WcAANOBYtpM= MIME-Version: 1.0 Received: by 10.204.97.131 with SMTP id l3mr7602911bkn.112.1291154007605; Tue, 30 Nov 2010 13:53:27 -0800 (PST) Received: by 10.204.127.20 with HTTP; Tue, 30 Nov 2010 13:53:27 -0800 (PST) In-Reply-To: References: <4CF5624F.4020901@gmail.com> <20101130221550.2cf6d726@davenulle.org> Date: Tue, 30 Nov 2010 22:53:27 +0100 Message-ID: From: David DEMELIER To: Paul B Mahol Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable 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: Tue, 30 Nov 2010 21:53:29 -0000 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: >> # =C2=A0 =C2=A0 =C2=A0 =C2=A0size =C2=A0 offset =C2=A0 =C2=A0fstype =C2= =A0 [fsize bsize bps/cpg] >> =C2=A0 a: =C2=A010m =C2=A0 =C2=A0 =C2=A0 16 =C2=A0 =C2=A04.2BSD =C2=A0 = =C2=A0 =C2=A0 =C2=A00 =C2=A0 =C2=A0 0 >> =C2=A0 b: =C2=A010m =C2=A0 =C2=A0 =C2=A0 * =C2=A0 =C2=A04.2BSD =C2=A0 = =C2=A0 =C2=A0 =C2=A00 =C2=A0 =C2=A0 0 >> =C2=A0 d: =C2=A010m =C2=A0 =C2=A0 =C2=A0 * =C2=A0 =C2=A04.2BSD =C2=A0 = =C2=A0 =C2=A0 =C2=A00 =C2=A0 =C2=A0 0 >> =C2=A0 e: =C2=A010m =C2=A0 =C2=A0 =C2=A0 * =C2=A0 =C2=A04.2BSD =C2=A0 = =C2=A0 =C2=A0 =C2=A00 =C2=A0 =C2=A0 0 >> =C2=A0 f: =C2=A010m =C2=A0 =C2=A0 =C2=A0 * =C2=A0 =C2=A04.2BSD =C2=A0 = =C2=A0 =C2=A0 =C2=A00 =C2=A0 =C2=A0 0 >> =C2=A0 g: =C2=A010m =C2=A0 =C2=A0 =C2=A0 * =C2=A0 =C2=A04.2BSD =C2=A0 = =C2=A0 =C2=A0 =C2=A00 =C2=A0 =C2=A0 0 >> =C2=A0 h: =C2=A010m =C2=A0 =C2=A0 =C2=A0 * =C2=A0 =C2=A04.2BSD =C2=A0 = =C2=A0 =C2=A0 =C2=A00 =C2=A0 =C2=A0 0 >> =C2=A0 i: =C2=A010m =C2=A0 =C2=A0 =C2=A0 * =C2=A0 =C2=A04.2BSD =C2=A0 = =C2=A0 =C2=A0 =C2=A00 =C2=A0 =C2=A0 0 >> =C2=A0 j: =C2=A010m =C2=A0 =C2=A0 =C2=A0 * =C2=A0 =C2=A04.2BSD =C2=A0 = =C2=A0 =C2=A0 =C2=A00 =C2=A0 =C2=A0 0 >> =C2=A0 k: =C2=A010m =C2=A0 =C2=A0 =C2=A0 * =C2=A0 =C2=A04.2BSD =C2=A0 = =C2=A0 =C2=A0 =C2=A00 =C2=A0 =C2=A0 0 >> >> =C2=A0 c: =C2=A02047973 =C2=A0 =C2=A0 =C2=A0 =C2=A00 =C2=A0 =C2=A0unused= =C2=A0 =C2=A0 =C2=A0 =C2=A00 =C2=A0 =C2=A0 0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 #= "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=3D/dev/zero of=3Dmyfile.img bs=3D1m count=3D10= 0 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 md2s1 created markand@Melon ~ $ sudo gpart add -t freebsd-ufs -s 1m md2s1 md2s1a added markand@Melon ~ $ sudo gpart add -t freebsd-ufs -s 1m md2s1 md2s1b added markand@Melon ~ $ sudo gpart add -t freebsd-ufs -s 1m md2s1 md2s1d added markand@Melon ~ $ sudo gpart add -t freebsd-ufs -s 1m md2s1 md2s1e added markand@Melon ~ $ sudo gpart add -t freebsd-ufs -s 1m md2s1 md2s1f added markand@Melon ~ $ sudo gpart add -t freebsd-ufs -s 1m md2s1 md2s1g added markand@Melon ~ $ sudo gpart add -t freebsd-ufs -s 1m md2s1 md2s1h added markand@Melon ~ $ sudo gpart add -t freebsd-ufs -s 1m md2s1 gpart: index '9': No space left on device markand@Melon ~ $ sudo gpart add -t freebsd-ufs -s 1m md2s1 gpart: index '9': No space left on device Maybe I really need GEOM_PART? Or I'm doing something wrong. --=20 Demelier David