From owner-freebsd-geom@FreeBSD.ORG Mon Sep 6 21:10:55 2004 Return-Path: Delivered-To: freebsd-geom@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 102A916A4CE for ; Mon, 6 Sep 2004 21:10:55 +0000 (GMT) Received: from v05184.home.net.pl (v05184.home.net.pl [212.85.117.104]) by mx1.FreeBSD.org (Postfix) with SMTP id 21D2243D46 for ; Mon, 6 Sep 2004 21:10:54 +0000 (GMT) (envelope-from kris@home.pl) Received: from localhost (HELO ?81.219.131.10?) (kris@home@127.0.0.1) by matrix11.home.net.pl with SMTP; 6 Sep 2004 21:10:50 -0000 Message-ID: <413CD25B.5030502@home.pl> Date: Mon, 06 Sep 2004 23:10:51 +0200 From: =?UTF-8?B?S3J6eXN6dG9mIENpZXDFgnVjaGE=?= User-Agent: Mozilla Thunderbird 0.7.3 (Windows/20040803) X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-geom@freebsd.org References: <00d701c491af$253ebf30$fe78a8c0@kris> <20040903125220.GP30151@darkness.comp.waw.pl> <413A28A5.4010902@home.pl> <20040906115124.GQ30151@darkness.comp.waw.pl> <413CAD65.4080502@home.pl> In-Reply-To: <413CAD65.4080502@home.pl> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit cc: Pawel Jakub Dawidek Subject: Re: problems with GEOM_MIRROR - the solution! X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 06 Sep 2004 21:10:55 -0000 Krzysztof Ciepłucha wrote: > I think it might be a problem with starting degraded mirror when there > is only one disk present in the system. I'll try to add a third disk to > the mirror and then start the system with only two of them present. I have looked at the sources and found that the solution is to set timeout to zero. So I set "kern.geom.mirror.timeout=0" in loader.conf and the system boots up properly with two (of three) and one (of three) disks from mirror present. Interestingly, this also resolved the problem with swap on mirrored disks. So now my system boots up and is running from mirrored disks without any problem: krisbsd# cat /etc/fstab # Device Mountpoint FStype Options Dump Pass# /dev/mirror/mirror1b none swap sw 0 0 /dev/mirror/mirror1a / ufs rw 1 1 /dev/mirror/mirror1e /tmp ufs rw 2 2 /dev/mirror/mirror1f /usr ufs rw 2 2 /dev/mirror/mirror1d /var ufs rw 2 2 /dev/label/dataa /usr/obj ufs rw 2 2 /dev/acd0 /cdrom cd9660 ro,noauto 0 0 krisbsd# Now some questions / suggestions to pjd: 1. what was the purpose of the kern.geom.mirror.timeout (set by default to 8)? i can't hardly imagine situation where we must wait for some disks to start mirror. 2. could you add a comand to geom mirror (maybe geom mirror status ?) which shows the current state of the mirror (OK, DEGRADED, SYNCHRONIZING, FAILED, etc)? now it is a little bit tricky to determine the state of a mirror when one disk is missing. -- kris-at-home-dot-pl