Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.server -> new SCSI Hard disk problem non-Sun disk
RE My new SCSI Disk 4.5gb IBM
Can you please ask your sun engineer for some advices.
The Problem is I have a Non- SUN SCSI Hard Disk.... and get a Corrupt label wrong magic number Error Message
I have format the disk and set the SCSI id to 4
and created a partition of 4gb on /dev/rdsk/c0t4d0s0
the cylinders start at 300 this is because vtoc write the header to
cylinder position 0 and I have read from google.com seach engine that
this is a know problem...
I have set a mount point of /u02 in the /etc/vfstab file
But every time I reboot the machine I get a super block error message.
I have executed the command
NEWFS -N /dev/rdsk/c0t4d0s0
to shown the super blocks Available and have tried quite a few different
Super block position
with the command
fsck -o b="number" /dev/rdsk/c0t4d0s0
But I get the same results
#######################
This is the Main Disk
Format
partition> print
Current partition table (original):
Total disk cylinders available: 8203 + 2 (reserved cylinders)
Part Tag Flag Cylinders Size Blocks 0 swap wu 0 - 598 300.08MB (599/0/0) 614574 1 root wm 599 - 1597 500.48MB (999/0/0) 1024974 2 unassigned wm 1598 - 5590 1.95GB (3993/0/0) 4096818 3 var wm 5591 - 5651 30.56MB (61/0/0) 62586 4 usr wm 5652 - 6250 300.08MB (599/0/0) 614574 5 unassigned wm 6251 - 6310 30.06MB (60/0/0) 61560 6 usr wm 6311 - 7602 647.26MB (1292/0/0) 1325592 7 home wm 7603 - 8201 300.08MB (599/0/0) 614574
##########################
Part Tag Flag Cylinders Size Blocks 0 unassigned wm 300 - 7995 4.00GB (7696/0/0) 8388640 1 unassigned wu 0 0 (0/0/0) 0 2 unassigned wu 0 0 (0/0/0) 0 3 unassigned wm 0 0 (0/0/0) 0 4 unassigned wm 0 0 (0/0/0) 0 5 unassigned wm 0 0 (0/0/0) 0 6 unassigned wm 0 0 (0/0/0) 0 7 unassigned wm 0 0 (0/0/0) 0
###########################
vfstab file
#device device mount FS fsck mount mount
#to mount to fsck point type pass at boot options
#
#/dev/dsk/c1d0s2 /dev/rdsk/c1d0s2 /usr ufs 1 yes -
fd - /dev/fd fd - no -
/proc - /proc proc - no - /dev/dsk/c0t0d0s0 - - swap - no - /dev/dsk/c0t0d0s1 /dev/rdsk/c0t0d0s1 / ufs 1 no - /dev/dsk/c0t0d0s6 /dev/rdsk/c0t0d0s6 /usr ufs 1 no - /dev/dsk/c0t0d0s3 /dev/rdsk/c0t0d0s3 /var ufs 1 no - /dev/dsk/c0t0d0s7 /dev/rdsk/c0t0d0s7 /export/home ufs 2 yes - /dev/dsk/c0t0d0s5 /dev/rdsk/c0t0d0s5 /opt ufs 2 yes - /dev/dsk/c0t0d0s2 /dev/rdsk/c0t0d0s2 /u01 ufs 2 yes - /dev/dsk/c0t0d0s4 /dev/rdsk/c0t0d0s4 /usr/openwin ufs 2 yes -swap - /tmp tmpfs - yes -
########################################
format.dat
Disk definition file
#
#pragma ident "@(#)format.dat 1.22 99/10/07 SMI"
#
# Copyright (c) 1991,1999 by Sun Microsystems, Inc.
# All rights reserved.
#
# Data file for the 'format' program. This file defines the known
# disks, disk types, and partition maps.
#
#
# This is the list of supported disks for the Emulex MD21 controller.
#
disk_type = "Micropolis 1355" \
: ctlr = MD21 \ : ncyl = 1018 : acyl = 2 : pcyl = 1024 : nhead = 8 : nsect = 34 \ : rpm = 3600 : bpt = 20832
disk_type = "Toshiba MK 156F" \
: ctlr = MD21 \ : ncyl = 815 : acyl = 2 : pcyl = 830 : nhead = 10 : nsect = 34 \ : rpm = 3600 : bpt = 20832
disk_type = "Micropolis 1558" \
: ctlr = MD21 \ : ncyl = 1218 : acyl = 2 : pcyl = 1224 : nhead = 15 : nsect = 35 \ : rpm = 3600 : bpt = 20833
#
# Following is a list of sample embedded SCSI disk configurations.
#
disk_type = "Quantum ProDrive 80S" \
: ctlr = SCSI : fmt_time = 1 \ : cache = 0x07 : trks_zone = 6 : atrks = 0 : asect = 1 \ : ncyl = 832 : acyl = 2 : pcyl = 834 : nhead = 6 : nsect = 34 \ : rpm = 3662 : bpt = 16896
#disk_type = "CDC Wren VII 94601-12G" \
# : ctlr = SCSI : fmt_time = 4 \
# : cache = 0x11 : trks_zone = 15 : asect = 5 : atrks = 30 \
# : ncyl = 1703 : acyl = 2 : pcyl = 1931 : nhead = 15 : nsect = 80 \
# : rpm = 3597 : bpt = 41301
#
# An early CDC Wren IV, shipped with the 386i
#
#disk_type = "CDC Wren IV 94171-327" \
# : ctlr = SCSI : fmt_time = 4 \
# : cache = 0x11 : trks_zone = 9 : asect = 3 \
# : ncyl = 1520 : acyl = 2 : pcyl = 1549 : nhead = 9 : nsect = 46 \
# : rpm = 3600 : bpt = 20833
#
# This is the list of Sun supported disks for embedded SCSI.
#
disk_type = "Quantum ProDrive 105S" \
: ctlr = SCSI : fmt_time = 1 \ : cache = 0x07 : trks_zone = 6 : atrks = 0 : asect = 1 \ : ncyl = 974 : acyl = 2 : pcyl = 1019 : nhead = 6 : nsect = 35 \ : rpm = 3662 : bpt = 16896
disk_type = "CDC Wren IV 94171-344" \
: ctlr = SCSI : fmt_time = 4 \ : cache = 0x11 : trks_zone = 9 : asect = 3 \ : ncyl = 1545 : acyl = 2 : pcyl = 1549 : nhead = 9 : nsect = 46 \ : rpm = 3600 : bpt = 20833
disk_type = "SUN0104" \
: ctlr = SCSI : fmt_time = 1 \ : trks_zone = 6 : atrks = 0 : asect = 1 \ : ncyl = 974 : acyl = 2 : pcyl = 1019 : nhead = 6 : nsect = 35 \ : rpm = 3662 : bpt = 16896
disk_type = "SUN0207" \
: ctlr = SCSI \ : trks_zone = 9 : atrks = 2: asect = 4 \ : ncyl = 1254 : acyl = 2 : pcyl = 1272 : nhead = 9 : nsect = 36 \ : rpm = 3600 : bpt = 18432
disk_type = "SUN0327" \
: ctlr = SCSI : fmt_time = 4 \ : cache = 0x11 : trks_zone = 9 : asect = 3 \ : ncyl = 1545 : acyl = 2 : pcyl = 1549 : nhead = 9 : nsect = 46 \ : rpm = 3600 : bpt = 20833
disk_type = "SUN0340" \
: ctlr = SCSI : fmt_time = 2 \ : trks_zone = 6 \ : ncyl = 1538 : acyl = 2 : pcyl = 1544 : nhead = 6 : nsect = 72 \ : rpm = 4200
disk_type = "SUN0424" \
: ctlr = SCSI : fmt_time = 4 \ : trks_zone = 9 : asect = 2 \ : ncyl = 1151 : acyl = 2 : pcyl = 2500 : nhead = 9 : nsect = 80 \ : rpm = 4400 : bpt = 26000
disk_type = "SUN0535" \
: ctlr = SCSI : fmt_time = 4 \ : ncyl = 1866 : acyl = 2 : pcyl = 2500 : nhead = 7 : nsect = 80 \ : rpm = 5400
disk_type = "SUN0669" \
: ctlr = SCSI : fmt_time = 4 \ : trks_zone = 15 : asect = 5 : atrks = 30 \ : ncyl = 1614 : acyl = 2 : pcyl = 1632 : nhead = 15 : nsect = 54 \ : rpm = 3600 : bpt = 31410
disk_type = "SUN1.0G" \
: ctlr = SCSI : fmt_time = 4 \ : trks_zone = 15 : asect = 5 : atrks = 30 \ : ncyl = 1703 : acyl = 2 : pcyl = 1931 : nhead = 15 : nsect = 80 \ : rpm = 3597 : bpt = 41301
disk_type = "SUN1.05" \
: ctlr = SCSI : fmt_time = 4 \ : ncyl = 2036 : acyl = 2 : pcyl = 2038 : nhead = 14 : nsect = 72 \ : rpm = 5400
disk_type = "SUN1.3G" \
: ctlr = SCSI : fmt_time = 4 \ : trks_zone = 17 : asect = 6 : atrks = 17 \ : ncyl = 1965 : acyl = 2 : pcyl = 3500 : nhead = 17 : nsect = 80 \ : rpm = 5400 : bpt = 44823
disk_type = "SUN2.1G" \
: ctlr = SCSI : fmt_time = 4 \ : ncyl = 2733 : acyl = 2 : pcyl = 3500 : nhead = 19 : nsect = 80 \ : rpm = 5400 : bpt = 44823
disk_type = "SUN2.9G" \
: ctlr = SCSI : fmt_time = 4 \ : ncyl = 2734 : acyl = 2 : pcyl = 3500 : nhead = 21 : nsect = 99 \ : rpm = 5400
disk_type = "Zip 100" \
: ctlr = SCSI \ : ncyl = 96 : acyl = 0 : pcyl = 96 : nhead = 64 : nsect = 32 \ : rpm = 2941 : bpt = 16384
disk_type = "Zip 250" \
: ctlr = SCSI : ncyl = 6117 : acyl = 2 : pcyl = 6119 \
: nhead = 2 : nsect = 40 : rpm = 3600
#
# This is the list of partition tables for the Emulex MD21 controller.
#
partition = "Micropolis 1355" \
: disk = "Micropolis 1355" : ctlr = MD21 \
: 0 = 0, 16048 : 1 = 59, 33456 : 2 = 0, 276896 : 6 = 182, 227392
partition = "Micropolis 1355, large root" \ : disk = "Micropolis 1355" : ctlr = MD21 \ : 0 = 0, 31824 : 1 = 117, 59840 : 2 = 0, 276896 : 6 = 337, 185232
partition = "Toshiba MK 156F" \
: disk = "Toshiba MK 156F" : ctlr = MD21 \
: 0 = 0, 15980 : 1 = 47, 33660 : 2 = 0, 277100 : 6 = 146, 227460
partition = "Micropolis 1558, small root" \ : disk = "Micropolis 1558" : ctlr = MD21 \ : 0 = 0, 16275 : 1 = 31, 32550 : 2 = 0, 639450 : 6 = 93, 590625
partition = "Micropolis 1558" \
: disk = "Micropolis 1558" : ctlr = MD21 \
: 0 = 0, 32025 : 1 = 61, 59850 : 2 = 0, 639450 : 6 = 175, 547575
#
# Following is a list of sample partition tables for embedded SCSI disks.
#
partition = "Quantum ProDrive 80S" \
: disk = "Quantum ProDrive 80S" : ctlr = SCSI \
: 0 = 0, 16384 : 1 = 64, 32512 : 2 = 0, 198144 : 6 = 191, 149248
#partition = "CDC Wren VII 94601-12G" \
# : disk = "CDC Wren VII 94601-12G" : ctlr = SCSI \
# : 0 = 0, 32400 : 1 = 27, 64800 : 2 = 0, 2043600 : 6 = 81, 1946400
#partition = "CDC Wren IV 94171-327" \
# : disk = "CDC Wren IV 94171-327" : ctlr = SCSI \
# : 0 = 0, 31878 : 1 = 77, 59616 : 2 = 0, 629280 : 6 = 221, 527786
#
# This is the list of partition tables for embedded SCSI controllers.
#
partition = "Quantum ProDrive 105S" \
: disk = "Quantum ProDrive 105S" : ctlr = SCSI \
: 0 = 0, 16170 : 1 = 77, 28140 : 2 = 0, 204540 : 6 = 211, 160230
partition = "CDC Wren IV 94171-344, small root" \ : disk = "CDC Wren IV 94171-344" : ctlr = SCSI \ : 0 = 0, 16974 : 1 = 41, 33948 : 2 = 0, 639630 : 6 = 123, 588708
partition = "CDC Wren IV 94171-344" \
: disk = "CDC Wren IV 94171-344" : ctlr = SCSI \
: 0 = 0, 31878 : 1 = 77, 59616 : 2 = 0, 639630 : 6 = 221, 548136
partition = "SUN0104" \
: disk = "SUN0104" : ctlr = SCSI \
: 0 = 0, 16170 : 1 = 77, 28140 : 2 = 0, 204540 : 6 = 211, 160230
partition = "SUN0207" \
: disk = "SUN0207" : ctlr = SCSI \
: 0 = 0, 33048 : 1 = 102, 65448 : 2 = 0, 406296 : 6 = 304, 307800
partition = "SUN0327" \
: disk = "SUN0327" : ctlr = SCSI \
: 0 = 0, 31878 : 1 = 77, 59616 : 2 = 0, 639630 : 6 = 221, 548136
partition = "SUN0340" \
: disk = "SUN0340" : ctlr = SCSI \ : 0 = 0, 86400 : 1 = 200, 66960 : 2 = 0, 664416 : 6 = 355, 446256 \ : 7 = 1388, 64800
partition = "SUN0424" \
: disk = "SUN0424" : ctlr = SCSI \
: 0 = 0, 33120 : 1 = 46, 65520 : 2 = 0, 828720 : 6 = 137, 730080
partition = "SUN0535" \
: disk = "SUN0535" : ctlr = SCSI \
: 0 = 0, 64400 : 1 = 115, 103600 : 2 = 0, 1044960 : 6 = 300, 876960
partition = "SUN0669" \
: disk = "SUN0669" : ctlr = SCSI \
: 0 = 0, 32400 : 1 = 40, 64800 : 2 = 0, 1307340 : 6 = 120, 1210140
partition = "SUN1.0G" \
: disk = "SUN1.0G" : ctlr = SCSI \
: 0 = 0, 32400 : 1 = 27, 64800 : 2 = 0, 2043600 : 6 = 81, 1946400
partition = "SUN1.05" \
: disk = "SUN1.05" : ctlr = SCSI \
: 0 = 0, 66528 : 1 = 66, 133056 : 2 = 0, 2052288 : 6 = 198, 1852704
partition = "SUN1.3G" \
: disk = "SUN1.3G" : ctlr = SCSI \
: 0 = 0, 34000 : 1 = 25, 133280 : 2 = 0, 2672400 : 6 = 123, 2505120
partition = "SUN2.1G" \
: disk = "SUN2.1G" : ctlr = SCSI \
: 0 = 0, 62320 : 1 = 41, 197600 : 2 = 0, 4154160 : 6 = 171, 3894240
partition = "SUN2.9G" \
: disk = "SUN2.9G" : ctlr = SCSI \
: 0 = 0, 195426 : 1 = 94, 390852 : 2 = 0, 5683986 : 6 = 282, 5097708
partition = "Zip 100" \
: disk = "Zip 100" : ctlr = SCSI \
: 0 = 0,196608 : 2 = 0, 196608
partition = "Zip 250" \
: disk = "Zip 250" : ctlr = SCSI \
: 0 = 0, 489360 : 2 = 0, 489360
#
# New disk/partition type saved on Sat Apr 21 00:21:41 2001
#
disk_type = "IBM-DDRS-34560D-DC1B" \
: ctlr = SCSI : ncyl = 8186 : acyl = 2 : pcyl = 8188 \
: nhead = 5 : nsect = 218 : rpm = 7200
partition = "tonym" \
: disk = "IBM-DDRS-34560D-DC1B" : ctlr = SCSI \
: 0 = 50, 273590
####################################
General note about Corrupt label wrong magic number
Thanks to Roger Leonard and Roger Caron who came up with the right answer. I started using the disk from cylinder 10 and that fixed the problem...thanks to Roger Leonard's suggestion to skip a meg or so from the start of the cylinder. Roger Caron's e-mail which explained that Sybase cannot 0-5 cylinders made it clear to as where to start. This clears my question about where Solaris tries to store the disk slice information or the vtoc structure on the disk. On NCR systems the first 35 cylinders are reserved for boot/vtoc structure. I was thinking that Solaris stores this info on cylinders that are hidden from the format/prtvtov commands.
Thanks
Madhu
For best web sites on the WWW, visit iFunnel.com
Summary 2 Help: Corrupt label wrong magic number bandired -- Wed, 13 O00:52 23/04/2001ct 1999 20:42:22 +0200 (METDST)
I guess I should have waited a little while before I sent out my first
summary. The correct suggestion was to not use the first cylinder "0" for
raw devices. Solaris writes
the disk label to this cylinder and something like Sybase or any application
(or someone like me) that does not know that this cylinder should not be
used overwrites the label. You do not have this problem if you make a
filesystem starting with cylinder 0 because the mkfs/newfs commands know not
to use the cylinder 0. Thanks
Received on Tue Apr 24 2001 - 22:53:28 CDT
![]() |
![]() |