Restoring a normal VTOC after zfs has been on the disk

From: Markus Mayer (mymaillists@gmx.at)
Date: Tue Aug 14 2007 - 06:29:43 EDT


Hi all,

I have a system that I need to reinstall and the disks in the machine were
previously used with full disk zfs partitions. Now I need to restore a
normal VTOC so the installer can install Solaris on the disk, however this
seems to not be possible. A disk format didn't change anything, and various
attempts with fdisk return only the error message "Cannot get disk label
geometry".

Does anyone know how I can restore the disk to a normal partition table?

regards
Markus

What I have now:
partition>
Current partition table (original):
Total disk sectors available: 286722911 + 16384 (reserved sectors)

Part Tag Flag First Sector Size Last Sector
  0 usr wm 34 136.72GB 286722911
  1 unassigned wm 0 0 0
  2 unassigned wm 0 0 0
  3 unassigned wm 0 0 0
  4 unassigned wm 0 0 0
  5 unassigned wm 0 0 0
  6 unassigned wm 0 0 0
  8 reserved wm 286722912 8.00MB 286739295

What I want to get back to is something like this:
partition> Current partition table (original):
Total disk cylinders available: 14087 + 2 (reserved cylinders)

Part Tag Flag Cylinders Size Blocks
  0 root wm 825 - 1855 10.01GB (1031/0/0) 20982912
  1 swap wu 0 - 824 8.01GB (825/0/0) 16790400
  2 backup wm 0 - 14086 136.71GB (14087/0/0) 286698624
  3 unassigned wm 1864 - 1928 645.94MB (65/0/0) 1322880
  4 unassigned wm 1929 - 2032 1.01GB (104/0/0) 2116608
  5 unassigned wm 2033 - 14086 116.98GB (12054/0/0) 245323008
  6 unassigned wm 1860 - 1863 39.75MB (4/0/0) 81408
  7 unassigned wm 1856 - 1859 39.75MB (4/0/0) 81408
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers



This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 23:42:12 EDT