vm-snapshot-create
Usage
avcli vm-snapshot-create [--volumes | --no-data][--description "description"] [--desire] [--require] vm-name
Description
The vm-snapshot-create command creates a VM snapshot.
Two snapshot consistency levels are supported:
- Crash consistency: The restored data is in the same state that it would have been if the system had crashed at the exact moment that the snapshot was taken. A crash-consistent snapshot does not capture the contents of memory or any pending I/O operations.
- Application consistency: Before the snapshot is taken, cooperating applications are briefly frozen so that transactions are complete, buffers flushed, files closed, and so on. This ensures that cooperating applications start from a consistent state. This is the highest level of consistency.
Options
--volumes | --no-data |
The names of volumes to include in the snapshot. By default, all volumes are included in the snapshot unless you specify --volumes with individual volume names or you specify --no-data. If you specify --no-data, no volumes are included in the snapshot. These arguments are mutually exclusive. |
--description "description" | The user-specified description for this snapshot. |
--desire | The highest consistency level to attempt in order to declare the snapshot a success. If this attempt fails, attempts are made at successively lower levels (but no lower than the level specified by --require). Values are crash and application (the default value). |
--require | The minimum consistency level needed to declare the snapshot a success. Values are crash and application (the default value). |
vm-name | The VM's ID. |
Examples
$ avcli vm-snapshot-create --volumes volume:o100 volume:o101 --description "This is the snapshot description" --name snapshot_name vm1