From owner-freebsd-questions@FreeBSD.ORG Sat Jan 15 07:32:04 2005 Return-Path: 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 EB0E516A4CE for ; Sat, 15 Jan 2005 07:32:04 +0000 (GMT) Received: from chello084114137224.1.15.vie.surfer.at (chello084114137224.1.15.vie.surfer.at [84.114.137.224]) by mx1.FreeBSD.org (Postfix) with SMTP id 35FF443D4C for ; Sat, 15 Jan 2005 07:32:03 +0000 (GMT) (envelope-from 4711@chello.at) Received: (qmail 77248 invoked from network); 15 Jan 2005 07:32:01 -0000 Received: from matrix010.matrix.net (192.168.123.10) by ns.matrix.net with SMTP; 15 Jan 2005 07:32:01 -0000 From: Christian Hiris <4711@chello.at> To: freebsd-questions@freebsd.org Date: Sat, 15 Jan 2005 08:31:44 +0100 User-Agent: KMail/1.7 References: <20050113025339.GC1218@polands.org> <200501150012.42358.4711@chello.at> <20050115035222.GA61513@polands.org> In-Reply-To: <20050115035222.GA61513@polands.org> Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200501150832.01458.4711@chello.at> Subject: Re: gmirror problem on 5.3-R i386 (SOLVED) X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 15 Jan 2005 07:32:05 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Saturday 15 January 2005 04:52, Doug Poland wrote: > On Sat, Jan 15, 2005 at 12:12:28AM +0100, Christian Hiris wrote: > > On Friday 14 January 2005 20:43, Doug Poland wrote: > > Yes, I tried it under both tcsh and sh. I didn't take it apart the same > way you did however. Also, when size came up as 50000 (24MB) I knew > something wasn't write and didn't pursue that further. What did the > command: > > fdisk -v -B -I /dev/ad4 > > do? It would seem my mirror is correct and consistent. The option -B initializes the bootcode in sector 0, option -I creates one slice that covers the whole disk (man fdisk). > > > Question: On line 27 we issue the command to... > > > # instruct boot stage 2 loader on first disk to boot > > > # with the boot stage 3 loader from the second disk > > > # (mainly because BIOS might not allow easy booting from second ATA > > > disk # or at least requires manual intervention on the console) > > > > > > So how do I get rid of that boot.config file? Should I get rid of it? > > > > If you have a modern machine the BIOS (hopefully) can boot from every > > harddisks that has a partition/slice on it with the active flag set. I > > for myself use a bootmanager on every gmirror disk. You can install it > > with boot0cfg(8) or sysinstall (I only would use boot0cfg, if your mirror > > already has been set up). > > So I can safely remove /boot.config? Otherwise wouldn't the boot stage > 2 loader always then load boot stage 3 off disk 2? Yes, I would remove it. I think, in case, that disk ad6 breaks, the system won't boot w/o manual interaction. In general, it's the best, if you do some real life testing by pulling powercables off the drives. Normally you should be able to replace a disk on a running system. Assuming that disks are connected to different channels: Replace the broken disk by a fresh, clean one, run 'atacontrol attach ' (or maybe 'atacontrol reinit ) and there you go. It's even possible to swap disks around between controller cards on a running machine. I tested this out on cheap Promise TX2 cards - worked like a charm :) Cheers, ch - -- Christian Hiris <4711@chello.at> | OpenPGP KeyID 0x3BCA53BE OpenPGP-Key at hkp://wwwkeys.eu.pgp.net and http://pgp.mit.edu -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.6 (FreeBSD) iD8DBQFB6Mbx09WjGjvKU74RAhHuAJ0VW2YuQC4vndOYM+nMQALNs4c/QQCfdOfb wFtdG02YOq+hS5qCzSjugpY= =YShc -----END PGP SIGNATURE-----