increase-ec2-storage

increase-ec2-storage

>> Command to check the volume size and partition size 

$ lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
nvme0n1 259:0 0 60G 0 disk 
└─nvme0n1p1 259:1 0 30G 0 part /

>> Command to extend the first partition 

$ sudo growpart /dev/nvme0n1 1 
CHANGED: ....
$ lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
nvme0n1 259:0 0 60G 0 disk 
└─nvme0n1p1 259:1 0 60G 0 part /

df -h /
Filesystem Size Used Avail Use% Mounted on
/dev/nvme0n1p1 30G 814M 28G 3% /

>> Command to extend an ext* filesystem

$ sudo resize2fs /dev/nvme0n1p1

$df -h /
Filesystem Size Used Avail Use% Mounted on
/dev/nvme0n1p1 59G 952M 56G 2% /

    • Related Articles

    • AWS Services

      AWS also provides many other functionalities other than server like domain hosting, Email sending, Monitoring, Alerting, AI  For a website, we can use the following basic AWS services 1. EC2- Elastic Compute Cloud It consists of Compute and ...
    • HOW TO LOGIN OPENXCELL AWS ACCOUNT

      Login steps for openxcell AWS. Step 1 : Raise ticket for AWS Access. ( mail address  : devops@openxcell.info ) [ Ticket will required only for new access ] Hit this URL Step 2 : https://openxcelldev.awsapps.com/start#/ Step 3 : Enter login I'd / ...
    • AWS Free Tier

      Some Common Frequently asked questions! 1. What is the capacity of free tier? How many users it can hold. - that entirely upon your application. We can test load balancing on that server after your application gets developed. Before that, it's ...
    • AWS Services Pricing

      AWS EC2 Pricing.  Instance Type vCPUs RAM Per/Hour Per/Month  t2.nano 1 0.5 $0.0058 $4.23 t2.micro 1 1 $0.0116 $8.47 t2.small 1 2 $0.0232 $16.04 t2.medium 2 4 $0.0464 $33.87 t2.large 2 8 $0.0928 $67.74 t2.xlarge 4 16 $0.1856 $135.49 t2.2xlarge 8 32 ...
    • PostgreSQL basic commnad

      How to connect AWS-RDS of PostgreSQL using terminal or CMD & basic of PostgreSQL - syntax format psql -h HOSTNAME --port=5432 -U USERNAME DATABASENAME -W -h = host or RDS Endpoint -p 5432 pre define port for postgresql -u user name for database ...