0.实验前的环境检查与配置
[student@workstation ~]$ lab snapshots setup
1.测试删除
gluster snapshot delete tigers删除快照。
[root@serverc ~]# gluster snapshot delete tigers
Deleting snap will erase all the information about the snap. Do you still want to continue? (y/n) y
snapshot delete: tigers: snap removed successfully
2.测试克隆
gluster snapshot clone otters elephants克隆快照。 gluster volume start otters启用快照。
[root@serverc ~]# gluster snapshot clone otters elephants
snapshot clone: success: Clone otters created successfully
[root@serverc ~]# gluster volume start otters
volume start: otters: success
3.配置参数
gluster snapshot config snap-max-hard-limit 64 snap-max-soft-limit 75设置允许的快照数及启动监测的百分比。gluster snapshot config auto-delete enable开启自动删除功能。gluster snapshot config activate-on-create enable开启自动创建功能。
[root@serverc ~]# gluster snapshot config snap-max-hard-lim