Ludo Koren
2005-Dec-21 08:21 UTC
gvinum: adding plex and subdisks to existing volume panic
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 d2 State: up /dev/da2s1f A: 0/15452 MB (0%) D d3 State: up /dev/da3s1 A: 0/70001 MB (0%) D d4 State: up /dev/da1s1 A: 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.s0 State: up D: rd2 Size: 1023 MB S root.p0.s0 State: 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 S25F> at 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 S5BS> at scbus1 target 1 lun 0 (pass3,da2) <IBM IC35L073UWDY10-0 S23C> at 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 offset fstype [fsize bsize bps/cpg] a: 143363700 281 4.2BSD 0 0 0 c: 143363997 0 unused 0 0 # "raw" part, don't edit h: 143363981 16 vinum The old one was: # disklabel da2s1 # /dev/da2s1: 8 partitions: # size offset fstype [fsize bsize bps/cpg] a: 2096855 281 4.2BSD 2048 16384 0 b: 2097152 2097152 swap c: 35840952 0 unused 0 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
Lukas Ertl
2005-Dec-21 08:51 UTC
gvinum: adding plex and subdisks to existing volume panic
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/ le@FreeBSD.org http://people.freebsd.org/~le/
Ludo Koren
2005-Dec-21 12:57 UTC
gvinum: adding plex and subdisks to existing volume panic
>>>>> "Lukas Ertl" == Lukas Ertl <le@freebsd.org> 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 0x00000000 in ?? () #12 0xe4db2848 in ?? () #13 0xe4db282c in ?? () #14 0xc26a8500 in ?? () #15 0x00000001 in ?? () #16 0xc08e6ed0 in runq () #17 0x00000000 in ?? () #18 0x0000000c in ?? () #19 0x00000000 in ?? () #20 0xc09f38c5 in ?? () #21 0x00000008 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)