From owner-freebsd-sparc64@FreeBSD.ORG Sun Mar 12 18:55:17 2006 Return-Path: X-Original-To: freebsd-sparc64@freebsd.org Delivered-To: freebsd-sparc64@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1E48A16A514 for ; Sun, 12 Mar 2006 18:55:17 +0000 (GMT) (envelope-from listor@melin.org) Received: from adamomail.se (mail.adamomail.se [208.49.108.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id 416C143D62 for ; Sun, 12 Mar 2006 18:55:15 +0000 (GMT) (envelope-from listor@melin.org) Received: from stanley.melin.org ([81.216.195.144] verified) by adamomail.se (CommuniGate Pro SMTP 4.2.9) with ESMTP id 1833963 for freebsd-sparc64@freebsd.org; Sun, 12 Mar 2006 19:48:37 +0100 Received: from localhost (localhost [127.0.0.1]) by stanley.melin.org (Postfix) with ESMTP id E4C15333C94 for ; Sun, 12 Mar 2006 19:55:11 +0100 (CET) Received: from stanley.melin.org ([127.0.0.1]) by localhost (144.195.216.81.tab.siw.siwnet.net [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 28471-09 for ; Sun, 12 Mar 2006 19:54:55 +0100 (CET) Received: from [10.0.1.9] (144.195.216.81.static.tab.siw.siwnet.net [81.216.195.144]) by stanley.melin.org (Postfix) with ESMTP id 7B124333C71 for ; Sun, 12 Mar 2006 19:54:55 +0100 (CET) Mime-Version: 1.0 (Apple Message framework v746.2) Content-Transfer-Encoding: 7bit Message-Id: <42910C75-6B1E-4742-9B5C-BF4B08BF99B8@melin.org> Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed To: freebsd-sparc64@freebsd.org From: Joacim Melin Date: Sun, 12 Mar 2006 19:54:55 +0100 X-Mailer: Apple Mail (2.746.2) X-Virus-Scanned: by amavisd-new at melin.org Subject: More stupid raid questions X-BeenThere: freebsd-sparc64@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the Sparc List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 12 Mar 2006 18:55:17 -0000 I guess you are pretty tired of me by now, but I hope there is some patience left out there. I have the following scenario: Netra X1, two Seagate Barracuda-drives that both claim to be 80GB in size. In reality, they differ by 300 megs or so in available size. /dev/ad0 is the smaller one. /dev/ad1 is the bigger one. I install FreeBSD on the smaller drive, do all the gmirror stuff, copy all contents on /dev/ad0 to /dev/mirror/gm0 (/dev/ad1 inserted in the raid), edit fstab and loader.conf on both /dev/ad0 and /dev/ mirror/gm0 to point the root directory to /dev/mirror/gm0. Then I reboot. And suddenly, /dev/ad1 is listed as /dev/ad0 when I do a gmirror status. klingklang# gmirrror status gmirrror: Command not found. klingklang# su - klingklang# klingklang# gmirror list Geom name: gm0 State: COMPLETE Components: 1 Balance: round-robin Slice: 4096 Flags: NONE GenID: 0 SyncID: 1 ID: 1464945542 Providers: 1. Name: mirror/gm0 Mediasize: 80026361344 (75G) Sectorsize: 512 Mode: r1w1e1 Consumers: 1. Name: ad0 Mediasize: 80026361856 (75G) Sectorsize: 512 Mode: r1w1e1 State: ACTIVE Priority: 0 Flags: DIRTY GenID: 0 SyncID: 1 ID: 2076583338 The original /dev/ad0 is now known as /dev/ad1 and of course, now it's too small to be added to the raid. Also, note that the size of / dev/mirror/gm0 and /dev/ad0 in the above list differs. The easy solution would to simply switch places of the drives, re- install FreeBSD and then the problem would be solved, but it turns out it isn't. I've tried that too, and result is still the same for some reason that I don't understand. I'm tearing out whatever hair I have left as I've spent an entire weekend working on solving this. Thanks for you patience. Joacim