From owner-freebsd-geom@FreeBSD.ORG Wed Oct 18 19:58:02 2006 Return-Path: X-Original-To: freebsd-geom@FreeBSD.org 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 7EC4416A407 for ; Wed, 18 Oct 2006 19:58:02 +0000 (UTC) (envelope-from darkside@swipnet.se) Received: from amsfep13-int.chello.nl (amsfep17-int.chello.nl [213.46.243.15]) by mx1.FreeBSD.org (Postfix) with ESMTP id 37A7543D5C for ; Wed, 18 Oct 2006 19:57:53 +0000 (GMT) (envelope-from darkside@swipnet.se) Received: from [192.168.0.5] (really [213.89.209.56]) by amsfep17-int.chello.nl (InterMail vM.6.01.04.04 201-2131-118-104-20050224) with ESMTP id <20061018195639.QYQF9483.amsfep17-int.chello.nl@[192.168.0.5]>; Wed, 18 Oct 2006 21:56:39 +0200 Message-ID: <45368702.9000506@swipnet.se> Date: Wed, 18 Oct 2006 21:56:50 +0200 From: Nyaano User-Agent: Thunderbird 1.5.0.7 (Windows/20060909) MIME-Version: 1.0 To: Ulf Lilleengen References: <45329A7E.1010108@swipnet.se> <20061018170749.GA3547@vimes.studby.ntnu.no> In-Reply-To: <20061018170749.GA3547@vimes.studby.ntnu.no> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-geom@FreeBSD.org Subject: Re: GEOM vinum and SMP (AMD64) X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: darkside@swipnet.se List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 18 Oct 2006 19:58:02 -0000 Ulf Lilleengen wrote: > On Sun, Oct 15, 2006 at 10:30:54PM +0200, Nyaano wrote: > >> Hi, >> >> I've just tried out FreeBSD 6.2-BETA2 (AMD64) on a Core2Duo E6300. >> I installed the SMP kernel without any problem, made a gvinum >> configuration and created a RAID5 volume. >> I can mount it without any problems, and I added geom_vinum_load="YES" >> in /boot/loader.conf and the appropriate line in /etc/fstab after >> creating a filesystem on the volume. >> After that, I do a simple shutdown -r now because I want to make sure >> that everything starts up the way it should. >> When the system comes to the point where it's going to mount the RAID5 >> volume, it complains about the superblock and says it's corrupt. >> >> With exactly the same configuration, but with the GENERIC kernel, >> everything works without any problems. >> >> Before I spend more time on trying to get this working with SMP, I'd >> like to know if this is a known problem, and if it's not, what >> information is needed from me in order to track down what the problem is. >> > > Hi, > > Could you try to boot into single-user mode, try fsck on the volume, and then > mount it? It would also be nice if you could send your config as well as any > relevant error message. > > The computer in question had the following setup (I write had because I had to put it to other use for now, will make a new attempt with FreeBSD when I can free it up again): Asus P5B Core 2 Duo E6300 1GB RAM 4x320GB WD3200KS on the mobo ICH8-controller (configured in BIOS as IDE, not AHCI because with AHCI FreeBSD would only detect two drives) 2x250GB WD2500KS on a Highpoint 2300 SATA-controller (using driver provided by Highpoint, configured for RAID1) 1 SATA CD/DVD on the JMicron controller (CD/DVD not detected by FreeBSD in either IDE or AHCI mode in BIOS) Some noname firewire PCI card Some nVidia PCI-Express graphics card What I did was install a minimal FreeBSD 6.2-BETA2 with SMP kernel from AMD64 iso, proceeded to run gvinum and produced a configuration that put the 4 320GB drives in a RAID5 volume, created filesystem with newfs -U, added lines in /boot/loader.conf (geom_vinum_load="YES") and /etc/fstab (can't recall exactly, but it was a standard line). After shutdown -r now it booted up fine but when it came to mounting the volume, it would complain about corrupt superblock (sorry, don't have exact error message). I tried to run fsck on the /dev/gvinum/fileserver volume, but it would complain about the superblock. To see if the same thing happened with GENERIC kernel, I installed from scratch and picked GENERIC instead, started gvinum and let that load the RAID5 config from the disks, then put on a new filesystem. shutdown -r now and it booted up to the prompt without any problems. Before I had to put the computer to other use, I tried again with SMP, and this time everything worked fine. I simply didn't have any more time to test these things further, but I started to question my own assumption that the problem was in GEOM vinum, as that should be well tested in both GENERIC and SMP configs, and started to wonder if the problem could be in the ICH8 driver instead. Lack of time, and not being too familiar with FreeBSD forced me to abandon this for now though. (I had previously already lost a lot of time from wondering how the network support could be so flaky during install until I discovered that it was the cable that was at fault and not the network card or FreeBSD, as well as trying to get FreeBSD to notice my SATA CD/DVD). I should be able to make a new attempt at this in a few weeks which should be a lot less painful experience :p Regards, Nyaano