Increase disk space of a new AWS instance
The following topic explains how to increase the disk space of a newly deployed AWS instance (running CentOS 7) by extending your out-of-the-box storage device.
The AlgoSec AMI comes with 250 GB in the data partition. After you deploy it in a AWS environment, according to your sizing, you may need to increase the disk space of your newly deployed AWS instance.
Increase disk space (up to 6 TB)
Do the following:
During the Add Storage phase of the setup process, increase disk space on your AWS instance.
-
Run fdisk -l to check the Physical Volume name:
-
Run pvdisplay to verify the physical volume /dev/nvme2n1 already in vg_algosec group:
-
Run pvresize /dev/nvme2n1 to resize PV and Run pvdisplay to see the change:
-
Run vgdisplay to see the VG size has already changed:
-
Run lvextend /dev/vg_algosec/data -l+100%FREE to extend the LV:
-
Run lvdisplay:
-
Run df -h:
-
Run xfs_growfs /dev/vg_algosec/data:
-
Run df -h: