You can remove them by using fmthard(1M) instead of format(1M). This
allows full access to all 16 slices on x86.
Actually, if you want an exact copy of the VToC, grab the output of
prtvtoc(1M) from one disk, and send it into fmthard -s on the other
disk. (I've not tried this where EFI labels are involved though.)
--
Andrew Gabriel
Jeff Victor wrote:
I am trying to mirror an existing zpool on OpenSolaris 2009.06. I
think I need to delete two alternate cylinders...
The existing disk in the pool (c7d0s0):
Part Tag Flag Cylinders Size Blocks
0 root wm 1 - 19453 149.02GB (19453/0/0)
312512445
1 unassigned wm 0 0
(0/0/0) 0
2 backup wu 0 - 19453 149.03GB (19454/0/0)
312528510
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
8 boot wu 0 - 0 7.84MB (1/0/0)
16065
9 unassigned wm 0 0
(0/0/0) 0
The new disk, which was a zpool before I destroyed that pool:
Part Tag Flag Cylinders Size Blocks
0 unassigned wm 0 0
(0/0/0) 0
1 unassigned wm 0 0
(0/0/0) 0
2 backup wu 0 - 19453 149.03GB (19454/0/0)
312528510
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
8 boot wu 0 - 0 7.84MB (1/0/0)
16065
9 alternates wm 1 - 2 15.69MB (2/0/0)
32130
Format won't let me remove the two cylinders from slice 9:
partition> 0
Part Tag Flag Cylinders Size Blocks
0 unassigned wm 0 0
(0/0/0) 0
Enter partition id tag[unassigned]: root
Enter partition permission flags[wm]:
Enter new starting cyl[3]: 1
Enter partition size[0b, 0c, 1e, 0.00mb, 0.00gb]: 19453c
Warning: Partition overlaps alternates partition. Specify different
start cyl.
partition> 9
`9' is not expected.
How can I delete the alternate cylinders, or otherwise mirror c7d1 to
c7d0? Or can I safely use c7d0s2?
Thanks,
--JeffV
_______________________________________________
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss
_______________________________________________
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss