Skip to content

Commit 32c8fc9

Browse files
Merge pull request #279249 from fhryo-msft/patch-33
Update use-container-storage-with-local-nvme-replication.md
2 parents beaa3be + 97bbafb commit 32c8fc9

File tree

1 file changed

+21
-3
lines changed

1 file changed

+21
-3
lines changed

articles/storage/container-storage/use-container-storage-with-local-nvme-replication.md

Lines changed: 21 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,8 @@ Create a pod using [Fio](https://github.com/axboe/fio) (Flexible I/O Tester) for
179179
name: ephemeralpv
180180
```
181181
182+
When you change the storage size of your volumes, make sure the size is less than the available capacity of a single node's ephemeral disk. See [Check node ephemeral disk capacity](#check-node-ephemeral-disk-capacity).
183+
182184
1. Apply the YAML manifest file to deploy the pod.
183185
184186
```azurecli-interactive
@@ -210,7 +212,23 @@ You've now deployed a pod that's using local NVMe with volume replication, and y
210212

211213
Now that you've created a persistent volume, you can detach and reattach it as needed. You can also expand or delete a storage pool.
212214

213-
## Detach and reattach a persistent volume
215+
### Check node ephemeral disk capacity
216+
217+
An ephemeral volume is allocated on a single node. When you configure the size of your ephemeral volumes, the size should be less than the available capacity of the single node's ephemeral disk.
218+
219+
Run the following command to check the available capacity of ephemeral disk for a single node.
220+
221+
```output
222+
$ kubectl get diskpool -n acstor
223+
NAME CAPACITY AVAILABLE USED RESERVED READY AGE
224+
ephemeraldisk-temp-diskpool-jaxwb 75660001280 75031990272 628011008 560902144 True 21h
225+
ephemeraldisk-temp-diskpool-wzixx 75660001280 75031990272 628011008 560902144 True 21h
226+
ephemeraldisk-temp-diskpool-xbtlj 75660001280 75031990272 628011008 560902144 True 21h
227+
```
228+
229+
In this example, the available capacity of ephemeral disk for a single node is `75031990272` bytes or 69 GiB.
230+
231+
### Detach and reattach a persistent volume
214232

215233
To detach a persistent volume, delete the pod that the persistent volume is attached to.
216234

@@ -226,7 +244,7 @@ To check which persistent volume a persistent volume claim is bound to, run:
226244
kubectl get pvc <persistent-volume-claim-name>
227245
```
228246

229-
## Expand a storage pool
247+
### Expand a storage pool
230248

231249
You can expand storage pools backed by local NVMe to scale up quickly and without downtime. Shrinking storage pools isn't currently supported.
232250

@@ -242,7 +260,7 @@ Because a storage pool backed by Ephemeral Disk uses local storage resources on
242260

243261
1. Run `kubectl get sp -A` and you should see that the capacity of the storage pool has increased.
244262

245-
## Delete a storage pool
263+
### Delete a storage pool
246264

247265
If you want to delete a storage pool, run the following command. Replace `<storage-pool-name>` with the storage pool name.
248266

0 commit comments

Comments
 (0)