Sysadmin > SolarIs > CreateZFSofAnExistingDirectory

Proper way to create a zfs off an existing directory

Move the directory out of the way

mv /usr/local /usr/local.backup

Create dataset

zfs create zroot/usr/local

bring back all data including acls and attributes

rsync -aAX /usr/local.backup/ /usr/local

The dash behind local.backup is important!