gvinum forgetting drives in 6.0R?

Marc Ramirez marc.ramirez at bluecirclesoft.com
Thu Nov 10 20:42:18 PST 2005


I'm doing some testing in 6.0, and something strange is happening:

1) uname -a
FreeBSD  6.0-RELEASE FreeBSD 6.0-RELEASE #0: Thu Nov  3 09:36:13 UTC 2005     
root at 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 plexoffset 
512s
 sd name v0.p0.s1 drive dr2 len 613376s driveoffset 265s plex v0.p0 plexoffset 
256s
 sd name v0.p0.s0 drive dr1 len 613376s driveoffset 265s plex v0.p0 plexoffset 
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?  
Also, everything is conveniently in the up state, but there is no /dev/gvinum 
directory.  

7) For kicks, add the following to /etc/rc.conf like I saw in an e-mail 
somewhere:

geom_vinum_load="YES"
start_cmd="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 
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.
FreeBSD 6.0-RELEASE #0: Thu Nov  3 09:36:13 UTC 2005
    root at 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 = "GenuineIntel"  Id = 0x633  Stepping = 3
  
Features=0x781a9fd<FPU,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,PGE,CMOV,PAT,MMX,FXSR,SSE,SSE2>
real memory  = 134217728 (128 MB)
avail memory = 121815040 (116 MB)
npx0: [FAST]
npx0: <math processor> on motherboard
npx0: INT 16 interface
cpu0 on motherboard
pcib0: <Host to PCI bridge> pcibus 0 on motherboard
pir0: <PCI Interrupt Routing Table: 6 Entries> on motherboard
pci0: <PCI bus> on pcib0
isab0: <PCI-ISA bridge> at device 1.0 on pci0
isa0: <ISA bus> on isab0
atapci0: <Intel PIIX3 WDMA2 controller> port 
0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0xc000-0xc00f at device 1.1 on pci0
ata0: <ATA channel 0> on atapci0
ata1: <ATA channel 1> on atapci0
pci0: <display, VGA> at device 2.0 (no driver attached)
ed0: <RealTek 8029> 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: <ISA Option ROM> at iomem 0xc0000-0xc7fff on isa0
atkbdc0: <Keyboard controller (i8042)> at port 0x60,0x64 on isa0
atkbd0: <AT Keyboard> irq 1 on atkbdc0
kbd0 at atkbd0
atkbd0: [GIANT-LOCKED]
psm0: <PS/2 Mouse> irq 12 on atkbdc0
psm0: [GIANT-LOCKED]
psm0: model IntelliMouse Explorer, device ID 4
ppc0: <Parallel port> at port 0x378-0x37f irq 7 on isa0
ppc0: Generic chipset (EPP/NIBBLE) in COMPATIBLE mode
ppbus0: <Parallel port bus> on ppc0
plip0: <PLIP network interface> on ppbus0
lpt0: <Printer> on ppbus0
lpt0: Interrupt-driven port
ppi0: <Parallel I/O> on ppbus0
sc0: <System console> at flags 0x100 on isa0
sc0: VGA <16 virtual consoles, flags=0x300>
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: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0
Timecounter "TSC" frequency 2064806075 Hz quality 800
Timecounters tick every 1.000 msec
ad0: 1000MB <QEMU HARDDISK 0.7.2> at ata0-master PIO2
ad1: 300MB <QEMU HARDDISK 0.7.2> at ata0-slave PIO2
ad2: 300MB <QEMU HARDDISK 0.7.2> at ata1-master PIO2
ad3: 300MB <QEMU HARDDISK 0.7.2> at ata1-slave PIO2
Trying to mount root from ufs:/dev/ad0s1a


-- 
Marc Ramirez
Blue Circle Software Corporation
513-688-1070 (main)
513-382-1270 (direct)
http://www.bluecirclesoft.com
http://www.mrami.com (personal)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-stable/attachments/20051110/4c4aa6a2/attachment-0001.bin


More information about the freebsd-stable mailing list