// Module included in the following assemblies:
//
// * cloud_experts_tutorials/cloud-experts-deploying-application/cloud-experts-deploying-application-storage.adoc

:_mod-docs-content-type: PROCEDURE
[id="cloud-experts-deploying-application-storage-verification_{context}"]
= Verifying persistent storage

[role="_abstract"]
Verify that the file you created persists after the pod is recreated and confirm the contents are intact.

.Procedure
. Wait for the pod to re-create.
. On the OSToy app console, click *Persistent Storage* in the left menu.
. Find the file you created, and open it to view and confirm the contents.
+
image::cloud-experts-storage-ostoy-existingfile.png[]

.Verification
The deployment YAML file shows that we mounted link:https://github.com/openshift-cs/rosaworkshop/blob/master/rosa-workshop/ostoy/yaml/ostoy-frontend-deployment.yaml#L61[the directory] `/var/demo_files` to our persistent volume claim.

. Retrieve the name of your front-end pod by running the following command:
+
[source,terminal]
----
$ oc get pods
----
+
. Start a secure shell (SSH) session in your container by running the following command:
+
[source,terminal]
----
$ oc rsh <pod_name>
----
+
. Go to the directory by running the following command:
+
[source,terminal]
----
$ cd /var/demo_files
----
+
. *Optional:* See all the files you created by running the following command:
+
[source,terminal]
----
$ ls
----
+
. Open the file to view the contents by running the following command:
+
[source,terminal]
----
$ cat test-pv.txt
----
+
. Verify that the output is the text you entered in the OSToy app console.
+
.Example terminal
[source,terminal]
----
$ oc get pods
NAME                                  READY     STATUS    RESTARTS   AGE
ostoy-frontend-5fc8d486dc-wsw24       1/1       Running   0          18m
ostoy-microservice-6cf764974f-hx4qm   1/1       Running   0          18m

$ oc rsh ostoy-frontend-5fc8d486dc-wsw24

$ cd /var/demo_files/

$ ls
lost+found   test-pv.txt

$ cat test-pv.txt
OpenShift is the greatest thing since sliced bread!
----
. Type `exit` in your terminal to quit the session and return to the CLI.