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
2024-02-19 20:40:45 +00:00

19 lines
788 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 command line
You enable the `persistentReservation` feature gate by using the command line. Enabling the feature gate requires cluster administrator privileges.
.Procedure
. Enable the `persistentReservation` feature gate by running the following command:
+
[source,terminal,subs="attributes+"]
----
$ oc patch hyperconverged kubevirt-hyperconverged -n {CNVNamespace} \
--type json -p '[{"op":"replace","path":"/spec/featureGates/persistentReservation", "value": true}]'
----