Skip to main content

Error :- CannotCreateContainerError: API error (500): devmapper:


Cause :-

This error is caused due to less amount of space available in the root partition.


Solution :-
https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/recognize-expanded-volume-linux.html

Extending the Linux file system:-

Steps to be taken:-

Step 1:-
Increase the size of the root volume from aws console
    1.1 Select the root ebs volume attached to the aws instance
    1.2 Click on the ACTION tab , and then click on modify volume













  1.3 Increase the root volume size as per the requirements

Step 2:-
Check the file system of the root volume
  2.1 df -h
 
  2.2  file -s /dev/xvda1



 2.3  Expand the modified partition (for linux formatted partition)
          growpart /dev/xvda 1
 2.4 Resize each file system
         resize2fs /dev/xvda1

======================================================================
FOR NVME devices on AWS

Step 1:- Modify the size of root volume by using aws console (aws command line)
Step 2:-
  2.1 Check the file system of the instance
    file -s /dev/nvme0n1p1
  2.2 lslbk
  nvme0n1
  |--nvme0n1p1
 2.3 Expand the modified partition (for linux formatted partition)
    growpart /dev/nvme0n1 1
  2.4 Resize each partition
     resize2fs /dev/nvme0n1p1





Comments

Popular posts from this blog

ELK Installation | Configuration

How to remove elk stack from the server? This section of the guide defines the procedure for the removal of various components of the elk stack Elasticsearch The various steps that need to be followed, for the removal of the elasticsearch completely from the server. Check the elasticsearch status It is used to check the status of the elasticsearch service. service elasticsearch status How to install elk on the server? Script for installing the elk stack The elk components in the training are installed with the help of this bash script. #! /bin/bash Name : Bakul Gupta Email : bakulgupta11@gmail.com(github.com/bullhacks3) red= `tput setaf 1` green= `tput setaf 2` yellow= `tput setaf 3` blue= `tput setaf 6` grey= `tput setaf 8` reset= `tput op` function help() { echo -e "\n ${yellow} This script is used to install the elasticsearch on the ${red} debian ${yello...

Cybrary | AWS Cloud Practitioner

Guide: Nicolas Moy Date:- 5th-September-2019 CLF-C01 Exam Guide Four Domains In Exam 1. Cloud Concepts 2. Security 3. Technology 4. Billing & Pricing Lecture 1:- AWS Cloud Computing Concepts What is cloud computing? In simple terms cloud computing is online renting service, that allows us to use the virtual servers, database on the cloud and follows the pay as per use concept. Major cloud computing providers : 1. AWS 2. GCP [ Google Cloud Platform] 3. Digital Ocean 4. Microsoft Azure Advantages : 1. Pay as per use concept 2. Highly scalable, we can increase or decrease the server according to our need 3. World Wide Access Capability 4. Increasing Speed 5. Develop a Global Infrastructure Lecture 2:- Cloud Models & Deployments Different types of cloud computing models 1. IaaS [ Infrastructure as a Service ] Provides the ability to manage the server on your own. 2. PaaS [ Platform as a Service ] Someone else is responsible for m...

AWS | S3

S3 Simple Storage Services Works as object storage instead of block storage S3 is one of the most popular services provided by AWS for the purpose of storing the data on the cloud. File size can vary from 0 bytes to 5 TB Stored in buckets ( a folder in the cloud ) S3 is universal namespace       URL :- https://s3-{region-name}.amazonaws.com/{bucket-name} S3  object consists of the following information : 1. Key ( name of the  object ) 2. Value ( contains  the data ) 3. Version 4. Metadata 5. Subresources     5.1 Access List S3  Storage Classes  1. Standard  2. IA [ Infrequently Accessed ] 3. One Zone - IA 4. Glacier ( used for data archival only ) AWS Pricing Parameters : 1. Storage 2. Requests 3. Storage Management Pricing 4. Data Transfer Pricing 5. Transfer Acceleration s3 transfer acceleration? Enable a fast, secure and reliable way of transferring the data f...