Ok, here we go:
I) System setup
- Macbook Pro retina 2012 16GB RAM
- Usually connected is a Pegasus R8 (via Thunderbolt) with native RAID6 and HFS+, usually having constant but low activity
- Then from time to time I connect (via Thunderbolt) a Pegasus R6 with 6 x 8TB and a ZPOOL configuration like this:
- Code: Select all
 Fri May 22 11:40:28 CEST 2015
  pool: zfsraid
 state: ONLINE
  scan: resilvered 116K in 0h0m with 0 errors on Fri May 22 11:40:20 2015
config:
    NAME        STATE     READ WRITE CKSUM
    zfsraid     ONLINE       0     0     0   
      raidz2-0  ONLINE       0     0     0   
        disk9   ONLINE       0     0     0   
        disk2   ONLINE       0     0     0   
        disk7   ONLINE       0     0     0   
        disk6   ONLINE       0     0     0   
        disk10  ONLINE       0     0     0   
        disk8   ONLINE       0     0     0   
errors: No known data errors
- no duplication, atime switched off, 4k blocksize set, no compression, UTF-8, formD as character normalization
- I have two filesystems
1. 
zfsraid configured as specified above
2. 
zfsraid/logs with pretty much the same configuration, only difference is 
compression being switched on- Usually, there is one other user logged in to the same machine locally (with GUI session) but if I remember correctly, the problem persisted even before I used to have that.
II) When I try to export the pool after having used the volume for a bit (played videos from there, moved files/folders around, etc.), then it could so far always unmount 
/Volumes/zfsraid/logs, but sometimes fails to unmount 
/Volumes/zfsraid, even if 
lsof does not show any processes accessing the volume (but I experienced that with other non-ZFS volumes, too. So I don't think this is an issue that you can fix).
Most of the times, the unmounting of 
/Volumes/zfsraid also succeeds, but the process does not return to the console, and I can wait for the "export successful" message literally forever (I have waited a couple of days one time, until I disconnected and turned the case off the hard way). In those cases, I usually close all my programs and processes and try a clean shutdown/reboot, which most often succeeds, sometimes in the past not, in which case I turned off the computer via the Power button. After the reboot (and given a few moments), the volumes are mounted without importing them (so they still are imported from the last session(?)). Often with much activity on the drives of the zpool. I usually do the export, after the drive activity comes to a hold (not having created any activity on the drives myself since the reboot). These times, the exports are usually successful.
Cheers
rattlehead