Disklabel problems (3.7/sparc64)

2005-06-16 Thread Matthew S Elmore

Greetings misc@,

I am having trouble working with my disklabel on my Sparc64 machine. I 
was able to set up the partitions correctly when I initially installed, 
but now I am unable to add partitions past a certain point. Here is my 
current partition configuration:


FilesystemSizeUsed   Avail Capacity  Mounted on
/dev/wd0a 490M   28.0M437M 6%/
/dev/wd0d19.3G7.3G   11.1G40%/home
/dev/wd0e 490M136M330M29%/tmp
/dev/wd0f 490M240M226M51%/usr
/dev/wd0g 982M100M833M11%/usr/local
/dev/wd0h 982M4.2M929M 0%/usr/obj
/dev/wd0i 982M581M352M62%/usr/src
/dev/wd0j 2.0G   43.0M1.8G 2%/var
/dev/wd0l 7.8G170M7.2G 2%/var/www
colossus:/storage36.7G   34.2G642M98%/storage
colossus:/storage2   73.4G   48.9G   20.8G70%/storage2

Here is the disklabel output:

device: /dev/rwd0c
type: ESDI
disk: ESDI/IDE disk
label: IC35L040AVER07-0
bytes/sector: 512
sectors/track: 63
tracks/cylinder: 16
sectors/cylinder: 1008
cylinders: 16383
total sectors: 16514064
free sectors: 14465808
rpm: 3600

16 partitions:
# sizeoffset  fstype [fsize bsize  cpg]
  a:   1024128 0  4.2BSD   2048 16384   16 # Cyl 0 
-  1015
  b:   1024128   1024128swap   # Cyl  1016 
-  2031
  c:  80418240 0  unused  0 0  # Cyl 0 
- 79779
  d:  41191920   2048256  4.2BSD   2048 16384   16 # Cyl  2032 
- 42896
  e:   1024128  43240176  4.2BSD   2048 16384   16 # Cyl 42897 
- 43912
  f:   1024128  44264304  4.2BSD   2048 16384   16 # Cyl 43913 
- 44928
  g:   2048256  45288432  4.2BSD   2048 16384   16 # Cyl 44929 
- 46960
  h:   2048256  47336688  4.2BSD   2048 16384   16 # Cyl 46961 
- 48992
  i:   2048256  49384944  4.2BSD   2048 16384   16 # Cyl 48993 
- 51024
  j:   4192272  51433200  4.2BSD   2048 16384   16 # Cyl 51025 
- 55183
  l:  16600752  63817488  4.2BSD   2048 16384   16 # Cyl 63311 
- 79779



As you can see, there is missing space for a 'k' slice, but I am unable 
to add it. I get this output:


> a
partition: [k]
offset: [55625472]
The OpenBSD portion of the disk ends at sector 16514064, you tried to 
add a partition at 55625472.  You can use the 'b' command to change the 
size of the OpenBSD portion.


But if I use the 'b' command and do '*' for entire disk or enter the 
parameters manually, they do not seem to take effect. It still gives me 
the same error when attempting to create the 'k' slice.


I have included my dmesg at the bottom of this email.

Does anyone have any suggestions?

Regards,
Matt


console is keyboard/display
Copyright (c) 1982, 1986, 1989, 1991, 1993
The Regents of the University of California.  All rights reserved.
Copyright (c) 1995-2005 OpenBSD. All rights reserved. 
http://www.OpenBSD.org


OpenBSD 3.7 (GENERIC) #431: Sun Mar 20 14:10:02 MST 2005
[EMAIL PROTECTED]:/usr/src/sys/arch/sparc64/compile/GENERIC
total memory = 268435456
avail memory = 235126784
using 1638 buffers containing 13418496 bytes of memory
bootpath: /[EMAIL PROTECTED],0/[EMAIL PROTECTED],1/[EMAIL PROTECTED],0/[EMAIL 
PROTECTED],0
mainbus0 (root): Sun Ultra 5/10 UPA/PCI (UltraSPARC-IIi 300MHz)
cpu0 at mainbus0: SUNW,UltraSPARC-IIi @ 299.750 MHz, version 0 FPU
cpu0: physical 32K instruction (32 b/l), 16K data (32 b/l), 512K 
external (64 b/l)

psycho0 at mainbus0 addr 0xfffc4000
SUNW,sabre: impl 0, version 0: ign 7c0 bus range 0 to 2; PCI bus 0
DVMA map: c000 to e000
IOTDB: 1362000 to 13e2000
pci0 at psycho0
ppb0 at pci0 dev 1 function 1 "Sun Simba PCI-PCI" rev 0x11
pci1 at ppb0 bus 1
ebus0 at pci1 dev 1 function 0 "Sun PCIO Ebus2" rev 0x01
auxio0 at ebus0 addr 726000-726003, 728000-728003, 72a000-72a003, 
72c000-72c003, 72f000-72f003

power at ebus0 addr 724000-724003 ipl 37 not configured
SUNW,pll at ebus0 addr 504000-504002 not configured
sab0 at ebus0 addr 40-40007f ipl 43: rev 3.2
sabtty0 at sab0 port 0
sabtty1 at sab0 port 1
comkbd0 at ebus0 addr 3083f8-3083ff ipl 41: layout 33
wskbd0 at comkbd0: console keyboard
com0 at ebus0 addr 3062f8-3062ff ipl 42, mouse: ns16550a, 16 byte fifo
lpt0 at ebus0 addr 3043bc-3043cb, 30015c-30015d, 70-7f ipl 34: 
polled
fdthree at ebus0 addr 3023f0-3023f7, 706000-70600f, 72-720003 ipl 39 
not configured

clock1 at ebus0 addr 0-1fff: mk48t59: hostid 809c9c6c
flashprom at ebus0 addr 0-f not configured
audioce0 at ebus0 addr 20-2000ff, 702000-70200f, 704000-70400f, 
722000-722003 ipl 35 ipl 36: nvaddrs 0

audio0 at audioce0
hme0 at pci1 dev 1 function 1 "Sun HME" rev 0x01: address 08:00:20:9c:9c:6c
nsphy0 at hme0 phy 1: DP83840 10/100 PHY, rev. 1
hme0: using ivec 3021 for interrupt
vgafb0 at pci1 dev 2 function 0 "ATI Mach64 GT" rev 0x9a
wsdisplay0

Re: Disklabel problems (3.7/sparc64)

2005-06-16 Thread Kurt Miller

From: "Matthew S Elmore" <[EMAIL PROTECTED]>

> a
partition: [k]
offset: [55625472]
The OpenBSD portion of the disk ends at sector 16514064, you tried to 
add a partition at 55625472.  You can use the 'b' command to change the 
size of the OpenBSD portion.


try this: switch to disk geometry, write the label, exit and then
go back into disklabel and make any changes needed.

-Kurt



Re: Disklabel problems (3.7/sparc64)

2005-06-16 Thread Matthew S Elmore

Kurt,

Thanks much!

> g d

did the trick.

Regards,
Matt

Kurt Miller wrote:

From: "Matthew S Elmore" <[EMAIL PROTECTED]>


> a
partition: [k]
offset: [55625472]
The OpenBSD portion of the disk ends at sector 16514064, you tried to 
add a partition at 55625472.  You can use the 'b' command to change 
the size of the OpenBSD portion.



try this: switch to disk geometry, write the label, exit and then
go back into disklabel and make any changes needed.

-Kurt