Hi,

I have this problem mainly on sun fir x4500 (thumper) but it is not a hardware 
issue ;) 

I try to change the disk label from efi to solaris2 with fdisk, the result is: 
"primary label corrupt; using backup" which is a sd problem. I found some hints 
in the solaris developer express2/07 notes:

sd Treats an fdisk Partitioned Disk as EFI Partitioned Disk (6355349)

If a GPT backup header is left on a disk after the disk is repartitioned to a 
format other than EFI or GPT, the Solaris OS might treat the disk as EFI or GPT 
labeled. This error occurs only if an EFI or GPT labeled disk is repartitioned 
with earlier releases of Solaris or by using a utility that is not EFI or GPT 
aware. If the GPT backup is used, the following warning is displayed:

primary label corrupt; using backup

Workaround 1: Clear the entire disk before you repartition the disk.

dd if=/dev/zero of=/dev/rdsk/c1t3d0

Workaround 2: Clear the GPT backup header that resides in the last block of the 
disk. Perform the following steps:

   1.Run the format command on the disk and specify the verify option. Note the 
values of the        sectors.
             #echo  "verify" | format /dev/rdsk/c1t3d0 | grep "^sectors"
              Reading the primary EFI GPT label failed.  Using backup label.
              Use the 'backup' command to restore the primary label.
              sectors = 143374743

   2.(Optional) Copy the contents of the specified block.
      dd if=/dev/rdsk/c1t3d0 of=/var/tmp/lastblock iseek=143374743

   3.Clear the specified block.
     dd if=/dev/zero of=/dev/rdsk/c1t3d0 oseek=143374743

The workarounds don't work for me though, 'dd' does not like the blocksize even 
if it is set to '1b' Is there any workaround or another way to safely delete 
all labels on the disk ?

Thanks for any hint...

cheers christoph
 
 
This message posted from opensolaris.org
_______________________________________________
opensolaris-discuss mailing list
opensolaris-discuss@opensolaris.org

Reply via email to