In this KB, Adding Disk Space to an Existing Apstra Flow VM is explained.
The default disk size of the Apstra Flow image is 1TB. In this example, we will be adding an additional 200GB of disk space.
1. Expand the Disk in the Hypervisor
1). Stop the VM in the hypervisor.
2). Use the hypervisor tools to add additional disk space.
o Menus/tools will vary depending on the hypervisor used.
o Example: In Proxmox, navigate to Hardware > Hard Disk > Resize.
3). Restart the VM and SSH into it as the apstra user
2. Verify the New Disk Size To check all disks and partitions:
Command: lsblk
What to Look For:
• The disk (vda) now shows 1.2T.
• The partition (vda3) is still at 998G and needs to be extended.
• Your disk might be /dev/sda or some other value instead of /dev/vda.
3. Check Partition Table and Free Space
Command: sudo parted /dev/vda print free
• Free Space available after vda3 (e.g., 215GB).
4. Resize the Partition
Command: sudo parted /dev/vda resizepart 3 100%
Expected Output: Information: You may need to update /etc/fstab.
Since there are no additions, changes or renaming of the partition table, there is no need to update /etc/fstab.
Verify the updated partition table:
Command: sudo parted /dev/vda print
5. Resize the LVM Physical Volume
Command: sudo pvresize /dev/vda3
Expected Output: 1 physical volume(s) resized or updated / 0 physical volume(s) not
Check the Volume Group to confirm free space:
Command: sudo vgdisplay ubuntu-vg
Look for: Free PE / Size: 200.00 GiB
6. Extend the Logical Volume
Command: sudo lvextend -l +100%FREE /dev/ubuntu-vg/data-lv
Expected Output: Size of logical volume ubuntu-vg/data-lv changed from <870.00 GiB to 1.04 TiB.
7. Resize the Filesystem
Command: sudo resize2fs /dev/ubuntu-vg/data-lv
Expected Output:
Filesystem on /dev/ubuntu-vg/data-lv is now 1.1T.
8. Verify the Expanded Filesystem
Command: df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/ubuntu--vg-data--lv 1.1T 2.0G 999G 1% /mnt/data1/opensearch
9. Final Notes
• These steps can be repeated if more space is added in the future.
• Ensure to replace /dev/vda with your actual disk name (e.g., /dev/sda).
• No /etc/fstab changes are needed unless partition numbers change.