If you just create a volume, you can attach it to the ec2
List available devices to find your new volume
lsblk
- Format the new volume with xfs:
sudo mkfs -t xfs /dev/nvme1n1 (make sure the name is correct)
- Create a mount point
sudo mkdir /data
- Mount the volume
sudo mount /dev/nvme1n1 /data
- Make it permanent by adding to fstab
echo "/dev/nvme1n1 /data xfs defaults,nofail 0 2" | sudo tee -a /etc/fstab