From owner-freebsd-geom@FreeBSD.ORG Mon May 16 11:01:49 2005 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 62EDB16A4F3 for ; Mon, 16 May 2005 11:01:49 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 318CF43DDB for ; Mon, 16 May 2005 11:01:49 +0000 (GMT) (envelope-from owner-bugmaster@freebsd.org) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id j4GB1nA1021220 for ; Mon, 16 May 2005 11:01:49 GMT (envelope-from owner-bugmaster@freebsd.org) Received: (from peter@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id j4GB1mOF021214 for freebsd-geom@freebsd.org; Mon, 16 May 2005 11:01:48 GMT (envelope-from owner-bugmaster@freebsd.org) Date: Mon, 16 May 2005 11:01:48 GMT Message-Id: <200505161101.j4GB1mOF021214@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: peter set sender to owner-bugmaster@freebsd.org using -f From: FreeBSD bugmaster To: freebsd-geom@FreeBSD.org Subject: Current problem reports assigned to you 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, 16 May 2005 11:01:49 -0000 Current FreeBSD problem reports Critical problems Serious problems Non-critical problems S Submitted Tracker Resp. Description ------------------------------------------------------------------------------- o [2005/03/26] kern/79251 geom [2TB] newfs fails on 2.6TB gbde device 1 problem total. From owner-freebsd-geom@FreeBSD.ORG Tue May 17 00:26:23 2005 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 C7E5C16A4CE for ; Tue, 17 May 2005 00:26:23 +0000 (GMT) Received: from mx.seanet.com (mx.seanet.com [199.181.164.20]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6BF8043DCB for ; Tue, 17 May 2005 00:26:23 +0000 (GMT) (envelope-from lapo@seanet.com) Received: from [199.181.168.92] (wallace.osd.com [199.181.168.92]) by milkyway.seanet.com (8.13.2/8.13.2) with ESMTP id j4H0QG0v060947 for ; Mon, 16 May 2005 17:26:16 -0700 (PDT) (envelope-from lapo@seanet.com) Mime-Version: 1.0 (Apple Message framework v728) Content-Transfer-Encoding: 7bit Message-Id: Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed To: freebsd-geom@freebsd.org From: Lapo Nustrini Date: Mon, 16 May 2005 17:26:32 -0700 X-Mailer: Apple Mail (2.728) Subject: gmirror load problem on startup 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: Tue, 17 May 2005 00:26:24 -0000 I've been trying to get a gmirror system disk running on a Dual Xeon supermicro server with 5.4 release. I followed Ralf S. Engelschall's how-to at: http:// people.freebsd.org/~rse/mirror/ Once the mirror was established and I rebooted the machine for the first time, I encountered a problem. It appears that the gmirror kernel module is not being loaded before the system tries to mount the partitions, and consequently, after falling back to a default mount of /dev/da0s1a for root, it fails to single user mode complaining that /dev/mirror/gm0s1X is not available. In single user mode, I can issue the command "gmirror load" which initializes the mirror device, but given that da0s1a is already in use, the mirror only includes device da1s1 When I exit to multiuser mode, the boot process completes, mounting all partitions according to /etc/fstab, with the exception of / which is still mounted from da0s1a I have the following entry in /boot/loader.conf: geom_mirror_load="YES" my /etc/fstab file is: # Device Mountpoint FStype Options Dump Pass# /dev/mirror/gm0s1b none swap sw 0 0 /dev/mirror/gm0s1a / ufs rw 1 1 /dev/mirror/gm0s1d /var ufs rw 2 2 /dev/mirror/gm0s1e /tmp ufs rw 2 2 /dev/mirror/gm0s1f /usr ufs rw 2 2 /dev/mirror/gm0s1g /var/spool ufs rw 2 2 the devices mounted after manually loading gmirror while in single user mode during the boot process are: Filesystem 1K-blocks Used Avail Capacity Mounted on /dev/da0s1a 253734 158970 74466 68% / devfs 1 1 0 100% /dev /dev/mirror/gm0s1d 1012974 33854 898084 4% /var /dev/mirror/gm0s1e 253678 12 233372 0% /tmp /dev/mirror/gm0s1f 2538478 1846726 488674 79% /usr /dev/mirror/gm0s1g 2502638 20 2302408 0% /var/spool /var/log/messages has these entries which show the problem with the drive being in use before gmirror attempts to include it: May 16 15:58:19 kernel: Mounting root from ufs:/dev/da0s1a May 16 15:58:19 kernel: GEOM_MIRROR: Device gm0 created (id=2862162848). May 16 15:58:19 kernel: GEOM_MIRROR: Device gm0: provider da1 detected. May 16 15:58:19 kernel: GEOM_MIRROR: Cannot add disk da0 to gm0 (error=22). May 16 15:58:19 kernel: GEOM_MIRROR: Force device gm0 start due to timeout. May 16 15:58:19 kernel: GEOM_MIRROR: Device gm0: provider da1 activated. May 16 15:58:19 kernel: GEOM_MIRROR: Device gm0: provider mirror/gm0 launched. I've been bashing my head on this for a couple of days, but I can't seem to get to the bottom of this. I've tried adding the following entries in the kernel and recompiling: options GEOM_MIRROR options GEOM_LABEL but the problem persists. Am I missing something obvious? Any ideas? Any other information I should include above? Thanks, Lapo Nustrini Seanet Corporation lapo@seanet.com From owner-freebsd-geom@FreeBSD.ORG Tue May 17 11:58:20 2005 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 C511516A4CE for ; Tue, 17 May 2005 11:58:20 +0000 (GMT) Received: from biodiesel.gaiahost.coop (biodiesel.gaiahost.coop [64.95.78.120]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6D54943D53 for ; Tue, 17 May 2005 11:58:20 +0000 (GMT) (envelope-from mark@gaiahost.coop) Received: from [127.0.0.1] (host-216-153-147-194.spr.choiceone.net [::ffff:216.153.147.194]) (AUTH: CRAM-MD5 mark) by biodiesel.gaiahost.coop with esmtp; Tue, 17 May 2005 06:58:07 -0400 id 0058C06D.4289CE42.00004A86 Message-ID: <4289DC41.5020105@gaiahost.coop> Date: Tue, 17 May 2005 07:57:53 -0400 From: Mark Bucciarelli User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206) X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-geom@freebsd.org References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: gmirror load problem on startup 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: Tue, 17 May 2005 11:58:20 -0000 Lapo Nustrini wrote: > May 16 15:58:19 kernel: Mounting root from ufs:/dev/da0s1a > May 16 15:58:19 kernel: GEOM_MIRROR: Device gm0 created (id=2862162848). Figure out why it is mounting root from da0s1a. > Am I missing something obvious? Any ideas? At which step in the howto was this--the first reboot? If so, what are the contents of /boot.config? And if it is the first reboot, why is da0 already in the mirror array? If it's not the first reboot, then you should have succesfully mounted root from gm0s1a before. Regards, Mark From owner-freebsd-geom@FreeBSD.ORG Tue May 17 13:57:50 2005 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 077A716A4CE for ; Tue, 17 May 2005 13:57:50 +0000 (GMT) Received: from mx.seanet.com (mx.seanet.com [199.181.164.20]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9DBD143D49 for ; Tue, 17 May 2005 13:57:49 +0000 (GMT) (envelope-from lapo@seanet.com) Received: from [199.181.168.92] (wallace.osd.com [199.181.168.92]) by milkyway.seanet.com (8.13.2/8.13.2) with ESMTP id j4HDv5gd005451 for ; Tue, 17 May 2005 06:57:41 -0700 (PDT) (envelope-from lapo@seanet.com) Mime-Version: 1.0 (Apple Message framework v728) In-Reply-To: <4289DC41.5020105@gaiahost.coop> References: <4289DC41.5020105@gaiahost.coop> Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: <623D750C-7437-4AB1-BCB6-051E44E42CC1@seanet.com> Content-Transfer-Encoding: 7bit From: Lapo Nustrini Date: Tue, 17 May 2005 06:58:01 -0700 To: freebsd-geom@freebsd.org X-Mailer: Apple Mail (2.728) Subject: Re: gmirror load problem on startup 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: Tue, 17 May 2005 13:57:50 -0000 On May 17, 2005, at 4:57 AM, Mark Bucciarelli wrote: > Lapo Nustrini wrote: > > > >> May 16 15:58:19 kernel: Mounting root from ufs:/dev/da0s1a >> May 16 15:58:19 kernel: GEOM_MIRROR: Device gm0 created >> (id=2862162848). >> >> > > Figure out why it is mounting root from da0s1a. > > That is the problem. I don't understand why it is mounting root from da0s1a, when /etc/ fstab is telling the system to mount it from mirror/gm0s1a > > >> Am I missing something obvious? Any ideas? >> >> > > At which step in the howto was this--the first reboot? If so, what > are the contents of /boot.config? > > I originally tried to follow the how-to to the letter, but I was unable to make the system re-boot automatically onto the second disk after setting up first mirror device. The following entry into /boot.config did not work as advertised: 2:da(1,a)/boot/loader (I can put pretty much anything in the boot.config file. The system seems to just ignore it.) To proceed with the how-to, since booting from the second device is only needed during configuration, I typed the same entry manually on the console during the boot process. This successfully booted from the second drive, so that I could add da0 to the mirror and let gmirror synch it up automatically. > And if it is the first reboot, why is da0 already in the mirror array? > > Its not. This is on any reboot after both drives were added to the mirror. The mirror worked predictably as soon as da0 was synched up after being added to gm0. This issue occurs only on subsequent reboots. In fact, if I manually force the system to boot from da1 by entering "2:da(1,a)/boot/loader" on the console, all partitions are mounted from gm0, but the mirror device only includes da0, not da1... > If it's not the first reboot, then you should have succesfully > mounted root from gm0s1a before. > > The only time I was able to have all partitions in the mirror mounted was when I added da0 to the mirror after booting manually from gm0 with only da1 in the mirror. This is the problem as I see it. The system is mounting root from da0s1a instead of gm0s1a. Why this happens is beyond me... My suspicion is that the GEOM_MIRROR module is not loaded early enough in the boot process when the boot loader is read from da0s1a, but I don't know enough to be able to check this... > Regards, > > Mark > > Thanks for the response. Any other ideas? Regards, Lapo From owner-freebsd-geom@FreeBSD.ORG Tue May 17 15:48:48 2005 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 3ACE516A4CE for ; Tue, 17 May 2005 15:48:48 +0000 (GMT) Received: from imladris.teardrop.org (imladris.teardrop.org [66.92.66.16]) by mx1.FreeBSD.org (Postfix) with ESMTP id CF04643D54 for ; Tue, 17 May 2005 15:48:47 +0000 (GMT) (envelope-from snow@teardrop.org) Received: by imladris.teardrop.org (Postfix, from userid 100) id B72A1BEABA; Tue, 17 May 2005 11:49:48 -0400 (EDT) Date: Tue, 17 May 2005 11:49:48 -0400 From: James Snow To: Lapo Nustrini Message-ID: <20050517154948.GA71815@teardrop.org> References: <4289DC41.5020105@gaiahost.coop> <623D750C-7437-4AB1-BCB6-051E44E42CC1@seanet.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <623D750C-7437-4AB1-BCB6-051E44E42CC1@seanet.com> User-Agent: Mutt/1.4.2.1i cc: freebsd-geom@freebsd.org Subject: Re: gmirror load problem on startup 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: Tue, 17 May 2005 15:48:48 -0000 On Tue, May 17, 2005 at 06:58:01AM -0700, Lapo Nustrini wrote: > > My suspicion is that the GEOM_MIRROR module is not loaded early > enough in the boot process when the boot loader is read from da0s1a, > but I don't know enough to be able to check this... Do you have the following line in /boot/loader.conf? geom_mirror_load="YES" -Snow From owner-freebsd-geom@FreeBSD.ORG Tue May 17 15:55:45 2005 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 3CB6D16A517 for ; Tue, 17 May 2005 15:55:45 +0000 (GMT) Received: from imladris.teardrop.org (imladris.teardrop.org [66.92.66.16]) by mx1.FreeBSD.org (Postfix) with ESMTP id ED82043D2F for ; Tue, 17 May 2005 15:55:44 +0000 (GMT) (envelope-from snow@teardrop.org) Received: by imladris.teardrop.org (Postfix, from userid 100) id 22D28BE45F; Tue, 17 May 2005 11:56:46 -0400 (EDT) Date: Tue, 17 May 2005 11:56:46 -0400 From: James Snow To: Lapo Nustrini Message-ID: <20050517155646.GB71815@teardrop.org> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.1i cc: freebsd-geom@freebsd.org Subject: Re: gmirror load problem on startup 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: Tue, 17 May 2005 15:55:45 -0000 On Mon, May 16, 2005 at 05:26:32PM -0700, Lapo Nustrini wrote: > > I have the following entry in /boot/loader.conf: > > geom_mirror_load="YES" Ah, you do have this line. > my /etc/fstab file is: > > # Device Mountpoint FStype Options > Dump Pass# > /dev/mirror/gm0s1b none swap > sw 0 0 > /dev/mirror/gm0s1a / ufs > rw 1 1 Is it possible that you have your fstab file correct on da0s1, but not within the mirror, on gm0s1? Not sure that this would cause the problem you're seeing, but it seems like a good thing to check. -Snow From owner-freebsd-geom@FreeBSD.ORG Tue May 17 16:01:47 2005 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 9548216A4CE for ; Tue, 17 May 2005 16:01:47 +0000 (GMT) Received: from biodiesel.gaiahost.coop (biodiesel.gaiahost.coop [64.95.78.120]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2BF2143D62 for ; Tue, 17 May 2005 16:01:47 +0000 (GMT) (envelope-from mark@gaiahost.coop) Received: from [127.0.0.1] (host-216-153-147-194.spr.choiceone.net [::ffff:216.153.147.194]) (AUTH: CRAM-MD5 mark) by biodiesel.gaiahost.coop with esmtp; Tue, 17 May 2005 11:01:29 -0400 id 0010406A.428A074A.000056B5 Message-ID: <428A1559.8060600@gaiahost.coop> Date: Tue, 17 May 2005 12:01:29 -0400 From: Mark Bucciarelli User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206) X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-geom@freebsd.org References: <4289DC41.5020105@gaiahost.coop> <23D17D53-2F04-4E4F-BE7E-643FB3CFD263@seanet.com> In-Reply-To: <23D17D53-2F04-4E4F-BE7E-643FB3CFD263@seanet.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: gmirror load problem on startup 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: Tue, 17 May 2005 16:01:47 -0000 [Please don't CC me, I am subscribed to this list.] Lapo Nustrini wrote: > The following entry into /boot.config did not work as advertised: > > 2:da(1,a)/boot/loader Are you sure you put this on the root partition on da0s1a and not the mirrored root partition? Regards, Mark From owner-freebsd-geom@FreeBSD.ORG Tue May 17 18:32:11 2005 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 A200516A4CE for ; Tue, 17 May 2005 18:32:11 +0000 (GMT) Received: from mx.seanet.com (mx.seanet.com [199.181.164.20]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4A0F943D2F for ; Tue, 17 May 2005 18:32:11 +0000 (GMT) (envelope-from lapo@seanet.com) Received: from [199.181.168.92] (wallace.osd.com [199.181.168.92]) by milkyway.seanet.com (8.13.2/8.13.2) with ESMTP id j4HIW6tV046313 for ; Tue, 17 May 2005 11:32:06 -0700 (PDT) (envelope-from lapo@seanet.com) Mime-Version: 1.0 (Apple Message framework v728) In-Reply-To: <428A1559.8060600@gaiahost.coop> References: <4289DC41.5020105@gaiahost.coop> <23D17D53-2F04-4E4F-BE7E-643FB3CFD263@seanet.com> <428A1559.8060600@gaiahost.coop> Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: Content-Transfer-Encoding: 7bit From: Lapo Nustrini Date: Tue, 17 May 2005 11:32:26 -0700 To: freebsd-geom@freebsd.org X-Mailer: Apple Mail (2.728) Subject: Re: gmirror load problem on startup 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: Tue, 17 May 2005 18:32:11 -0000 On May 17, 2005, at 9:01 AM, Mark Bucciarelli wrote: > >> The following entry into /boot.config did not work as advertised: >> 2:da(1,a)/boot/loader >> > > Are you sure you put this on the root partition on da0s1a and not > the mirrored root partition? > Well, what do you know... Although I did have the correct entry in da0s1a, this is not the first drive the system looks at when booting. The system I'm working on has a fiber channel external raid which once booted, FreeBSD sees as device da2. The BIOS however sees it as drive 0. Consequently, as da2 still contained an old slice with a bootable partition (da2s1a), all the changes I made to /boot.config on da0s1a were not being read and the boot process was being started from da2s1a, which told the system to mount da0s1a as root. Once I straightened everything out and started from scratch, things seem to be working as expected. Thanks for the help, and apologies for the 'noise'. Lapo From owner-freebsd-geom@FreeBSD.ORG Tue May 17 18:43:22 2005 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 F0D7F16A4CE; Tue, 17 May 2005 18:43:22 +0000 (GMT) Received: from spork.qfe3.net (spork.qfe3.net [212.13.207.101]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4D6EC43DCC; Tue, 17 May 2005 18:43:22 +0000 (GMT) (envelope-from chris@qfe3.net) Received: from chris by spork.qfe3.net with local (Exim 4.50) id 1DY72C-0006Jt-3F; Tue, 17 May 2005 19:43:16 +0100 Date: Tue, 17 May 2005 19:43:16 +0100 From: Chris Elsworth To: Pawel Jakub Dawidek Message-ID: <20050517184316.GA24278@spork.qfe3.net> References: <20050411122450.GA26898@spork.qfe3.net> <20050411135737.GM837@darkness.comp.waw.pl> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20050411135737.GM837@darkness.comp.waw.pl> User-Agent: Mutt/1.5.6i Sender: Chris Elsworth cc: freebsd-geom@freebsd.org Subject: Re: gmirror & sparc64 oddness 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: Tue, 17 May 2005 18:43:23 -0000 On Mon, Apr 11, 2005 at 03:57:37PM +0200, Pawel Jakub Dawidek wrote: > > I don't have HW to test this, but please try this patch and tell me > if it works for you: > > http://people.freebsd.org/~pjd/patches/geom_sunlabel.c.patch Pawel, Any chance of MFC'ing this soon? I was rather hoping it'd get into RELENG_5_4 but it missed it. The comment on the HEAD commit was "MFC after 2 weeks", but that was quite some time ago. Thanks, -- Chris From owner-freebsd-geom@FreeBSD.ORG Wed May 18 10:06:18 2005 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 4275316A4CE for ; Wed, 18 May 2005 10:06:18 +0000 (GMT) Received: from darkness.comp.waw.pl (darkness.comp.waw.pl [195.117.238.136]) by mx1.FreeBSD.org (Postfix) with ESMTP id 59D0C43DAB for ; Wed, 18 May 2005 10:06:17 +0000 (GMT) (envelope-from pjd@darkness.comp.waw.pl) Received: by darkness.comp.waw.pl (Postfix, from userid 1009) id 057E9ACC47; Wed, 18 May 2005 12:06:12 +0200 (CEST) Date: Wed, 18 May 2005 12:06:12 +0200 From: Pawel Jakub Dawidek To: Chris Elsworth Message-ID: <20050518100611.GJ837@darkness.comp.waw.pl> References: <20050411122450.GA26898@spork.qfe3.net> <20050411135737.GM837@darkness.comp.waw.pl> <20050517184316.GA24278@spork.qfe3.net> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="DZSKznnZZW4pjGOS" Content-Disposition: inline In-Reply-To: <20050517184316.GA24278@spork.qfe3.net> User-Agent: Mutt/1.4.2i X-PGP-Key-URL: http://people.freebsd.org/~pjd/pjd.asc X-OS: FreeBSD 5.2.1-RC2 i386 cc: freebsd-geom@freebsd.org Subject: Re: gmirror & sparc64 oddness 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: Wed, 18 May 2005 10:06:18 -0000 --DZSKznnZZW4pjGOS Content-Type: text/plain; charset=iso-8859-2 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, May 17, 2005 at 07:43:16PM +0100, Chris Elsworth wrote: +> On Mon, Apr 11, 2005 at 03:57:37PM +0200, Pawel Jakub Dawidek wrote: +> >=20 +> > I don't have HW to test this, but please try this patch and tell me +> > if it works for you: +> >=20 +> > http://people.freebsd.org/~pjd/patches/geom_sunlabel.c.patch +>=20 +> Pawel, +>=20 +> Any chance of MFC'ing this soon? I was rather hoping it'd get into +> RELENG_5_4 but it missed it. The comment on the HEAD commit was "MFC +> after 2 weeks", but that was quite some time ago. Thanks for the reminder, it seems I missed auto-MFC-remider. I'll MFC the patch later today. --=20 Pawel Jakub Dawidek http://www.wheel.pl pjd@FreeBSD.org http://www.FreeBSD.org FreeBSD committer Am I Evil? Yes, I Am! --DZSKznnZZW4pjGOS Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (FreeBSD) iD8DBQFCixOTForvXbEpPzQRAul0AJ9x8M2Hx7hnQPOyMi5EPUIoKtq5xgCfeYPt 1iYrdCTfDRS5gsnMCVh3u3k= =JfuT -----END PGP SIGNATURE----- --DZSKznnZZW4pjGOS-- From owner-freebsd-geom@FreeBSD.ORG Sat May 21 00:09:10 2005 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 87FBB16A4CE for ; Sat, 21 May 2005 00:09:10 +0000 (GMT) Received: from relay02.mail-hub.dodo.com.au (relay02.mail-hub.dodo.com.au [202.136.32.45]) by mx1.FreeBSD.org (Postfix) with ESMTP id EF82943DA9 for ; Sat, 21 May 2005 00:09:07 +0000 (GMT) (envelope-from aris@pharoe.com) Received: from [220.240.249.96] (helo=pharoe.com) by relay02.mail-hub.dodo.com.au with esmtp (Exim 4.34) id 1DZHYA-0004yL-Ij for freebsd-geom@freebsd.org; Sat, 21 May 2005 10:09:07 +1000 Received: from pharoe.com (localhost.com [127.0.0.1]) by pharoe.com (8.13.1/8.13.1) with ESMTP id j4L0AaTN000739 for ; Sat, 21 May 2005 10:10:36 +1000 (EST) (envelope-from aris@pharoe.com) Received: from localhost (aris@localhost) by pharoe.com (8.13.1/8.13.1/Submit) with ESMTP id j4L0AaK8000736 for ; Sat, 21 May 2005 10:10:36 +1000 (EST) (envelope-from aris@pharoe.com) Date: Sat, 21 May 2005 10:10:36 +1000 (EST) From: rk To: freebsd-geom@freebsd.org Message-ID: <20050521095457.N661@pharoe.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Subject: gvinum crashes, help! 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: Sat, 21 May 2005 00:09:10 -0000 Hi I have a server running FreeBSD 5.3 ... as of yesterday 5.4 It has a RAID1 on 2x4.3Gig drives for the OS, and *had* RAID5 on 3x120GB drives (the 120GB drives are no longer in the box) It has now beed upgraded to 4x250GB drives (that will run in RAID5). My problems are: (in a nutshell: no resetconfig implemented in gvinum yet) A. I cannot fully clean up the old RAID5 configuration. the subdisks appear as "up" (the rest of the objects - disks, volume, plex - are gone) attempting to delete these subdisks immediately crashes the machine. I upped the sys/, lib/libgeom, sbin/geom and sbin/gvinum to RELENG_5_4 I hoped the newly-added support for set-state will help. nada. I can set the ghost subdisks to down (which will not persist over a reboot) but even when down attempting to remove them bounces the box. The configuration seems like it is saved somewhere on the 4.3 Gig disks. Maybe I can somehow manually edit it...? Here's a gvinum l -r : gvinum l -r 2 drives: D sys-b State: up /dev/da1s1h A: 255/4141 MB (6%) S sys.p1.s0 State: up D: sys-b Size: 3885 MB D sys-a State: up /dev/da0s1h A: 255/4141 MB (6%) S sys.p0.s0 State: up D: sys-a Size: 3885 MB 1 volume: V sys State: up Plexes: 2 Size: 3885 MB P sys.p1 C State: up Subdisks: 1 Size: 3885 MB S sys.p1.s0 State: up D: sys-b Size: 3885 MB P sys.p0 C State: up Subdisks: 1 Size: 3885 MB S sys.p0.s0 State: up D: sys-a Size: 3885 MB 2 plexes: P sys.p0 C State: up Subdisks: 1 Size: 3885 MB S sys.p0.s0 State: up D: sys-a Size: 3885 MB P sys.p1 C State: up Subdisks: 1 Size: 3885 MB S sys.p1.s0 State: up D: sys-b Size: 3885 MB 5 subdisks: S store.p0.s2 State: up D: store-c Size: 111 GB S store.p0.s1 State: up D: store-b Size: 111 GB S store.p0.s0 State: up D: store-a Size: 111 GB S sys.p0.s0 State: up D: sys-a Size: 3885 MB S sys.p1.s0 State: up D: sys-b Size: 3885 MB How can I clean those annying bits out? B. Creating the new RAID. When I run gvinum create, again, the box mercilessly crashes. No nice readable kernel panic, just an immediate reboot. The four new drives are all in. All look like this: #bsdlabel /dev/ad4s1 # /dev/ad4s1: 8 partitions: # size offset fstype [fsize bsize bps/cpg] c: 488392002 0 unused 0 0 # "raw" part, don't edit h: 488391986 16 vinum I created a new configuration to RAID them: drive hold1 device /dev/ad4s1h drive hold2 device /dev/ad6s1h drive hold3 device /dev/ad8s1h drive hold4 device /dev/ad10s1h volume hold plex org raid5 715425M sd length 238475M drive hold1 sd length 238475M drive hold2 sd length 238475M drive hold3 sd length 238475M drive hold4 The moment I run create with this file, zbang. Help :-) TIA Miki S