NetBSD Problem Report #48697
From www@NetBSD.org Wed Apr 2 14:48:31 2014
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [149.20.53.66])
(using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits))
(Client CN "mail.netbsd.org", Issuer "Postmaster NetBSD.org" (verified OK))
by mollari.NetBSD.org (Postfix) with ESMTPS id 39B9DA5806
for <gnats-bugs@gnats.NetBSD.org>; Wed, 2 Apr 2014 14:48:31 +0000 (UTC)
Message-Id: <20140402144828.9F0BCA580F@mollari.NetBSD.org>
Date: Wed, 2 Apr 2014 14:48:28 +0000 (UTC)
From: nullnilaki@gmail.com
Reply-To: nullnilaki@gmail.com
To: gnats-bugs@NetBSD.org
Subject: Sysinst compute illegal disk geometry and newfs is bound to fail.
X-Send-Pr-Version: www-1.0
>Number: 48697
>Category: port-alpha
>Synopsis: Sysinst compute illegal disk geometry and newfs is bound to fail.
>Confidential: no
>Severity: critical
>Priority: high
>Responsible: tsutsui
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Wed Apr 02 14:50:00 +0000 2014
>Closed-Date: Mon Oct 13 21:56:20 +0000 2014
>Last-Modified: Mon Oct 13 21:56:20 +0000 2014
>Originator: nullnilaki
>Release: NetBSD/alpha 6.99.38
>Organization:
Japan
>Environment:
NetBSD/alpha 6.99.38
>Description:
I have Tru64 UNIX installed HDD.
After that, I went to install NetBSD/alpha.
Sysinst compute illegal disk geometry and newfs is bound to fail.
--------------------------------------------------
*** keyboard not plugged in...
starting console on CPU 0
initialized idle PCB
initializing semaphores
initializing heap
initial heap 240c0
memory low limit = 1c6000 heap = 240c0, 17fc0
initializing driver structures
initializing idle process PID
initializing file system
initializing timer data structures
lowering IPL
CPU 0 speed is 1000 MHz
create dead_eater
create poll
create timer
create powerup
access NVRAM
512 MB of System Memory
Testing Memory
...
probe I/O subsystem
starting drivers
entering idle loop
initializing GCT/FRU at 1ee000
Initializing pkc ewa dqa dqb eia eib pka pkb
Memory Testing and Configuration Status
Array Size Base Address Intlv Mode
--------- ---------- ---------------- ----------
0 512Mb 0000000000000000 1-Way
512 MB of System Memory
Testing the System
Testing the Disks (read only)
Testing the Network
AlphaStation DS15 Console V7.2-2, built on Jun 9 2006 at 15:45:46
>>>boot dqa0
(boot dqa0.0.0.13.0 -flags A)
block 0 of dqa0.0.0.13.0 is a valid boot block
reading 13 blocks from dqa0.0.0.13.0
bootstrap code read in
base = 2be000, image_start = 0, image_bytes = 1a00(6656)
initializing HWRPB at 2000
initializing page table at 1fff0000
initializing machine state
setting affinity to the primary CPU
jumping to bootstrap code
NetBSD/alpha 6.99.38 ISO 9660 Primary Bootstrap
Jumping to entry point...
NetBSD/alpha 6.99.38 Secondary Bootstrap, Revision 1.13 (Sat Mar 29 04:53:20 UTC 2014)
VMS PAL rev: 0x1000700010162
OSF PAL rev: 0x100070002015c
Switch to OSF PAL code succeeded.
Boot flags: A
10623872+205920=0xa54628
Entering netbsd at 0xfffffc0000431220...
Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014
The NetBSD Foundation, Inc. All rights reserved.
Copyright (c) 1982, 1986, 1989, 1991, 1993
The Regents of the University of California. All rights reserved.
NetBSD 6.99.38 (INSTALL) #0: Sat Mar 29 05:13:07 UTC 2014
naruaki@:/usr/obj.alpha/sys/arch/alpha/compile/INSTALL
AlphaStation DS15, 1000MHz, s/n AY42501857
8192 byte page size, 1 processor.
total memory = 512 MB
(2880 KB reserved for PROM, 509 MB used by NetBSD)
avail memory = 491 MB
mainbus0 (root)
cpu0 at mainbus0: ID 0 (primary), 21264C-6
cpu0: Architecture extensions: 0x1307<PAT,MVI,CIX,FIX,BWX>
tsc0 at mainbus0: 21274 Core Logic Chipset, Cchip rev 0
tsc0: 2 Dchips, 1 memory bus of 16 bytes
tsc0: arrays present: 512MB, 0MB, 0MB, 0MB, Dchip 0 rev 1
tsp0 at tsc0
pci0 at tsp0 bus 0
sio0 at pci0 dev 7 function 0: vendor 0x10b9 product 0x1533 (rev. 0xc3)
ahc0 at pci0 dev 8 function 0: Adaptec aic7899 Ultra160 SCSI adapter
ahc0: interrupting at dec 6600 irq 13
ahc0: aic7899: Ultra160 Wide Channel A, SCSI Id=7, 32/253 SCBs
scsibus0 at ahc0: 16 targets, 8 luns per target
ahc1 at pci0 dev 8 function 1: Adaptec aic7899 Ultra160 SCSI adapter
ahc1: interrupting at dec 6600 irq 12
ahc1: aic7899: Ultra160 Wide Channel B, SCSI Id=7, 32/253 SCBs
scsibus1 at ahc1: 16 targets, 8 luns per target
fxp0 at pci0 dev 9 function 0: Intel i82559ER Ethernet (rev. 0x09)
fxp0: interrupting at dec 6600 irq 28
fxp0: Ethernet address 00:0f:20:2b:e1:24
inphy0 at fxp0 phy 1: i82555 10/100 media interface, rev. 4
inphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
fxp1 at pci0 dev 10 function 0: Intel i82559ER Ethernet (rev. 0x09)
fxp1: interrupting at dec 6600 irq 4
fxp1: Ethernet address 00:0f:20:2b:e1:23
inphy1 at fxp1 phy 1: i82555 10/100 media interface, rev. 4
inphy1: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
aceride0 at pci0 dev 13 function 0: Acer Labs M5229 UDMA IDE Controller (rev. 0xc1)
aceride0: primary channel interrupting at isa irq 14
atabus0 at aceride0 channel 0
aceride0: secondary channel interrupting at isa irq 15
atabus1 at aceride0 channel 1
isa0 at sio0
com0 at isa0 port 0x3f8-0x3ff irq 4: ns16550a, working fifo
com0: console
com1 at isa0 port 0x2f8-0x2ff irq 3: ns16550a, working fifo
pckbc0 at isa0 port 0x60-0x64
fdc0 at isa0 port 0x3f0-0x3f7 irq 6 drq 2
mcclock0 at isa0 port 0x70-0x71: mc146818 compatible time-of-day clock
tsp1 at tsc0
pci1 at tsp1 bus 0
vga0 at pci1 dev 7 function 0: vendor 0x1002 product 0x5157 (rev. 0x00)
wsdisplay0 at vga0 (kbdmux ignored)
drm at vga0 not configured
siop0 at pci1 dev 8 function 0: Symbios Logic 53c895 (ultra2-wide scsi)
siop0: using on-board RAM
siop0: interrupting at dec 6600 irq 36
scsibus2 at siop0: 16 targets, 8 luns per target
tlp0 at pci1 dev 9 function 0: DECchip 21140A Ethernet, pass 2.0
tlp0: interrupting at dec 6600 irq 24
tlp0: DEC DE500-AA, Ethernet address 00:00:f8:03:dd:a1
nsphy0 at tlp0 phy 5: DP83840 10/100 media interface, rev. 0
nsphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
vendor 0x1274 product 0x1371 (audio multimedia, revision 0x09) at pci1 dev 10 function 0 not configured
tsciic at tsc0
not configured
scsibus0: waiting 2 seconds for devices to settle...
scsibus1: waiting 2 seconds for devices to settle...
scsibus2: waiting 2 seconds for devices to settle...
atapibus0 at atabus0: 2 targets
cd0 at atapibus0 drive 0: <HL-DT-ST RW/DVD GCC-4480B, , 2.06> cdrom removable
sd0 at scsibus0 target 1 lun 0: <FUJITSU, MAU3073NC, 2904> disk fixed
sd0: 69809 MB, 49158 cyl, 4 head, 727 sec, 512 bytes/sect x 142969680 sectors
sd0: sync (12.50ns offset 127), 16-bit (160.000MB/s) transfers, tagged queueing
WARNING: can't figure what device matches "IDE 0 13 0 0 0 0 0"
root on md0a dumps on md0b
root file system type: ffs
Terminal type? [vt100]
erase ^?, werase ^W, kill ^U, intr ^C
NetBSD/alpha 6.99.38
This menu-driven tool is designed to help you install NetBSD to a hard disk,
or upgrade an existing NetBSD system, with a minimum of work.
In the following menus type the reference letter (a, b, c, ...) to select an
item, or type CTRL+N/CTRL+P to select the next/previous item.
The arrow keys and Page-up/Page-down may also work.
Activate the current selection from the menu by typing the enter key.
lqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqk
x>a: Installation messages in English x
x b: Messages d'installation en fran軋is x
x c: Installation auf Deutsch x
x d: Komunikaty instalacyjne w jezyku polskim x
x e: Mensajes de instalacion en castellano x
mqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqj
I found only one disk, sd0 (68G, FUJITSU MAU3073NC).
Therefore I assume you want to install NetBSD on it.
lqqqqqqqqqqqqqqqqqqqqqqqk
x>Hit enter to continue x
mqqqqqqqqqqqqqqqqqqqqqqqj
NetBSD uses a BSD disklabel to carve up the NetBSD portion of the disk into
multiple BSD partitions. You must now set up your BSD disklabel.
You can use a simple editor to set the sizes of the NetBSD partitions, or
keep the existing partition sizes and contents.
You will then be given the opportunity to change any of the disklabel fields.
The NetBSD part of your disk is 82858 Megabytes. A full installation
requires at least 384 Megabytes without X and at least 434 Megabytes if the X
sets are included.
lqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqk
x Choose your installation x
x x
x>a: Set sizes of NetBSD partitions x
x b: Use existing partition sizes x
mqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqj
You can now change the sizes for the system partitions. The default is to
allocate all the space to the root file system, however you may wish to have
separate /usr (additional system files), /var (log files etc) or /home
(users' home directories).
Free space will be added to the partition marked with a '+'.
MB Cylinders Sectors Filesystem
> 82858 49158 169693416 /
0 0 0 swap
0 0 0 /tmp (mfs)
0 0 0 /usr
0 0 0 /var
0 0 0 /home
Add a user defined partition
Change input units (sectors/cylinders/MB)
Accept partition sizes. Free space 0 MB, 6 free partitions.
We now have your BSD-disklabel partitions as:
This is your last chance to change them.
Start MB End MB Size MB FS type Newfs Mount Mount point
a: 0 82857 82858 FFSv1 Yes Yes /
b: 0 0 0 unused
c: 0 82857 82858 Whole disk
d: 0 0 0 unused
e: Show all unused partitions
f: Change input units (sectors/cylinders/MB)
>x: Partition sizes ok
We now have your BSD-disklabel partitions as:
This is your last chance to change them.
Start sec End sec Size sec FS type Newfs Mount Mount point
a: 0 169693415 169693416 FFSv1 Yes Yes /
b: 0 0 0 unused
c: 0 169693415 169693416 Whole disk
d: 0 0 0 unused
e: Show all unused partitions
f: Change input units (sectors/cylinders/MB)
>x: Partition sizes ok
Status: Command failed
Command: /sbin/newfs -V2 -O 1 -b 16384 -f 2048 /dev/rsd0a
Hit enter to continue
--------------------------------------------------------------------------------
/dev/rsd0a: 82858.1MB (169693416 sectors) block size 16384, fragment size 2048
using 450 cylinder groups of 184.14MB, 11785 blks, 23296 inodes.
sd0(ahc0:0:1:0): illegal request, data = 00 00 00 00 21 00 00 00 00 00 01 2a 00
wtfs: write error for sector 169693415: Invalid argument
--------------------------------------------------
This HDD specification is:
sd0 at scsibus0 target 1 lun 0: <FUJITSU, MAU3073NC, 2904> disk fixed
sd0: 69809 MB, 49158 cyl, 4 head, 727 sec, 512 bytes/sect x 142969680 sectors
sd0: sync (12.50ns offset 127), 16-bit (160.000MB/s) transfers, tagged queueing
But Sysinst prints follow message.
The NetBSD part of your disk is 82858 Megabytes. A full installation
requires at least 384 Megabytes without X and at least 434 Megabytes if the X
sets are included.
MB Cylinders Sectors Filesystem
> 82858 49158 169693416 /
I guess this problem caused by Tru64 UNIX's disklabel is the same format as BSD disklabel.
(If you have a Tru64 UNIX license, please check /usr/sys/include/sys/disklabel.h)
This is Tru64 UNIX's disklabel
--------------------------------------------------
# disklabel dsk0
# /dev/rdisk/dsk0c:
type: SCSI
disk: MAU3073NC
label:
flags: dynamic_geometry
bytes/sector: 512
sectors/track: 863
tracks/cylinder: 4
sectors/cylinder: 3452
cylinders: 49158
sectors/unit: 142969680
rpm: 15000
interleave: 1
trackskew: 216
cylinderskew: 111
headswitch: 0 # milliseconds
track-to-track seek: 0 # milliseconds
drivedata: 0
8 partitions:
# size offset fstype fsize bsize cpg # ~Cyl values
a: 786432 0 AdvFS # 0 - 227*
b: 786432 786432 LSMnoprv # 227*- 455*
c: 142969680 0 unused 0 0 # 0 - 41416*
d: 4096 1572864 LSMsimp # 455*- 456*
e: 70696360 1576960 unused 0 0 # 456*- 20936*
f: 70696360 72273320 unused 0 0 # 20936*- 41416*
g: 4300800 1576960 LSMnoprv # 456*- 1702*
h: 137091920 5877760 unused 0 0 # 1702*- 41416*
--------------------------------------------------
Sysinst compute MD disk geometry in md_get_info function.
(src/distrib/utils/sysinst/arch/alpha/md.c)
http://nxr.netbsd.org/source/xref/src/distrib/utils/sysinst/arch/alpha/md.c#64
If Tru64 UNIX's disklabel is stored, internal processing is:
dlcyl = disklabel.d_ncylinders;
-> 49158 ("cylinders")
dlhead = disklabel.d_ntracks;
-> 4 ("tracks/cylinder")
dlsec = disklabel.d_nsectors;
-> 863 ("sectors/track")
sectorsize = disklabel.d_secsize;
-> 512 ("bytes/sector")
dlcylsize = disklabel.d_secpercyl;
-> 3452 ("sectors/cylinder")
/*
* Compute whole disk size. Take max of (dlcyl*dlhead*dlsec)
* and secperunit, just in case the disk is already labelled.
* (If our new label's RAW_PART size ends up smaller than the
* in-core RAW_PART size value, updating the label will fail.)
*/
dlsize = dlcyl*dlhead*dlsec;
-> 169693416
if (disklabel.d_secperunit > dlsize)
-> 142969680 ("sectors/unit") > 169693416
dlsize = disklabel.d_secperunit;
-> false
and Sysinst prints:
MB Cylinders Sectors Filesystem
> 82858 49158 169693416 /
This is Tru64 UNIX's disklabel dump.
--------------------------------------------------
# hexdump -C Tru64.dump | more
00000000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
*
00000040 57 45 56 82 04 00 00 00 4d 41 55 33 30 37 33 4e |WEV.....MAU3073N|
00000050 43 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |C...............|
00000060 00 00 00 00 00 00 00 00 00 02 00 00 5f 03 00 00 |............_...|
00000070 04 00 00 00 06 c0 00 00 7c 0d 00 00 50 8b 85 08 |........|...P...|
00000080 00 00 00 00 00 00 00 00 98 3a 01 00 d8 00 6f 00 |.........:....o.|
00000090 00 00 00 00 00 00 00 00 20 00 00 00 00 00 00 00 |........ .......|
--------------------------------------------------
This is NetBSD's disklabel dump.(same HDD and correct value is stored)
--------------------------------------------------
# hexdump -C NetBSD.dump | more
00000000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
*
00000040 57 45 56 82 00 00 00 00 4d 41 55 33 30 37 33 4e |WEV.....MAU3073N|
00000050 43 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |C...............|
00000060 00 00 00 00 00 00 00 00 00 02 00 00 d7 02 00 00 |................|
00000070 04 00 00 00 06 c0 00 00 5c 0b 00 00 50 8b 85 08 |........\...P...|
00000080 00 00 00 00 00 00 00 00 10 0e 01 00 00 00 00 00 |................|
00000090 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
--------------------------------------------------
Tru64 UNIX's sectors/track: 863 value is:
863 = 0x35F is stored line 60.(5f 03)
and
Tru64 UNIX's sectors/cylinder: 3452 value is:
3452 = 0xD7C is stored line 70.(7c 0d)
NetBSD's sectors/track: 727 value is:
727 = 0x2D7 is stored line 60 and same offset as Tru64 UNIX.(d7 02)
and
NetBSD's sectors/cylinder: 2908 value is:
2908 = 0xB5C is stored line 70 and same offset as Tru64 UNIX.(5c 0b)
Other Entry("sectors/unit","tracks/cylinder","tracks/cylinder") the same.
It is a curious thing, this problem is not occurring my other size HDD.
This HDD specification is:
sd0 at scsibus0 target 0 lun 0: <COMPAQ, BD03688272, HPB4> disk fixed
sd0: 34732 MB, 43962 cyl, 2 head, 809 sec, 512 bytes/sect x 71132000 sectors
sd0: sync (12.50ns offset 63), 16-bit (160.000MB/s) transfers, tagged queueing
This is Tru64 UNIX's disklabel
--------------------------------------------------
# disklabel dsk0
# /dev/rdisk/dsk0c:
type: SCSI
disk: BD03688272
label:
flags: dynamic_geometry
bytes/sector: 512
sectors/track: 809
tracks/cylinder: 2
sectors/cylinder: 1618
cylinders: 43962
sectors/unit: 71132000
rpm: 10033
interleave: 1
trackskew: 372
cylinderskew: 120
headswitch: 0 # milliseconds
track-to-track seek: 0 # milliseconds
drivedata: 0
8 partitions:
# size offset fstype fsize bsize cpg # ~Cyl values
a: 786432 0 AdvFS # 0 - 486*
b: 786432 786432 LSMnoprv # 486*- 972*
c: 71132000 0 unused 0 0 # 0 - 43962*
d: 4096 1572864 LSMsimp # 972*- 974*
e: 34777520 1576960 unused 0 0 # 974*- 22468*
f: 34777520 36354480 unused 0 0 # 22468*- 43962*
g: 4300800 1576960 LSMnoprv # 974*- 3632*
h: 65254240 5877760 unused 0 0 # 3632*- 43962*
--------------------------------------------------
>How-To-Repeat:
>Fix:
--------------------------------------------------
diff -Narbu src.orig/distrib/utils/sysinst/arch/alpha/md.c src/distrib/utils/sysinst/arch/alpha/md.c
--- src.orig/distrib/utils/sysinst/arch/alpha/md.c 2014-03-29 08:10:33.000000000 +0000
+++ src/distrib/utils/sysinst/arch/alpha/md.c 2014-03-31 16:45:50.000000000 +0000
@@ -85,19 +85,19 @@
dlcyl = disklabel.d_ncylinders;
dlhead = disklabel.d_ntracks;
- dlsec = disklabel.d_nsectors;
sectorsize = disklabel.d_secsize;
- dlcylsize = disklabel.d_secpercyl;
+ dlsize = disklabel.d_secperunit;
/*
- * Compute whole disk size. Take max of (dlcyl*dlhead*dlsec)
- * and secperunit, just in case the disk is already labelled.
- * (If our new label's RAW_PART size ends up smaller than the
- * in-core RAW_PART size value, updating the label will fail.)
+ * Tru64 UNIX's disklabel is the same format as BSD disklabel,
+ * and we can not tell these disklabel apart.
+ * However, awful "d_nsectors" size value and awful "d_secpercyl" size value is stored.
+ * If possible, execute "disklabel dsk0" on Tru64 UNIX,
+ * and please check "sectors/track" value and "sectors/cylinder" value.
*/
- dlsize = dlcyl*dlhead*dlsec;
- if (disklabel.d_secperunit > dlsize)
- dlsize = disklabel.d_secperunit;
+
+ dlsec = disklabel.d_nsectors = dlsize / (dlhead * dlcyl);
+ dlcylsize = disklabel.d_secpercyl = dlsec * dlhead;
return 1;
}
--------------------------------------------------
There are many kinds of storage devices around the world.(SCSI,IDE,SSD,etc...)
What is the best way to fix this problem?
--
That's very nice of you!
nullnilaki@gmail.com
>Release-Note:
>Audit-Trail:
From: Martin Husemann <martin@duskware.de>
To: gnats-bugs@NetBSD.org
Cc:
Subject: Re: port-alpha/48697: Sysinst compute illegal disk geometry and newfs is bound to fail.
Date: Wed, 2 Apr 2014 17:04:36 +0200
On Wed, Apr 02, 2014 at 02:50:00PM +0000, nullnilaki@gmail.com wrote:
> I have Tru64 UNIX installed HDD.
> After that, I went to install NetBSD/alpha.
> Sysinst compute illegal disk geometry and newfs is bound to fail.
Can you please boot into sysinst, then use the Utilities menu to start
a shell and show us the output of
disklabel sd0
?
I suppose the Tru64 installation left something on the disk that we
misinterpret - and sysinst needs to validate and clean that.
If you want a quick workaround: after copying the disklabel output for this
ticket, do something like this to clear the start of your hard disk:
dd if=/dev/zero of=/dev/rsd0c count=200
and reboot. I guess sysinst will work then (but this may fail due to label
sector write protection).
Thanks,
Martin
From: "Naruaki.Etomi" <nullnilaki@gmail.com>
To: gnats-bugs@netbsd.org
Cc: port-alpha-maintainer@netbsd.org, martin@duskware.de
Subject: Re: port-alpha/48697: Sysinst compute illegal disk geometry and newfs
is bound to fail.
Date: Thu, 3 Apr 2014 03:02:31 +0900
Dear Martin,
> Can you please boot into sysinst, then use the Utilities menu to start
> a shell and show us the output of
>
> disklabel sd0
>
> ?
---------------------------------------------------------
CPU 0 booting
resetting all I/O buses
(boot dka100.1.0.8.0 -flags A)
block 0 of dka100.1.0.8.0 is a valid boot block
reading 19 blocks from dka100.1.0.8.0
bootstrap code read in
base = 2be000, image_start = 0, image_bytes = 2600(9728)
initializing HWRPB at 2000
initializing page table at 1fff0000
initializing machine state
setting affinity to the primary CPU
jumping to bootstrap code
UNIX boot - Tuesday December 05, 2006
Loading vmunix ...
Loading at 0xffffffff00000000
Sizes:
text = 7327808
data = 1372272
bss = 1895904
Starting at 0xffffffff00012ef0
Loading vmunix symbol table ... [1790888 bytes]
Alpha boot: available memory from 0x1e1e000 to 0x1ffee000
HP Tru64 UNIX V5.1B (Rev. 2650); Wed Apr 2 02:13:52 JST 2014
physical memory = 512.00 megabytes.
available memory = 481.81 megabytes.
using 1904 buffers containing 14.87 megabytes of memory
Firmware revision: 7.2-2
PALcode: UNIX version 1.92-7
AlphaStation DS15
pci0 (primary bus:0) at nexus
isa0 at pci0
gpc0 at isa0
gpc1 not probed
Baud 0 is unsupported; setting console port to 9600 baud
ace0 at isa0
ace1 at isa0
lp0 at isa0
fdi0 at isa0
aha_chim0 at pci0 slot 8
Adaptec AIC-7899 Adapter: H/W Rev 1, Driver Rev 2.284 CHIM V364A9
scsi0 at aha_chim0 slot 0 rad 0
aha_chim2 at pci0 slot 108
Adaptec AIC-7899 Adapter: H/W Rev 1, Driver Rev 2.284 CHIM V364A9
scsi1 at aha_chim2 slot 0 rad 0
ee0 at pci0 slot 9
ee0: COMPAQ Intel 82559ER (10/100 Mbps) Ethernet Interface
ee0: Driver Rev = V1.0.28, Chip Rev = 9, hardware address: 00-0F-20-2B-E1-24
ee1 at pci0 slot 10
ee1: COMPAQ Intel 82559ER (10/100 Mbps) Ethernet Interface
ee1: Driver Rev = V1.0.28, Chip Rev = 9, hardware address: 00-0F-20-2B-E1-23
ata0 at pci0 slot 13
ata0: ACER M1543C
scsi2 at ata0 slot 0 rad 0
scsi3 at ata0 slot 1 rad 0
PCI device at bus 2, slot 10, function 0 could not be configured:
Vendor ID 0x1274, Device ID 0x1371, Base class 0x4, Sub class 0x1
Sub-VID 0x1274 Sub-DID 0x1371
has no matching entry in the PCI option table
pci2 (primary bus:2) at nexus
radeon0 at pci2 slot 7
itpsa0 at pci2 slot 8
IntraServer ROM Version V2.0 (c)1998
scsi4 at itpsa0 slot 0 rad 0
tu0: DECchip 21140: Revision: 2.0
tu0: auto negotiation capable device
tu0 at pci2 slot 9
tu0: DEC TULIP (10/100) Ethernet Interface, hardware address: 00-00-F8-03-DD-A1
tu0: auto negotiation off: selecting 10BaseT (UTP) port: half duplex
Created FRU table binary error log packet
kernel console: ace0
dli: configured
NetRAIN configured.
Random number generator configured.
ATM Subsystem configured with 1 restart threads
ATMUNI: configured
ATMSIG: 3.x (module=uni3x) configured
ILMI: 3.x (module=ilmi) configured
ATM IP: configured
ATM LANE: configured.
ATM IFMP: configured
dsfmgr: NOTE: updating kernel basenames for system at /
scp kevm tty00 tty01 lp0 random urandom dmapi dsk0 cdrom0
starting LSM in boot mode
dsfmgr: NOTE: updating kernel basenames for system at /
Mounting / (root)
user_cfg_pt: reconfigured
root_mounted_rw: reconfigured
user_cfg_pt: reconfigured
root_mounted_rw: reconfigured
user_cfg_pt: reconfigured
dsfmgr: NOTE: updating kernel basenames for system at /
starting LSM
Checking device naming:
Passed.
Checking local filesystems
Mounting local filesystems
exec: /sbin/mount_advfs -F 0x14000 root_domain#root /
root_domain#root on / type advfs (rw)
/proc on /proc type procfs (rw)
exec: /sbin/mount_advfs -F 0x4000 usr_domain#usr /usr
usr_domain#usr on /usr type advfs (rw)
exec: /sbin/mount_advfs -F 0x4000 usr_domain#var /var
usr_domain#var on /var type advfs (rw)
Apr 2 02:19:41 esmd: Essential Services Monitor daemon started
Subsystem hwautoconfig was successfully configured.
Apr 2 02:19:41 update: started
Checking for Installation Tasks...
Executing Installation Tasks...
The system is coming up. Please wait...
Checking for crash dumps
dump device name: swap01-01, num: 0x5100001, off: 0x0, len: 0xc0000
Initializing paging space
Mounting Memory filesystems
evmstart: Daemon started
Apr 2 02:19:44 esmd: Started monitoring the EVM daemon
security configuration set to default (BASE).
File /etc/sia/matrix.conf updated successfully.
Successful SIA initialization
/usr/sbin/autopush: Can't push requested modules on STREAM for entry 36
/usr/sbin/autopush: Device (6,-1) already configured
Streams autopushes configured
Initializing random number driver
CSSM_ModuleLoad: CSSM error 4107
Configuring network
hostname: ds15
Loading LMF licenses
System error logger started
binlogd: failed to initialize remote logging. Please make sure the
network is set up properly and then restart binlogd.
Binary error logger started
Setting kernel timezone variable
ONC portmap service started
NFS IO service started
Mounting NFS filesystems
Preserving editor files
Clearing temporary files
Unlocking ptys
Secure Shell daemon (sshd2) started.
SMTP Mail Service started.
Environmental Monitoring Subsystem Configured.
Using snmp service entry port 161.
Can't get a local IP address.
Extensible SNMP master agent started
Base O/S subagent started
Server System subagent started
Server Management subagent started
CIM SNMP subagent started
Performance Management subagent started
Loading I18N tty kernel modules ... done
Web Based Management Agent started
ConfigReport Management Module started
Sysman Management Module started
Threshold Management Subagent started
Intelligent Drive Array Subagent started
The SNMP trap to Event Manager interface is disabled.
Environmental Monitoring Daemon started.
GS Platform View and Discovery V1.3 for Insight Manager is only
supported on Alpha GS series platforms.
AdvFS daemon (advfsd) started.
Internet services provided.
Cron service started
SuperLAT. Copyright 1994 Meridian Technology Corp. All rights reserved.
LAT started.
LSM volwatch Service started - mail only
Printer service started
Configuring utx device
utxd daemon started
SysMan authentication server (smauthd) started
SysMan Station server (smsd) started
The system is ready.
HP Tru64 UNIX V5.1B (Rev. 2650) (ds15) console
login: root
Password:
Can't find an OSF-BASE, UNIX-WORKSTATION, or UNIX-SERVER license PAK
Last login: Wed Apr 2 02:16:57 JST 2014 on console
HP Tru64 UNIX V5.1B (Rev. 2650); Wed Apr 2 02:13:52 JST 2014
Tru64 UNIX Japanese Support V5.1B (rev. 232)
NHD Rev(V7.0) installed
The installation software has successfully installed your system.
There are logfiles that contain a record of your installation. These are:
/var/adm/smlogs/install.cdf - configuration description file
/var/adm/smlogs/install.log - general log file
/var/adm/smlogs/install.FS.log - file system creation logs
/var/adm/smlogs/setld.log - log for the setld(8) utility
/var/adm/smlogs/fverify.log - verification log file
# disklabel dsk0
# /dev/rdisk/dsk0c:
type: SCSI
disk: MAU3073NC
label:
flags: dynamic_geometry
bytes/sector: 512
sectors/track: 863
tracks/cylinder: 4
sectors/cylinder: 3452
cylinders: 49158
sectors/unit: 142969680
rpm: 15000
interleave: 1
trackskew: 216
cylinderskew: 111
headswitch: 0 # milliseconds
track-to-track seek: 0 # milliseconds
drivedata: 0
8 partitions:
# size offset fstype fsize bsize cpg # ~Cyl values
a: 786432 0 AdvFS # 0 - 227*
b: 786432 786432 LSMnoprv # 227*- 455*
c: 142969680 0 unused 0 0 # 0 - 41416*
d: 4096 1572864 LSMsimp # 455*- 456*
e: 70696360 1576960 unused 0 0 # 456*- 20936*
f: 70696360 72273320 unused 0 0 # 20936*- 41416*
g: 4300800 1576960 LSMnoprv # 456*- 1702*
h: 137091920 5877760 unused 0 0 # 1702*- 41416*
# shutdown -h now
Shutdown at 02:21 (in 0 minutes) [pid 1207]
#
*** FINAL System shutdown message from root@ds15 ***
System going down IMMEDIATELY
...
System shutdown time has arrived
syncing disks... done
CPU 0: Halting... (transferring to monitor)
halted CPU 0
halt code = 5
HALT instruction executed
PC = ffffffff0048b3f0
resetting all I/O buses
>>>boot dqa0
(boot dqa0.0.0.13.0 -flags A)
block 0 of dqa0.0.0.13.0 is a valid boot block
reading 13 blocks from dqa0.0.0.13.0
bootstrap code read in
base = 2be000, image_start = 0, image_bytes = 1a00(6656)
initializing HWRPB at 2000
initializing page table at 1fff0000
initializing machine state
setting affinity to the primary CPU
jumping to bootstrap code
NetBSD/alpha 6.99.38 ISO 9660 Primary Bootstrap
Jumping to entry point...
NetBSD/alpha 6.99.38 Secondary Bootstrap, Revision 1.13 (Sat Mar 29
04:53:20 UTC 2014)
VMS PAL rev: 0x1000700010162
OSF PAL rev: 0x100070002015c
Switch to OSF PAL code succeeded.
Boot flags: A
10623872+205920=0xa54628
Entering netbsd at 0xfffffc0000431220...
Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014
The NetBSD Foundation, Inc. All rights reserved.
Copyright (c) 1982, 1986, 1989, 1991, 1993
The Regents of the University of California. All rights reserved.
NetBSD 6.99.38 (INSTALL) #0: Sat Mar 29 05:13:07 UTC 2014
naruaki@:/usr/obj.alpha/sys/arch/alpha/compile/INSTALL
AlphaStation DS15, 1000MHz, s/n AY42501857
8192 byte page size, 1 processor.
total memory = 512 MB
(2880 KB reserved for PROM, 509 MB used by NetBSD)
avail memory = 491 MB
mainbus0 (root)
cpu0 at mainbus0: ID 0 (primary), 21264C-6
cpu0: Architecture extensions: 0x1307<PAT,MVI,CIX,FIX,BWX>
tsc0 at mainbus0: 21274 Core Logic Chipset, Cchip rev 0
tsc0: 2 Dchips, 1 memory bus of 16 bytes
tsc0: arrays present: 512MB, 0MB, 0MB, 0MB, Dchip 0 rev 1
tsp0 at tsc0
tsp0: window 2: 0/base 3ff00000/mask 1f00000 reinitialized
tsp0: window 3: 2/base fff00000/mask 2000000 reinitialized
pci0 at tsp0 bus 0
sio0 at pci0 dev 7 function 0: vendor 0x10b9 product 0x1533 (rev. 0xc3)
ahc0 at pci0 dev 8 function 0: Adaptec aic7899 Ultra160 SCSI adapter
ahc0: interrupting at dec 6600 irq 13
ahc0: aic7899: Ultra160 Wide Channel A, SCSI Id=7, 32/253 SCBs
scsibus0 at ahc0: 16 targets, 8 luns per target
ahc1 at pci0 dev 8 function 1: Adaptec aic7899 Ultra160 SCSI adapter
ahc1: interrupting at dec 6600 irq 12
ahc1: aic7899: Ultra160 Wide Channel B, SCSI Id=7, 32/253 SCBs
scsibus1 at ahc1: 16 targets, 8 luns per target
fxp0 at pci0 dev 9 function 0: Intel i82559ER Ethernet (rev. 0x09)
fxp0: interrupting at dec 6600 irq 28
fxp0: Ethernet address 00:0f:20:2b:e1:24
inphy0 at fxp0 phy 1: i82555 10/100 media interface, rev. 4
inphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
fxp1 at pci0 dev 10 function 0: Intel i82559ER Ethernet (rev. 0x09)
fxp1: interrupting at dec 6600 irq 4
fxp1: Ethernet address 00:0f:20:2b:e1:23
inphy1 at fxp1 phy 1: i82555 10/100 media interface, rev. 4
inphy1: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
aceride0 at pci0 dev 13 function 0: Acer Labs M5229 UDMA IDE
Controller (rev. 0xc1)
aceride0: primary channel interrupting at isa irq 14
atabus0 at aceride0 channel 0
aceride0: secondary channel interrupting at isa irq 15
atabus1 at aceride0 channel 1
isa0 at sio0
com0 at isa0 port 0x3f8-0x3ff irq 4: ns16550a, working fifo
com0: console
com1 at isa0 port 0x2f8-0x2ff irq 3: ns16550a, working fifo
pckbc0 at isa0 port 0x60-0x64
fdc0 at isa0 port 0x3f0-0x3f7 irq 6 drq 2
mcclock0 at isa0 port 0x70-0x71: mc146818 compatible time-of-day clock
tsp1 at tsc0
tsp2: window 2: 0/base 3ff00000/mask 2400000 reinitialized
tsp2: window 3: 2/base fff00000/mask 2800000 reinitialized
pci1 at tsp1 bus 0
vga0 at pci1 dev 7 function 0: vendor 0x1002 product 0x5157 (rev. 0x00)
wsdisplay0 at vga0 (kbdmux ignored)
drm at vga0 not configured
siop0 at pci1 dev 8 function 0: Symbios Logic 53c895 (ultra2-wide scsi)
siop0: using on-board RAM
siop0: interrupting at dec 6600 irq 36
scsibus2 at siop0: 16 targets, 8 luns per target
tlp0 at pci1 dev 9 function 0: DECchip 21140A Ethernet, pass 2.0
tlp0: interrupting at dec 6600 irq 24
tlp0: DEC DE500-AA, Ethernet address 00:00:f8:03:dd:a1
nsphy0 at tlp0 phy 5: DP83840 10/100 media interface, rev. 0
nsphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
vendor 0x1274 product 0x1371 (audio multimedia, revision 0x09) at pci1
dev 10 function 0 not configured
tsciic at tsc0
not configured
scsibus0: waiting 2 seconds for devices to settle...
scsibus1: waiting 2 seconds for devices to settle...
scsibus2: waiting 2 seconds for devices to settle...
atapibus0 at atabus0: 2 targets
cd0 at atapibus0 drive 0: <HL-DT-ST RW/DVD GCC-4480B, , 2.06> cdrom removable
sd0 at scsibus0 target 1 lun 0: <FUJITSU, MAU3073NC, 2904> disk fixed
sd0: 69809 MB, 49158 cyl, 4 head, 727 sec, 512 bytes/sect x 142969680 sectors
sd0: sync (12.50ns offset 127), 16-bit (160.000MB/s) transfers, tagged queueing
WARNING: can't figure what device matches "IDE 0 13 0 0 0 0 0"
root on md0a dumps on md0b
root file system type: ffs
Terminal type? [vt100]
erase ^?, werase ^W, kill ^U, intr ^C
NetBSD/alpha 6.99.38
This menu-driven tool is designed to help you install NetBSD to a hard disk,
or upgrade an existing NetBSD system, with a minimum of work.
In the following menus type the reference letter (a, b, c, ...) to select an
item, or type CTRL+N/CTRL+P to select the next/previous item.
The arrow keys and Page-up/Page-down may also work.
Activate the current selection from the menu by typing the enter key.
If you booted from a floppy, you may now remove the disk.
Thank you for using NetBSD!
lqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqk
x NetBSD-6.99.38 Install System x
x x
x a: Install NetBSD to hard disk x
x b: Upgrade NetBSD on a hard disk x
x c: Re-install sets or install additional sets x
x d: Reboot the computer x
x>e: Utility menu x
x f: Config menu x
x x: Exit Install System x
mqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqj
NetBSD/alpha 6.99.38
This menu-driven tool is designed to help you install NetBSD to a hard disk,
or upgrade an existing NetBSD system, with a minimum of work.
In the following menus type the reference letter (a, b, c, ...) to select an
item, or type CTRL+N/CTRL+P to select the next/previous item.
The arrow keys and Page-up/Page-down may also work.
Activate the current selection from the menu by typing the enter key.
If you booted from a floppy, you may now remove the disk.
Thank you for using NetBSD!
lqqqqqqqqqqqqqqqqqqqqqqqqqqqqqk
x NetBSD-6.99.38 Utilities x
x x
x>a: Run /bin/sh x
x b: Set timezone x
x c: Configure network x
x d: Logging functions x
x e: Halt the system x
x x: Back to main menu x
mqqqqqqqqqqqqqqqqqqqqqqqqqqqqqj
# disklabel sd0
# /dev/rsd0c:
type: SCSI
disk: MAU3073NC
label:
flags:
bytes/sector: 512
sectors/track: 863
tracks/cylinder: 4
sectors/cylinder: 3452
cylinders: 49158
total sectors: 142969680
rpm: 15000
interleave: 1
trackskew: 216
cylinderskew: 111
headswitch: 0 # microseconds
track-to-track seek: 0 # microseconds
drivedata: 0
8 partitions:
# size offset fstype [fsize bsize cpg/sgs]
a: 786432 0 FILECORE # (Cyl. 0 - 227*)
b: 786432 786432 ccd # (Cyl. 227*- 455*)
c: 142969680 0 unused 0 0 # (Cyl. 0 - 41416*)
d: 4096 1572864 RAID # (Cyl. 455*- 456*)
e: 70696360 1576960 unused 0 0 # (Cyl. 456*- 20936*)
f: 70696360 72273320 unused 0 0 # (Cyl. 20936*- 41416*)
g: 4300800 1576960 ccd # (Cyl. 456*- 1702*)
h: 137091920 5877760 unused 0 0 # (Cyl. 1702*- 41416*)
---------------------------------------------------------
fstype FILECORE:
The reason is because AdvFS is the same FILECORE FSTYPE number in Tru64 UNIX.
(If you have a Tru64 UNIX license, please check
/usr/sys/include/sys/disklabel.h)
http://nxr.netbsd.org/source/xref/src/sys/sys/disklabel.h#348
> I suppose the Tru64 installation left something on the disk that we
> misinterpret - and sysinst needs to validate and clean that.
>
> If you want a quick workaround: after copying the disklabel output for this
> ticket, do something like this to clear the start of your hard disk:
>
> dd if=/dev/zero of=/dev/rsd0c count=200
>
> and reboot. I guess sysinst will work then (but this may fail due to label
> sector write protection).
Your idea is very cool.
Please replacing md_get_info function with "dd if=/dev/zero
of=/dev/rsd0c count=200".
--
That's very nice of you!
nullnilaki@gmail.com
Responsible-Changed-From-To: port-alpha-maintainer->martin
Responsible-Changed-By: martin@NetBSD.org
Responsible-Changed-When: Wed, 02 Apr 2014 18:39:59 +0000
Responsible-Changed-Why:
I'll make sure the enhanced partitioning code (from last years SoC) I'm still
working on merging will sanity check and deal gracefully.
From: "Michael L. Hitch" <mhitch@montana.edu>
To: "Naruaki.Etomi" <nullnilaki@gmail.com>
Cc: gnats-bugs@netbsd.org
Subject: Re: port-alpha/48697: Sysinst compute illegal disk geometry and
newfs is bound to fail.
Date: Wed, 2 Apr 2014 14:23:35 -0600 (MDT)
On Thu, 3 Apr 2014, Naruaki.Etomi wrote:
> sd0 at scsibus0 target 1 lun 0: <FUJITSU, MAU3073NC, 2904> disk fixed
> sd0: 69809 MB, 49158 cyl, 4 head, 727 sec, 512 bytes/sect x 142969680 sectors
> sd0: sync (12.50ns offset 127), 16-bit (160.000MB/s) transfers, tagged queueing
...
> # disklabel sd0
> # /dev/rsd0c:
> type: SCSI
> disk: MAU3073NC
> label:
> flags:
> bytes/sector: 512
> sectors/track: 863
> tracks/cylinder: 4
> sectors/cylinder: 3452
> cylinders: 49158
> total sectors: 142969680
> rpm: 15000
> interleave: 1
> trackskew: 216
> cylinderskew: 111
> headswitch: 0 # microseconds
> track-to-track seek: 0 # microseconds
> drivedata: 0
Ah, it looks like maybe sysinst is computing the size of the disk by
multiplying the sectors/cylinder times cylinders - but the sectors/track
in the disk label is not correct. The drive reports 727 sectors/track.
If sysinst had used the total sectors from the disklabel, it would have
been ok. I would presume that Tru64 had set the sectors/track and
sectors/cylinder to those values.
Mike
---
Michael L. Hitch mhitch@montana.edu
Operations Consulting, Information Technology Center
Montana State University, Bozeman, MT USA
From: David Laight <david@l8s.co.uk>
To: gnats-bugs@NetBSD.org
Cc: martin@NetBSD.org, gnats-admin@netbsd.org, netbsd-bugs@netbsd.org,
nullnilaki@gmail.com
Subject: Re: port-alpha/48697: Sysinst compute illegal disk geometry and newfs is bound to fail.
Date: Wed, 2 Apr 2014 22:22:20 +0100
On Wed, Apr 02, 2014 at 08:25:01PM +0000, Michael L. Hitch wrote:
>
> Ah, it looks like maybe sysinst is computing the size of the disk by
> multiplying the sectors/cylinder times cylinders - but the sectors/track
> in the disk label is not correct. The drive reports 727 sectors/track.
> If sysinst had used the total sectors from the disklabel, it would have
> been ok. I would presume that Tru64 had set the sectors/track and
> sectors/cylinder to those values.
It is really best to believe the size that the driver gets from
the disk itself - rather than that written to the disk.
The 727 sectors/track value read from the label would then not matter.
Indeed it might make the code know that the label is invalid.
A cursory glance and the output from netbsd's disklabel seemed to
show garbage values for the partitions - even though the checksum
must have been correct.
Maybe the structures don't quite match?
David
--
David Laight: david@l8s.co.uk
From: Izumi Tsutsui <tsutsui@ceres.dti.ne.jp>
To: martin@duskware.de, gnats-bugs@NetBSD.org
Cc: tsutsui@ceres.dti.ne.jp
Subject: Re: port-alpha/48697: Sysinst compute illegal disk geometry and newfs
is bound to fail.
Date: Thu, 3 Apr 2014 07:47:18 +0900
> Can you please boot into sysinst, then use the Utilities menu to start
> a shell and show us the output of
>
> disklabel sd0
>
> ?
Do you read the whole PR?
The PR already says that Tru64's disklabel structure is the same
as BSD's one and it contains Tru64's disklabel output.
> I suppose the Tru64 installation left something on the disk that we
> misinterpret - and sysinst needs to validate and clean that.
The PR already says that the "sectors/track" written by Tru64
seems wrong and our sysinst blindly uses it to calclate dlsize
in md_get_info() in src/distrib/utils/sysinst/arch/alpha/md.c.
> If you want a quick workaround:
The PR proposes a patch for the md_get_info() to use
disklabel.d_secperunit for dlsize.
Could you review it first, before considering the GoS result?
Otherwise we can't pullup fixes to netbsd-6 etc.
---
Izumi Tstusui
From: "Naruaki.Etomi" <nullnilaki@gmail.com>
To: gnats-bugs@netbsd.org, martin@duskware.de
Cc:
Subject: Re: port-alpha/48697: Sysinst compute illegal disk geometry and newfs
is bound to fail.
Date: Fri, 4 Apr 2014 00:41:32 +0900
Dear,Martin
>Your idea is very cool.
>Please replacing md_get_info function with "dd if=/dev/zero
>of=/dev/rsd0c count=200".
I'm so sorry about yesterday.
I shouldn't have said things that I didn't mean.
That was a lack of explanation on my part about send-pr...
Please feel free to ask if there is anything that you don't understand.
Sincerely yours
--
Naruaki Etomi
nullnilaki@gmail.com
From: Izumi Tsutsui <tsutsui@ceres.dti.ne.jp>
To: martin@NetBSD.org
Cc: gnats-bugs@NetBSD.org, tsutsui@ceres.dti.ne.jp
Subject: Re: port-alpha/48697 (Sysinst compute illegal disk geometry and newfs
is bound to fail.)
Date: Fri, 2 May 2014 03:37:26 +0900
> Responsible-Changed-Why:
> I'll make sure the enhanced partitioning code (from last years SoC) I'm still
> working on merging will sanity check and deal gracefully.
Do you have any progress on this?
If it won't come RSN, I'll apply the sugestted patch in the PR,
which just prefers d_secperunit rather than d_nsectors
(sectors/track) that Tru64 could write an incorrect value
in the disklabel.
---
Izumi Tsutsui
Responsible-Changed-From-To: martin->tsutsui
Responsible-Changed-By: tsutsui@NetBSD.org
Responsible-Changed-When: Mon, 02 Jun 2014 14:51:36 +0000
Responsible-Changed-Why:
This problem is triggered by MD alpha source as mentioned in the PR and
it can be workarounded by the suggested patch without far future MI sysinst
reorganization including proper sanity checks against disk geometry values.
Ok'ed by martin.
State-Changed-From-To: open->analyzed
State-Changed-By: tsutsui@NetBSD.org
State-Changed-When: Mon, 02 Jun 2014 14:51:36 +0000
State-Changed-Why:
As mentioned in the PR, the problem is caused by wrong d_nsectors and
d_secpercyl values written by Tru64 and we shouldn't calculate
dlsize (sectors per unit) from these possibly wrong values.
From: "Izumi Tsutsui" <tsutsui@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc:
Subject: PR/48697 CVS commit: src/distrib/utils/sysinst/arch/alpha
Date: Mon, 2 Jun 2014 15:03:47 +0000
Module Name: src
Committed By: tsutsui
Date: Mon Jun 2 15:03:47 UTC 2014
Modified Files:
src/distrib/utils/sysinst/arch/alpha: md.c
Log Message:
Apply patch in PR port-alpha/48697 (with some tweaks).
Tru64 UNIX's disklabel is the same format as BSD disklabel,
and it seems Tru64 stores incorrect geometry values in
d_nsectors (sectors/track) and d_secpercyl (sectors/cylinder).
d_secperunit seems always reliable so use it to get
dlsec (sectors/track) and dlcylsize (sectors/cylinder) values.
Should be pulled up to netbsd-6 branches.
To generate a diff of this commit:
cvs rdiff -u -r1.52 -r1.53 src/distrib/utils/sysinst/arch/alpha/md.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
State-Changed-From-To: analyzed->feedback
State-Changed-By: tsutsui@NetBSD.org
State-Changed-When: Mon, 02 Jun 2014 15:57:31 +0000
State-Changed-Why:
The similar patch is committed. Could you please confirm?
From: "Naruaki.Etomi" <nullnilaki@gmail.com>
To: gnats-bugs@netbsd.org
Cc:
Subject: Re: port-alpha/48697 (Sysinst compute illegal disk geometry and newfs
is bound to fail.)
Date: Sun, 8 Jun 2014 07:13:22 +0900
Dear Tsutsui-san.
Thank you for your mail!
I carry out a test.
Tru64 UNIX's disk label
----------------------------
# disklabel dsk0
# /dev/rdisk/dsk0c:
type: SCSI
disk: MAU3073NC
label:
flags: dynamic_geometry
bytes/sector: 512
sectors/track: 863
tracks/cylinder: 4
sectors/cylinder: 3452
cylinders: 49158
sectors/unit: 142969680
rpm: 15000
interleave: 1
trackskew: 216
cylinderskew: 111
headswitch: 0 # milliseconds
track-to-track seek: 0 # milliseconds
drivedata: 0
8 partitions:
# size offset fstype fsize bsize cpg # ~Cyl values
a: 786432 0 AdvFS # 0 - 227*
b: 786432 786432 LSMnoprv # 227*- 455*
c: 142969680 0 unused 0 0 # 0 - 41416*
d: 4096 1572864 LSMsimp # 455*- 456*
e: 70696360 1576960 unused 0 0 # 456*- 20936*
f: 70696360 72273320 unused 0 0 # 20936*- 41416*
g: 4300800 1576960 LSMnoprv # 456*- 1702*
h: 137091920 5877760 unused 0 0 # 1702*- 41416*
----------------------------
NetBSD's boot log
----------------------------
sd0: 69809 MB, 49158 cyl, 4 head, 727 sec, 512 bytes/sect x 142969680 sectors
sd0: sync (12.50ns offset 127), 16-bit (160.000MB/s) transfers, tagged queueing
----------------------------
Old installer(wrong)
----------------------------
sd0: 69809 MB, 49158 cyl, 4 head, 727 sec, 512 bytes/sect x 142969680 sectors
The NetBSD part of your disk is 82858 Megabytes. A full installation
requires at least 384 Megabytes without X and at least 434 Megabytes if the X
sets are included.
----------------------------
New installer(fix)
----------------------------
The NetBSD part of your disk is 69809 Megabytes. A full installation
requires at least 384 Megabytes without X and at least 434 Megabytes if the X
sets are included.
----------------------------
It worked fine!!
I am very pleased.
That's very nice of you!
--
Naruaki Etomi / nullnilaki@gmail.com
State-Changed-From-To: feedback->pending-pullups
State-Changed-By: tsutsui@NetBSD.org
State-Changed-When: Sun, 08 Jun 2014 16:03:45 +0000
State-Changed-Why:
Fix confirmed and queued in [pullup-6 #1080]
From: "Jeff Rizzo" <riz@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc:
Subject: PR/48697 CVS commit: [netbsd-6] src/distrib/utils/sysinst/arch/alpha
Date: Fri, 18 Jul 2014 02:41:34 +0000
Module Name: src
Committed By: riz
Date: Fri Jul 18 02:41:34 UTC 2014
Modified Files:
src/distrib/utils/sysinst/arch/alpha [netbsd-6]: md.c
Log Message:
Pull up following revision(s) (requested by tsutsui in ticket #1080):
distrib/utils/sysinst/arch/alpha/md.c: revision 1.53
Apply patch in PR port-alpha/48697 (with some tweaks).
Tru64 UNIX's disklabel is the same format as BSD disklabel,
and it seems Tru64 stores incorrect geometry values in
d_nsectors (sectors/track) and d_secpercyl (sectors/cylinder).
d_secperunit seems always reliable so use it to get
dlsec (sectors/track) and dlcylsize (sectors/cylinder) values.
Should be pulled up to netbsd-6 branches.
To generate a diff of this commit:
cvs rdiff -u -r1.51.2.1 -r1.51.2.2 src/distrib/utils/sysinst/arch/alpha/md.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
From: "Jeff Rizzo" <riz@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc:
Subject: PR/48697 CVS commit: [netbsd-6-0] src/distrib/utils/sysinst/arch/alpha
Date: Fri, 18 Jul 2014 02:43:13 +0000
Module Name: src
Committed By: riz
Date: Fri Jul 18 02:43:13 UTC 2014
Modified Files:
src/distrib/utils/sysinst/arch/alpha [netbsd-6-0]: md.c
Log Message:
Pull up following revision(s) (requested by tsutsui in ticket #1080):
distrib/utils/sysinst/arch/alpha/md.c: revision 1.53
Apply patch in PR port-alpha/48697 (with some tweaks).
Tru64 UNIX's disklabel is the same format as BSD disklabel,
and it seems Tru64 stores incorrect geometry values in
d_nsectors (sectors/track) and d_secpercyl (sectors/cylinder).
d_secperunit seems always reliable so use it to get
dlsec (sectors/track) and dlcylsize (sectors/cylinder) values.
Should be pulled up to netbsd-6 branches.
To generate a diff of this commit:
cvs rdiff -u -r1.51 -r1.51.8.1 src/distrib/utils/sysinst/arch/alpha/md.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
From: "Jeff Rizzo" <riz@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc:
Subject: PR/48697 CVS commit: [netbsd-6-1] src/distrib/utils/sysinst/arch/alpha
Date: Fri, 18 Jul 2014 02:51:52 +0000
Module Name: src
Committed By: riz
Date: Fri Jul 18 02:51:52 UTC 2014
Modified Files:
src/distrib/utils/sysinst/arch/alpha [netbsd-6-1]: md.c
Log Message:
Pull up following revision(s) (requested by tsutsui in ticket #1080):
distrib/utils/sysinst/arch/alpha/md.c: revision 1.53
Apply patch in PR port-alpha/48697 (with some tweaks).
Tru64 UNIX's disklabel is the same format as BSD disklabel,
and it seems Tru64 stores incorrect geometry values in
d_nsectors (sectors/track) and d_secpercyl (sectors/cylinder).
d_secperunit seems always reliable so use it to get
dlsec (sectors/track) and dlcylsize (sectors/cylinder) values.
Should be pulled up to netbsd-6 branches.
To generate a diff of this commit:
cvs rdiff -u -r1.51 -r1.51.16.1 src/distrib/utils/sysinst/arch/alpha/md.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
State-Changed-From-To: pending-pullups->closed
State-Changed-By: dholland@NetBSD.org
State-Changed-When: Mon, 13 Oct 2014 21:56:20 +0000
State-Changed-Why:
pullups done in july
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.