You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/blog/getting-started-with-volume-snapshots-on-a-kubernetes-cluster-in-hpe-greenlake-for-private-cloud-enterprise.md
+22-18Lines changed: 22 additions & 18 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -118,13 +118,13 @@ NAME DRIVER DELETIONPOLICY AGE
118
118
gl-sbp-frank-gl1-sstor01 csi.hpe.com Delete 56d
119
119
```
120
120
121
-
Now that you understand the basics, in the following sections, I will describe how to create volume snapshots of persistent volumes in K8s using HPE CSI driver for K8s.
121
+
Now that you understand the basics, in the following sections, I will describe how to create volume snapshots of persistent volumes in K8s using the HPE CSI driver for K8s.
122
122
123
123
### Prerequisites
124
124
125
125
126
126
127
-
Before starting, make sure you meet the following requirements:
127
+
Before starting, make sure you have the following:
128
128
129
129
130
130
@@ -204,11 +204,11 @@ resources:
204
204
205
205
206
206
207
-
Typing below command to install the MySQL database to the namespace *mysql*:
207
+
Type below command to install the MySQL database to the namespace *mysql*:
208
208
209
209
210
210
211
-
```markdown
211
+
```shell
212
212
$ kubectl apply -k mysql-app/base
213
213
namespace/mysql created
214
214
secret/mysql-pass-m62cbhd9kf created
@@ -217,7 +217,11 @@ persistentvolumeclaim/mysql-pvc created
217
217
deployment.apps/mysql created
218
218
219
219
220
+
```
220
221
222
+
Type the following command to check the MySQL database deployment state. The MySQL Pod should be in *Running* status:
Typing the following command to create the volume snapshot:
460
+
Type the following command to create the volume snapshot:
457
461
458
462
459
463
@@ -464,7 +468,7 @@ volumesnapshot.snapshot.storage.k8s.io/mysql-snapshot created
464
468
465
469
466
470
467
-
You can check the volume snapshot *mysql-snapshot* is created in the namespace *mysql*. A *VolumeSnapshotContent* object is also created, at cluster level, with its *READYTOUSE*showing as *true*:
471
+
You can check that there is a *VolumeSnapshot**'mysql-snapshot'* is created in the namespace *mysql*, together with a *VolumeSnapshotContent* object created at cluster level. The *READYTOUSE*of the *VolumeSnapshot* should show as *true*:
468
472
469
473
470
474
@@ -486,7 +490,7 @@ snapcontent-41de6346-1ba3-4ce7-9483-2ca074e476a2 true 1073741824 De
486
490
487
491
488
492
489
-
Before showing the database restore, I will first delete some table from MySQL database to simulate a loss of data. Then, I will perform the database recovery from the created volume snapshot.
493
+
Before showing the database restore, I will first delete a table from MySQL database to simulate a loss of data. Then, I will perform the database recovery from the created volume snapshot.
If re-run the testing script *test_employees_sha.sql*, it will show the failures of *CRC* and *count*:
537
+
If you rerun the testing script *test_employees_sha.sql*, it will show the failures of *CRC* and *count*, which indicate the loss of data in the MySQL database:
534
538
535
539
536
540
@@ -605,7 +609,7 @@ deployment.apps/mysql scaled
605
609
606
610
607
611
608
-
Typing below command to check the MySQL database deployment has 0 replica:
612
+
Type below command to check the MySQL database deployment has 0 replica:
0 commit comments