From owner-freebsd-stable Thu Apr 25 2:25:27 2002 Delivered-To: freebsd-stable@freebsd.org Received: from alogis.com (firewall.solit-ag.de [212.184.102.1]) by hub.freebsd.org (Postfix) with ESMTP id CB9E437B404; Thu, 25 Apr 2002 02:25:18 -0700 (PDT) Received: from alogis.com (kipp@clausthal.int1.b.intern [10.1.1.30]) by alogis.com (8.11.1/8.9.3) with ESMTP id g3P9PHl88222; Thu, 25 Apr 2002 11:25:17 +0200 (CEST) (envelope-from holger.kipp@alogis.com) Message-ID: <3CC7C80A.263E39E6@alogis.com> Date: Thu, 25 Apr 2002 11:10:34 +0200 From: Holger Kipp X-Mailer: Mozilla 4.7 [en] (X11; U; Linux 2.2.13 i686) X-Accept-Language: en MIME-Version: 1.0 To: "Greg 'groggy' Lehey" Cc: stable@FreeBSD.ORG Subject: vinum: "start" broken, needs explicit "read /dev/twed1a", strange behaviour References: <5.1.0.14.0.20020422210120.05d72808@192.168.0.12> <5.1.0.14.0.20020422160043.03499a50@marble.sentex.ca> <5.1.0.14.0.20020422160043.03499a50@marble.sentex.ca> <5.1.0.14.0.20020422210120.05d72808@192.168.0.12> <5.1.0.14.0.20020425000434.03dbfeb8@192.168.0.12> <20020425134704.K33950@wantadilla.lemis.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Hello, vinum on twed1a gives me some headaches. System is a 4.5-stable cvsupped within the last two hours... The system only has twed0 and twed1 (both 3ware escalade controllers 0 is 7410b, 1 is 7850b). - vinum is not reading its configuration from disk. - create worked without any problems (apart from the known missing "twed" - see below) - setting up vinum manually with vinum vinum-> read /dev/twed1a works, but is changing a link in directory /dev/vinum/drive: ls -l after installation: lrwxr-xr-x 1 root wheel 13 Apr 24 18:25 drive0 -> /dev/twed1a ls -l after first time 'vinum-> read /dev/twed1a': lrwxr-xr-x 1 root wheel 13 Apr 24 18:25 drive0 -> /dev/twed1s1a and then counting through all valid slices, one up every time I have to force read again. I also tried /dev/twed1s1a for installation, but then I get links to /dev/twed1s1as1a, ... /dev/twed1s1as1e,f,g,h vinum start doesn't work (ie won't read configuration from disk). Should I file a PR, or is this a) user error (me stupid) or b) quick fix possible? Would you mind committing the "twed"-addition to vinumio.c as well? I'm out of ideas. Any help appreciated. Regards, Holger --- diff to vinumio.c was (didn't change anything else): *** vinumio.c Tue Apr 23 14:05:19 2002 --- vinumio.c.orig Tue Apr 23 13:22:57 2002 *************** *** 93,98 **** --- 93,101 ---- } else if (bcmp(dname, "idad", 4) == 0) { devmajor = 109; dname += 2; + } else if (bcmp(dname, "twed", 4) == 0) { /* 3ware raid */ + devmajor = 147; + dname += 2; } else return ENODEV; dname += 2; /* point past */ -- Holger Kipp, Dipl.-Math., Systemadministrator | alogis AG Fon: +49 (0)30 / 43 65 8 - 114 | Berliner Strasse 26 Fax: +49 (0)30 / 43 65 8 - 214 | D-13507 Berlin Tegel email: holger.kipp@alogis.com | http://www.alogis.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message