Skip to content

Commit 428fbed

Browse files
committed
esan
1 parent f13ef01 commit 428fbed

File tree

1 file changed

+18
-10
lines changed

1 file changed

+18
-10
lines changed

articles/storage/container-storage/use-container-storage-with-elastic-san.md

Lines changed: 18 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ description: Configure Azure Container Storage for use with Azure Elastic SAN. C
44
author: khdownie
55
ms.service: azure-container-storage
66
ms.topic: how-to
7-
ms.date: 05/30/2024
7+
ms.date: 06/19/2024
88
ms.author: kendownie
99
ms.custom: references_regions
1010
---
@@ -33,11 +33,15 @@ The following features aren't currently supported when you use Azure Container S
3333

3434
[!INCLUDE [container-storage-regions](../../../includes/container-storage-regions.md)]
3535

36-
## Create a storage pool
36+
## Create and attach persistent volumes
37+
38+
Follow these steps to create and attach a persistent volume.
39+
40+
### 1. Create a storage pool
3741

3842
First, create a storage pool, which is a logical grouping of storage for your Kubernetes cluster, by defining it in a YAML manifest file.
3943

40-
If you enabled Azure Container Storage using `az aks create` or `az aks update` commands, you might already have a storage pool. Use `kubectl get sp -n acstor` to get the list of storage pools. If you have a storage pool already available that you want to use, you can skip this section and proceed to [Display the available storage classes](#display-the-available-storage-classes).
44+
If you enabled Azure Container Storage using `az aks create` or `az aks update` commands, you might already have a storage pool. Use `kubectl get sp -n acstor` to get the list of storage pools. If you have a storage pool already available that you want to use, you can skip this section and proceed to [Display the available storage classes](#2-display-the-available-storage-classes).
4145

4246
Follow these steps to create a storage pool with Azure Elastic SAN.
4347

@@ -78,7 +82,7 @@ Follow these steps to create a storage pool with Azure Elastic SAN.
7882

7983
When the storage pool is created, Azure Container Storage will create a storage class on your behalf using the naming convention `acstor-<storage-pool-name>`. It will also create an Azure Elastic SAN resource.
8084

81-
## Display the available storage classes
85+
### 2. Display the available storage classes
8286

8387
When the storage pool is ready to use, you must select a storage class to define how storage is dynamically created when creating persistent volume claims and deploying persistent volumes.
8488

@@ -87,9 +91,9 @@ Run `kubectl get sc` to display the available storage classes. You should see a
8791
> [!IMPORTANT]
8892
> Don't use the storage class that's marked **internal**. It's an internal storage class that's needed for Azure Container Storage to work.
8993
90-
## Create a persistent volume claim
94+
### 3. Create a persistent volume claim
9195

92-
A persistent volume claim (PVC) is used to automatically provision storage based on a storage class. Follow these steps to create a PVC using the new storage class.
96+
A persistent volume claim (PVC) is used to automatically provision storage based on a storage class. Follow these steps to create a PVC using the new storage class.
9397

9498
1. Use your favorite text editor to create a YAML manifest file such as `code acstor-pvc.yaml`.
9599

@@ -129,7 +133,7 @@ A persistent volume claim (PVC) is used to automatically provision storage based
129133

130134
Once the PVC is created, it's ready for use by a pod.
131135

132-
## Deploy a pod and attach a persistent volume
136+
### 4. Deploy a pod and attach a persistent volume
133137

134138
Create a pod using [Fio](https://github.com/axboe/fio) (Flexible I/O Tester) for benchmarking and workload simulation, and specify a mount path for the persistent volume. For **claimName**, use the **name** value that you used when creating the persistent volume claim.
135139

@@ -187,19 +191,23 @@ Create a pod using [Fio](https://github.com/axboe/fio) (Flexible I/O Tester) for
187191

188192
You've now deployed a pod that's using an Elastic SAN as its storage, and you can use it for your Kubernetes workloads.
189193

190-
## Detach and reattach a persistent volume
194+
## Manage persistent volumes and storage pools
195+
196+
Now that you've created a persistent volume, you can detach and reattach it as needed. You can also delete a storage pool.
197+
198+
### Detach and reattach a persistent volume
191199

192200
To detach a persistent volume, delete the pod that the persistent volume is attached to. Replace `<pod-name>` with the name of the pod, for example **fiopod**.
193201

194202
```azurecli-interactive
195203
kubectl delete pods <pod-name>
196204
```
197205

198-
To reattach a persistent volume, simply reference the persistent volume claim name in the YAML manifest file as described in [Deploy a pod and attach a persistent volume](#deploy-a-pod-and-attach-a-persistent-volume).
206+
To reattach a persistent volume, simply reference the persistent volume claim name in the YAML manifest file as described in [Deploy a pod and attach a persistent volume](#4-deploy-a-pod-and-attach-a-persistent-volume).
199207

200208
To check which persistent volume a persistent volume claim is bound to, run `kubectl get pvc <persistent-volume-claim-name>`.
201209

202-
## Delete a storage pool
210+
### Delete a storage pool
203211

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

0 commit comments

Comments
 (0)