How to create File system and Mount EBS volumes in Linux EC2 instances | AWS Tutorial Malayalam
Автор: Learn with Renish
Загружено: 2024-11-09
Просмотров: 369
Описание:
In this video, I walk you through the process of making a new EBS (Elastic Block Store) volume usable in a Linux EC2 instance. I explain how to create a file system on the EBS volume and mount it to your existing file system, making the new storage device ready to store files and data. Whether you're working with a new EC2 instance or adding extra storage, this step-by-step guide will help you manage and expand your Linux system's storage.
If you like to appreciate my efforts: https://buymeacoffee.com/renishpp
By the end of this video, you'll understand how to:
Format an EBS volume with a file system.
Mount the volume to a directory in your Linux system.
Make the volume available for use in your existing file structure.
References - commands:
Display all attached storage volumes and their file system, if no file system it will be blank
sudo lsblk -f
Create a file system on the volume, xfs is the file system name
you can copy the device name from above lsblk command results
sudo mkfs -t xfs /dev/[your EBS volume device name here]
If mkfs command not found, error do the follow
sudo yum install xfsprogs
Create the directory for mounting
sudo mkdir /data
Ensure folder is created
ls -l /
Mount the volume to the folder
sudo mount /dev/[your EBS volume device name here] /data
Ensure it is properly mounted
df -h /data
Create a file in new volume
cd /data
sudo touch example-file.txt
ls -l
Mount the attached volume automatically after the reboot
----------------------------------------------------------------------------------------------
Take the backup (this step is optional, in case any thing got wrong)
sudo cp /etc/fstab /etc/fstab.orig
Take the UUID of the mounted volume
sudo blkid
Open fstab file
file systems table
configuration file that defines how disk drives and partitions should be mounted in the system during boot
sudo nano /etc/fstab
Add the likne in th efile
UUID=[your EBS volume UUID here, UUID available in blkid command result] /data xfs defaults,nofail 0 2
To save Ctrl + O, then press Enter to cnfirm
To ensure configuration file update is proper and working, you can unmount and mount it again
sudo umount /data
sudo mount -a
df -h /data
#AWS #EBS #EC2 #MountEBS #FileSystem #AWSStorage #AWSTutorial #EC2Tutorial #BlockStorage #LinuxInstance #awsmalayalam #cloudcomputingtutorial #cloudcomputingmalayalam
Повторяем попытку...
Доступные форматы для скачивания:
Скачать видео
-
Информация по загрузке: