Skip to content

Commit 4508ccd

Browse files
authored
Update resize-persistent-volume-claim.md
updated some terminology.
1 parent bef53ea commit 4508ccd

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

articles/azure-arc/data/resize-persistent-volume-claim.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -22,18 +22,18 @@ When you deploy an Azure Arc enabled SQL managed instance, you can configure the
2222

2323
Following are the steps to resize persistent volumes attached to `StatefulSets`:
2424

25-
1. Scale the `StatefulSets` to 0
25+
1. Scale the `StatefulSets` replicas to 0
2626
2. Patch the PVC to the new size
27-
3. Scale the `StatefulSets` back to the original size
27+
3. Scale the `StatefulSets` replicas back to the original size
2828

2929
During the patching of `PersistentVolumeClaim`, the status of the persistent volume claim will likely change from: `Attached` to `Resizing` to `FileSystemResizePending` to `Attached`. The exact states will depend on the storage provisioner.
3030

3131
> [Note]
3232
> Ensure the managed instance is in a healthy state before you proceed. Run `kubectl get sqlmi -n <namespace>` and check the status of the managed instance.
3333
34-
## 1. Scale the `StatefulSets` to 0
34+
## 1. Scale the `StatefulSets` replicas to 0
3535

36-
The number of `StatefulSets` deployed is equal to the number of replicas. For General Purpose service tier, this is 1. For Business Critical service tier it could be 1, 2 or 3 depending on how many replicas were specified. Run the below command to get the number of stateful sets if you have a Business Critical instance.
36+
There is one `StatefulSet` deployed for each Arc SQL MI. The number of replicas in the `StatefulSet` is equal to the number of replicas in the Arc SQL MI. For General Purpose service tier, this is 1. For Business Critical service tier it could be 1, 2 or 3 depending on how many replicas were specified. Run the below command to get the number of statefulset replicas if you have a Business Critical instance.
3737

3838
```console
3939
kubectl get sts --namespace <namespace>
@@ -45,9 +45,9 @@ For example, if the namespace is `arc`, run:
4545
kubectl get sts --namespace arc
4646
```
4747

48-
Notice the number of stateful sets.
48+
Notice the number of stateful sets under the `READY` column for the SQL managed instance(s).
4949

50-
Run the below command to scale the `StatefulSets` to 0:
50+
Run the below command to scale the `StatefulSets` replicas to 0:
5151

5252
```console
5353
kubectl scale statefulsets <statefulset> --namespace <namespace> --replicas= <number>
@@ -74,7 +74,7 @@ kubectl get pvc --namespace arc
7474
```
7575

7676

77-
Once the stateful `StatefulSets` has been scaled to 0, patch the `StatefulSets`. Run the following command:
77+
Once the stateful `StatefulSets` replicas has completed scaling down to 0, patch the `StatefulSets`. Run the following command:
7878

7979
```console
8080
$newsize='{\"spec\":{\"resources\":{\"requests\":{\"storage\":\"<newsize>Gi\"}}}}'
@@ -88,15 +88,15 @@ $newsize='{\"spec\":{\"resources\":{\"requests\":{\"storage\":\"50Gi\"}}}}'
8888
kubectl patch pvc data-a6gt3be7mrtq60eao0gmgxgd-sqlmi1-0 --namespace arcns --type merge --patch $newsize
8989
```
9090

91-
## 3. Scale the `StatefulSets` to original size
91+
## 3. Scale the `StatefulSets` replicas to original size
9292

93-
Once the resize completes, scale the `StatefulSets` back to its original size by running the below command:
93+
Once the resize completes, scale the `StatefulSets` replicas back to its original size by running the below command:
9494

9595
```console
9696
kubectl scale statefulsets <statefulset> --namespace <namespace> --replicas= <number>
9797
```
9898

99-
For example: The below command sets the `StatefulSets` to 3.
99+
For example: The below command sets the `StatefulSets` replicas to 3.
100100

101101
```
102102
kubectl scale statefulsets sqlmi1 --namespace arc --replicas=3
@@ -109,4 +109,4 @@ kubectl get sqlmi -A
109109

110110
## See also
111111

112-
[Sizing Guidance](sizing-guidance.md)
112+
[Sizing Guidance](sizing-guidance.md)

0 commit comments

Comments
 (0)