Date: Mon, 06 Sep 2004 23:10:51 +0200 From: =?UTF-8?B?S3J6eXN6dG9mIENpZXDFgnVjaGE=?= <kris@home.pl> To: freebsd-geom@freebsd.org Cc: Pawel Jakub Dawidek <pjd@FreeBSD.org> Subject: Re: problems with GEOM_MIRROR - the solution! Message-ID: <413CD25B.5030502@home.pl> In-Reply-To: <413CAD65.4080502@home.pl> 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>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?413CD25B.5030502>