can't mount snapshots

Moderators: jhartley, MSR734, nola

can't mount snapshots

Post by jholland » Fri Nov 23, 2012 11:28 am

I can't mount snapshots. They act like they are mounting but the mounted dir is empty. If I clone a snapshot to a volume I can mount that.

It's great to have ZFS on OS X , just wondering why it is behaving this way.
jholland Offline


 
Posts: 5
Joined: Sun Nov 18, 2012 6:51 pm

Re: can't mount snapshots

Post by grahamperrin » Fri Nov 23, 2012 1:10 pm

In what context is the emptiness?

If you take the hint in the topic below, is there emptiness?

the snapshot browsing example in the knowledge base
grahamperrin Offline

User avatar
 
Posts: 1596
Joined: Fri Sep 14, 2012 10:21 pm
Location: Brighton and Hove, United Kingdom

Re: can't mount snapshots

Post by jholland » Sun Nov 25, 2012 5:56 pm

that doesn't seem to solve it, if I do this I see nothing:

Johns-MacBook-Pro:~ jholland$ ls /Volumes/ZFS/Dropbox/.zfs/snapshot/2012-11-24-180001/.
Johns-MacBook-Pro:~ jholland$

If I clone the snapshot I can browse files on the clone

Johns-MacBook-Pro:~ jholland$ sudo zfs clone ZFS/Dropbox@2012-11-24-180001 ZFS/myclone
Johns-MacBook-Pro:~ jholland$ ls /Volumes/ZFS/myclone/
4clojure.clj id_rsa
4clojure.clj~ id_rsa.pub
Books interrupt.h
Camera Uploads ........
jholland Offline


 
Posts: 5
Joined: Sun Nov 18, 2012 6:51 pm

Re: can't mount snapshots

Post by grahamperrin » Sun Nov 25, 2012 7:01 pm

Outputs please from six commands:

Code: Select all
sw_vers
kextstat | grep zfs
zpool upgrade
zfs upgrade
zpool get all ZFS
zfs get all ZFS/Dropbox


(Use the full editor to paste as code.) Thanks.
grahamperrin Offline

User avatar
 
Posts: 1596
Joined: Fri Sep 14, 2012 10:21 pm
Location: Brighton and Hove, United Kingdom

Re: can't mount snapshots

Post by jholland » Mon Nov 26, 2012 7:58 pm

Code: Select all
Johns-MacBook-Pro:~ jholland$ sw_vers
ProductName:   Mac OS X
ProductVersion:   10.8.2
BuildVersion:   12C60
Johns-MacBook-Pro:~ jholland$ kextstat | grep zfs
  109    1 0xffffff7f807a5000 0x19b000   0x19b000   com.getgreenbytes.filesystem.zfs (2012.09.23) <13 7 5 4 3 1>
  110    0 0xffffff7f80942000 0x6000     0x6000     com.getgreenbytes.driver.zfs (2012.09.14) <109 13 7 5 4 3 1>
Johns-MacBook-Pro:~ jholland$ zpool upgrade
This system is currently running ZFS pool version 28.

All pools are formatted using this version.
Johns-MacBook-Pro:~ jholland$ zfs upgrade
This system is currently running ZFS filesystem version 5.

All filesystems are formatted with the current version.
Johns-MacBook-Pro:~ jholland$ zpool get all ZFS
NAME  PROPERTY       VALUE      SOURCE
ZFS   size           138Gi      -
ZFS   capacity       45%        -
ZFS   altroot        -          default
ZFS   health         ONLINE     -
ZFS   guid           2944284659971417233  default
ZFS   version        28         default
ZFS   failmode       continue   default
ZFS   listsnapshots  off        default
ZFS   autoexpand     off        default
ZFS   free           75.4Gi     -
ZFS   allocated      62.6Gi     -
ZFS   readonly       off        -
ZFS   ashift         0          default
Johns-MacBook-Pro:~ jholland$ zfs get all ZFS/Dropbox
NAME         PROPERTY              VALUE                  SOURCE
ZFS/Dropbox  type                  filesystem             -
ZFS/Dropbox  creation              Wed Nov 21 16:59 2012  -
ZFS/Dropbox  used                  62.6Gi                 -
ZFS/Dropbox  available             73.3Gi                 -
ZFS/Dropbox  referenced            62.6Gi                 -
ZFS/Dropbox  compressratio         1.00x                  -
ZFS/Dropbox  mounted               yes                    -
ZFS/Dropbox  quota                 none                   default
ZFS/Dropbox  reservation           none                   default
ZFS/Dropbox  recordsize            128Ki                  default
ZFS/Dropbox  mountpoint            /Volumes/ZFS/Dropbox   default
ZFS/Dropbox  checksum              on                     default
ZFS/Dropbox  compression           off                    default
ZFS/Dropbox  atime                 on                     default
ZFS/Dropbox  devices               on                     default
ZFS/Dropbox  exec                  on                     default
ZFS/Dropbox  setuid                on                     default
ZFS/Dropbox  readonly              off                    default
ZFS/Dropbox  snapdir               visible                local
ZFS/Dropbox  canmount              on                     default
ZFS/Dropbox  copies                1                      default
ZFS/Dropbox  version               5                      -
ZFS/Dropbox  utf8only              on                     -
ZFS/Dropbox  normalization         formD                  -
ZFS/Dropbox  casesensitivity       sensitive              -
ZFS/Dropbox  refquota              none                   default
ZFS/Dropbox  refreservation        none                   default
ZFS/Dropbox  primarycache          all                    default
ZFS/Dropbox  secondarycache        all                    default
ZFS/Dropbox  usedbysnapshots       1.95Mi                 -
ZFS/Dropbox  usedbydataset         62.6Gi                 -
ZFS/Dropbox  usedbychildren        0                      -
ZFS/Dropbox  usedbyrefreservation  0                      -
ZFS/Dropbox  logbias               latency                default
ZFS/Dropbox  sync                  standard               default
Johns-MacBook-Pro:~ jholland$
jholland Offline


 
Posts: 5
Joined: Sun Nov 18, 2012 6:51 pm

Re: can't mount snapshots

Post by grahamperrin » Mon Nov 26, 2012 9:22 pm

Thanks. Assuming the snapshot 2012-11-24-180001 still exists, please try the following:

  1. in Terminal
  2. open /Volumes/ZFS/Dropbox/.zfs/snapshot/2012-11-24-180001
  3. after the Finder window appears, wait (do nothing)
  4. after the Finder window disappears (after the mount times out) then again in Terminal
  5. open /Volumes/ZFS/Dropbox/.zfs/snapshot/2012-11-24-180001

In Finder, is the second mount of the snapshot any more effective than the first?
grahamperrin Offline

User avatar
 
Posts: 1596
Joined: Fri Sep 14, 2012 10:21 pm
Location: Brighton and Hove, United Kingdom

Re: can't mount snapshots

Post by jholland » Tue Nov 27, 2012 5:56 pm

Actually, if I access them via the .zfs folder they work fine. I was trying to access them via ZFS/Dropbox@2012-11-24-180001 type syntax from the command prompt or the finder go option, which does not seem to work. I think the @ syntax works on bsd and I expect on solaris.
jholland Offline


 
Posts: 5
Joined: Sun Nov 18, 2012 6:51 pm

Re: can't mount snapshots

Post by grahamperrin » Tue Nov 27, 2012 6:36 pm

jholland wrote:… via the .zfs folder they work fine. … 


Are we sure of that working consistently? Recall:

Code: Select all
Johns-MacBook-Pro:~ jholland$ ls /Volumes/ZFS/Dropbox/.zfs/snapshot/2012-11-24-180001/.
Johns-MacBook-Pro:~ jholland$
grahamperrin Offline

User avatar
 
Posts: 1596
Joined: Fri Sep 14, 2012 10:21 pm
Location: Brighton and Hove, United Kingdom

Re: can't mount snapshots

Post by jholland » Wed Nov 28, 2012 7:09 pm

You're right -
I guess I'm going to give up on understanding this.
jholland Offline


 
Posts: 5
Joined: Sun Nov 18, 2012 6:51 pm

bookmark, references and future review

Post by grahamperrin » Wed Nov 28, 2012 10:16 pm

I have this bookmarked for future review.

Tentatively I read this topic alongside at least:

grahamperrin Offline

User avatar
 
Posts: 1596
Joined: Fri Sep 14, 2012 10:21 pm
Location: Brighton and Hove, United Kingdom


Return to General Discussion

Who is online

Users browsing this forum: ilovezfs and 3 guests

cron