storage-resize

Resize Aliyun ECS cloud disks with in-OS partition and filesystem growth.

327|85|Updated Mar 30, 2026
One-click install
npx skills add https://github.com/alibaba/anolisa --skill storage-resize
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: storage-resize
Source: https://github.com/alibaba/anolisa/tree/main/src/os-skills/system-admin/storage-resize
Command: npx skills add https://github.com/alibaba/anolisa --skill storage-resize

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

阿里云云盘容量在线扩容后,操作系统需要同步扩容分区和文件系统的繁琐步骤。本技能提供一个端到端解决方案,自动完成云端扩容、分区调整和文件系统扩容,并实现在线生效。

Core Features & Use Cases

  • 自动化云端与 OS 双阶段扩容:云盘容量扩容后,自动执行分区调整和文件系统扩容,确保新容量可用。
  • 全场景支持:系统盘和数据盘在线扩容,支持 XFS、EXT4、Btrfs,且兼容 NVMe、VirtIO、SATA 等设备。
  • Use Case:在阿里云 ECS 上的 Alinux4 实例中,将系统盘从 40GB 扩容到 90GB 时,自动完成分区与文件系统扩容,确保在线生效。

Quick Start

将目标云盘容量设置为期望值并执行技能,系统将自动完成云端扩容、分区调整与文件系统扩容的全流程。

Frequently Asked Questions about storage-resize

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I resize a partition and filesystem after expanding an Aliyun ECS cloud disk?

To resize a partition and filesystem after cloud disk expansion, this Skill coordinates cloud-side capacity expansion with in-OS partition and filesystem growth, automatically applying tools like growpart and xfs_growfs to ensure new capacity is usable online.

Can I automatically grow XFS and EXT4 filesystems on an Alinux4 system disk?

Yes, you can automatically grow XFS and EXT4 filesystems on an Alinux4 system disk. The Skill handles online expansion across NVMe, VirtIO, and SATA devices, executing partition adjustments and filesystem resizing without manual intervention.

What do I need to set up before automating online disk expansion on Aliyun ECS?

Before automating online disk expansion, you need the aliyun-ecs dependency and OS tools such as growpart, xfs_growfs, and resize2fs installed on your Alinux4 instance. You must also set the target cloud disk capacity to your desired value.

Does online disk expansion work with Btrfs filesystems across NVMe and VirtIO devices?

Yes, online disk expansion works with Btrfs filesystems across NVMe, VirtIO, and SATA devices. The Skill supports XFS, EXT4, and Btrfs filesystems, applying safeguards for metadata gathering and recovery steps during the resizing process.

Why is my cloud disk capacity not available after expanding it on Aliyun ECS?

Your cloud disk capacity is not available because the OS partition and filesystem require synchronization after cloud-side expansion. This Skill resolves the issue by automating the two-stage process to adjust partitions and grow filesystems online.

What is the best way to automate system disk expansion from 40GB to 90GB on Aliyun ECS?

The best way to automate system disk expansion is to set the target capacity to 90GB and execute this Skill. It performs end-to-end cloud-side expansion, partition adjustment, and filesystem resizing to ensure the new capacity takes effect online.