Skip to content

Commit 0cea00c

Browse files
authored
Update term
1 parent edd79ce commit 0cea00c

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

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

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -18,20 +18,20 @@ This article explains how to resize an existing persistent volume to increase it
1818
> [!NOTE]
1919
> Resizing PVCs using this method only works your `StorageClass` supports `AllowVolumeExpansion=True`.
2020
21-
When you deploy an Azure Arc enabled SQL managed instance, you can configure the size of the persistent volume (PV) for `data`, `logs`, `datalogs`, and `backups`. The deployment creates these volumes based on the values set by parameters `--volume-size-data`, `--volume-size-logs`, `--volume-size-datalogs`, and `--volume-size-backups`. When these volumes become full, you will need to resize the `PersistentVolumes`. Azure Arc enabled SQL Managed Instance is deployed as part of a `Statefulsets` for both General Purpose or Business Critical service tiers. Kubernetes supports automatic resizing for persistent volumes but not for volumes attached to `StatefulSets`.
21+
When you deploy an Azure Arc enabled SQL managed instance, you can configure the size of the persistent volume (PV) for `data`, `logs`, `datalogs`, and `backups`. The deployment creates these volumes based on the values set by parameters `--volume-size-data`, `--volume-size-logs`, `--volume-size-datalogs`, and `--volume-size-backups`. When these volumes become full, you will need to resize the `PersistentVolumes`. Azure Arc enabled SQL Managed Instance is deployed as part of a `StatefulSet` for both General Purpose or Business Critical service tiers. Kubernetes supports automatic resizing for persistent volumes but not for volumes attached to `StatefulSet`.
2222

23-
Following are the steps to resize persistent volumes attached to `StatefulSets`:
23+
Following are the steps to resize persistent volumes attached to `StatefulSet`:
2424

25-
1. Scale the `StatefulSets` replicas to 0
25+
1. Scale the `StatefulSet` replicas to 0
2626
2. Patch the PVC to the new size
27-
3. Scale the `StatefulSets` replicas back to the original size
27+
3. Scale the `StatefulSet` 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` replicas to 0
34+
## 1. Scale the `StatefulSet` replicas to 0
3535

3636
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

@@ -47,7 +47,7 @@ kubectl get sts --namespace arc
4747

4848
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` replicas to 0:
50+
Run the below command to scale the `StatefulSet` 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 `StatefulSet` replicas have completed scaling down to 0, patch the `StatefulSets`. Run the following command:
77+
Once the stateful `StatefulSet` replicas have completed scaling down to 0, patch the `StatefulSet`. 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` replicas to original size
91+
## 3. Scale the `StatefulSet` replicas to original size
9292

93-
Once the resize completes, scale the `StatefulSets` replicas back to its original size by running the below command:
93+
Once the resize completes, scale the `StatefulSet` 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` replicas to 3.
99+
For example: The below command sets the `StatefulSet` replicas to 3.
100100

101101
```
102102
kubectl scale statefulsets sqlmi1 --namespace arc --replicas=3

0 commit comments

Comments
 (0)