Skip to main content

Create Snapshot

This guide will help you create snapshots of your volumes in Vietnix Cloud.

Prerequisites

  • An active Vietnix Cloud account
  • A volume that you want to snapshot
  • Access to the Vietnix Cloud dashboard

What is a Snapshot?

A snapshot is a point-in-time copy of your volume data. Snapshots are useful for:

  • Backup: Creating backups of your data
  • Recovery: Restoring data to a previous state
  • Testing: Creating test environments
  • Migration: Moving data between regions

Steps to Create Snapshot

Step 1: Access Volume Management

  1. Navigate to Compute > Volumes Navigate to Volumes
  2. Find the volume you want to snapshot Select Volume

Step 2: Create Snapshot

  1. Click on the volume name to open details Snapshot
  2. Click Create Snapshot button Created Snapshot

Snapshot Best Practices

Before Creating Snapshot

  1. Stop Applications: Stop applications that write to the volume
  2. Flush File System: Ensure all data is written to disk
  3. Check Space: Ensure you have enough storage space

Commands to Prepare for Snapshot

# Flush file system buffers
sudo sync

# Unmount volume (optional, for consistency)
sudo umount /mnt/myvolume

# Remount volume
sudo mount /dev/vdb1 /mnt/myvolume

Managing Snapshots

Delete Snapshot

  1. Select the snapshot you want to delete
  2. Click Delete button
  3. Confirm the deletion Delete Snapshot

Create Volume from Snapshot

Creating a volume from a snapshot allows you to restore your data to a specific point in time. This is useful for:

  • Data Recovery: Restoring data after accidental deletion or corruption
  • Testing: Creating test environments with specific data states
  • Cloning: Duplicating volumes with existing data
  • Migration: Moving data between different volumes or regions

Steps to Create Volume from Snapshot

  1. Navigate to Snapshots

    • Go to Compute > Volumes > Snapshots
    • Or access from the volume details page
  2. Select the Snapshot

    • Choose the snapshot you want to use as the source
    • Verify the snapshot details and creation date
  3. Click Create Volume

    • Click the Create Volume button next to the selected snapshot
    • Create Volume
  4. Configure Volume Settings

    • Volume Name: Enter a descriptive name for the new volume
    • Size: Set the volume size (must be at least as large as the snapshot)
    • Volume Type: Choose the appropriate volume type (SSD, HDD, etc.)
    • Availability Zone: Select the zone where the volume will be created
  5. Review and Create

    • Review all settings before proceeding
    • Click Create to start the volume creation process
Important

The new volume will be an exact copy of the data at the time the snapshot was taken. Any changes made to the original volume after the snapshot was created will not be included.

Tip

You can boot a new VM with created volumes

Create Image from Snapshot

Converting a snapshot to an image allows you to create a bootable image that can be used to launch new virtual machines. This is particularly useful for:

  • Template Creation: Creating standardized VM templates
  • Backup and Recovery: Creating bootable backups of your systems
  • Distribution: Sharing pre-configured system images
  • Disaster Recovery: Quick deployment of known-good configurations

Steps to Create Image from Snapshot

  1. Access Snapshot Management

    • Navigate to Compute > Volumes > Snapshots
    • Or go to Compute > Images and select "Create from Snapshot"
  2. Select the Snapshot

    • Choose the snapshot you want to convert to an image
    • Ensure the snapshot contains a bootable operating system
  3. Click Create Image

    • Click the Create Image button next to the selected snapshot
    • Create Image
  4. Configure Image Settings

    • Image Name: Enter a descriptive name for the image
    • Description: Provide details about the image contents
    • Image Format: Choose the appropriate format (QCOW2, RAW, etc.)
    • Visibility: Set whether the image is private or public
    • Min Disk Size: Set the minimum disk size required for VMs using this image
  5. Review and Create

    • Review all image settings
    • Click Create to start the image creation process
Requirements

The snapshot must contain a bootable operating system with proper boot configuration. Non-bootable data snapshots cannot be converted to images.

Best Practice

Test the created image by launching a VM with it before using it in production environments.

Revert to Snapshot

The "Revert to Snapshot" action allows you to restore a volume to the state captured in a specific snapshot. This is useful for recovering from data corruption or accidental changes.

  1. Select the snapshot you want to revert to Revert to Snapshot
  2. Click Revert to Snapshot Revert to Snapshot Confirmation
  3. Confirm the action and Click Revert to proceed Reverting to Snapshot
Warning

All snapshots created after the selected snapshot will be deleted. This action is irreversible and will result in data loss for any changes made after the snapshot was taken.

Info

Ensure that the VM is shutdown, Revert to Snapshot is not supported for volumes that are currently attached to a running VM.

Tip

Ensure that you have backed up any important data before performing a revert operation.

Snapshot Limitations

  • Size: Snapshots can be as large as the original volume
  • Storage: Snapshots consume storage space
  • Performance: Creating snapshots may impact volume performance
  • Retention: Snapshots are retained until manually deleted

Cost Considerations

  • Snapshots are charged based on storage usage
  • Only changed blocks are stored (incremental)
  • Consider deleting old snapshots to reduce costs

Troubleshooting

Common Issues

  1. Snapshot Failed: Check if volume is in use
  2. Slow Performance: Snapshots may impact volume performance
  3. Storage Full: Ensure sufficient storage space

Commands for Troubleshooting

# Check disk usage
df -h

# Check volume status
sudo fdisk -l

# Check for processes using the volume
sudo lsof /mnt/myvolume
Support

If you encounter any issues, contact our support team at support.vietnix.vn