虚拟机磁盘模式


虚拟机磁盘模式

资料来源

备份快照

  • 有独立磁盘的虚拟机不能做内存快照,只能做普通快照
  • vmware 独立磁盘 不受快照影响

磁盘模式

模式 desc
独立 – 持久 持久模式磁盘的行为与物理机上常规磁盘的行为相似。写入持久模式磁盘的所有数据都会永久性地写入磁盘。
独立 – 非持久 关闭虚拟机电源或重置虚拟机时,对非持久模式磁盘的更改将丢失。使用非持久模式,您可以每次使用相同的虚拟磁盘状态重新启动虚拟机。对磁盘的更改会写入重做日志文件并从中读取,重做日志文件会在关闭虚拟机电源或重置虚拟机时被删除。

不同模式的作用

Dependent – Disk Mode

Dependent is VMware default disk mode which means that when you take a snapshot of a virtual machine all disks are included in the snapshot. When you revert back to the previous snapshot all data are reverted back to the point of taking a snapshot.

Independent -Persistent Mode

Disks in persistent mode behave like dependent disk mode except all data written to a disk stays permanently even you revert back a snapshot. For example you have added a new disk to a virtual machine and you want keep all data permanently even in the event if reverting back the snapshot.

Persistent mode is good for example if you want keep some logs, or data permanently, so you can have log data consistent even after reverting snapshot back in time.

Independent -Non-Persistent Mode

Non-persistent mode is the best way to describe as read-only virtual disk. When a new file is created data is not written to a disk, but to a redo file and in the event of virtual machine powered off, or snapshot is deleted all data is discarded.


Leave a Reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.

%d bloggers like this: