ls on snapshot subdirectory gives "Operation not supported"

All your general support questions for OpenZFS on OS X.

ls on snapshot subdirectory gives "Operation not supported"

Postby tangent » Tue Jul 25, 2017 12:23 am

It seems that OOO does not allow one to pull individual files out of a snapshot:

Simple test case:

Code: Select all
$ cd /Volumes/POOLNAME/.zfs/snapshot
$ ls
2017-06-30/ 2017-07-25/
$ cd 2017-06-30
$ ls
ls: .: Operation not supported

It also won't let me cd into a directory that I know is at the top of that snapshot.

This makes me wonder if it's safe to roll back to the snapshot, if OOO itself cannot navigate the snapshot tree.
tangent
 
Posts: 47
Joined: Tue Nov 11, 2014 6:58 pm

Re: ls on snapshot subdirectory gives "Operation not support

Postby lundman » Tue Jul 25, 2017 9:36 pm

We do not do automatic-mounting of snapshots, due to limitations in the kernel. Did you issue "zfs mount POOLNAME/2017-06-30" before hand?
User avatar
lundman
 
Posts: 1337
Joined: Thu Mar 06, 2014 2:05 pm
Location: Tokyo, Japan

Re: ls on snapshot subdirectory gives "Operation not support

Postby tangent » Wed Jul 26, 2017 10:56 am

That solved it, except of course that you need to specify it as POOLNAME@SNAPNAME.

Maybe this thread is enough, but this needs to be documented somewhere, as all the tutorials online that mention this feature of ZFS just assume you can cd into that directory.
tangent
 
Posts: 47
Joined: Tue Nov 11, 2014 6:58 pm



Return to General Help

Who is online

Users browsing this forum: No registered users and 19 guests