Sponsored Content
Full Discussion: ZFS
Operating Systems Solaris ZFS Post 302505110 by sboots on Wednesday 16th of March 2011 09:38:24 AM
Old 03-16-2011
snapshots in zfs are saved as a dataset under the same zpool that the actual filesystems is on. It is just a point in time snap of the filesystem and only saves the actual changes that happened from the time the snap was taken. If you want to take a backup of you filesystem and mount it us the zfs send and zfs recieve commands. This will create a backup file of your snapshot and then you can import it back into a different zfs filesystem using the zfs recieve command. So something like below will create a filesystem, take a snap of it, then reimport it to a different filesystem.

Code:
zpool create testpool raidz c1t0d0s3 c1t1d0s3 c1t2d0s3 c1t3d0s3 
zfs create testpool/test
zfs set mountpoint=/test testpool/test
add data to /test here.......
zfs snapshot testpool/test@testsnap
zfs send testpool/test@testsnap > /tmp/test.snap
zfs receive testpool/newtest < /tmp/test.snap
zfs set mountpoint=/test1 testpool/newtest


Last edited by DukeNuke2; 03-16-2011 at 12:17 PM..
 

10 More Discussions You Might Find Interesting

1. Solaris

ZFS and VxVM

Hi community, I've a hard question for you. 1)What are the differences between ZFS and Veritas Volume Manager on Solaris10? 2) what is the difference to manage the internal disks (Mirror)? 3) what is the difference to manage the external disks? 4) What is the difference to manage... (5 Replies)
Discussion started by: Sunb3
5 Replies

2. Solaris

ZFS question.

I have a oracle instance running in NGZ which is on zfs dataset. Is there any possibility if i can take a zfs snapshot without shutting down the zone and then restore the zfs on other server and start oracle .. will the data be fine or not ? (2 Replies)
Discussion started by: fugitive
2 Replies

3. Solaris

zfs-acronym

zfs-zeta bye filesystem or zope filesystem which is correct (2 Replies)
Discussion started by: kishanreddy
2 Replies

4. Solaris

Are you using ZFS ?

With Solaris 11 coming out with a requirement of ZFS on the root disk, I was curious to know who is using the Zeta File System now? I have been using ZFS for the past year and don't plan to go back to UFS since ZFS is much more reliable and easier to maintain. (13 Replies)
Discussion started by: bluescreen
13 Replies

5. Solaris

ZFS Issues

Hi, I am nowusing ZFS since some weeks and now I have 2 questions: 1) in zpool I saw some disk added with the *s2 at the end, I have in mind that should not be ? is this right and if so can I get the *s2 disk out of the zpool ? 2) Zpool has still 2 spare disk but when I try to create a new... (6 Replies)
Discussion started by: manni2
6 Replies

6. Solaris

zfs - get the name of the last snapshot

I have installed Solaris 11 Express on my server and want to set up automatic backuping using zfs snapshots. In the backup script I need to find out the name of the last snapshot of the given filesystem (in order to refer to it as the startpoint of an incremental backup). What is the best way to do... (4 Replies)
Discussion started by: RychnD
4 Replies

7. Solaris

ZFS and jumpstart

I am building a new server on sol10_X86. I am new to ZFS, this will be one of the first systems to use it. I would like to have /opt /usr and a /u01 as separate file systems from the main ZFS pool. I know that this goes against the basic idea of ZFS, but this is so I can restrict the size/usage... (1 Reply)
Discussion started by: robsonde
1 Replies

8. Solaris

ZFS

Hi, I need some advice please. I have this server with a couple of zpools, lets call them pay_serv ukb_pool There are two zones attached to these pools. When I do a zfs list I see this pay_serv 8.41G 265G 8.41G /pay_serv ukb_pool 79.8G 194G 23K /ukb_pool ukb_pool/temp_ps 9.11G... (4 Replies)
Discussion started by: giles.cardew
4 Replies

9. Emergency UNIX and Linux Support

Getting data from ZFS.

Hi all, A customer has a very active ZFS partitionon their production system, I need to get a copy of the data under one directory at a specific point in time. Is it possible to do this with the ZFS snapshot/clone tools, (and what commands should be used to capture the info I require for... (6 Replies)
Discussion started by: Skrynesaver
6 Replies

10. Solaris

Several questions about ZFS

Hi guys! I am student from poland and I am preparing my assignment about Solaris 11 cloud computing capabilities. :p I am writing about ZFS now, and as I am quite new to this stuff I have several question (I prefere to have deep understanding of what I am doing, instead of just rewriting the... (1 Reply)
Discussion started by: mlody94
1 Replies
AMZFS-SENDRECV(8)					  System Administration Commands					 AMZFS-SENDRECV(8)

NAME
amzfs-sendrecv - Amanda script to create zfs sendrecv DESCRIPTION
amzfs-sendrecv is an Amanda application implementing the Application API. It should not be run by users directly. It create a zfs snapshot of the filesystem and backup the snapshot with 'zfs send'. Snapshot are kept after the backup is done, this increase the disk space use on the client but it is neccesary to be able do to incremental backup. If you want only full backup, you can disable this feature by setting the KEEP-SNAPSHOT property to 'NO'. Only the restoration of the complete backup is allowed, it is impossible to restore a single file. The application is run as the amanda user, it must have many zfs priviledge: zfs allow -ldu AMANDA_USER mount,create,rename,snapshot,destroy,send,receive FILESYSTEM Some system doesn't have "zfs allow", but you can give the Amanda backup user the rights to manipulate ZFS filesystems by using the following command: usermod -P "ZFS File System Management,ZFS Storage Management" AMANDA_USER This will require that your run zfs under pfexec, set the PFEXEC property to YES. The format of the diskdevice in the disklist (DLE) must be one of: Desciption Example ---------- ------- Mountpoint /data ZFS pool name datapool ZFS filesystem datapool/database ZFS logical volume datapool/dbvol The filesystem doesn't need to be mounted. PROPERTIES
This section lists the properties that control amzfs-sendrecv's functionality. See amanda-applications(7) for information on the Application API, application configuration. DF-PATH Path to the 'df' binary, search in $PATH by default. KEEP-SNAPSHOT If "YES" (the default), snapshot are kept after the backup, if set to "NO" then snapshot are no kept and incremental backup will fail. ZFS-PATH Path to the 'zfs' binary, search in $PATH by default. PFEXEC-PATH Path to the 'pfexec' binary, search in $PATH by default. PFEXEC If "NO" (the default), pfexec is not used, if set to "YES" then pfexec is used. EXAMPLE
In this example, a dumptype is defined to use amzfs-sendrecv application to backup a zfs filesystem. define application-tool amzfs_sendrecv { comment "amzfs-sendrecv" plugin "amzfs-sendrecv" #property "DF-PATH" "/usr/sbin/df" #property "KEEP-SNAPSHOT" "YES" #property "ZFS-PATH" "/usr/sbin/zfs" #property "PFEXEC-PATH" "/usr/sbin/pfexec" #property "PFEXEC" "NO" } define dumptype user-zfs-sendrecv { program "APPLICATION" application "amzfs_sendrecv" } SEE ALSO
amanda(8), amanda.conf(5), amanda-client.conf(5), amanda-applications(7) The Amanda Wiki: : http://wiki.zmanda.com/ AUTHOR
Jean-Louis Martineau <martineau@zmanda.com> Zmanda, Inc. (http://www.zmanda.com) Amanda 3.3.3 01/10/2013 AMZFS-SENDRECV(8)
All times are GMT -4. The time now is 08:03 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy