Reply
 
Thread Tools Display Modes
  #1  
Old 09-20-2011, 07:11 PM
errandonea errandonea is offline
Member
 
Join Date: Sep 2011
Posts: 39
Thanks: 0
Thanked 6 Times in 1 Post
Default ZFS snapshots
Hello,

Is it possible to take zfs snapshots in PC-BSD ? How ? Is there a tool like opensolaris' Time slider ?
Reply With Quote
  #2  
Old 09-21-2011, 09:24 AM
Abdul Abdul is offline
Senior Member
 
Join Date: Jan 2011
Posts: 333
Thanks: 19
Thanked 15 Times in 14 Posts
Default
You can create snapshots from terminal,
Code:
zfs snapshot filesystem@snapname
http://www.freebsd.org/cgi/man.cgi?query=zfs
__________________
touch -- '-rf ~'
Reply With Quote
  #3  
Old 09-21-2011, 01:40 PM
thnewguy thnewguy is offline
Senior Member
 
Join Date: May 2010
Posts: 797
Thanks: 3
Thanked 54 Times in 43 Posts
Default
I would like to see something like the Timeslider put into place. Solaris has had this GUI tools for a few years and it makes ZFS snapshot browsing very intuitive and fast.
Reply With Quote
  #4  
Old 09-21-2011, 02:20 PM
jag3773 jag3773 is offline
Member
 
Join Date: Sep 2007
Location: CO
Posts: 37
Thanks: 2
Thanked 1 Time in 1 Post
Default Time Slider is Cool
I agree, time slider is cool. The snapshot schedule that FreeNAS 8 has is also very cool.

Although I enjoy the command line, a GUI interface can really open up the potential of the ZFS filesystem while not requiring that someone learns how to administer ZFS from the CLI.

This page http://blogs.oracle.com/erwann/entry...he_desktop_zfs has a section toward the bottom called "Where is the Source?" that gives links to the relevant source packages that make up Time Slider. However, it does not have an open license.
__________________
Thanks,
Jesse

http://www.ekfocus.com
Reply With Quote
  #5  
Old 09-21-2011, 04:00 PM
errandonea errandonea is offline
Member
 
Join Date: Sep 2011
Posts: 39
Thanks: 0
Thanked 6 Times in 1 Post
Default
Thanks for your answser.

Strange to hear that time slider hasn't got an open-source license : it was available on opensolaris and seems to be on openindiana now. So it must be available under a CDDL license somewhere (though perhaps not at Oracle's).

If I understand well, there are two ways people can use zfs :

- By creating a zfs-pool on a second hard disk (or more disks). These additional disks only contains data while the os remains on the first disk.

- By installing the OS directly on a ZFS slice (with a little UFS boot slice).

If I install PC-BSD on a ZFS slice, will I need a second hard disk to take snapshots ? In which folder will they be created ?
Reply With Quote
  #6  
Old 12-01-2011, 04:39 AM
philv philv is offline
Junior Member
 
Join Date: Nov 2010
Posts: 16
Thanks: 0
Thanked 2 Times in 2 Posts
Default ZFS Snapshots are like timestamps
"If I install PC-BSD on a ZFS slice, will I need a second hard disk to take snapshots ? In which folder will they be created ?"

*A ZFS snapshot is not a separate copy of the data, but more like a timestamp that freezes the existing data in place. It doesn't take up more space (a trivial amount to record the snapshot), which is why snapshots are quick to perform. It is necessarily part of the same ZFS pool when the snapshot is taken.

*After* a snapshot, however, any changes to the files on the snapshot take up new space on the disk, and will never overwrite the snapshot version (unless/until you delete the snapshot).

The growth of snapshot space is the reason that time slider and other snapshot management scripts are created. If you simply took a snapshot every hour, forever, on a desktop PC, you might fill up the disk with transient data of little value. You would want to delete some of the snapshots at some time, but you don't want to manually create and destroy 24 snapshots a day.

If you have another disk or another computer with ZFS, you can send and receive these snapshots, which can be handy for remote backup.
Reply With Quote
  #7  
Old 12-01-2011, 08:13 AM
fluca1978 fluca1978 is offline
Senior Member
 
Join Date: Mar 2011
Posts: 364
Thanks: 3
Thanked 22 Times in 16 Posts
Default
Originally Posted by jag3773 View Post
Although I enjoy the command line, a GUI interface can really open up the potential of the ZFS filesystem while not requiring that someone learns how to administer ZFS from the CLI.
Time Slider is an extension to the nautilus file system. I proposed something similar to KSOC but I was unable to find a mentor for the project and, by the way, KDE will not implement it in Dolphin, rather in kio subsystem (which is formerly much more correct).

Just for the record....ZFS is a COW filesystem (copy on write), snapshotting the same file over and over did not take place until the file is modified. You can think of ZFS as a VCS repository over the whole filesystem. OpenSolaris had also another very interesting feature built over ZFS which was the ability to create a full versioned system that allows you to step back to a previous configuration, including the running programs and kernel. While this could be easy for jails, I don't think it is still possible for freebsd.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 03:29 AM.


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.

Copyright 2005-2010, The PC-BSD Project. PC-BSD and the PC-BSD logo are registered trademarks of iXsystems.
All other content is freely available for sharing under the terms of the Creative Commons Attribution License.