gvinum rename doesn't work on drive objects

David Adam zanchey at ucc.gu.uwa.edu.au
Wed Jul 9 15:21:28 UTC 2008


I have been struggling with gvinum over the last few days, and have 
recently hit an interesting problem: the 'rename' command in gvinum 
doesn't appear to work on drive objects in 7.0-RELEASE.

I initially created three drive objects to support my RAID-5 gvinum setup, 
named 'r0', 'r1' and 'r2'. Straightaway, I realised that this was not the 
naming scheme I had intended to use, but rather than deleting and 
recreating them, I tried renaming to 'rA', 'rB' and 'rC'. This appeared to 
complete successfully, I created the appropriate volume and plex, 
newfs(8)ed the filesystem, and mounted it as appropriate.

However, on rebooting the machine (some days later) I discovered that the 
rename operation did not persist across a reboot. Thus, I have three 
drives named 'r0', 'r1' and 'r2', and a RAID-5 plex that looks for drives 
to attach to subdisks named 'rA', 'rB' and 'rC'. It fails to load 
successfully, and I am left without a running volume... especially 
irritating as it contains my /usr filesystem.

No amount of booting to single user and issuing 'rename r0 rA', with or 
without 'saveconfig', results in a drive name change that persists across 
reboots.

I have tried deleting and recreating the drive objects with the correct 
names, but all that manages to do is panic the kernel on the create step, 
with the attached panic message. I realise this is an entirely separate 
question.

Any ideas? I have attached my dmesg, and I'm using 7.0-RELEASE-p2.

Thanks,

David Adam
zanchey at ucc.gu.uwa.edu.au
-------------- next part --------------
Fatal trap 12: page fault while in kernel mode
cpuid = 1; apic id = 00
fault virtual address    = 0x40
fault code = supervisor read, page not present
instruction pointer = 0x20:0xc55dabcb
stack pointer = 0x28:0xe56aa800
frame pointer = 0x28:0xe56aa81c
code segment = base 0x0 limit 0xfffff, 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
cpuid = 1
-------------- next part --------------
Copyright (c) 1992-2008 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 is a registered trademark of The FreeBSD Foundation.
FreeBSD 7.0-RELEASE #0: Sun Feb 24 19:59:52 UTC 2008
    root at logan.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC
Timecounter "i8254" frequency 1193182 Hz quality 0
CPU: Intel(R) Pentium(R) III CPU family      1133MHz (1130.45-MHz 686-class CPU)
  Origin = "GenuineIntel"  Id = 0x6b1  Stepping = 1
  Features=0x383fbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR,SSE>
real memory  = 2147221504 (2047 MB)
avail memory = 2091663360 (1994 MB)
ACPI APIC Table: <INTEL  SCB20   >
FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs
 cpu0 (BSP): APIC ID:  3
 cpu1 (AP): APIC ID:  0
MADT: Forcing active-low polarity and level trigger for SCI
ioapic0 <Version 1.1> irqs 0-15 on motherboard
ioapic1 <Version 1.1> irqs 16-31 on motherboard
lapic3: Forcing LINT1 to edge trigger
kbd1 at kbdmux0
ath_hal: 0.9.20.3 (AR5210, AR5211, AR5212, RF5111, RF5112, RF2413, RF5413)
hptrr: HPT RocketRAID controller driver v1.1 (Feb 24 2008 19:59:27)
acpi0: <INTEL SCB20> on motherboard
ACPI Warning (dswload-0794): Type override - [DEB_] had invalid type (Integer) for Scope operator, changed to (Scope) [20070320]
ACPI Warning (dswload-0794): Type override - [MLIB] had invalid type (Integer) for Scope operator, changed to (Scope) [20070320]
ACPI Warning (dswload-0794): Type override - [DATA] had invalid type (String) for Scope operator, changed to (Scope) [20070320]
ACPI Warning (dswload-0794): Type override - [SIO_] had invalid type (String) for Scope operator, changed to (Scope) [20070320]
ACPI Warning (dswload-0794): Type override - [SB__] had invalid type (String) for Scope operator, changed to (Scope) [20070320]
ACPI Warning (dswload-0794): Type override - [PM__] had invalid type (String) for Scope operator, changed to (Scope) [20070320]
ACPI Warning (dswload-0794): Type override - [ICNT] had invalid type (String) for Scope operator, changed to (Scope) [20070320]
ACPI Warning (dswload-0794): Type override - [ACPI] had invalid type (String) for Scope operator, changed to (Scope) [20070320]
ACPI Warning (dswload-0794): Type override - [LEDP] had invalid type (String) for Scope operator, changed to (Scope) [20070320]
ACPI Warning (dswload-0794): Type override - [WUES] had invalid type (String) for Scope operator, changed to (Scope) [20070320]
ACPI Warning (dswload-0794): Type override - [WUSE] had invalid type (String) for Scope operator, changed to (Scope) [20070320]
ACPI Warning (dswload-0794): Type override - [CSB5] had invalid type (String) for Scope operator, changed to (Scope) [20070320]
ACPI Warning (dswload-0794): Type override - [PM__] had invalid type (String) for Scope operator, changed to (Scope) [20070320]
ACPI Warning (dswload-0794): Type override - [BIOS] had invalid type (Integer) for Scope operator, changed to (Scope) [20070320]
ACPI Warning (dswload-0794): Type override - [CMOS] had invalid type (Integer) for Scope operator, changed to (Scope) [20070320]
acpi0: [ITHREAD]
ACPI Error (evxfevnt-0288): Could not enable GlobalLock event [20070320]
ACPI Warning (evxface-0235): Could not enable fixed event 1 [20070320]
ACPI Error (evmisc-0487): No response from Global Lock hardware, disabling lock [20070320]
acpi0: Power Button (fixed)
Timecounter "ACPI-safe" frequency 3579545 Hz quality 850
acpi_timer0: <32-bit timer at 3.579545MHz> port 0x508-0x50b on acpi0
cpu0: <ACPI CPU> on acpi0
cpu1: <ACPI CPU> on acpi0
pcib0: <ACPI Host-PCI bridge> port 0xcf8-0xcff on acpi0
pci0: <ACPI PCI bus> on pcib0
fxp0: <Intel 82550 Pro/100 Ethernet> port 0x1400-0x143f mem 0xfe7e0000-0xfe7e0fff,0xfe7a0000-0xfe7bffff irq 21 at device 3.0 on pci0
miibus0: <MII bus> on fxp0
inphy0: <i82555 10/100 media interface> PHY 1 on miibus0
inphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
fxp0: Ethernet address: 00:03:47:a5:8e:84
fxp0: [ITHREAD]
fxp1: <Intel 82550 Pro/100 Ethernet> port 0x1440-0x147f mem 0xfe780000-0xfe780fff,0xfe760000-0xfe77ffff irq 20 at device 4.0 on pci0
miibus1: <MII bus> on fxp1
inphy1: <i82555 10/100 media interface> PHY 1 on miibus1
inphy1:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
fxp1: Ethernet address: 00:03:47:a5:8e:86
fxp1: [ITHREAD]
vgapci0: <VGA-compatible display> port 0x1000-0x10ff mem 0xfd000000-0xfdffffff,0xfe7f0000-0xfe7f0fff irq 18 at device 12.0 on pci0
isab0: <PCI-ISA bridge> at device 15.0 on pci0
isa0: <ISA bus> on isab0
atapci0: <ServerWorks CSB5 UDMA100 controller> port 0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0x3a0-0x3af,0x410-0x413 at device 15.1 on pci0
ata0: <ATA channel 0> on atapci0
ata0: [ITHREAD]
ata1: <ATA channel 1> on atapci0
ata1: [ITHREAD]
ohci0: <OHCI (generic) USB controller> mem 0xfe740000-0xfe740fff irq 10 at device 15.2 on pci0
ohci0: [GIANT-LOCKED]
ohci0: [ITHREAD]
usb0: OHCI version 1.0, legacy support
usb0: SMM does not respond, resetting
usb0: <OHCI (generic) USB controller> on ohci0
usb0: USB revision 1.0
uhub0: <(0x1166) OHCI root hub, class 9/0, rev 1.00/1.00, addr 1> on usb0
uhub0: 4 ports with 4 removable, self powered
pcib1: <ACPI Host-PCI bridge> on acpi0
pci1: <ACPI PCI bus> on pcib1
ahc0: <Adaptec aic7899 Ultra160 SCSI adapter> port 0x2400-0x24ff mem 0xfebe0000-0xfebe0fff irq 27 at device 7.0 on pci1
ahc0: [ITHREAD]
aic7899: Ultra160 Wide Channel A, SCSI Id=7, 32/253 SCBs
ahc1: <Adaptec aic7899 Ultra160 SCSI adapter> port 0x2000-0x20ff mem 0xfebf0000-0xfebf0fff irq 26 at device 7.1 on pci1
ahc1: [ITHREAD]
aic7899: Ultra160 Wide Channel B, SCSI Id=7, 32/253 SCBs
pcib2: <ACPI Host-PCI bridge> on acpi0
pci2: <ACPI PCI bus> on pcib2
atkbdc0: <Keyboard controller (i8042)> port 0x60,0x64 irq 1 on acpi0
atkbd0: <AT Keyboard> irq 1 on atkbdc0
kbd0 at atkbd0
atkbd0: [GIANT-LOCKED]
atkbd0: [ITHREAD]
fdc0: <floppy drive controller (FDE)> port 0x3f2-0x3f3,0x3f4-0x3f5,0x3f7 irq 6 drq 2 on acpi0
fdc0: [FILTER]
fd0: <1440-KB 3.5" drive> on fdc0 drive 0
sio0: <16550A-compatible COM port> port 0x3f8-0x3ff irq 4 flags 0x10 on acpi0
sio0: type 16550A
sio0: [FILTER]
sio1: <16550A-compatible COM port> port 0x2f8-0x2ff irq 3 on acpi0
sio1: type 16550A
sio1: [FILTER]
pmtimer0 on isa0
orm0: <ISA Option ROMs> at iomem 0xc0000-0xc7fff,0xc8000-0xc97ff,0xc9800-0xcafff,0xcb000-0xd0fff pnpid ORM0000 on isa0
ppc0: parallel port not found.
sc0: <System console> at flags 0x100 on isa0
sc0: VGA <16 virtual consoles, flags=0x300>
vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0
Timecounters tick every 1.000 msec
hptrr: no controller detected.
Waiting 5 seconds for SCSI devices to settle
da0 at ahc1 bus 0 target 0 lun 0
da0: <SEAGATE ST336704LSUN36G 032C> Fixed Direct Access SCSI-3 device
da0: 160.000MB/s transfers (80.000MHz DT, offset 63, 16bit)
da0: Command Queueing Enabled
da0: 34732MB (71132959 512 byte sectors: 255H 63S/T 4427C)
da1 at ahc1 bus 0 target 1 lun 0
da1: <FUJITSU MAP3367N SUN36G 0401> Fixed Direct Access SCSI-4 device
da1: 160.000MB/s transfers (80.000MHz DT, offset 127, 16bit)
da1: Command Queueing Enabled
da1: 34732MB (71132959 512 byte sectors: 255H 63S/T 4427C)
da2 at ahc1 bus 0 target 2 lun 0
da2: <COMPAQ BF0368A4CA HPB5> Fixed Direct Access SCSI-3 device
da2: 160.000MB/s transfers (80.000MHz DT, offset 63, 16bit)
da2: Command Queueing Enabled
da2: 34732MB (71132000 512 byte sectors: 255H 63S/T 4427C)
ses0 at ahc1 bus 0 target 6 lun 0
ses0: <ESG-SHV SCA HSBP M18 0.06> Fixed Processor SCSI-2 device
ses0: 3.300MB/s transfers
ses0: SAF-TE Compliant Device
lapic0: Forcing LINT1 to edge trigger
SMP: AP CPU #1 Launched!
Trying to mount root from ufs:/dev/da0s1a
fxp0: command queue timeout


More information about the freebsd-questions mailing list