操作系统上的整个系统快照 [英] Whole-System Snapshot on Operating System
问题描述
我需要Linux上的整个系统快照(系统状态和磁盘).
我知道有几种获取磁盘快照的方法,例如lvm2,zfs或Btrfs.但是,我无法在任何地方寻找任何整个系统的快照(cpu,内存和磁盘状态).有什么办法吗?我的意思是类似于VM上的系统快照功能.
无法从系统内部获取整个系统的快照-这样做会带来一些相当困难的问题-但您可以采取使用 cgroup冷冻机的Linux系统中的过程子集的快照系统.另外,您可以使用 vzdump 来拍摄整个OpenVZ来宾(在VZ内核下)的快照..>
请注意,这些都不包含文件系统的快照.您必须使用您提到的方法之一单独执行此操作.
I need a whole-system snapshot( both system state and disk ) on Linux.
I know that there are several ways to take disk snapshot such as lvm2, zfs, or Btrfs. However, I could not look for any whole-system snapshot (cpu, memory, and disk state) anywhere. Is there any way to do that? I mean the way like system snapshot feature on VM.
There is no way to take a snapshot of the entire system from within the system -- doing so would pose some rather difficult questions -- but you can take a snapshot of a subset of the processes in a Linux system using the cgroup freezer system. Alternatively, you can take a snapshot of an entire OpenVZ guest (under a VZ kernel) using vzdump.
Note that neither of these will include a snapshot of your filesystem. You'd have to do that separately, using one of the methods you mentioned.
这篇关于操作系统上的整个系统快照的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!