Phase
Volumes can be found in one of the following phases:
+ .Volume phases
| Phase | Description |
|---|---|
Available |
A free resource not yet bound to a claim. |
Bound |
The volume is bound to a claim. |
Released |
The claim was deleted, but the resource is not yet reclaimed by the cluster. |
Failed |
The volume has failed its automatic reclamation. |
- Last phase transition time
-
The
LastPhaseTransitionTimefield has a timestamp that updates every time a persistent volume (PV) transitions to a different phase (pv.Status.Phase). To find the time of the last phase transition for a PV, run the following command:$ oc get pv <pv_name> -o json | jq '.status.lastPhaseTransitionTime'For '.status.lastPhaseTransitionTime' specify the name of the PV that you want to see the last phase transition.
- Mount options
-
You can specify mount options while mounting a PV by using the attribute
mountOptions.For example:
Mount options exampleapiVersion: v1 kind: PersistentVolume metadata: name: pv0001 spec: capacity: storage: 1Gi accessModes: - ReadWriteOnce mountOptions: - nfsvers=4.1 nfs: path: /tmp server: 172.17.0.2 persistentVolumeReclaimPolicy: Retain claimRef: name: claim1 namespace: defaultspec.mountOptions: Specified mount options are used while mounting the PV to the disk.The following PV types support mount options:
-
AWS Elastic Block Store (EBS)
-
AWS Elastic File Storage (EFS)
-
Azure Disk
-
Azure File
-
Cinder
-
GCE Persistent Disk
-
iSCSI
-
Local volume
-
NFS
-
Red Hat OpenShift Data Foundation (Ceph RBD only)
-
CIFS/SMB
-
VMware vSphere
Fibre Channel and HostPath PVs do not support mount options.
-