[root@lab8106 ~]# ceph fs set ceph allow_new_snaps 1 Error EPERM: Warning! This feature is experimental.It may cause problems up to and including data loss.Consult the documentation at ceph.com, and if unsure, do not proceed.Add --yes-i-really-mean-it if you are certain. [root@lab8106 ~]# ceph fs set ceph allow_new_snaps 1 --yes-i-really-mean-it
从提示上可以看到,还是不要在生产上使用
开发者的话:
In Jewel ceph fs snapshots are still experimental. Does someone has a clue when this would become stable, or how experimental this is ?
We’re not sure yet. Probably it will follow stable multi-MDS; we’re thinking about redoing some of the core snapshot pieces still. :/
WIt’s still pretty experimental in Jewel. Shen had been working on this and I think it often works, but tends to fall apart under the failure of other components (eg, restarting an MDS while snapshot work is happening). -Greg
挂载集群
1 2
[root@lab8106 ~]# mount -t ceph 192.168.8.106:/ /mnt [root@lab8106 ~]# cd /mnt/
快照是对目录创建的 所以我们来看下
1 2 3 4 5
[root@lab8106 mnt]# ll total 0 drwxr-xr-x 1 root root 51341 Dec 13 11:41 test1 drwxr-xr-x 1 root root 51591 Dec 13 16:18 test2 drwxr-xr-x 1 root root 30951 Dec 13 15:19 test3
创建快照
1 2 3 4 5 6 7 8 9
[root@lab8106 mnt]# mkdir .snap/snap1 [root@lab8106 mnt]# ll .snap/ total 0 drwxr-xr-x 1 root root 133883 Dec 13 14:21 snap1 [root@lab8106 mnt]# ll .snap/snap1 total 0 drwxr-xr-x 1 root root 51341 Dec 13 11:41 test1 drwxr-xr-x 1 root root 51591 Dec 13 16:18 test2 drwxr-xr-x 1 root root 30951 Dec 13 15:19 test3