From owner-freebsd-questions@FreeBSD.ORG Mon Feb 16 14:34:00 2004 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 BFC2C16A4CE for ; Mon, 16 Feb 2004 14:34:00 -0800 (PST) Received: from natsmtp00.webmailer.de (natsmtp00.rzone.de [81.169.145.165]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3AA7643D2D for ; Mon, 16 Feb 2004 14:34:00 -0800 (PST) (envelope-from Robert.Eckardt@Robert-Eckardt.de) Received: from quasar.eckardt.org (p5080B954.dip.t-dialin.net [80.128.185.84]) by post.webmailer.de (8.12.10/8.12.10) with ESMTP id i1GMXwLV009678 for ; Mon, 16 Feb 2004 23:33:58 +0100 (MET) Received: from roberte.no-ip.org (localhost.eckardt.org [127.0.0.1]) by quasar.eckardt.org (8.12.9/8.12.6) with ESMTP id i1GMXxeI049314 for ; Mon, 16 Feb 2004 23:33:59 +0100 (CET) (envelope-from Robert.Eckardt@Robert-Eckardt.de) From: "Robert Eckardt" To: freebsd-questions@freebsd.org Date: Tue, 17 Feb 2004 00:33:59 +0100 Message-Id: <20040216212114.M57737@Robert-Eckardt.de> X-Mailer: Open WebMail 2.10 20030617 X-OriginatingIP: 80.128.185.84 (roberte) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Subject: solution for ad/ar geometry problem sought 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: Mon, 16 Feb 2004 22:34:00 -0000 Hi, has someone a solution for the following geometry problem with IDE disks on a raid controller? When activating the raid (RAID1) the system sees a different geometry on ar1 than it saw on ad5 and thus finds no filesystems. System is FBSD5.2R, EPoX 4GEA+, HPT372N, 2*77GB HDS + 2*114GB Maxtor. I install the system on one of the maxtors on device /dev/ad5. (ad4+ad6=ar0 carries the old 5.0 system, which accesses the raid via HighPoint's driver as da1 da1 at hpt37x20 bus 0 target 0 lun 0 da1: Fixed Direct Access SCSI-2 device da1: 78533MB (160836480 512 byte sectors: 255H 63S/T 10011C) da2 at hpt37x20 bus 0 target 1 lun 0 da2: Fixed Direct Access SCSI-2 device da2: 117246MB (240121728 512 byte sectors: 255H 63S/T 14946C) da3 at hpt37x20 bus 0 target 2 lun 0 da3: Fixed Direct Access SCSI-2 device da3: 117246MB (240121728 512 byte sectors: 255H 63S/T 14946C) ) Sysinstall complains about the geometry 238216/16/63 and claims to use 14946/255/62 instead. I tried the wizard mode, only to learn that setting the geometry to any value (e.g. to 29777/128/63 which is the same size as initially without rounding errors) it gets reset to 238216/16/63 when I write the new geometry to disk. So I installed anyway. I don't argue with my computer. On reboot after installation the disk is recognized as 238216/16/63 and everything works fine. Then I create the mirror using "atacontrol RAID1 ad5 ad7" and after checking the raid status for READY and adjusting fstab I reboot. The kernel is loaded and ar1 has 14946/255/62 while ad5 still has 238216/16/63. Thus, the kernel cannot find the superblock of the root-FS and stops. I can continue by specifying "ufs:ad5s1a" as a new root but then fstab only contains references to ar1. Now, why is it good to access the disk with and without raid? It happened to me that ad6 broke. After replacing ad6 I started the resync ... until 6% were done. Then the system ran on a uncorrectable read error on ad4 (the original) No data was touched but resyncing didn't work. So I broke the mirror, used dump|restore on the "raid-less" disks and replaced ad4 too. Finally the resync worked. HighPoint's driver presented the disks and raid arrays to me always with the same geometry. So, where can I tweak the system to see the same geometries on ad5/ad7 and on ar1 ??? Any help appreciated! Thanks in advance, Robert