help with snapshots

This forum is to find answers to problems you may be having with ZEVO Community Edition.

Moderators: jhartley, MSR734, nola

help with snapshots

Post by Shaman » Fri Dec 21, 2012 11:46 pm

hi, I've created a snapshot with


zfs snapshot mypool@friday

however, the resulting .zfs/snapshot/friday doesn't contain any files even though it shows as consuming space if I use zfs list -t snapshot. What am I missing? The snapshot dir is empty.
Shaman Offline


 
Posts: 32
Joined: Tue Sep 18, 2012 7:57 pm

More details please

Post by grahamperrin » Sat Dec 22, 2012 12:05 am

How do you view the snapshot? In Finder, Terminal …?
grahamperrin Offline

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

Re: help with snapshots

Post by Shaman » Sat Dec 22, 2012 12:09 am

terminal ...

ls ~/.zfs/snapshot/friday
Shaman Offline


 
Posts: 32
Joined: Tue Sep 18, 2012 7:57 pm

Re: help with snapshots

Post by Shaman » Sat Dec 22, 2012 12:10 am

Code: Select all
[~]$ zfs list -t snapshot
NAME                                              USED   AVAIL   REFER  MOUNTPOINT
mypool@friday                                   6.01Mi       -  60.6Gi  -
Shaman Offline


 
Posts: 32
Joined: Tue Sep 18, 2012 7:57 pm

Re: help with snapshots

Post by Shaman » Sat Dec 22, 2012 12:19 am

I found this: http://serverfault.com/questions/398637 ... ries-empty

but the solution isn't relevant to me
Shaman Offline


 
Posts: 32
Joined: Tue Sep 18, 2012 7:57 pm

Re: help with snapshots

Post by Shaman » Sat Dec 22, 2012 12:47 am

been trying to figure it out. Then I noticed files in one of the snapshot folders

It's also the only one with permissions of me being the owner (daniel). it's running in a cronjob so I'm unsure why one got different permissions.

Code: Select all
[~/.zfs/snapshot]$ ls -l
total 20K
dr-xr-xr-x  2 root   admin   2 Dec 16 15:51 zfs-auto-snap_frequent-2012-12-21-21h43
drwxr-x--- 94 daniel staff 199 Dec 21 21:43 zfs-auto-snap_frequent-2012-12-21-21h44
dr-xr-xr-x  2 root   admin   2 Dec 16 15:51 zfs-auto-snap_frequent-2012-12-21-21h45
dr-xr-xr-x  2 root   admin   2 Dec 16 15:51 zfs-auto-snap_frequent-2012-12-21-21h46
Shaman Offline


 
Posts: 32
Joined: Tue Sep 18, 2012 7:57 pm

Re: help with snapshots

Post by Shaman » Sat Dec 22, 2012 12:50 am

doing a cd into any of the other directories as root and then doing a ls didn't help showing files in any of the other directories.
Shaman Offline


 
Posts: 32
Joined: Tue Sep 18, 2012 7:57 pm

Re: help with snapshots

Post by Shaman » Sat Dec 22, 2012 1:34 am

I see a lot of errors in the console

(the pool is really named daniel, not mypool)

Code: Select all
12/21/12 10:29:59.000 PM kernel[0]: zfsdev_ioctl: function error 45 on command 57
12/21/12 10:29:59.000 PM kernel[0]: zfsdev_ioctl: function error 45 on command 57
12/21/12 10:29:59.000 PM kernel[0]: zfsdev_ioctl: function error 45 on command 57
12/21/12 10:29:59.000 PM kernel[0]: zfsdev_ioctl: function error 45 on command 57
12/21/12 10:29:59.000 PM kernel[0]: zfsdev_ioctl: function error 45 on command 57
12/21/12 10:30:01.000 PM kernel[0]: zfs_secpolicy_write_perms: daniel error 89
12/21/12 10:30:01.000 PM kernel[0]: zfs_secpolicy_write_perms: daniel error 89
12/21/12 10:30:01.000 PM kernel[0]: zfs_secpolicy_write_perms: daniel@zfs-auto-snap_frequent-2012-12-21-22h11 error 89
12/21/12 10:30:01.000 PM kernel[0]: zfs_secpolicy_write_perms: daniel@zfs-auto-snap_frequent-2012-12-21-22h11 error 89
Shaman Offline


 
Posts: 32
Joined: Tue Sep 18, 2012 7:57 pm

Re: help with snapshots

Post by Shaman » Sat Dec 22, 2012 1:38 am

some investigating reveals

Code: Select all
Error 89 (ENOSYS) is returned by (f)acl_get if the file system does not
support ACLs.  Again, truss or dtrace should show which function is
being called and the fie.




So I guess now... why can't ZFS set the file permissions appropriately? Help is appreciated. I'm stumped now.
Shaman Offline


 
Posts: 32
Joined: Tue Sep 18, 2012 7:57 pm

Re: help with snapshots

Post by Shaman » Sat Dec 22, 2012 2:11 am

I did figure out a workaround for now. I can clone the snapshot and access the clone. So the snapshot data is there.
Shaman Offline


 
Posts: 32
Joined: Tue Sep 18, 2012 7:57 pm

Next

Return to Troubleshooting

Who is online

Users browsing this forum: bileyqrkq, ilovezfs and 0 guests

cron