Trouble browsing datasets in Finder on OS X 10.11 El Capitan

All your general support questions for OpenZFS on OS X.

Trouble browsing datasets in Finder on OS X 10.11 El Capitan

Postby khaaan » Sun Aug 02, 2015 1:16 pm

I'm having trouble browsing a new dataset in Finder, but I can use it fine from within Terminal. Can anyone tell me what I"m doing wrong? I'm new to ZFS so I'm probably missing something basic. Here are some commands to show the current state of my ZFS setup:

Code: Select all
$ zfs list
NAME           USED  AVAIL  REFER  MOUNTPOINT
locker        1.89T  3.46T  1.89T  /Volumes/locker
locker/foo     424K  3.46T   424K  /Volumes/locker/foo

$ zpool list
NAME     SIZE  ALLOC   FREE  EXPANDSZ   FRAG    CAP  DEDUP  HEALTH  ALTROOT
locker  5.44T  1.89T  3.54T         -    12%    34%  1.00x  ONLINE  -

$ zpool status
  pool: locker
 state: ONLINE
  scan: resilvered 30.0M in 0h0m with 0 errors on Sun Aug  2 02:07:05 2015
config:

   NAME                                            STATE     READ WRITE CKSUM
   locker                                          ONLINE       0     0     0
     mirror-0                                      ONLINE       0     0     0
       disk7                                       ONLINE       0     0     0
       disk6                                       ONLINE       0     0     0
       media-3A2B8408-7872-4196-998D-601BB382F4EE  ONLINE       0     0     0


Note that in Finder, there's no eject icon next to "foo": Image

Also, foo doesn't show up when I run "ls /Volumes"; only "locker" does. (Is that expected?) If I browser to "locker" in Finder, it doesn't show "foo" in the contents, but "foo" DOES show up when I run "ls /Volumes/locker". If I click on "foo" in the left-hand finder pane, I get a dialog box that says:
"foo” can’t be opened because the original item can’t be found.


As I mentioned, I can cd to /Volumes/locker/foo in Terminal just fine, and read and write files from it. It's only Finder that's giving me trouble AFAICT.
khaaan
 
Posts: 3
Joined: Sat Aug 01, 2015 11:08 pm

Re: Trouble browsing datasets in Finder on OS X 10.11 El Cap

Postby khaaan » Sun Aug 02, 2015 6:34 pm

I had been using 1.3.1-r2. I uninstalled that (following https://openzfsonosx.org/wiki/Uninstall), then installed from source, and after that, the problem went away -- I could browse my datasets fine in Finder. Then I uninstalled that and installed the 1.3.2-RC1 Forum Build (https://openzfsonosx.org/forum/viewtopic.php?f=20&t=2262). I could still browse fine. Then I uninstalled that and re-installed 1.3.1-r2 again. I could still browse fine, so no specific cause of the problem has been identified.
khaaan
 
Posts: 3
Joined: Sat Aug 01, 2015 11:08 pm

Re: Trouble browsing datasets in Finder on OS X 10.11 El Cap

Postby Wurlitzer » Tue Jan 19, 2016 10:44 am

I'm having this problem too - however, uninstalling and reinstalling like you did, was not a solution for me.
Has anyone an idea about that?
Wurlitzer
 
Posts: 3
Joined: Tue Jan 19, 2016 10:41 am

Re: Trouble browsing datasets in Finder on OS X 10.11 El Cap

Postby khaaan » Tue Jan 19, 2016 11:02 am

My problem turned out to be that the owner and permissions of my mount directory were incorrect before the mount command was executed. I think the problem was that the mount directory was owned by root, and it needed to be owned by me. I ended up temporarily mounting my dataset elsewhere while I fixed the permissions. That probably isn't required, but at least that reliably fixed the problem for me. Here's approximately what I did:

Code: Select all
mkdir /tmp/mount
zfs set mountpoint=/tmp/mount tank/foo  # this re-mounts it on /tmp/mount
chown khaaan /Volumes/tank/foo
chmod 700 /Volumes/tank/foo
zfs set mountpoint=/Volumes/tank/foo tank/foo


Interestingly, the dataset should browse fine while mounted in /tmp/mount.

If that fails take a close look at the permissions, extended attributes, and ACLs (if any) on /Volumes/tank with:
Code: Select all
ls -ldE@ /Volumes/tank


P.S. Thanks to ilovezfs for helping me debug this on IRC. The rather disorganized procedure above is mine (he would have a more elegant approach, I'm sure), but his questions about permissions helped me start looking in the right direction.
khaaan
 
Posts: 3
Joined: Sat Aug 01, 2015 11:08 pm

Re: Trouble browsing datasets in Finder on OS X 10.11 El Cap

Postby Wurlitzer » Tue Jan 19, 2016 12:06 pm

Thanks for your reply.
I tried doing your approach but I got no luck doing that.
In a desperate move, I backed up all the data on the zpool, and destroyed it. I recreated a new pool from scratch, and I can now browse it from Finder. I don't know what I did wrong the first time... :)

Code: Select all
$ sudo zpool destroy tank
$ sudo zpool create -f -o ashift=12 -O atime=off -O normalization=formD tank disk0s6
$ cd /Volumes
$ sudo chown -R wurlitzer:staff tank
$ sudo chmod -R 755 tank
Wurlitzer
 
Posts: 3
Joined: Tue Jan 19, 2016 10:41 am

Re: Trouble browsing datasets in Finder on OS X 10.11 El Cap

Postby Wurlitzer » Tue Jan 19, 2016 12:16 pm

OK, the reason why I couldn't browse the zpool in Finder was because I did
Code: Select all
$ chflags hidden "/Volumes/tank"
$ killall Finder
to make it disappear from the desktop.
You can hide hard disks from the desktop by unchecking a box in Finder, but zpools don't get hidden... Hence why I resorted to use "chflags hidden", but didn't notice it made the zpool unbrowsable in finder at the time.

To hide the zpool from the desktop, another option in Finder is to uncheck the box "External disks" as well as "Hard disks".
Wurlitzer
 
Posts: 3
Joined: Tue Jan 19, 2016 10:41 am


Return to General Help

Who is online

Users browsing this forum: Google [Bot] and 24 guests