From owner-freebsd-questions@FreeBSD.ORG Mon Mar 29 20:10:44 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 00043106566B for ; Mon, 29 Mar 2010 20:10:43 +0000 (UTC) (envelope-from kraduk@googlemail.com) Received: from mail-fx0-f225.google.com (mail-fx0-f225.google.com [209.85.220.225]) by mx1.freebsd.org (Postfix) with ESMTP id 7B8708FC1A for ; Mon, 29 Mar 2010 20:10:43 +0000 (UTC) Received: by fxm25 with SMTP id 25so177377fxm.3 for ; Mon, 29 Mar 2010 13:10:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:received:message-id:subject:from:to:cc:content-type; bh=8PmvyIs5T4NsfAW9rX50Y8DIpN2Bt2vIKr+m8BomGY4=; b=OCcC3UbfsoL/YBfuJCib7b5t6hVxd5wQYClt6StLyBIErJi6UI1GIXNt4X3Yw6oq7T ZbVZGtP6sXK3Kq+aAYMscL8mK28lQX0aZxNZeMOm/DZXUu3XiCx4yQVFjDzHggNT87RT 2ykLeu9cBpNlWE1vEXRBYv8x64s3MwojO1ro4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=NxkxfBEnTyFVLjGw6dH/lwMqjyWZFq/65rYMBis/jux/6NS0yZvIriuZicCkDlkx6d JvWPMDIwdMr3DY2G9dWsHHQS7vVSkDHB1ht6RDc14hPlksBFzn8gdh7i4t1lbKWZyN9j gdByICKWvwTnRlGcPbLht7tdkQkpo46LGGhwo= MIME-Version: 1.0 Received: by 10.239.157.136 with HTTP; Mon, 29 Mar 2010 13:10:42 -0700 (PDT) In-Reply-To: <7aaa60421003291119s53e21ff6reb2b39e0690b65c3@mail.gmail.com> References: <7aaa60421003250703hf24d3c1icae624982210c094@mail.gmail.com> <7aaa60421003291119s53e21ff6reb2b39e0690b65c3@mail.gmail.com> Date: Mon, 29 Mar 2010 21:10:42 +0100 Received: by 10.239.150.79 with SMTP id m15mr572713hbb.61.1269893442255; Mon, 29 Mar 2010 13:10:42 -0700 (PDT) Message-ID: From: krad To: =?KOI8-R?B?5M3J1NLJyiDixcjUxdLF1w==?= Content-Type: text/plain; charset=KOI8-R Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-questions@freebsd.org Subject: Re: Create GMIRROR only one slice 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: Mon, 29 Mar 2010 20:10:44 -0000 2010/3/29 =E4=CD=C9=D4=D2=C9=CA =E2=C5=C8=D4=C5=D2=C5=D7 > ---------- =F0=C5=D2=C5=D3=CC=C1=CE=CE=CF=C5 =D3=CF=CF=C2=DD=C5=CE=C9=C5 = ---------- > =EF=D4 =CB=CF=C7=CF: =E4=CD=C9=D4=D2=C9=CA =E2=C5=C8=D4=C5=D2=C5=D7 > =E4=C1=D4=C1: 25 =CD=C1=D2=D4=C1 2010 =C7. 19:03 > =F4=C5=CD=C1: Create GMIRROR only one slice > =EB=CF=CD=D5: freebsd-geom@freebsd.org > > > Hello all! > I have problem with creating GMIRROR on select slice. So, I have two slic= e: > ls /dev | grep ad4 > ad4 > ad4s1 > ad4s1a > ad4s1b > ad4s1c > ad4s2 > ad4s2p1 > > fdisk /dev/ad4 > ... > The data for partition 1 is: > sysid 165 (0xa5),(FreeBSD/NetBSD/386BSD) > start 63, size 29350692 (14331 Meg), flag 80 (active) > beg: cyl 0/ head 1/ sector 1; > end: cyl 1023/ head 254/ sector 63 > The data for partition 2 is: > sysid 165 (0xa5),(FreeBSD/NetBSD/386BSD) > start 29350755, size 595786590 (290911 Meg), flag 0 > beg: cyl 1023/ head 255/ sector 63; > end: cyl 1023/ head 254/ sector 63 > The data for partition 3 is: > > The data for partition 4 is: > > > On first slice I created ufs slice and on second - ZFS pool (I build it > with > glabel): > mount > /dev/ad4s1a on / (ufs, local) > devfs on /dev (devfs, local) > tank on /tank (zfs, local) > tank/usr on /usr (zfs, local) > ... > tank/var on /var (zfs, local) > > glabel list > Geom name: ad4s2p1 > ... > > I want GMIRROR'ing /dev/ad4s1: > gmirror label -v -b round-robin gm0 /dev/ad4s1 > but I get error "Operation not permitted" (although I set sysctl > kern.geom.debugflags=3D16). > MY OS: FreeBSD 7.3 Stable. > What should I do to do this? > Thanks all. > _______________________________________________ > 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" > Dont boot into the os, create the gmirror from the fixit mode of a cd, or build a usb stick with freebsd on. You will need to newfs the gmirror devic= e after that so backup the data currently on /, then copy it back afterwards. I have to ask, as you are using zfs why not just do a zfs root? If you do decide to go for this option, use gpart to create gpt layouts, as you wont run into partition size limitations if you upgrade the drives to big ones i= n the future