1
0
mirror of https://github.com/openshift/openshift-docs.git synced 2026-02-05 12:46:18 +01:00
Files
openshift-docs/modules/virt-enabling-persistentreservation-feature-gate-cli.adoc
2025-11-18 16:29:25 +01:00

25 lines
854 B
Plaintext

// Module included in the following assemblies:
//
// * * virt/virtual_machines/virtual_disks/virt-configuring-shared-volumes-for-vms.adoc
:_mod-docs-content-type: PROCEDURE
[id="virt-enabling-persistentreservation-feature-gate-cli_{context}"]
= Enabling the PersistentReservation feature gate by using the CLI
[role="_abstract"]
You can enable the `persistentReservation` feature gate by using the command line. Enabling the feature gate requires cluster administrator privileges.
.Prerequisites
* You have installed the {oc-first}.
.Procedure
. Enable the `persistentReservation` feature gate by running the following command:
+
[source,terminal,subs="attributes+"]
----
$ oc patch hyperconverged kubevirt-hyperconverged -n openshift-cnv --type json -p \
'[{"op":"replace","path":"/spec/featureGates/persistentReservation", "value": true}]'
----