From owner-freebsd-questions@FreeBSD.ORG Tue Sep 9 05:27:56 2014 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 743C6CBD for ; Tue, 9 Sep 2014 05:27:56 +0000 (UTC) Received: from mri-mail.musicreports.com (mri-mail.musicreports.com [38.98.50.162]) by mx1.freebsd.org (Postfix) with ESMTP id 52444F08 for ; Tue, 9 Sep 2014 05:27:56 +0000 (UTC) Received: from localhost (localhost.localdomain [127.0.0.1]) by mri-mail.musicreports.com (Postfix) with ESMTP id D9AEE5688058 for ; Mon, 8 Sep 2014 22:20:20 -0700 (PDT) X-Virus-Scanned: amavisd-new at mri-mail.musicreports.com Received: from mri-mail.musicreports.com ([127.0.0.1]) by localhost (mri-mail.musicreports.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 2keDAHLXuCyS for ; Mon, 8 Sep 2014 22:20:11 -0700 (PDT) Received: from mri-mail.musicreports.com (mri-mail.musicreports.com [192.168.20.65]) by mri-mail.musicreports.com (Postfix) with ESMTP id 64B915688056 for ; Mon, 8 Sep 2014 22:20:11 -0700 (PDT) Date: Mon, 8 Sep 2014 22:20:11 -0700 (PDT) From: "James D. Parra" To: freebsd-questions@freebsd.org Message-ID: <405098918.20787549.1410240011151.JavaMail.root@musicreports.com> In-Reply-To: <2076734718.20787409.1410237009712.JavaMail.root@musicreports.com> Subject: creating a raid1 with single system drive MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Originating-IP: [192.168.10.101] X-Mailer: Zimbra 7.2.4_GA_2900 (ZimbraWebClient - FF3.0 (Win)/7.2.4_GA_2900) X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 09 Sep 2014 05:27:56 -0000 Hello, Installed FreeBSD on a single disk with ZFS with the zpool status showing; # zpool status pool: tank0 state: ONLINE scan: none requested config: NAME STATE READ WRITE CKSUM tank0 ONLINE 0 0 0 ada0s1d ONLINE 0 0 0 I wish to add an identical disk to create a raid1 array. A list of the drives shows; ll /dev/ad* crw-r----- 1 root operator 0, 108 Sep 8 19:21 /dev/ada0 crw-r----- 1 root operator 0, 110 Sep 8 19:21 /dev/ada0s1 crw-r----- 1 root operator 0, 115 Sep 8 19:21 /dev/ada0s1a crw-r----- 1 root operator 0, 117 Sep 8 19:21 /dev/ada0s1b crw-r----- 1 root operator 0, 119 Sep 8 19:21 /dev/ada0s1d crw-r----- 1 root operator 0, 112 Sep 8 19:21 /dev/ada1 crw-r----- 1 root operator 0, 121 Sep 8 19:21 /dev/ada1s1 crw-r----- 1 root operator 0, 126 Sep 8 19:21 /dev/ada1s1a crw-r----- 1 root operator 0, 128 Sep 8 19:21 /dev/ada1s1b crw-r----- 1 root operator 0, 130 Sep 8 19:21 /dev/ada1s1d crw-r----- 1 root operator 0, 132 Sep 8 19:21 /dev/ada1s1e I installed the OS on the second disk as well so the partitions would be the same. However, something doesn't appear correct. NAME STATE READ WRITE CKSUM tank0 ONLINE 0 0 0 mirror-0 ONLINE 0 0 0 ada0s1d ONLINE 0 0 0 ada1s1e ONLINE 0 0 0 (resilvering) # gpart show => 63 1953525105 ada0 MBR (931G) 63 1953 - free - (976k) 2016 1953523152 1 freebsd (931G) => 0 1953523152 ada0s1 BSD (931G) 0 2097152 1 freebsd-ufs (1.0G) 2097152 809500672 2 freebsd-swap (386G) 811597824 1141925328 4 freebsd-zfs (544G) => 63 1953525105 ada1 MBR (931G) 63 1953 - free - (976k) 2016 1953523152 1 freebsd (931G) => 0 1953523152 ada1s1 BSD (931G) 0 4096000 1 freebsd-ufs (2G) 4096000 4096000 2 freebsd-swap (2G) 8192000 4194304 4 freebsd-ufs (2.0G) 12386304 1941136848 5 freebsd-ufs (925G) Although, the disks are identical, the installation partitioned them differently. What is the best way to create a zfs raid1 for the system drive by adding the second drive after the install? Thank you, James