acfsutil snap convert

Purpose

Converts the type of an existing snapshot image from read-only to read-write or read-write to read-only.

Syntax and Description

acfsutil snap convert -h
acfsutil snap convert [-r|-w] snapshot mount_point

acfsutil snap convert -h displays help text and exits.

Table 16-97 contains the options available with the acfsutil snap convert command.


Table 16-97 Options for the acfsutil snap convert command

Option Description

-r

Converts snapshot to read-only snapshot.

-w

Converts snapshot to read-write snapshot.

snapshot

Specifies the name of the snapshot to be converted.

mount_point

Specifies the directory where the file system is mounted.


acfsutil snap convert converts the type of an existing snapshot image from a read-only snapshot image to a read-write snapshot image, or from a read-write snapshot image to a read-only snapshot image.

The type option (-r or -w) is required for the convert operation. Specifying a type parameter that matches the type of the existing snapshot image results in no conversion and no failure. An 11.2 read-only snapshot image can be converted to a read-write snapshot image, but this conversion results in an update of the Oracle ACFS on-disk structure version. After the Oracle ACFS on-disk structure version has been updated, the updated version is not compatible with previous Oracle ACFS 11.2 versions.

Administrator privileges are required to use this command or you must be a member of the Oracle ASM administrator group.

Examples

Example 16-91 shows the use of the acfsutil snap convert command.

Example 16-91 Using the acfsutil snap convert command

$ acfsutil snap convert -w midday_test1 /acfsmounts/critical_apps

$ acfsutil snap convert -r midday_test2 /acfsmounts/critical_apps