OpenStack快照制作动作
OpenStack制作快照使用xen管理命令和qemu-img来做的,前台发起一个动作,后台执行一个写入执行快照命令的shell脚本。
创建快照有三步:
1.xm save vm vmpath/state.snapshot.snapshot_id
2.qemu-img snapshot -c snapshot.snapshot_id vmpath/disk
3.xm restore vmpath/state.snapshot.snapshot_id
快照回滚
1.xm destroy vm
2.qemu-img snapshot -a snapshot.snapshot_id vmpath/disk
3.xm restore vmpath/state.snapshot.snapshot_id
删除快照
1.qemu-img snapshot -d snapshot.snapshot_id vmpath/disk
2.rm -f vmpath/state.snapshot.snapshot_id
相关推荐
Moolightshadow 2020-07-16
fyggzb 2020-07-05
gokeibi 2020-06-12
zziyuann 2020-06-12
fyggzb 2020-06-12
hhphhp 2020-06-12
fyggzb 2020-06-10
JeremyLiu 2020-06-10
JeremyLiu 2020-06-10
jmppok 2020-06-07
jmppok 2020-06-05
hhphhp 2020-06-01
zziyuann 2020-05-17
gokeibi 2020-05-07
gokeibi 2020-04-26
gokeibi 2020-04-19
gokeibi 2020-04-19