东方蜘蛛 发表于 2007-05-09 22:35

Experiment the snapshot function

bash-3.00# pwd
/mypool/vincent
bash-3.00# ls
bash-3.00# mkfile -nv 5m test1.file
test1.file 5242880 bytes
bash-3.00# cd /
bash-3.00# zfs snapshot
mypool/vincent@monday
bash-3.00# cd /mypool/vincent/
bash-3.00# ls
test1.file
bash-3.00# mv test1.file test2.file
bash-3.00# ls
test2.file
bash-3.00# zfs rollback
mypool/vincent@monday
cannot unmount '/mypool/vincent': 设备忙
bash-3.00# pwd
/mypool/vincent
bash-3.00# ls
test2.file
bash-3.00# cd /
bash-3.00# df -h -F zfs
Filesystem            SizeUsed Avail Use% Mounted on
mypool                255M   29K255M   1% /mypool
mypool/vincent      200M156K200M   1% /mypool/vincent
mypool/gary         555M   25K555M   1% /mypool/gary
mypool/backup         255M   25K255M   1% /mypool/backup
bash-3.00# zfs rollback
mypool/vincent@monday
bash-3.00# df -h -F zfs
Filesystem            SizeUsed Avail Use% Mounted on
mypool                255M   29K255M   1% /mypool
mypool/gary         555M   25K555M   1% /mypool/gary
mypool/backup         255M   25K255M   1% /mypool/backup
mypool/vincent      200M156K200M   1% /mypool/vincent
bash-3.00# ls /mypool/vincent
test1.file
bash-3.00# cd /mypool/vincent/.zfs/snapshot/
bash-3.00# ls
monday/
bash-3.00# cd monday/
bash-3.00# ls
test1.file
bash-3.00# cd /


本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u/524/showart_296621.html
页: [1]
查看完整版本: Experiment the snapshot function