Suppose I have a storagepool: /storagepool And I have snapshots on it. Then I can access the snaps under /storagepool/.zfs/snapshots But is there any way to enable this within all the subdirs? For example, cd /storagepool/users/eharvey/some/foo/dir cd .zfs I don''t want to create a new filesystem for every subdir. I just want to automatically have the ".zfs" hidden directory available within all the existing subdirs, if that''s possible. Thanks.. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://mail.opensolaris.org/pipermail/zfs-discuss/attachments/20091002/31e30a11/attachment.html>
Edward If you look at the man page:- snapshot A read-only version of a file system or volume at a given point in time. It is specified as filesystem@name or volume@name. I think you''ve taken volume snapshots. I believe you need to make file system snapshots and each users/username a zfs file system. Lets play...... root@norton:~# zpool create -f storagepool c9t5d0 root@norton:~# zfs create storagepool/users root@norton:~# zfs create storagepool/users/bob root@norton:~# zfs create storagepool/users/dick root@norton:# cd /storagepool/users/bob root@norton:# touch foo root@norton:# zfs snapshot storagepool/users/bob@now root@norton# ls -alR /storagepool/users/bob/.zfs /storagepool/users/bob/.zfs: total 3 dr-xr-xr-x 4 root root 4 2009-10-05 12:09 . drwxr-xr-x 2 root root 3 2009-10-05 12:14 .. dr-xr-xr-x 2 root root 2 2009-10-05 12:09 shares dr-xr-xr-x 2 root root 2 2009-10-05 12:09 snapshot /storagepool/users/bob/.zfs/shares: total 2 dr-xr-xr-x 2 root root 2 2009-10-05 12:09 . dr-xr-xr-x 4 root root 4 2009-10-05 12:09 .. /storagepool/users/bob/.zfs/snapshot: total 2 dr-xr-xr-x 2 root root 2 2009-10-05 12:09 . dr-xr-xr-x 4 root root 4 2009-10-05 12:09 .. drwxr-xr-x 2 root root 3 2009-10-05 12:14 now /storagepool/users/bob/.zfs/snapshot/now: total 2 drwxr-xr-x 2 root root 3 2009-10-05 12:14 . dr-xr-xr-x 3 root root 3 2009-10-05 12:09 .. -rw-r--r-- 1 root root 0 2009-10-05 12:14 foo If you want a .zfs in /storagepool/users/eharvey/some/foo/dir it needs to be a separate file system. Edward Ned Harvey wrote: Suppose I have a storagepool: /storagepool And I have snapshots on it. Then I can access the snaps under /storagepool/.zfs/snapshots But is there any way to enable this within all the subdirs? For example, cd /storagepool/users/eharvey/some/foo/dir cd .zfs I don’t want to create a new filesystem for every subdir. I just want to automatically have the “.zfs” hidden directory available within all the existing subdirs, if that’s possible. Thanks…. www.eagle.co.nz This email is confidential and may be legally privileged. If received in error please destroy and immediately notify us. _______________________________________________ zfs-discuss mailing list zfs-discuss@opensolaris.org http://mail.opensolaris.org/mailman/listinfo/zfs-discuss
OOPS just spotted you said you don''t want a FS for each sub-dir :-) Trevor Pretty wrote: Edward If you look at the man page:- snapshot A read-only version of a file system or volume at a given point in time. It is specified as filesystem@name or volume@name. I think you''ve taken volume snapshots. I believe you need to make file system snapshots and each users/username a zfs file system. Lets play...... root@norton:~# zpool create -f storagepool c9t5d0 root@norton:~# zfs create storagepool/users root@norton:~# zfs create storagepool/users/bob root@norton:~# zfs create storagepool/users/dick root@norton:# cd /storagepool/users/bob root@norton:# touch foo root@norton:# zfs snapshot storagepool/users/bob@now root@norton# ls -alR /storagepool/users/bob/.zfs /storagepool/users/bob/.zfs: total 3 dr-xr-xr-x 4 root root 4 2009-10-05 12:09 . drwxr-xr-x 2 root root 3 2009-10-05 12:14 .. dr-xr-xr-x 2 root root 2 2009-10-05 12:09 shares dr-xr-xr-x 2 root root 2 2009-10-05 12:09 snapshot /storagepool/users/bob/.zfs/shares: total 2 dr-xr-xr-x 2 root root 2 2009-10-05 12:09 . dr-xr-xr-x 4 root root 4 2009-10-05 12:09 .. /storagepool/users/bob/.zfs/snapshot: total 2 dr-xr-xr-x 2 root root 2 2009-10-05 12:09 . dr-xr-xr-x 4 root root 4 2009-10-05 12:09 .. drwxr-xr-x 2 root root 3 2009-10-05 12:14 now /storagepool/users/bob/.zfs/snapshot/now: total 2 drwxr-xr-x 2 root root 3 2009-10-05 12:14 . dr-xr-xr-x 3 root root 3 2009-10-05 12:09 .. -rw-r--r-- 1 root root 0 2009-10-05 12:14 foo If you want a .zfs in /storagepool/users/eharvey/some/foo/dir it needs to be a separate file system. Edward Ned Harvey wrote: Suppose I have a storagepool: /storagepool And I have snapshots on it. Then I can access the snaps under /storagepool/.zfs/snapshots But is there any way to enable this within all the subdirs? For example, cd /storagepool/users/eharvey/some/foo/dir cd .zfs I don’t want to create a new filesystem for every subdir. I just want to automatically have the “.zfs” hidden directory available within all the existing subdirs, if that’s possible. Thanks…. www.eagle.co.nz This email is confidential and may be legally privileged. If received in error please destroy and immediately notify us. -- Trevor Pretty | Technical Account Manager | +64 9 639 0652 | +64 21 666 161 Eagle Technology Group Ltd. Gate D, Alexandra Park, Greenlane West, Epsom Private Bag 93211, Parnell, Auckland www.eagle.co.nz This email is confidential and may be legally privileged. If received in error please destroy and immediately notify us. _______________________________________________ zfs-discuss mailing list zfs-discuss@opensolaris.org http://mail.opensolaris.org/mailman/listinfo/zfs-discuss
On Sun, Oct 4, 2009 at 3:23 PM, Trevor Pretty <trevor_pretty at eagle.co.nz> wrote:> I think you''ve taken volume snapshots. I believe you need to make file > system snapshots and each users/username a zfs file system. > Lets play......Automatic .snapshot directories are a feature of NetApp filers and are pretty nice at times. I think that''s what Edward is looking for. -B -- Brandon High : bhigh at freaks.com If violence doesn''t solve your problem, you''re not using enough of it.