Create Volume using AWS and attach it to instance
- ssh to the server
- Run the following commands
sudo su - root
lsblk
sudo file -s /dev/xvdf
mkfs -t ext4 /dev/xvdf # will format the volume
sudo mkdir /data # create new folder for volume
sudo mount /dev/xvdf /data
cp /etc/fstab /etc/fstab.backup
echo "/dev/xvdf /data ext4 defaults,nofail 0 2" >> /etc/fstab