Skip to content

Latest commit

 

History

History
43 lines (29 loc) · 2.45 KB

File metadata and controls

43 lines (29 loc) · 2.45 KB
title Resize persistent volumes in Azure Container Storage
description Resize persistent volumes in Azure Container Storage without downtime. Scale up by expanding volumes backed by Elastic SAN and local NVMe.
author saurabh0501
ms.service azure-container-storage
ms.topic how-to
ms.date 01/28/2026
ms.author saurabsharma
ms.reviewer kendownie

Resize persistent volumes in Azure Container Storage without downtime

You can expand persistent volumes in Azure Container Storage without downtime. Shrinking persistent volumes isn't supported.

You can't increase a volume beyond the maximum capacity available in your Elastic SAN or the local NVMe storage available on your nodes. If you need more capacity, first increase your Elastic SAN capacity or increase your ephemeral disk (local NVMe) capacity by adding more nodes to your Azure Kubernetes Service (AKS) cluster. Then expand the volume size.

Prerequisites

[!INCLUDE container-storage-prerequisites]

Expand a volume

Follow these instructions to resize a persistent volume. A built-in StorageClass supports volume expansion, so reference a PVC created by an Azure Container Storage StorageClass. For example, if you created the PVC for Elastic SAN, it might be named elasticsanpvc.

  1. Expand the PVC by increasing the spec.resources.requests.storage field. Replace <pvc-name> with the name of your PVC and <size-in-Gi> with the new size, for example 100Gi.

    kubectl patch pvc <pvc-name> --type merge --patch '{"spec": {"resources": {"requests": {"storage": "<size-in-Gi>"}}}}'
    
  2. Check the PVC to confirm the new size.

    kubectl describe pvc <pvc-name>
    

See also