Skip to content

Commit 8883385

Browse files
authored
Merge pull request #50629 from lpettyjo/OCPBUGS-1421
OCPBUGS-1421: Add docs for RWX volume support
2 parents 3dc58da + 2964e75 commit 8883385

File tree

4 files changed

+40
-1
lines changed

4 files changed

+40
-1
lines changed
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
// Module included in the following assemblies:
2+
//
3+
// storage/container_storage_interface/persistent-storage-csi-vsphere.adoc
4+
//
5+
6+
[id="persistent-storage-csi-vsphere-rwx_{context}"]
7+
= ReadWriteMany vSphere volume support
8+
9+
If the underlying vSphere environment supports the vSAN file service, then vSphere Container Storage Interface (CSI) Driver Operator installed by
10+
{product-title} supports provisioning of ReadWriteMany (RWX) volumes. If vSAN file service is not configured, then ReadWriteOnce (RWO) is the only access mode available. If you do not have vSAN file service configured, and you request RWX, the volume fails to get created and an error is logged.
11+
12+
For more information about configuring the vSAN file service in your environment, see https://docs.vmware.com/en/VMware-vSphere/7.0/com.vmware.vsphere.vsan.doc/GUID-82565B82-C911-42F7-85B1-E9EF973EE90C.html[vSAN File Service].
13+
14+
You can request RWX volumes by making the following persistent volume claim (PVC):
15+
16+
[source,yaml]
17+
----
18+
kind: PersistentVolumeClaim
19+
apiVersion: v1
20+
metadata:
21+
name: myclaim
22+
spec:
23+
resources:
24+
requests:
25+
storage: 1Gi
26+
accessModes:
27+
- ReadWriteMany
28+
storageClassName: thin-csi
29+
----
30+
31+
Requesting a PVC of the RWX volume type should result in provisioning of persistent volumes (PVs) backed by the vSAN file service.

modules/storage-persistent-storage-pv.adoc

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,14 +154,16 @@ ifdef::openshift-enterprise,openshift-webscale,openshift-origin[]
154154
|NFS | ✅ | ✅ | ✅
155155
|OpenStack Manila | - | - | ✅
156156
|{rh-storage-first} | ✅ | - | ✅
157-
|VMware vSphere | ✅ | - | -
157+
|VMware vSphere | ✅ | - | ✅ ^[3]^
158158
endif::[]
159159

160160
|===
161161
[.small]
162162
--
163163
1. ReadWriteOnce (RWO) volumes cannot be mounted on multiple nodes. If a node fails, the system does not allow the attached RWO volume to be mounted on a new node because it is already assigned to the failed node. If you encounter a multi-attach error message as a result, force delete the pod on a shutdown or crashed node to avoid data loss in critical workloads, such as when dynamic persistent volumes are attached.
164164
2. Use a recreate deployment strategy for pods that rely on AWS EBS.
165+
3. If the underlying vSphere environment supports the vSAN file service, then the vSphere Container Storage Interface (CSI) Driver Operator installed by
166+
{product-title} supports provisioning of ReadWriteMany (RWX) volumes. If you do not have vSAN file service configured, and you request RWX, the volume fails to get created and an error is logged. For more information, see "Using Container Storage Interface" -> "VMware vSphere CSI Driver Operator".
165167
// GCE Persistent Disks, or Openstack Cinder PVs.
166168
--
167169

storage/container_storage_interface/persistent-storage-csi-vsphere.adoc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@ include::modules/persistent-storage-csi-about.adoc[leveloffset=+1]
4040

4141
include::modules/persistent-storage-csi-vsphere-stor-policy.adoc[leveloffset=+1]
4242

43+
include::modules/persistent-storage-csi-vsphere-rwx.adoc[leveloffset=+1]
44+
4345
include::modules/vmware-csi-driver-reqs.adoc[leveloffset=+1]
4446

4547
To remove a third-party CSI driver, see xref:../../storage/container_storage_interface/persistent-storage-csi-vsphere.adoc#persistent-storage-csi-vsphere-install-issues_persistent-storage-csi-vsphere[Removing a third-party vSphere CSI Driver].

storage/understanding-persistent-storage.adoc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,10 @@ include::modules/storage-persistent-storage-reclaim.adoc[leveloffset=+2]
1616

1717
include::modules/storage-persistent-storage-pv.adoc[leveloffset=+1]
1818

19+
[role="_additional-resources"]
20+
.Additional resources
21+
* xref:../storage/container_storage_interface/persistent-storage-csi-vsphere.adoc#persistent-storage-csi-vsphere-rwx_persistent-storage-csi-vsphere[ReadWriteMany vSphere volume support]
22+
1923
include::modules/storage-persistent-storage-pvc.adoc[leveloffset=+1]
2024

2125
ifdef::openshift-enterprise,openshift-webscale,openshift-origin[]

0 commit comments

Comments
 (0)