Skip to content

Commit f165935

Browse files
authored
Merge pull request #84350 from lpettyjo/OSDOCS-12428
OSDOCS-12428# PV Vol last phase transition time
2 parents ed83733 + 586755d commit f165935

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

modules/storage-persistent-storage-pv.adoc

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,13 @@ status:
3030
<3> The access mode, defining the read-write and mount permissions.
3131
<4> The reclaim policy, indicating how the resource should be handled once it is released.
3232

33+
You can view the name of a PVC that is bound to a PV by running the following command:
34+
35+
[source,terminal]
36+
----
37+
$ oc get pv <pv-name> -o jsonpath='{.spec.claimRef.name}'
38+
----
39+
3340
ifndef::microshift[]
3441
[id="types-of-persistent-volumes_{context}"]
3542
== Types of PVs
@@ -249,12 +256,14 @@ cluster.
249256

250257
|===
251258

252-
You can view the name of the PVC that is bound to the PV by running the following command:
259+
=== Last phase transition time
260+
The `LastPhaseTransitionTime` field 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:
253261

254262
[source,terminal]
255263
----
256-
$ oc get pv <pv-claim>
264+
$ oc get pv <pv-name> -o json | jq '.status.lastPhaseTransitionTime' <1>
257265
----
266+
<1> Specify the name of the PV that you want to see the last phase transition.
258267

259268
[id="pv-mount-options_{context}"]
260269
=== Mount options

0 commit comments

Comments
 (0)