13.12. Backing Up and Restoring ZFS Data

13.12.1. Backing Up a ZFS Snapshot

# zfs backup tank/dana@111505 > /dev/rmt/0

# zfs backup pool/fs@snap | gzip > backupfile.gz

13.12.2. Restoring a ZFS Snapshot

# zfs backup tank/gozer@111105 > /dev/rmt/0
.
.
.
# zfs restore tank/gozer2@today < /dev/rmt/0
# zfs rename tank/gozer tank/gozer.old
# zfs rename tank/gozer2 tank/gozer
# zfs rollback tank/dana@111505
cannot rollback to 'tank/dana@111505': more recent snapshots exist
use '-r' to force deletion of the following snapshots:
tank/dana@now
# zfs rollback -r tank/dana@111505
# zfs restore tank/dana < /dev/rmt/0

13.12.3. Remote Replication of a ZFS File System

# zfs backup tank/neo@today | ssh newsys zfs restore sandbox/restfs@today
			

原文出处:Netkiller 系列 手札
本文作者:陈景峯
转载请与作者联系,同时请务必标明文章原始出处和作者信息及本声明。

时间: 2024-09-24 18:20:14

13.12. Backing Up and Restoring ZFS Data的相关文章

codeblocks 13.12-C语言编程 CodeBlocks 13.12 新建文件出现错误

问题描述 C语言编程 CodeBlocks 13.12 新建文件出现错误 Process terminated with status 1 (0 minute(s), 0 second(s)) 0 error(s), 0 warning(s) (0 minute(s), 0 second(s)) 怎么回事? 解决方案 没错误的样子,0 error,0 warning. 解决方案二: 不知为什么,生成错误 解决方案三: 截个图看看啊,不然也不知道什么情况

Windows下安装Code::Blocks 13.12进行C/C++开发

CodeBlocks是一个开放源码的全功能的跨平台C/C++集成开发环境.CodeBlocks是开放源码软件.CodeBlocks由纯粹的C++语言开发完成,它使用了蓍名的图形界面库wxWidgets(2.6.2unicode)版.对于追求完美的C++程序员,再也不必忍受Eclipse的缓慢,再也不必忍受VS.NET的庞大和高昂的价格. CodeBlocks提供了许多工程模板,这包括:控制台应用.DirectX应用.动态连接库.FLTK应用.GLFW应用.Irrlicht工程.OGRE应用.Op

13.12. glusterfs

# rpm -Uvh http://download.fedora.redhat.com/pub/epel/6/x86_64/epel-release-6-5.noarch.rpm # yum install glusterfs glusterfs-fuse glusterfs-rdma glusterfs-server glusterfs-vim # gzip /etc/glusterfs/* # chkconfig glusterd off # chkconfig glusterfsd on

13.5. zfs mount/umount

Legacy mount points must be managed through legacy tools. An attempt to use ZFS tools result in an error. # zfs mount pool/home/billm cannot mount 'pool/home/billm': legacy mountpoint use mount(1M) to mount this filesystem # mount -F zfs tank/home/bi

13.6. Sharing ZFS File Systems

13.6.1. Controlling Share Semantics freebsd# zfs set sharenfs=on zfs/www 13.6.2. Unsharing Filesystems freebsd# zfs unshare zfs/www This command unshares the zpool filesystem. To unshare all ZFS filesystems on the system, run: freebsd# zfs unshare -a

13.13. ZFS Snapshots and Clones

13.13.1. ZFS Snapshots filesystem@snapname, volume@snapname 13.13.1.1. Creating ZFS Snapshots The following example creates a snapshot of tank/neo that is named friday. freebsd# zfs snapshot tank/neo@friday 13.13.1.2. Destroying ZFS Snapshots Snapsho

zfs 快照发送与接收

zfs具备将快照输出到stdout,以及从stdout接收快照的功能. 这两个功能分别通过zfs send和zfs receive命令来完成. 例子, 1. zfs send 有 -n -v -P 参数时,仅仅输出统计信息,不产生数据流.统计信息输出到stdout. 没有 -n -v -P 参数时,产生数据流,数据流输出到stdout,统计信息输出到stderr. 全量发送统计信息预览 #zfs send -v -P -n zp1/data01@2015123101 full zp1/data0

btrfs vs ext4 vs (zfs on freebsd) iozone

之前测试了btrfs和ext4的fsync接口性能对比,再用iozone测试一下综合性能. http://blog.163.com/digoal@126/blog/static/163877040201510301944705/ http://blog.163.com/digoal@126/blog/static/1638770402015103004729831/ 测试case: 2G文件,单个请求32K到16MB分布,测试所有的iozone case,全程使用O_DIRECT. [root@

Ubuntu 13.04 系统管理初探

  Ubuntu 13.04 (代号 Raring Ringtail)正式版于上个月底发布,很多对 Ubuntu 情有独钟的网友已经迫不及待尝鲜了,51CTO系统频道也体验了一下,大家可以通过<Ubuntu 13.04 来袭:铆劲浣熊酷炫体验>查看.本篇文章将从系统管理方面入手,继续探究Ubuntu 13.04 的奥秘. 1 设置shell版本 /bin/sh 是 /bin/dash,的符号链接.Ubuntu为了加速开机的速度使用了dash来取代传统的bash,/bin/sh -> /b