Jeff Victor
2009-Aug-20 23:48 UTC
[zfs-discuss] How to remove [alternate] cylinders from slice 9?
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
Jeff old mate I assume you used format -e? Have you tried swapping the label back to SMI and then back to EFI? Trevor 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 www.eagle.co.nz This email is confidential and may be legally privileged. If received in error please destroy and immediately notify us. _______________________________________________ zfs-discuss mailing list zfs-discuss@opensolaris.org http://mail.opensolaris.org/mailman/listinfo/zfs-discuss
Jeff Victor
2009-Aug-21 14:05 UTC
[zfs-discuss] How to remove [alternate] cylinders from slice 9?
Thanks Trevor. Good to hear from you. I needed to use ''-e'' to move forward. I think I was confused because these sources seem to disagree on SMI vs. EFI labels for ZFS: ZFS always uses EFI: * "ZFS formats the disk using an EFI label to contain a single, large slice" - no mention of any exceptions - http://docs.sun.com/app/docs/doc/817-2271/gazdp?l=en&a=view Cannot boot from EFI labeled disk: * http://docs.sun.com/app/docs/doc/819-2723/disksconcepts-17?l=en&a=view ZFS disk "*cannot* have an EFI label" (perhaps only for rpools?) * http://mail.opensolaris.org/pipermail/zfs-code/2009-May/000842.html I think I understand: * ZFS uses EFI labels except for boot disks, which must use an SMI label ("Solaris2" in fdisk output). * The docs need to point out the exception at http://docs.sun.com/app/docs/doc/817-2271/gazdp?l=en&a=view . Trevor Pretty wrote:> Jeff old mate I assume you used format -e? > > Have you tried swapping the label back to SMI and then back to EFI? > > Trevor > > 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?
Andrew Gabriel
2009-Aug-21 14:23 UTC
[zfs-discuss] How to remove [alternate] cylinders from slice 9?
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 at opensolaris.org > http://mail.opensolaris.org/mailman/listinfo/zfs-discuss