From owner-freebsd-questions@FreeBSD.ORG Fri May 12 14:25:00 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E078616A5DA for ; Fri, 12 May 2006 14:25:00 +0000 (UTC) (envelope-from gandalf@messias.qhigh.com) Received: from smtp.enternet.hu (smtp.enternet.hu [62.112.192.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0751943D6E for ; Fri, 12 May 2006 14:24:59 +0000 (GMT) (envelope-from gandalf@messias.qhigh.com) Received: from [83.216.44.59] (helo=[172.16.0.43]) by smtp.enternet.hu with esmtpa (Exim 4) id 1FeYZd-000NHT-G4 for freebsd-questions@freebsd.org; Fri, 12 May 2006 16:24:57 +0200 Message-ID: <44649AE4.5000006@messias.qhigh.com> Date: Fri, 12 May 2006 16:25:40 +0200 From: User Gandalf User-Agent: Thunderbird 1.5.0.2 (Windows/20060308) MIME-Version: 1.0 To: freebsd-questions@freebsd.org Content-Type: text/plain; charset=ISO-8859-2; format=flowed Content-Transfer-Encoding: 7bit Subject: gmirror and partitioning 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: Fri, 12 May 2006 14:25:02 -0000 Hello! I would like to install a new FreeBSD 6.1 system on a computer that has two SATA drives. They are the same type. I would like to use gmirror. I read the handbook here: http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/geom-mirror.html But there is something I do not understand. The handbook suggest that I install FreeBSD on only two partitions: a swap and the root fs. But I would like to create many partitions. I think I can do it the following way: 1. Install a basic system on drive /dev/ad0, using two smaller partitions (2GB for swap and 10GB for the root fs). 2. Create the /dev/mirror/gm device on /dev/ad1, as suggested by the handbook 3. When doing 'bsdlabel -wB /dev/mirror/gm0s1', I can allocate gm0s1a and gm0s1b with the same sizes (10GB and 2GB) but I can also add other partitions for /usr, /tmp and /var. Can I? 4. Then I can copy the whole system from ad0s1a to /dev/mirror/gm0s1a, and continue the installation, following the instructions in the handbook 5. Finally, after I added /dev/ad0 to /dev/gm0 and I'm done with synchronization, I would like to format the additional partitions, dump and restore my current /usr, /tmp and /var directories, change my fstab and reboot... Will this work? Sorry for the dumb question, but I have never done this before. The handbook only suggest that I install FreeBSD on one / partition only, but it does not tell how to create new partitions after mirroring. Thanks, Laszlo