From owner-freebsd-questions@FreeBSD.ORG Mon Mar 29 18:48:46 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 AE2C31065670 for ; Mon, 29 Mar 2010 18:48:46 +0000 (UTC) (envelope-from dbehterev@gmail.com) Received: from mail-pw0-f54.google.com (mail-pw0-f54.google.com [209.85.160.54]) by mx1.freebsd.org (Postfix) with ESMTP id 8184F8FC08 for ; Mon, 29 Mar 2010 18:48:46 +0000 (UTC) Received: by pwj4 with SMTP id 4so8727029pwj.13 for ; Mon, 29 Mar 2010 11:48:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :from:date:received:message-id:subject:to:content-type; bh=an2LIqMnT5UfvyMvg54iufJS9m0x5jgdZ8ATik8X7Dc=; b=mXZQv6RT8OZu5mx2lpCtT8CEKSwm4AGuMAhJReonWQ3osc6o/5v9vgBQxS/Vupc5MC owBmQIM0CS9R/fkjN+vNoQ421kQcd/ywF55oLTFimCa46g3YaxDILVLiqihEFpdnQoha KnBBAh1V+juluOr49Jz/PuLONxC+xG09Ptu5Y= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; b=ANfFlkcMiIHEMuqybFLcxlIoifV/W0YCR15T2mY1kVtifVwha/B8lTdDqOdnQe8jBG aQCO2fHZHPLf+TqcQxbZzkuwufPc2ZuwApZ62hhfg97hG6BbjQd92NGAFJhKbUMC8+uJ otczF8umFsL/uSNBVwXLe1RcqtNgwJlSBxUVo= MIME-Version: 1.0 Received: by 10.141.37.8 with HTTP; Mon, 29 Mar 2010 11:19:06 -0700 (PDT) In-Reply-To: <7aaa60421003250703hf24d3c1icae624982210c094@mail.gmail.com> References: <7aaa60421003250703hf24d3c1icae624982210c094@mail.gmail.com> From: =?KOI8-R?B?5M3J1NLJyiDixcjUxdLF1w==?= Date: Tue, 30 Mar 2010 00:19:06 +0600 Received: by 10.141.15.4 with SMTP id s4mr3584596rvi.112.1269886766422; Mon, 29 Mar 2010 11:19:26 -0700 (PDT) Message-ID: <7aaa60421003291119s53e21ff6reb2b39e0690b65c3@mail.gmail.com> To: freebsd-questions@freebsd.org X-Mailman-Approved-At: Mon, 29 Mar 2010 19:24:48 +0000 Content-Type: text/plain; charset=KOI8-R Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: 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 18:48:46 -0000 ---------- =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 slice: 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 wit= h 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.