Re: gvinum: adding plex and subdisks to existing volume panic

2006-01-03 Thread Lukas Ertl

On Thu, 22 Dec 2005, Ludo Koren wrote:


Fatal trap 12: page fault while in kernel mode
fault virtual address   = 0x40
fault code  = supervisor read, page not present
instruction pointer = 0x8:0xc07339c9
stack pointer   = 0x10:0xe5f9e840
frame pointer   = 0x10:0xe5f9e848
code segment= base 0x0, limit 0xf, type 0x1b
= DPL 0, pres 1, def32 1, gran 1
processor eflags= interrupt enabled, resume, IOPL = 0
current process = 2 (g_event)
trap number = 12
panic: page fault
Uptime: 2m32s
Dumping 1022 MB
16 32 48 64 80 96 112 128 144 160 176 192 208 224 240 256 272 288 304 320 336 
352 368 384 400 416 432 448 464 480 496 512 528 544 560 576 592 608 624 640 656 
672 688 704 720 736 752 768 784 800 816 832 848 864 880 896 912 928 944 960 976 
992 1008

#0  doadump () at pcpu.h:160
160 pcpu.h: No such file or directory.
in pcpu.h
(kgdb) add-symbol-file /usr/src/sys/modules/geom/geom_vinum/geom_vinum.ko 
0xc072 a9b8
add symbol table from file /usr/src/sys/modules/geom/geom_vinum/geom_vinum.ko 
at
.text_addr = 0xc072a9b8
(y or n) y
Reading symbols from /usr/src/sys/modules/geom/geom_vinum/geom_vinum.ko...done.
(kgdb) bt
#0  doadump () at pcpu.h:160
#1  0xc04eaf44 in boot (howto=260) at /usr/src/sys/kern/kern_shutdown.c:412
#2  0xc04eb1d8 in panic (fmt=0xc060fcbc %s)
   at /usr/src/sys/kern/kern_shutdown.c:568
#3  0xc05ec2f0 in trap_fatal (frame=0xe5f9e800, eva=64)
   at /usr/src/sys/i386/i386/trap.c:822
#4  0xc05ec057 in trap_pfault (frame=0xe5f9e800, usermode=0, eva=64)
   at /usr/src/sys/i386/i386/trap.c:737
#5  0xc05ebcb9 in trap (frame=
 {tf_fs = -1040646120, tf_es = -1037893616, tf_ds = -1038024688, tf_edi = 
-1038012416, tf_esi = 0, tf_ebp = -436606904, tf_isp = -436606932, tf_ebx = 
-1038077952, tf_edx = 1, tf_ecx = -1066995504, tf_eax = 0, tf_trapno = 12, 
tf_err = 0, tf_eip = -1066190391, tf_cs = 8, tf_eflags = 66182, tf_esp = 
-1038077952, tf_ss = -1038516864}) at /usr/src/sys/i386/i386/trap.c:427
#6  0xc05dc52a in calltrap () at /usr/src/sys/i386/i386/exception.s:140
#7  0xc1f90018 in ?? ()
#8  0xc2230010 in ?? ()
#9  0xc2210010 in ?? ()


I'm afraid that doesn't help me, either, as you can see there's no 
debugging information in there (the ?? question marks should be 
function calls actually).


Apparently there's a NULL pointer deref somewhere, I'll try to track it 
down on my own.


Thanks,
le

--
Lukas Ertl http://homepage.univie.ac.at/l.ertl/
[EMAIL PROTECTED] http://people.freebsd.org/~le/
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: gvinum: adding plex and subdisks to existing volume panic

2006-01-03 Thread Ludo Koren
 Lukas Ertl [EMAIL PROTECTED] writes:



  I'm afraid that doesn't help me, either, as you can see there's
  no debugging information in there (the ?? question marks
  should be function calls actually).

  Apparently there's a NULL pointer deref somewhere, I'll try to
  track it down on my own.

Is there a way how can I help you (probably the question marks -
source is from another module ) or something else ?

lk

___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: gvinum: adding plex and subdisks to existing volume panic

2005-12-22 Thread Ludo Koren

Unfortunately, that doesn't help me at all, since there's no debugging 
info.  Have a look at 
http://www.freebsd.org/doc/en_US.ISO8859-1/books/developers-handbook/kerneldebug-kld.html.

sorry I realized it late...

Here is the info:

Script started on Thu Dec 22 12:25:56 2005
501 gw|/var/crashkgdb /usr/obj/usr/src/sys/INTIME/kernel.debug vmcore.17
[GDB will not be able to debug user-mode threads: /usr/lib/libthread_db.so: 
Undefined symbol ps_pglobal_lookup]
GNU gdb 6.1.1 [FreeBSD]
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type show copying to see the conditions.
There is absolutely no warranty for GDB.  Type show warranty for details.
This GDB was configured as i386-marcel-freebsd.

Unread portion of the kernel message buffer:
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 5.4-STABLE #0: Thu Dec 22 10:41:32 CET 2005
[EMAIL PROTECTED]:/usr/obj/usr/src/sys/INTIME
ACPI APIC Table: INTEL  D845GBV 
Timecounter i8254 frequency 1193182 Hz quality 0
CPU: Intel(R) Pentium(R) 4 CPU 1.60GHz (1599.96-MHz 686-class CPU)
  Origin = GenuineIntel  Id = 0xf12  Stepping = 2
  
Features=0x3febfbffFPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CLFLUSH,DTS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM
real memory  = 1071906816 (1022 MB)
avail memory = 1042771968 (994 MB)
ioapic0: Changing APIC ID to 1
ioapic0 Version 2.0 irqs 0-23 on motherboard
netsmb_dev: loaded
npx0: math processor on motherboard
npx0: INT 16 interface
acpi0: INTEL D845GBV on motherboard
acpi0: Power Button (fixed)
Timecounter ACPI-fast frequency 3579545 Hz quality 1000
acpi_timer0: 24-bit timer at 3.579545MHz port 0x408-0x40b on acpi0
cpu0: ACPI CPU on acpi0
acpi_throttle0: ACPI CPU Throttling on cpu0
pcib0: ACPI Host-PCI bridge port 0xcf8-0xcff on acpi0
pci0: ACPI PCI bus on pcib0
agp0: Intel 82845G (845G GMCH) SVGA controller mem 
0xffa8-0xffaf,0xf000-0xf7ff irq 16 at device 2.0 on pci0
agp0: detected 892k stolen memory
agp0: aperture size is 128M
uhci0: Intel 82801DB (ICH4) USB controller USB-A port 0xe800-0xe81f irq 16 at 
device 29.0 on pci0
usb0: Intel 82801DB (ICH4) USB controller USB-A on uhci0
usb0: USB revision 1.0
uhub0: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
uhci1: Intel 82801DB (ICH4) USB controller USB-B port 0xe880-0xe89f irq 19 at 
device 29.1 on pci0
usb1: Intel 82801DB (ICH4) USB controller USB-B on uhci1
usb1: USB revision 1.0
uhub1: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub1: 2 ports with 2 removable, self powered
uhci2: Intel 82801DB (ICH4) USB controller USB-C port 0xec00-0xec1f irq 18 at 
device 29.2 on pci0
usb2: Intel 82801DB (ICH4) USB controller USB-C on uhci2
usb2: USB revision 1.0
uhub2: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub2: 2 ports with 2 removable, self powered
pci0: serial bus, USB at device 29.7 (no driver attached)
pcib1: ACPI PCI-PCI bridge at device 30.0 on pci0
pci1: ACPI PCI bus on pcib1
ahd0: Adaptec 39320 Ultra320 SCSI adapter port 0xde00-0xdeff,0xd000-0xd0ff 
mem 0xff8fc000-0xff8fdfff irq 22 at device 1.0 on pci1
aic7902: Ultra320 Wide Channel A, SCSI Id=15, PCI 33 or 66Mhz, 512 SCBs
ahd1: Adaptec 39320 Ultra320 SCSI adapter port 0xd400-0xd4ff,0xd800-0xd8ff 
mem 0xff8fe000-0xff8f irq 21 at device 1.1 on pci1
aic7902: Ultra320 Wide Channel B, SCSI Id=15, PCI 33 or 66Mhz, 512 SCBs
fxp0: Intel 82801DB (ICH4) Pro/100 VE Ethernet port 0xdc00-0xdc3f mem 
0xff8fb000-0xff8fbfff irq 20 at device 8.0 on pci1
miibus0: MII bus on fxp0
inphy0: i82562ET 10/100 media interface on miibus0
inphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
fxp0: Ethernet address: 00:03:47:ff:6e:9f
isab0: PCI-ISA bridge at device 31.0 on pci0
isa0: ISA bus on isab0
atapci0: Intel ICH4 UDMA100 controller port 
0xffa0-0xffaf,0x376,0x170-0x177,0x3f6,0x1f0-0x1f7 at device 31.1 on pci0
ata0: channel #0 on atapci0
ata1: channel #1 on atapci0
pci0: serial bus, SMBus at device 31.3 (no driver attached)
pci0: multimedia, audio at device 31.5 (no driver attached)
acpi_button0: Sleep Button on acpi0
fdc0: floppy drive controller port 0x3f7,0x3f4-0x3f5,0x3f2-0x3f3,0x3f0-0x3f1 
irq 6 drq 2 on acpi0
fd0: 1440-KB 3.5 drive on fdc0 drive 0
sio0: configured irq 4 not in bitmap of probed irqs 0
sio0: port may not be enabled
sio0: 16550A-compatible COM port port 0x3f8-0x3ff irq 4 flags 0x10 on acpi0
sio0: type 16550A
ppc0: Standard parallel printer port port 0x378-0x37f irq 7 on acpi0
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
atkbdc0: Keyboard 

gvinum: adding plex and subdisks to existing volume panic

2005-12-21 Thread Ludo Koren





Hi,

I'm using 5.4-STABLE. One of the mirrored disks died. I want to add
new disk, which has not the same size as the died one.

The output of the gvinum l is the following:
# gvinum l
4 drives:
D rd2   State: up   /dev/da2s1h   A: 0/1023 MB (0%)
D d2State: up   /dev/da2s1f   A: 0/15452 MB (0%)
D d3State: up   /dev/da3s1A: 0/70001 MB (0%)
D d4State: up   /dev/da1s1A: 0/70001 MB (0%)

2 volumes:
V root  State: up   Plexes:   1 Size:   1023 MB
V usr   State: up   Plexes:   2 Size: 83 GB

4 plexes:
P usr.p0  C State: down Subdisks: 1 Size: 68 GB
P usr.p1  C State: up   Subdisks: 2 Size: 83 GB
P root.p1 C State: up   Subdisks: 1 Size:   1023 MB
P root.p0 C State: down Subdisks: 0 Size:  0  B

6 subdisks:
S usr.p0.s0 State: down D: d1   Size: 15 GB
S usr.p1.s0 State: up   D: d2   Size: 15 GB
S root.p1.s0State: up   D: rd2  Size:   1023 MB
S root.p0.s0State: down D: rd1  Size:   1023 MB
S usr.p0.s1 State: up   D: d3   Size: 68 GB
S usr.p1.s1 State: up   D: d4   Size: 68 GB

and 

# camcontrol devlist -v
scbus0 on ahd0 bus 0:
SEAGATE ST373207LW 0004  at scbus0 target 3 lun 0 (pass0,da0)
IBM IC35L073UWDY10-0 S25Fat scbus0 target 9 lun 0 (pass1,da1)
HP C5683A C005   at scbus0 target 10 lun 0 (sa0,pass2)
 at scbus0 target -1 lun -1 ()
scbus1 on ahd1 bus 0:
IBM IC35L018UWD210-0 S5BSat scbus1 target 1 lun 0 (pass3,da2)
IBM IC35L073UWDY10-0 S23Cat scbus1 target 8 lun 0 (pass4,da3)
 at scbus1 target -1 lun -1 ()
scbus-1 on xpt0 bus 0:
 at scbus-1 target -1 lun -1 (xpt0)

I want to have the whole new disk a one vinum slice so the

# disklabel da0s1
# /dev/da0s1:
8 partitions:
#size   offsetfstype   [fsize bsize bps/cpg]
  a: 143363700  2814.2BSD0 0 0 
  c: 1433639970unused0 0 # raw part, don't 
edit
  h: 143363981   16 vinum

The old one was:

# disklabel da2s1
# /dev/da2s1:
8 partitions:
#size   offsetfstype   [fsize bsize bps/cpg]
  a:  2096855  2814.2BSD 2048 16384 0 
  b:  2097152  2097152  swap
  c: 358409520unused0 0 # raw part, don't edit
  f: 31646648  4194304 vinum
  h:  2097136   16 vinum 


When I try to do:
# gvinum create gvinum.conf

it ends up in immediate panic (page fault). The gvinum.conf file:

drive d1b device /dev/da0s1h
plex name usr.p2 org concat vol usr
plex name root.p2 org concat vol root
sd name root.p2.s0 drive d1b len 2096871s driveoffset 265s plex root.p2 
plexoffset 0s
sd name usr.p2.s0 drive d1b len 31646383s driveoffset 2097136s plex usr.p2 
plexoffset 0s

Am I doing something wrong? How can be added a new disk to existing
mirror in gvinum?

Any help appreciated, I cannot find useful hints.

Regards,

lk
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: gvinum: adding plex and subdisks to existing volume panic

2005-12-21 Thread Lukas Ertl

On Wed, 21 Dec 2005, Ludo Koren wrote:


When I try to do:
# gvinum create gvinum.conf

it ends up in immediate panic (page fault). The gvinum.conf file:


It would be easier to track down this problem if you could provide the 
place where the panic happens or even better a backtrace.


thanks,
le

--
Lukas Ertl http://homepage.univie.ac.at/l.ertl/
[EMAIL PROTECTED] http://people.freebsd.org/~le/
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: gvinum: adding plex and subdisks to existing volume panic

2005-12-21 Thread Ludo Koren
 Lukas Ertl == Lukas Ertl [EMAIL PROTECTED] writes:

Lukas Ertl On Wed, 21 Dec 2005, Ludo Koren wrote:
 When I try to do: # gvinum create gvinum.conf
 
 it ends up in immediate panic (page fault). The gvinum.conf
 file:

Lukas Ertl It would be easier to track down this problem if you
Lukas Ertl could provide the place where the panic happens or
Lukas Ertl even better a backtrace.

# kgdb /usr/obj/usr/src/sys/GENERIC/kernel vmcore.15 
[GDB will not be able to debug user-mode threads: /usr/lib/libthread_db.so: 
Undefined symbol ps_pglobal_lookup]
GNU gdb 6.1.1 [FreeBSD]
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type show copying to see the conditions.
There is absolutely no warranty for GDB.  Type show warranty for details.
This GDB was configured as i386-marcel-freebsd.
(no debugging symbols found)...Attempt to extract a component of a value that 
is not a structure pointer.
(kgdb) 
(kgdb) 
(kgdb) bt
#0  0xc0618252 in doadump ()
#1  0xc06187dc in boot ()
#2  0xc0618a70 in panic ()
#3  0xc07c82bc in trap_fatal ()
#4  0xc07c8023 in trap_pfault ()
#5  0xc07c7c65 in trap ()
#6  0xc07b7bba in calltrap ()
#7  0xc28d0018 in ?? ()
#8  0xc27b0010 in ?? ()
#9  0xc2760010 in ?? ()
#10 0xc2765800 in ?? ()
#11 0x in ?? ()
#12 0xe4db2848 in ?? ()
#13 0xe4db282c in ?? ()
#14 0xc26a8500 in ?? ()
#15 0x0001 in ?? ()
#16 0xc08e6ed0 in runq ()
#17 0x in ?? ()
#18 0x000c in ?? ()
#19 0x in ?? ()
#20 0xc09f38c5 in ?? ()
#21 0x0008 in ?? ()
#22 0x00010286 in ?? ()
#23 0xc26a8500 in ?? ()
#24 0xc261c280 in ?? ()
#25 0xe4db2ca0 in ?? ()
#26 0xc09eb422 in ?? ()
#27 0xc26a8500 in ?? ()
#28 0xc060eaa1 in free ()
Previous frame inner to this frame (corrupt stack?)
(kgdb) 
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: gvinum: adding plex and subdisks to existing volume panic

2005-12-21 Thread Lukas Ertl

On Wed, 21 Dec 2005, Ludo Koren wrote:


(kgdb) bt
#0  0xc0618252 in doadump ()
#1  0xc06187dc in boot ()
#2  0xc0618a70 in panic ()
#3  0xc07c82bc in trap_fatal ()
#4  0xc07c8023 in trap_pfault ()
#5  0xc07c7c65 in trap ()
#6  0xc07b7bba in calltrap ()
#7  0xc28d0018 in ?? ()
#8  0xc27b0010 in ?? ()


Unfortunately, that doesn't help me at all, since there's no debugging 
info.  Have a look at 
http://www.freebsd.org/doc/en_US.ISO8859-1/books/developers-handbook/kerneldebug-kld.html.


thanks,
le

--
Lukas Ertl http://homepage.univie.ac.at/l.ertl/
[EMAIL PROTECTED] http://people.freebsd.org/~le/
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to [EMAIL PROTECTED]