Zfs snapshot question

Hi guys,
I will really appreciate it if someone can answer this for me.
I do understand that you can use snapshots to back up file systems. But they also use up pool space when their file systems grow.
So, is it necessary to create zfs snapshots even when you already have a full system back up in place?
Thank you very much for your kind explanation.
Arrey

985798 wrote:
So, is it necessary to create zfs snapshots even when you already have a full system back up in place? Nobody will force you to create or keep snapshots and if you are happy with taking "classic" backups then there may be no need for additional snapshots. And since snapshots will also take up space in your pool, it is usually a good idea to keep them only for a short period and delete them periodically. I like to use snapshots for two purposes:
- create a snapshot, then write that snaptshot to take and destroy it afterwards. that way, you can guarantee that this tape backup is consistent
- create snapshot at regular intervals and keep them around for a few days so that if I need to restore a file from just a day ago I don't have to go back to tapes but can rather fetch it from the snapshot. So that would be in addition to regular backups
cheers
bjoern

Similar Messages

  • Zfs snapshots and booting ...

    Hello,
    In solaris 9, filesystem snapshots did not survive reboots. Do zfs snapshots in solaris 10 persist across reboots ?
    Can I boot off of a zfs partition ?
    thanks.

    Does this mean that when new machines appear with zfs
    support, OR when I can update my PROM, that I will be
    able to boot a zfs partition ?ZFS isn't out yet, so your question is premature. We'll get a look at it within a few weeks, hopefully.
    However, a few months ago it was widely reported by the developers that the initial release would not have boot support. Who knows if this has changed or not.
    I don't see any particular reason that PROM or hardware support is required, it should just need a bootloader that understands ZFS. I don't think that there's any UFS support in the existing proms. Just stuff that understands the VTOC label and how to load and execute a few blocks from a particular slice.
    Darren

  • ZFS snapshot and SCP

    Hi,
    Any one can share the difference between the usage of ZFS snapshot/restoring the data and ordinary SCP to other host.
    Regards
    Siva

    The idea is that when you create a clone, it is lightweight and based on the snapshot. That's what makes it so fast. You're not copying every block in the filesystem. So the snapshot is what ties together the parent filesystem and the clone.
    For the clone to be independent, you'd have to copy all the blocks. There's no option to do that within the clone process. So as long as both the parent filesystem and the clone filesystem are around, the snapshot has to exist as well.
    Darren

  • Receiving zfs snapshots from remote system

    Hi guys,
    if you create zfs snapshots on systemA and then send them to systemB, how do you recover the snapshots from systemB back to systemA?
    Thanks guys .

    The same way, just do a send/receive from B to A. But that would create a new filesystem, not get you the snapshot within the original zfs back.
    cheers
    bjoern

  • Zfs snapshot of "zoned" ZFS dataset

    I have a ZFS (e.g. tank/zone1/data) which is delegated to a zone as a dataset.
    As root in the global zone, I can "zfs snapshot" and "zfs send" this ZFS:
    zfs snapshot tank/zone1/data and zfs send tank/zone1/data without any problem. When I "zfs allow" another user (e.g. amanda) with:
    zfs allow -ldu amanda mount,create,rename,snapshot,destroy,send,receivethis user amanda CAN DO zfs snapshot and zfs send on ZFS filesystems in the global zone, but it can not do these commands for the delegated zone (whilst root can do it) and I get a permission denied. A truss shows me:
    ioctl(3, ZFS_IOC_SNAPSHOT, 0x080469D0)          Err#1 EPERM [sys_mount]
    fstat64(2, 0x08045BF0)                          = 0
    cannot create snapshot 'tank/zone1/data@test'write(2, " c a n n o t   c r e a t".., 53) = 53Which setting am I missing to allow to do this for user amanda?
    Anyone experiencing the same?
    Regards,
    Marcel

    Hi Robert,
    Thanks for your response. I suspected this might be the case, but it seems like I get conflicting information from the Sun website. It still says recommended and security patches are free everywhere I looked except when I went to download them. We got this machine in October and I obtained and installed a recommended patch cluster as well as a bunch of ZFS patches (it might have even been early November, shortly before the update), using only a valid account with no contract.
    It would have been nice to know the policy on patch clusters was changing shortly, since now I want to use the snapshots as a backup for users.
    For us at least, an upgrade install would be a royal pain in the butt, since this machine is sitting in a data center in the basement and that would entail me signing in there and sitting on the floor while it installs from DVD media.

  • ZFS Snapshots/ZFS Clones of Database on sun/solaris

    Our production database is on Sun/Solaris 10 (SunOS odin 5.10 Generic_127127-11 sun4u sparc SUNW,SPARC-Enterprise) with oracle 10.1.0 . It is about 1TB in size. We have also created our MOCK and DEVELOPMENT databases from the Production database. To save disk space, we created these databases as ZFS Snapshots/ZFS Clones at the OS level and are using less than 10GB each being clones as on now. Now I want to upgrade the production database from oracle 10.1 to 11.2 but I don't want to upgrade the MOCK and DEVELOPMENT databases for the time being and want them to continue to run as clones on 10.1. After upgrade, Prod will run from 11g oracle tree one one machine and MOCK/DEVL on 10g tree on another machine. Will the upgrade of Production from 10.1 to 11.2 INVALIDATE the cloned MOCK and DEVELOPMENT databases?? There might be data types/features in 11g which do not exist in 10g.
    Below are the links to the documentation we used to create the snapshots.
    http://docs.huihoo.com/opensolaris/solaris.../html/ch06.html
    http://docs.huihoo.com/opensolaris/solaris...ml/ch06s02.html

    Hi,
    The mentioned links in the post is not working.
    I would suggest u to raise an Official S.R. with http://support.oracle.com prior upgrading your database.
    Also you can try this out with 10g db installation on TEST machine and create databases as ZFS Snapshots/ZFS Clones at the OS level for MOCK. Then upgrade the 10g database and test it.
    Refer:
    *429825.1 -- Complete Checklist for Manual Upgrades to 11gR1*
    *837570.1 -- Complete Checklist for Manual Upgrades to 11gR2*
    Regards,
    X A H E E R

  • Zfs newbie question

    Hello
    I have a fresh Solaris 10/6 install. My disk have 20Gb but I used only
    10GB for the base solaris installation and home directory.
    I have 10GB free without any partition.
    I would like to use my free space to store my zones using zfs filesystem.
    In example:
    /zones
    /zone/zona1
    /zone/zone2
    How I can create "/zones" filesystem ?
    zpool create zones ?????
    ?????: What I must write ?
    This is my filesystem setup now (solaris default):
    df -h
    Sistema de archivos tama��� usados aprovechar capacidad Montado en
    /dev/dsk/c0d0s0 4,7G 3,1G 1,5G 67% /
    /devices 0K 0K 0K 0% /devices
    ctfs 0K 0K 0K 0% /system/contract
    proc 0K 0K 0K 0% /proc
    mnttab 0K 0K 0K 0% /etc/mnttab
    swap 815M 716K 815M 1% /etc/svc/volatile
    objfs 0K 0K 0K 0% /system/object
    /usr/lib/libc/libc_hwcap1.so.1
    4,7G 3,1G 1,5G 67% /lib/libc.so.1
    fd 0K 0K 0K 0% /dev/fd
    swap 815M 8K 815M 1% /tmp
    swap 815M 28K 815M 1% /var/run
    /dev/dsk/c0d0s7 3,5G 3,8M 3,5G 1% /export/home
    Thanks in advance.
    roberto pereyra

    At least make a token attempt to read the documentation
    http://docs.sun.com/app/docs/doc/819-5461
    Then if you have a specific question someone will more likely to answer you.
    Otherwise it sounds like your saying, "I'm too lazy to read any documentation. Can someone tell me all about it".
    BTW I will point out that at the moment if you put your zones on a zfs filesystem, it means you will be unable to install new solaris upgrades. You can still patch, but not upgrade to a new release. They may add that functionality at some stage. But for the moment, its not there.

  • Is there any way to refresh the zfs snapshot other than creating another on

    Hi,
    I want to use the zfs send / recv replication, after I create the snapshot and do send/ recv to the remote filesystem, is there any way to do send and recv from the same snapshot after making some changes to the original filesystem other than creating another snapshot every time before send / recv
    Thanking you
    Ushas Symon

    No, you'd have to take another snapshot and then send it, but you don't need to save all the snapshots after you are done. If you script it out to take snapshots fairly often during the day, the amount of data would be small. You can also send to a file and then backup that file to tape or whatever, you wouldn't have to save a million snapshots. You can also look into OpenSolaris' Time Slider function.

  • SunStorage 7110 + zfs snapshot

    I have a snapshot of a zfs file system on a server and I am trying to send it to the storage array using this zfs command. Does anyone know why I get the output shown below?
    zfs send testpool/[email protected] | ssh [email protected] zfs recv -F pool-0/[email protected]
    aksh: invalid command "zfs recv -F pool-0/[email protected]"
    aksh: invalid command "IûIûIÊ(Ê(IIIIf:ÿÿ Á!III:I:I:I:IûIIûIIIISISISISIÿIIIIIIIIIIIIIIIûIp}ûI A
    @# |øI"
    aksh: invalid command "Ûÿÿÿÿÿÿ"
    aksh: invalid command "ûI"
    This keeps repeating....I did a ctrl+c to stop it.

    Hi Robert,
    Thanks for your response. I suspected this might be the case, but it seems like I get conflicting information from the Sun website. It still says recommended and security patches are free everywhere I looked except when I went to download them. We got this machine in October and I obtained and installed a recommended patch cluster as well as a bunch of ZFS patches (it might have even been early November, shortly before the update), using only a valid account with no contract.
    It would have been nice to know the policy on patch clusters was changing shortly, since now I want to use the snapshots as a backup for users.
    For us at least, an upgrade install would be a royal pain in the butt, since this machine is sitting in a data center in the basement and that would entail me signing in there and sitting on the floor while it installs from DVD media.

  • ZFS Configuration question

    Hello,
    I have 2 x 140GB (hw Raid-0 + spare). About 20GB is allocated to Solaris on UFS (standard installation and partitions/slices).
    I would like to allocate the 120GB space left to ZFS. I found a lot of documentation of how to create a ZFS Pool on an empty disk drive. The documentation is less clear on how to do it on a drive already use by another FS.
    One of the document found talk about using format / fdisk and define that partition as DOS or anything else). I tried different things around that, but a piece of the puzzle is missing.
    Any help will be appreciated.
    Michel

    I have no room for the ZFS partition on a slice. I
    have a lot of free space unallocated to any partition
    and this is where I would like the ZFS partition.You would need to allocate it to one yourself.
    I
    saw a lot of confusion between slices and
    partitions.Yes. In many cases they are used interchangably.
    However, I often try to use the term "slice" for the solaris label subdivision, leaving "partition" to refer to x86 architecture-specific divisions.
    Solaris on x86 can only (easily) use a single x86 partition of type "Solaris". You can't use another partition (whether with ZFS or not).
    In my case, I have a 20GB partition where I have 10
    slices created when I installed Solaris on UFS.
    The 120GB left is not allocated to any slice.If it's visible to the Solaris label, then allocate it to a slice.
    Darren

  • ZFS Dedup question

    Hello All,
    I have been playing around with ZFS dedup in Open Solaris.
    I would like to know how does ZFS store the dedup table. I know it is usually in memory, but it must leave a copy on disk. How is this table protected? Are their multiple copies like Uber block?
    Thanks
    --Pete                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

    Hello All,
    I have been playing around with ZFS dedup in Open Solaris.
    I would like to know how does ZFS store the dedup table. I know it is usually in memory, but it must leave a copy on disk. How is this table protected? Are their multiple copies like Uber block?
    Thanks
    --Pete                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • ZFS Configuration Question - Also posted in Solaris x86

    Hello,
    I have 2 x 140GB (hw Raid-0 + spare). About 20GB is allocated to Solaris on UFS (standard installation and partitions/slices).
    I would like to allocate the 120GB left on the disk drive to ZFS. That space is not unallocated to any file system for now.
    I found a lot of documentation of how to create a ZFS Pool on an empty disk drive. The documentation is less clear on how to do it on a drive already use by another FS.
    Any help will be appreciated.
    Michel

    Darren,
    I just setup another Solaris x86 server tonight to play with. That future production server is in it's own vlan wtih no Internet access for now.
    The test server has the same configuration, but less disk space.
    Here is the output of prtvtoc
    # prtvtoc /dev/dsk/c0t0d0s0
    * /dev/dsk/c0t0d0s0 partition map
    * Dimensions:
    * 512 bytes/sector
    * 63 sectors/track
    * 255 tracks/cylinder
    * 16065 sectors/cylinder
    * 2350 cylinders
    * 2348 accessible cylinders
    * Flags:
    * 1: unmountable
    * 10: read-only
    * First Sector Last
    * Partition Tag Flags Sector Count Sector Mount Directory
    0 2 00 10522575 27198045 37720619 /
    1 3 01 16065 8401995 8418059
    2 5 00 0 37720620 37720619
    7 8 00 8418060 2104515 10522574 /export/home
    8 1 01 0 16065 16064
    Output of format
    selecting c0t0d0
    [disk formatted]
    Warning: Current Disk has mounted partitions.
    /dev/dsk/c0t0d0s0 is currently mounted on /. Please see umount(1M).
    Total disk size is 8920 cylinders
    Cylinder size is 16065 (512 byte) blocks
    Cylinders
    Partition Status Type Start End Length %
    ====== ====== ============ ===== === ====== ===
    1 Active Solaris2 1 2350 2350 26
    As you can see, the 1st partition is used at 26%. With fdisk, I can create a 2nd partition. My problem is to get that 2nd partiition availlable to Solaris and create a zpool in that unused space..
    Michel

  • Acquire snapshot question

    hi,
    first of all many thanks for this great tool.
    i want to acquire snapshot directly form my nw04s server, how can i activate this function ?
    Thank you

    Hi Didier,
         as nw04s runs on jdk1.4.2, the easiest way to acquire a heap dump is on Ctrl-Break. To use this option you need to configure the following Java VM parameter:
    -XX:+HeapDumpOnCtrlBreak.
    The heap dump will be written to the working directory of the server, e.g. /usr/sap/<SID>/J<instance>/j2ee/cluster/server<node>/
    Best Regards,
    Elena.

  • AWR snapshot question

    Hi:
    I create a snapshot manually use dbms_workload_repository.create_snaphost at 15:51 , then the 16:00 snapshot by system is not generated.
    so have any method can force system execute snapshot on the hour,even I manually snap?
    Edited by: tomykety on May 29, 2013 2:00 AM

    Welcome to the oracle forums!
    Please take some time to go through [url https://forums.oracle.com/forums/ann.jspa?annID=1535]FAQ PAGE
    Always post 4 digit oracle version and OS details.
    Please post the output of DBA_HIST_SNAPSHOT view,this will show what shapshot you have with their begin and end time.
    By default AWR snapshot are taken every hour.

  • ZFS mirrors question

    Let's say I have one disk, c0t0d0. I have three zpools on this disk, including the root pool (rpool). If I add a mirror to the root pool (say disk c0t1d0), will only the root pool get mirrored? The other two pools are on the same disk - do they have to be specified as being mirrored separately, or does the entire disk get mirrored by extension, regardless of the pool? If the three pools are all on the same disk, but on different slices, do they have to be mirrored separately then as well?

    No, you'll have to mirror the other pools separately.

Maybe you are looking for

  • Possible to Install Leopard on External HD and Boot on Another Mac?

    Is it possible to install the Leopard upgrade DVD onto an External HD, AND THEN use the external HD to boot Leopard onto another Mac? Also, since the upgrade disc is an "upgrade," would I have to first install Tiger onto the External HD? If possible.

  • How do I chance an image in iWeb?

    I have a header image I've created and am using at the top of each page. Now that I have the site laid out, I want to replace these headers with ones specific to the page. But every time I try to drag a new image (same dimensions) over the old, it do

  • EXC_BAD_ACCESS (SIGBUS) with EyeTV

    Hello, need some advice on how to track down the error below.  This only happens with EyeTV on this Mac Mini, and happens several times a week. I suspect it have something to do with Chrome running Netflix at the same time, but that could be a red he

  • HT201471 iPad with Retina display

    What about the iPad with Retina display (Not the "Mini") available in 16GB only

  • WEB reports exported to Excel -  occupys lot of memory

    Hi Experts, When I try to export a report from Web or Bex Analyser to Excel. The report consumes lot of memory. The same size of data in Original Excel file occupy less memory but when it is being downloaded from WEB and Bex takes lot of memory and I