Enabling Persistent Reservations for a New Volume

Enable persistent reservations for a new volume in the Block Volume service. You can enable persistent reservations when you create a new volume, clone an existing volume, restore a volume from a backup, or activate a volume replica. Persistent reservations is disabled by default.

  • Use the oci bv volume create command and required parameters to create the volume. Set the --is-reservations-enabled parameter to true to enable persistent reservations.

    oci bv volume create --availability-domain <availability_domain>
    --compartment-id <compartment_ocid> --display-name=<display_name>
    --is-reservations-enabled=true --config-file <config_path> --profile
    <profile_name>

    For a complete list of parameters and values for CLI commands, see the CLI Command Reference.

  • Run the CreateVolume operation to update a volume and specify the isReservationsEnabled attribute of CreateVolumeDetails to true to enable persistent reservations.