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
Shauna Diaz b18daad371 Merge pull request #93591 from jhradilek/add-oc-prerequisite
Add the "oc" utility to prerequisites
2025-05-21 14:35:11 -04:00

24 lines
831 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
You 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}]'
----