Reshekel Shedwitz wrote:
r...@nexenta:~# zpool set bootfs= tank
cannot set property for 'tank': property 'bootfs' not supported on EFI labeled devices

r...@nexenta:~# zpool get bootfs tank
NAME  PROPERTY  VALUE   SOURCE
tank  bootfs    tank    local

Could this be related to the way FreeBSD's zfs partitioned my disk? I thought ZFS used EFI by default though (except for boot pools). 
  

Looks like this bit of code to me:
http://src.opensolaris.org/source/xref/onnv/onnv-gate/usr/src/lib/libzfs/common/libzfs_pool.c#473

    473 			/*
    474 			 * bootfs property cannot be set on a disk which has
    475 			 * been EFI labeled.
    476 			 */
    477 			if (pool_uses_efi(nvroot)) {
    478 				zfs_error_aux(hdl, dgettext(TEXT_DOMAIN,
    479 				    "property '%s' not supported on "
    480 				    "EFI labeled devices"), propname);
    481 				(void) zfs_error(hdl, EZFS_POOL_NOTSUP, errbuf);
    482 				zpool_close(zhp);
    483 				goto error;
    484 			}
    485 			zpool_close(zhp);
    486 			break;

It's not checking if you're clearing the property before bailing out with the error about setting it.
A few lines above, another test (for a valid bootfs name) does get bypassed in the case of clearing the property.

Don't know if that alone would fix it.

--
Andrew Gabriel | Solaris Systems Architect
Email: andrew.gabr...@oracle.com
Mobile: +44 7720 598213
Oracle Pre-Sales
Guillemont Park | Minley Road | Camberley | GU17 9QG | United Kingdom


ORACLE Corporation UK Ltd is a company incorporated in England & Wales | Company Reg. No. 1782505 | Reg. office: Oracle Parkway, Thames Valley Park, Reading RG6 1RA
Green Oracle Oracle is committed to developing practices and products that help protect the environment
_______________________________________________
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss

Reply via email to