Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 12 Aug 2004 09:32:23 -0700 (PDT)
From:      Michael Haro <mharo@FreeBSD.org>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   bin/70373: Sysinstall FDISK shows negative offset
Message-ID:  <200408121632.i7CGWNKE045654@burrito.bitsurf.net>
Resent-Message-ID: <200408121640.i7CGeSjM038943@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         70373
>Category:       bin
>Synopsis:       Sysinstall FDISK shows negative offset
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Aug 12 16:40:27 GMT 2004
>Closed-Date:
>Last-Modified:
>Originator:     Michael Haro
>Release:        FreeBSD 5.2.1-RELEASE-p4 i386
>Organization:
>Environment:


FreeBSD 5.2.1
3Ware 9500-12 Controller with 8 250GB drives in a hardware RAID-5 array.
I'm using the provided 3Ware driver from the 3Ware website.


# dmesg
Copyright (c) 1992-2004 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.2.1-RELEASE #0: Mon Feb 23 20:45:55 GMT 2004
    root@wv1u.btc.adaptec.com:/usr/obj/usr/src/sys/GENERIC
Preloaded elf kernel "/boot/kernel/kernel" at 0xc0ab7000.
Preloaded elf module "/boot/kernel/twa.ko" at 0xc0ab72bc.
Preloaded elf module "/boot/kernel/acpi.ko" at 0xc0ab7364.
Timecounter "i8254" frequency 1193182 Hz quality 0
CPU: Intel(R) Xeon(TM) CPU 2.80GHz (2790.72-MHz 686-class CPU)
  Origin = "GenuineIntel"  Id = 0xf25  Stepping = 5
  Features=0xbfebfbff<FPU,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,PBE>
  Hyperthreading: 2 logical CPUs
real memory  = 1073152000 (1023 MB)
avail memory = 1032978432 (985 MB)
ACPI APIC Table: <PTLTD          APIC  >
FreeBSD/SMP: Multiprocessor System Detected: 4 CPUs
 cpu0 (BSP): APIC ID:  0
 cpu1 (AP): APIC ID:  1
 cpu2 (AP): APIC ID:  6
 cpu3 (AP): APIC ID:  7
ioapic0 <Version 2.0> irqs 0-23 on motherboard
ioapic1 <Version 2.0> irqs 24-47 on motherboard
ioapic2 <Version 2.0> irqs 48-71 on motherboard
Pentium Pro MTRR support enabled
npx0: [FAST]
npx0: <math processor> on motherboard
npx0: INT 16 interface
acpi0: <PTLTD    RSDT  > on motherboard
pcibios: BIOS version 2.10
Using $PIR table, 21 entries at 0xc00fde70
acpi0: Power Button (fixed)
Timecounter "ACPI-fast" frequency 3579545 Hz quality 1000
acpi_timer0: <24-bit timer at 3.579545MHz> port 0x1008-0x100b on acpi0
acpi_cpu0: <CPU> on acpi0
acpi_cpu1: <CPU> on acpi0
acpi_cpu2: <CPU> on acpi0
acpi_cpu3: <CPU> on acpi0
acpi_cpu4: <CPU> on acpi0
device_probe_and_attach: acpi_cpu4 attach returned 6
acpi_cpu4: <CPU> on acpi0
device_probe_and_attach: acpi_cpu4 attach returned 6
acpi_cpu4: <CPU> on acpi0
device_probe_and_attach: acpi_cpu4 attach returned 6
acpi_cpu4: <CPU> on acpi0
device_probe_and_attach: acpi_cpu4 attach returned 6
pcib0: <ACPI Host-PCI bridge> port 0xcf8-0xcff on acpi0
pci0: <ACPI PCI bus> on pcib0
agp0: <Intel Generic host to PCI bridge> mem 0xf4000000-0xf7ffffff at device 0.0 on pci0
pci0: <unknown> at device 0.1 (no driver attached)
pcib1: <ACPI PCI-PCI bridge> mem 0xf8000000-0xfbffffff at device 1.0 on pci0
pci1: <ACPI PCI bus> on pcib1
pcib2: <ACPI PCI-PCI bridge> at device 2.0 on pci0
pcib2: could not get PCI interrupt routing table for \\_SB_.PCI0.HLB_ - AE_NOT_FOUND
pci2: <ACPI PCI bus> on pcib2
pci2: <base peripheral, interrupt controller> at device 28.0 (no driver attached)
pcib3: <ACPI PCI-PCI bridge> at device 29.0 on pci2
pci3: <ACPI PCI bus> on pcib3
3ware device driver for 9000 series storage controllers, version: 2.50.01.003
twa0: <3ware 9000 series Storage Controller> port 0x7000-0x70ff mem 0xfc000000-0xfc7fffff,0xf0200000-0xf02000ff irq 24 at device 1.0 on pci3
twa0: 12 ports, Firmware FE9X 2.02.00.012, BIOS BE9X 2.02.01.037
pci2: <base peripheral, interrupt controller> at device 30.0 (no driver attached)
pcib4: <ACPI PCI-PCI bridge> at device 31.0 on pci2
pci4: <ACPI PCI bus> on pcib4
em0: <Intel(R) PRO/1000 Network Connection, Version - 1.7.19> port 0x8000-0x803f mem 0xf0300000-0xf031ffff irq 52 at device 2.0 on pci4
em0:  Speed:N/A  Duplex:N/A
pci0: <unknown> at device 2.1 (no driver attached)
uhci0: <Intel 82801DB (ICH4) USB controller USB-A> port 0x6800-0x681f 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 0x6820-0x683f 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 0x6840-0x685f 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
pcib5: <ACPI PCI-PCI bridge> at device 30.0 on pci0
pci5: <ACPI PCI bus> on pcib5
pci5: <display, VGA> at device 2.0 (no driver attached)
fxp0: <Intel 82550 Pro/100 Ethernet> port 0x9400-0x943f mem 0xf0420000-0xf043ffff,0xf0401000-0xf0401fff irq 18 at device 3.0 on pci5
fxp0: Ethernet address 00:04:23:88:c2:33
miibus0: <MII bus> on fxp0
inphy0: <i82555 10/100 media interface> on miibus0
inphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
isab0: <PCI-ISA bridge> at device 31.0 on pci0
isa0: <ISA bus> on isab0
atapci0: <Intel ICH4 UDMA100 controller> port 0x6860-0x686f,0-0x3,0-0x7,0-0x3,0-0x7 at device 31.1 on pci0
ata0: at 0x1f0 irq 14 on atapci0
ata0: [MPSAFE]
ata1: at 0x170 irq 15 on atapci0
ata1: [MPSAFE]
pci0: <serial bus, SMBus> at device 31.3 (no driver attached)
acpi_button0: <Power Button> on acpi0
atkbdc0: <Keyboard controller (i8042)> port 0x64,0x60 irq 1 on acpi0
atkbd0: <AT Keyboard> flags 0x1 irq 1 on atkbdc0
kbd0 at atkbd0
psm0: <PS/2 Mouse> irq 12 on atkbdc0
psm0: model IntelliMouse Explorer, device ID 4
fdc0: cmd 3 failed at out byte 1 of 3
sio0 port 0x3f8-0x3ff irq 4 on acpi0
sio0: type 16550A
sio1 port 0x2f8-0x2ff irq 3 on acpi0
sio1: type 16550A
ppc0 port 0x778-0x77b,0x378-0x37f irq 7 drq 3 on acpi0
ppc0: SMC-like chipset (ECP/EPP/PS2/NIBBLE) in COMPATIBLE mode
ppc0: FIFO with 16/16/9 bytes threshold
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
acpi_cpu4: <CPU> on acpi0
device_probe_and_attach: acpi_cpu4 attach returned 6
acpi_cpu4: <CPU> on acpi0
device_probe_and_attach: acpi_cpu4 attach returned 6
acpi_cpu4: <CPU> on acpi0
device_probe_and_attach: acpi_cpu4 attach returned 6
acpi_cpu4: <CPU> on acpi0
device_probe_and_attach: acpi_cpu4 attach returned 6
fdc0: cmd 3 failed at out byte 1 of 3
orm0: <Option ROMs> at iomem 0xe2000-0xe27ff,0xc8000-0xc97ff,0xc0000-0xc7fff on isa0
pmtimer0 on isa0
fdc0: <Enhanced floppy controller (i82077, NE72065 or clone)> at port 0x3f7,0x3f0-0x3f5 irq 6 drq 2 on isa0
fdc0: FIFO enabled, 8 bytes threshold
fd0: <1440-KB 3.5" drive> on fdc0 drive 0
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 10.000 msec
acd0: DVDROM <HL-DT-STDVD-ROM GDR8082N> at ata1-master PIO4
GEOM: create disk da0 dp=0xc69cd450
da0 at twa0 bus 0 target 0 lun 0
da0: <3ware Logical Disk 00 1.00> Fixed Direct Access SCSI-0 device
da0: 100.000MB/s transfers
da0: 1907264MB (3906076672 512 byte sectors: 255H 63S/T 243142C)
SMP: AP CPU #3 Launched!
SMP: AP CPU #1 Launched!
SMP: AP CPU #2 Launched!
Mounting root from ufs:/dev/da0s1a
em0: Link is up 100 Mbps Full Duplex


>Description:

When I choose A, for 'Use Entire Disk' the FDISK Partition Editor shows
the following:

Disk name:      da0                                    FDISK Partition Editor
DISK Geometry:  243142 cyls/255 heads/63 sectors = 3906076230 sectors (1907263MB)
Offset       Size(ST)        End     Name  PType       Desc  Subtype    Flags

         0         63         62        -     12     unused        0
        63 3906076167 3906076229    da0s1      8    freebsd      165
-388891066        442 3906076671        -     12     unused        0

I assume the offset shouldn't be a negative number.
The only way I was able to write a partition on the array was to choose a
smaller partition size.

Here is what I'm currently using:

Offset       Size(ST)        End     Name  PType       Desc  Subtype    Flags

         0         63         62        -     12     unused        0
        63 2147472747 2147472809    da0s1      8    freebsd      165
2147472810 1758603862 3906076671        -     12     unused        0

The size specified above was a random number to test if I could partition the
system at all.  This doesn't seem like the correct solution and I can't seem 
to allocate the rest of the space without getting the negative offset again.

>How-To-Repeat:

type sysinstall and go to the partition editor

>Fix:

Not sure, but willing to test patches.
>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200408121632.i7CGWNKE045654>