How to add AWS EBS volume

Prerequisites

Environment: Amazon Linux AMI release 2015.09 What you want to do: Add 50GB to your backup volume

How to add an EBS volume?

It is good to add and assign the added volume in the AWS console.

Specific procedure

① Log in to the target environment with teraterm and become root authority

# sudo -s

② Use the following command to grasp the current volume

# lsblk
# df -h

③ Change the volume of the target virtual machine on the AWS console

④ Log in to the target environment again with teraterm and become root authority.

# sudo -s

⑤ Change the size

# resize2fs /dev/xvda 
            [Volume name to change]

⑥ Confirm that the size has been changed

# lsblk
# df -h

The above is the volume expansion method of EBS.

We look forward to helping you.

Recommended Posts

How to add AWS EBS volume
How to add sudo when debugging
How to add a package with PyCharm
How to add python module to anaconda environment
How to add options to Django's manage.py runserver
Summary of how to write AWS Lambda
[2020 version] How to install Python3 on AWS EC2
How to add arbitrary headers to response with FastAPI
How to add a Python module search path
How to add Anaconda Powershell Prompt to Windows Terminal?
[AWS / Lambda] How to load Python external library
[ESXi (vCenter)] How to add NIC for CentOS 7.3
Add convolution to MNIST
How to use xml.etree.ElementTree
How to make AWS rekognition recognize local image files
How to use Python-shell
How to use tf.data
How to use virtualenv
[Python] [Django] How to use ChoiceField and how to add options
Scraping 2 How to scrape
How to add help to HDA (with Python script bonus)
How to use Seaboan
How to use image-match
How to use shogun
How to install Python
How to use Pandas 2
How to install pip
How to use Virtualenv
How to use numpy.vectorize
How to update easy_install
How to install archlinux
How to install python
How to virtual host
How to debug selenium
How to use partial
How to use Bio.Phylo
How to read JSON
How to use SymPy
How to use WikiExtractor.py
How to update Spyder
How to use IPython
How to install BayesOpt
How to set layer on Lambda using AWS SAM
How to use virtualenv
How to use Matplotlib
How to use iptables
How to add page numbers to PDF files (in Python)
How to use numpy
How to use TokyoTechFes2015
How to use venv
How to use dictionary {}
How to grow dotfiles
How to use list []
[AWS EC2] How to install Maven on Amazon Linux 2
[Morphological analysis] How to add a new dictionary to Mecab
"How to count Fukashigi"
How to install Nbextensions
How to use OptParse
How to add color bars in matplotlib bar plot
How to use return
How to install Prover9