So, I came back to this project of replication to a dataset with ZFS native encryption. I started over and followed tangles' advice from the other thread to create my main pool by removing all partitions (using gparted on a linux box, grrr), zeroing out the first 500 MB of raw data on the disks, and then giving the entire disks to zpool to create a mirror (the external drive housing is an OWC Mercury ELITE Pro Dual enclosure holding two 4TB disks, connected via ESATA). Zfs version is 1.7.2, operating system is El Capitan 10.11.6. Pool creation was successful, as was the creation of an encrypted dataset which I called ENCRYPTED. I set the properties of compression on and atime off. I then did a ZFS send of my earliest snapshot of my SHOME dataset in pool SANDISKDATA, to ELITE/ENCRYPTED/SHOME_BACKUP. That seemed to work; the disks got busy and Activity Monitor showed 150 MB/sec to 300 MB/sec being read and written.
Edit: I should add that although I'm running 1.7.2 zfs, the source pool on SANDISKDATA has not been upgraded from 1.5.2, in case that matters.
When I came back to the computer a few hours later the disk activity had stopped, and it gave me an error saying that it had been unable to mount the new dataset. When I tried to get some information about the dataset using zfs list the command hung; in fact, the whole computer was wedged: the mouse would move around, and it would respond initially to keypresses, but eventually both the Terminal and Activity Monitor went into permanent beachball status and I had to shut down the system hard.
This morning I restarted the system, and it appears that there is a dataset SHOME_BACKUP as I intended, with an appropriate amount of referred data, but it won't mount. I can unlock and mount the encrypted parent dataset ENCRYPTED, but not the child dataset SHOME_BACKUP. Am I missing something here, or should I be able to do that?
Edit 2: when I double click on the ENCRYPTED disk icon on the desktop it brings up a Finder window with 0 items (empty).
- Code: Select all
sh-3.2# zpool import ELITE
sh-3.2# zpool status ELITE
pool: ELITE
state: ONLINE
scan: none requested
config:
NAME STATE READ WRITE CKSUM
ELITE ONLINE 0 0 0
mirror-0 ONLINE 0 0 0
media-242BC369-FCE9-FE46-ABF0-0A642C436300 ONLINE 0 0 0
media-69695A64-B89B-DA4E-8C59-94537E25C1F6 ONLINE 0 0 0
errors: No known data errors
sh-3.2# zfs mount -l ELITE/ENCRYPTED
Enter passphrase for 'ELITE/ENCRYPTED':
sh-3.2# zfs mount -l ELITE/ENCRYPTED/SHOME_BACKUP
cannot mount '/Volumes/ELITE/ENCRYPTED/SHOME_BACKUP': failed to create mountpoint
sh-3.2# zfs list -r ELITE
NAME USED AVAIL REFER MOUNTPOINT
ELITE 369G 3.15T 1.08M /Volumes/ELITE
ELITE/ENCRYPTED 369G 3.15T 740K /Volumes/ELITE/ENCRYPTED
ELITE/ENCRYPTED/SHOME_BACKUP 369G 3.15T 369G /Volumes/ELITE/ENCRYPTED/SHOME_BACKUP
sh-3.2# zfs list -t snapshot -r ELITE
NAME USED AVAIL REFER MOUNTPOINT
ELITE/ENCRYPTED/SHOME_BACKUP@2013_12_user_data_SL 0 - 369G /Volumes/ELITE/ENCRYPTED/SHOME_BACKUP/.zfs/snapshot/2013_12_user_data_SL
sh-3.2# zfs get mountpoint ELITE/ENCRYPTED/SHOME_BACKUP
NAME PROPERTY VALUE SOURCE
ELITE/ENCRYPTED/SHOME_BACKUP mountpoint /Volumes/ELITE/ENCRYPTED/SHOME_BACKUP default
sh-3.2#
Thanks for your advice!