From owner-freebsd-stable@FreeBSD.ORG Fri Nov 11 04:42:18 2005 Return-Path: X-Original-To: freebsd-stable@freebsd.org Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2DC0916A41F for ; Fri, 11 Nov 2005 04:42:18 +0000 (GMT) (envelope-from marc.ramirez@bluecirclesoft.com) Received: from ms-smtp-01-eri0.ohiordc.rr.com (ms-smtp-01-smtplb.ohiordc.rr.com [65.24.5.135]) by mx1.FreeBSD.org (Postfix) with ESMTP id A798B43D46 for ; Fri, 11 Nov 2005 04:42:15 +0000 (GMT) (envelope-from marc.ramirez@bluecirclesoft.com) Received: from bluecirclesoft.com (cpe-24-165-114-48.cinci.res.rr.com [24.165.114.48]) by ms-smtp-01-eri0.ohiordc.rr.com (8.12.10/8.12.7) with ESMTP id jAB4gCWY008221 for ; Thu, 10 Nov 2005 23:42:12 -0500 (EST) Received: from bluecirclesoft.com (localhost [127.0.0.1]) by bluecirclesoft.com (8.13.4/8.13.4) with ESMTP id jAB4fJf5008432 for ; Thu, 10 Nov 2005 23:41:19 -0500 (EST) (envelope-from marc.ramirez@bluecirclesoft.com) Received: from localhost (localhost [[UNIX: localhost]]) by bluecirclesoft.com (8.13.4/8.13.4/Submit) id jAB4fJmm008431 for freebsd-stable@freebsd.org; Thu, 10 Nov 2005 23:41:19 -0500 (EST) (envelope-from marc.ramirez@bluecirclesoft.com) X-Authentication-Warning: bluecirclesoft.com: mrami set sender to marc.ramirez@bluecirclesoft.com using -f From: Marc Ramirez Organization: Blue Circle Software Corp. To: freebsd-stable@freebsd.org Date: Thu, 10 Nov 2005 23:42:05 -0500 User-Agent: KMail/1.8.2 MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart3836566.RnPFYSrNfZ"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <200511102342.11446.marc.ramirez@bluecirclesoft.com> X-Virus-Scanned: Symantec AntiVirus Scan Engine Subject: gvinum forgetting drives in 6.0R? X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 11 Nov 2005 04:42:18 -0000 --nextPart3836566.RnPFYSrNfZ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline I'm doing some testing in 6.0, and something strange is happening: 1) uname -a =46reeBSD 6.0-RELEASE FreeBSD 6.0-RELEASE #0: Thu Nov 3 09:36:13 UTC 2005= =20 root@x64.samsco.home:/usr/obj/usr/src/sys/GENERIC i386 2) I build a stripe set using 'gvinum create' and the following config: drive dr3 device /dev/ad3s1 drive dr2 device /dev/ad2s1 drive dr1 device /dev/ad1s1 volume v0 plex name v0.p0 org striped 256s vol v0 sd name v0.p0.s2 drive dr3 len 613376s driveoffset 265s plex v0.p0 plexoff= set=20 512s sd name v0.p0.s1 drive dr2 len 613376s driveoffset 265s plex v0.p0 plexoff= set=20 256s sd name v0.p0.s0 drive dr1 len 613376s driveoffset 265s plex v0.p0 plexoff= set=20 0s 3) After this is done, everything's okay, and 'gvinum l' looks like: 3 drives: D dr1 State: up /dev/ad1s1 A: 0/299 MB (0%) D dr2 State: up /dev/ad2s1 A: 0/299 MB (0%) D dr3 State: up /dev/ad3s1 A: 0/299 MB (0%) 1 volume: V v0 State: up Plexes: 1 Size: 898 MB 1 plex: P v0.p0 S State: up Subdisks: 3 Size: 898 MB 3 subdisks: S v0.p0.s0 State: up D: dr1 Size: 299 MB S v0.p0.s1 State: up D: dr2 Size: 299 MB S v0.p0.s2 State: up D: dr3 Size: 299 MB 4) gvinum saveconfig 5) Reboot 6) 'gvinum l' now looks like: 0 drives: 1 volume: V v0 State: up Plexes: 0 Size: 0 B 1 plex: P v0.p0 S State: up Subdisks: 0 Size: 0 B 3 subdisks: S v0.p0.s0 State: up D: dr1 Size: 299 MB S v0.p0.s1 State: up D: dr2 Size: 299 MB S v0.p0.s2 State: up D: dr3 Size: 299 MB Notice the lack of drives and the subsequent death of my plex and volume? = =20 Also, everything is conveniently in the up state, but there is no /dev/gvin= um=20 directory. =20 7) For kicks, add the following to /etc/rc.conf like I saw in an e-mail=20 somewhere: geom_vinum_load=3D"YES" start_cmd=3D"gvinum start" 8) Reboot 9) Things still look like 6) above. Is this a bug or am I silly? Caveat: This testing is being done in qemu, but the behavior matches a=20 physical system I have. I haven't tested other kinds of plexes yet, either. dmesg: Copyright (c) 1992-2005 The FreeBSD Project. Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 The Regents of the University of California. All rights reserved. =46reeBSD 6.0-RELEASE #0: Thu Nov 3 09:36:13 UTC 2005 root@x64.samsco.home:/usr/obj/usr/src/sys/GENERIC Timecounter "i8254" frequency 1193182 Hz quality 0 CPU: Pentium II/Pentium II Xeon/Celeron (2064.81-MHz 686-class CPU) Origin =3D "GenuineIntel" Id =3D 0x633 Stepping =3D 3 =20 =46eatures=3D0x781a9fd real memory =3D 134217728 (128 MB) avail memory =3D 121815040 (116 MB) npx0: [FAST] npx0: on motherboard npx0: INT 16 interface cpu0 on motherboard pcib0: pcibus 0 on motherboard pir0: on motherboard pci0: on pcib0 isab0: at device 1.0 on pci0 isa0: on isab0 atapci0: port=20 0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0xc000-0xc00f at device 1.1 on pci0 ata0: on atapci0 ata1: on atapci0 pci0: at device 2.0 (no driver attached) ed0: port 0xc100-0xc1ff irq 11 at device 3.0 on pci0 ed0: Ethernet address: 52:54:00:12:34:56 ed0: type NE2000 (16 bit) pmtimer0 on isa0 orm0: at iomem 0xc0000-0xc7fff on isa0 atkbdc0: at port 0x60,0x64 on isa0 atkbd0: irq 1 on atkbdc0 kbd0 at atkbd0 atkbd0: [GIANT-LOCKED] psm0: irq 12 on atkbdc0 psm0: [GIANT-LOCKED] psm0: model IntelliMouse Explorer, device ID 4 ppc0: at port 0x378-0x37f irq 7 on isa0 ppc0: Generic chipset (EPP/NIBBLE) in COMPATIBLE mode ppbus0: on ppc0 plip0: on ppbus0 lpt0: on ppbus0 lpt0: Interrupt-driven port ppi0: on ppbus0 sc0: at flags 0x100 on isa0 sc0: VGA <16 virtual consoles, flags=3D0x300> sio0 at port 0x3f8-0x3ff irq 4 flags 0x10 on isa0 sio0: type 16450 sio1: configured irq 3 not in bitmap of probed irqs 0 sio1: port may not be enabled vga0: at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0 Timecounter "TSC" frequency 2064806075 Hz quality 800 Timecounters tick every 1.000 msec ad0: 1000MB at ata0-master PIO2 ad1: 300MB at ata0-slave PIO2 ad2: 300MB at ata1-master PIO2 ad3: 300MB at ata1-slave PIO2 Trying to mount root from ufs:/dev/ad0s1a =2D-=20 Marc Ramirez Blue Circle Software Corporation 513-688-1070 (main) 513-382-1270 (direct) http://www.bluecirclesoft.com http://www.mrami.com (personal) --nextPart3836566.RnPFYSrNfZ Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (FreeBSD) iD8DBQBDdCEjg1EgpGw750IRAv2UAJ947OpfPEwemINJUJfCowaJqFhNjACePyDq qKl+SRjO3GRJ8t+EP7F0grs= =KeZb -----END PGP SIGNATURE----- --nextPart3836566.RnPFYSrNfZ--