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
> -----Original Message-----
> From: Bandireddy, Madhu
> Sent: Tuesday, October 12, 1999 1:32 PM
> To: 'sun-managers@sunmanagers.ececs.uc.edu'
> Subject: Help: corrupt label - wrong magic number
>
> I am trying to create some raw slices for a Sybase on Solaris 2.7 on a
> 3500. I am using "format" to partition the disks. I create the partitions
> on the disks, label them,
> and then save them in /etc/format.dat. If I check with prtvtoc or with
> format the partitions look fine. Once I try to use them for raw slices in
> Sybase the system start writing errors in "syslog" such as
>
> Oct 12 12:53:14 cpmi unix: WARNING:
> /sbus@2,0/SUNW,socal@d,10000/sf@1,0/ssd@w21000020372badf9,0 (ssd4):
> Oct 12 12:53:14 cpmi corrupt label - wrong magic number
> Oct 12 12:53:14 cpmi
>
> and it fails to create the device.
>
> Next time I try to run format it says "Disk not labeled. Do you want to
> label now?"
>
> I do not get this error on disks that have a mounted filesystem. The
> moment I take out the mounted filesystem the disk loses it's format
> information again.
> I tried to put all these devices in /etc/vfstab as unmountable devices but
> even that does not help. I do not
>
> Here is the original partition table:
>
> Current partition table (original):
> Total disk cylinders available: 4924 + 2 (reserved cylinders)
>
> Part Tag Flag Cylinders Size Blocks
> 0 root wm 0 - 73 129.75MB (74/0/0) 265734
> 1 swap wu 74 - 147 129.75MB (74/0/0) 265734
> 2 backup wu 0 - 4923 8.43GB (4924/0/0) 17682084
> 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 usr wm 148 - 4923 8.18GB (4776/0/0) 17150616
> 7 unassigned wm 0 0 (0/0/0) 0
>
>
> Here is how I want it to be:
>
> Volume: c0t1d0s2
> Current partition table (c0t1d0s2):
> Total disk cylinders available: 4924 + 2 (reserved cylinders)
>
> Part Tag Flag Cylinders Size Blocks
> 0 alternates wu 0 - 1026 1.76GB (1027/0/0) 3687957
> 1 alternates wu 1027 - 2053 1.76GB (1027/0/0) 3687957
> 2 backup wu 0 - 4923 8.43GB (4924/0/0) 17682084
> 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
>
> I was thinking there should be entries for these devices in
> /etc/device.tab. But that file does not seem to have entries for devices
> that do not have filesystems on them
> ...for ex. there is no entry for swap device. Obviously I do not
> understand Solaris as well as I should.
>
> I honestly believe I am missing very fundamental. Can someone point me in
> the right direction.
>
> Thanks in advance.
> Madhu Bandireddy
>
>
>
>
>
This archive was generated by hypermail 2.1.2 : Fri Sep 28 2001 - 23:13:29 CDT