# zfs list -r -t all labpool
NAME USED AVAIL REFER MOUNTPOINT
labpool 2.82M 1.11G 46.4K /labpool
labpool/zman 2.71M 1.11G 2.71M /labpool/zman
labpool/zman@snap1 0 - 2.71M -
# ls -al /labpool/zman/man1/zip.1
-r--r--r-- 1 root bin 85963 Feb 29 2012 /labpool/zman/man1/zip.1
Now we delete this file
# rm /labpool/zman/man1/zip.1
# ls -al /labpool/zman/man1/zip.1
/labpool/zman/man1/zip.1: No such file or directory
Now we rollback
# zfs rollback labpool/zman@snap1
# ls -al /labpool/zman/man1/zip.1
-r--r--r-- 1 root bin 85963 Feb 29 2012 /labpool/zman/man1/zip.1
Now we create a clone
# zfs clone labpool/zman@snap1 labpool/zmanclone
# zfs list -r -t all labpool
NAME USED AVAIL REFER MOUNTPOINT
labpool 2.87M 1.11G 46.4K /labpool
labpool/zman 2.71M 1.11G 2.71M /labpool/zman
labpool/zman@snap1 1.50K - 2.71M -
labpool/zmanclone 1.50K 1.11G 2.71M /labpool/zmanclone
No comments:
Post a Comment