cannot label 'c0t5000CCA0251EF65Cd0': EFI labeled devices are not supported on root pools

I'm running Solaris 10 u9. I just applied the April quarterly patch cluster. I'm trying to mirror the boot disk which is using zfs, something I've done before w/o problems prior to the patch cluster install.

disk=c0t5000CCA0251D9514d0;mirrordisk=c0t5000CCA0251EF65Cd0;echo $disk $mirrordisk
  c0t5000CCA0251D9514d0 c0t5000CCA0251EF65Cd0
   
  prtvtoc /dev/dsk/${disk}s2 > /tmp/disk-partitionTbl
  fmthard -s /tmp/disk-partitionTbl /dev/rdsk/${mirrordisk}s2
  fmthard:  New volume table of contents now in place.
   
  zpool attach -f rpool $disk $mirrordisk
  cannot label 'c0t5000CCA0251EF65Cd0': EFI labeled devices are not supported on root pools.
   
  boot
  format c0t5000CCA0251D9514d0
   
  Part      Tag    Flag     Cylinders         Size            Blocks
    0       root    wm       0 - 46872      279.38GB    (46873/0/0) 585912500
    1 unassigned    wm       0                0         (0/0/0)             0
    2     backup    wm       0 - 46872      279.38GB    (46873/0/0) 585912500
    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
   
   
  format c0t5000CCA0251EF65Cd0
   
  Part      Tag    Flag     Cylinders         Size            Blocks
    0       root    wm       0 - 46872      279.38GB    (46873/0/0) 585912500
    1 unassigned    wu       0                0         (0/0/0)             0
    2     backup    wm       0 - 46872      279.38GB    (46873/0/0) 585912500
    3 unassigned    wu       0                0         (0/0/0)             0
    4 unassigned    wu       0                0         (0/0/0)             0
    5 unassigned    wu       0                0         (0/0/0)             0
    6 unassigned    wu       0                0         (0/0/0)             0
    7 unassigned    wu       0                0         (0/0/0)             0
   
  A disk that is intended for a ZFS root pool must be created with an SMI label, not an EFI label. 
  You can relabel a disk with an SMI label by using the format -e command.
   
  format -e c0t5000CCA0251EF65Cd0
  selecting c0t5000CCA0251EF65Cd0: solaris
  [disk formatted]
   
   
  FORMAT MENU:
          disk       - select a disk
          type       - select (define) a disk type
          partition  - select (define) a partition table
          current    - describe the current disk
          format     - format and analyze the disk
          repair     - repair a defective sector
          label      - write label to the disk
          analyze    - surface analysis
          defect     - defect list management
          backup     - search for backup labels
          verify     - read and display labels
          save       - save new disk/partition definitions
          inquiry    - show vendor, product and revision
          scsi       - independent SCSI mode selects
          cache      - enable, disable or query SCSI disk cache
          volname    - set 8-character volume name
          !<cmd>     - execute <cmd>, then return
          quit
  format> label
  [0] SMI Label
  [1] EFI Label
  Specify Label type[0]: 0
  Ready to label disk, continue? Y
  Quit
   
  Part      Tag    Flag     Cylinders         Size            Blocks
    0       root    wm       0 - 46872      279.38GB    (46873/0/0) 585912500
    1 unassigned    wu       0                0         (0/0/0)             0
    2     backup    wm       0 - 46872      279.38GB    (46873/0/0) 585912500
    3 unassigned    wu       0                0         (0/0/0)             0
    4 unassigned    wu       0                0         (0/0/0)             0
    5 unassigned    wu       0                0         (0/0/0)             0
    6 unassigned    wu       0                0         (0/0/0)             0
    7 unassigned    wu       0                0         (0/0/0)             0
  It looks the same.
   
  zpool attach -f rpool c0t5000CCA0251D9514d0 c0t5000CCA0251EF65Cd0
  cannot label 'c0t5000CCA0251EF65Cd0': EFI labeled devices are not supported on root pools.
   
  prtvtoc /dev/dsk/${mirrordisk}s2
  * /dev/dsk/c0t5000CCA0251EF65Cd0s2 (volume "solaris") partition map
  *
  * Dimensions:
  *     512 bytes/sector
  *     625 sectors/track
  *      20 tracks/cylinder
  *   12500 sectors/cylinder
  *   46875 cylinders
  *   46873 accessible cylinders
  *
  * Flags:
  *   1: unmountable
  *  10: read-only
  *
  *                          First     Sector    Last
  * Partition  Tag  Flags    Sector     Count    Sector  Mount Directory
         0      2    00          0 585912500 585912499
         2      5    00          0 585912500 585912499
   
  prtvtoc /dev/dsk/c0t5000CCA02522DFB0d0s2
  * /dev/dsk/c0t5000CCA02522DFB0d0s2 (volume "solaris") partition map
  *
  * Dimensions:
  *     512 bytes/sector
  *     625 sectors/track
  *      20 tracks/cylinder
  *   12500 sectors/cylinder
  *   46875 cylinders
  *   46873 accessible cylinders
  *
  * Flags:
  *   1: unmountable
  *  10: read-only
  *
  *                          First     Sector    Last
  * Partition  Tag  Flags    Sector     Count    Sector  Mount Directory
         0      2    00          0    262500    262499
         1      3    01     262500    262500    524999
         2      5    01          0 585912500 585912499
         6      4    00     525000 585387500 585912499
   
  prtvtoc /dev/dsk/${disk}s2
  * /dev/dsk/c0t5000CCA0251D9514d0s2 (volume "solaris") partition map
  *
  * Dimensions:
  *     512 bytes/sector
  *     625 sectors/track
  *      20 tracks/cylinder
  *   12500 sectors/cylinder
  *   46875 cylinders
  *   46873 accessible cylinders
  *
  * Flags:
  *   1: unmountable
  *  10: read-only
  *
  *                          First     Sector    Last
  * Partition  Tag  Flags    Sector     Count    Sector  Mount Directory
         0      2    00          0 585912500 585912499
         2      5    00          0 585912500 585912499

What gives?

Can you post zpool status rpool ?

zpool status rpool
  pool: rpool
 state: ONLINE
 scan: none requested
config:

        NAME                       STATE     READ WRITE CKSUM
        rpool                      ONLINE       0     0     0
          c0t5000CCA0251D9514d0s0  ONLINE       0     0     0

errors: No known data errors

Try:

zpool attach -f rpool c0t5000CCA0251D9514d0s0 c0t5000CCA0251EF65Cd0s0
zpool attach -f rpool c0t5000CCA0251D9514d0 c0t5000CCA0251EF65Cd0
cannot label 'c0t5000CCA0251EF65Cd0': EFI labeled devices are not supported on root pools.

try to "destroy" the disk label with dd... something like

dd if=/dev/zero of=$HARDDRIVE count=16

after that try to relabel the disk with format -e and run the zpool attach command again...

@TKD, you are using the wrong device name (without slice 0).

As bartus11 already suggested, use c0t5000CCA0251D9514d0s0

You are indeed correct, I was missing s0 on both devices, worked w/o issue this time! Thanks guys.

prtvtoc /dev/rdsk/${disk}s2 | fmthard -s - /dev/rdsk/${mirrordisk}s2
fmthard:  New volume table of contents now in place.

zpool attach -f rpool ${disk}s0 ${mirrordisk}s0