6.2.12.21 mkvolumesnapshot

Create a snapshot of a volume.

Purpose

The mkvolumesnapshot creates a snapshot of the specified Exascale volume.

Syntax

mkvolumesnapshot volume-ID 
                 [ --attributes attribute=value[,attribute=value]... ]

Command Options

The options for the mkvolumesnapshot command are:

  • volume-ID: Identifies the volume that you want to snapshot. You can use the lsvolume command to find the identifier for each volume.

  • --attributes: Optionally specifies attributes for the volume snapshot.

    Use the describe mkvolumesnapshot command to see details about the volume snapshot attributes you can set. See also Describing Resources and Attributes.

Usage Notes

The volume snapshot operation fails if the specified volume supports Exascale Direct Volume (EDV) attachments and Oracle Advanced Cluster File System (ACFS) is currently mounted. To create a volume snapshot in this situation, you must either:
  • Unmount the affected file system on all servers before you run the command to create the volume snapshot. Then, mount the file system again afterward.

  • Alternatively, you can use the Oracle ACFS command-line utility (acfsutil) to synchronize the file system and create the volume snapshot. On an EDV client node, run the acfsutil volsnap create command as the root user and specify the ACFS mountpoint or EDV device.

    For example:

    # acfsutil volsnap create /mnt/my-acfs

Examples

Example 6-184 Create a Volume Snapshot

This example shows creating a snapshot of volume vol0001_50e52177583f4be4bad68ac20b65001e.

@> mkvolumesnapshot vol0001_50e52177583f4be4bad68ac20b65001e

Example 6-185 Create a Volume Snapshot with Attribute Settings

This example shows creating a snapshot of volume vol0001_50e52177583f4be4bad68ac20b65001e with specific attribute settings.

@> mkvolumesnapshot vol0001_50e52177583f4be4bad68ac20b65001e --attributes name=snap1