label a slice on disk erorr

Hi there,

I am trying to do root volume mirroring on SunFire V210 server. I have two disks in it.First one is c1t0do and second one is c1t1do. Both disks already have partitions in them so I am deleting the partitions of second disk(c1t1do) using format command and selecting cylinder start 0 and size 0mb. When I do the same on partition 6 I could not able to label the partition 6 and its shows an error. Please help me . Thanks in advance.

partition> 6
Part      Tag    Flag     Cylinders        Size            Blocks
  6 unassigned    wm    4027 - 4047      104.34MB    (21/0/0) 213696

Enter partition id tag[unassigned]:
Enter partition permission flags[wm]:
Enter new starting cyl[4027]: 0
Enter partition size[213696b, 21c, 20e, 104.34mb, 0.10gb]: 0mb
partition> label
Ready to label disk, continue? y

Warning: error writing VTOC.
Warning: no backup labels
Label failed.

---------- Post updated at 11:01 PM ---------- Previous update was at 10:42 PM ----------

Solution : You should never make size of slice 2 0mb. :smiley:

I think that you should not delete the slice 2 (backup partition),

this partition normally contains all space on disk.

1 Like

just copy Vtoc to second disk:

prtvtoc /dev/rdsk/c1t0d0s2 | fmthard -s - /dev/rdsk/c1t1d0s2
1 Like