Error related to disk while changing instance type from c4.large to c5.xlarge for ubuntu linux machine ...

Check which numbers satisfy the condition [A*B*C = A! + B! + C!]

How to deal with a team lead who never gives me credit?

Is it ethical to give a final exam after the professor has quit before teaching the remaining chapters of the course?

How to find all the available tools in macOS terminal?

Why are there no cargo aircraft with "flying wing" design?

What is the musical term for a note that continously plays through a melody?

Is there a documented rationale why the House Ways and Means chairman can demand tax info?

Dominant seventh chord in the major scale contains diminished triad of the seventh?

What does '1 unit of lemon juice' mean in a grandma's drink recipe?

How do I mention the quality of my school without bragging

How discoverable are IPv6 addresses and AAAA names by potential attackers?

What is the correct way to use the pinch test for dehydration?

When to stop saving and start investing?

What are the motives behind Cersei's orders given to Bronn?

What do you call a plan that's an alternative plan in case your initial plan fails?

What happens to sewage if there is no river near by?

3 doors, three guards, one stone

If 'B is more likely given A', then 'A is more likely given B'

Bonus calculation: Am I making a mountain out of a molehill?

Problem drawing boxes with arrows in tikZ

How can I make names more distinctive without making them longer?

How to motivate offshore teams and trust them to deliver?

What's the purpose of writing one's academic bio in 3rd person?

do i need a schengen visa for a direct flight to amsterdam?



Error related to disk while changing instance type from c4.large to c5.xlarge for ubuntu linux machine



Announcing the arrival of Valued Associate #679: Cesar Manara
Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern)
Come Celebrate our 10 Year Anniversary!ubuntu: scan hard disk for physical problemsPrevent other admin users from changing network settings, ubuntu linuxRoot mount error while upgrading from ubuntu 10.10 to 11.04Changing eDirectory Password From Linux Machineloading testing from a one ec2 linux/ubuntu instance to another ec2 linux/ubuntu instanceHow do I download a file from my Ubuntu EC2 Instance to my local windows machineUbuntu mysql error: Disk is full writingNo entry for terminal type “unknown” ErrorLarge file named 'etc/nginx/on' for nginx on UbuntuUbuntu with ENA installed doesn't boot on C5 instance type





.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ height:90px;width:728px;box-sizing:border-box;
}







0















I am providing user data to linux machine by cloudformation and its working fine when i am using c4 class type(example: c4.large, c4.xlarge) while it stop working when i am changing instance type in cloudformation and deploying on server by running jenkin job.



i am using c4.large and when i changed instance type to c5.xlarge it was not working so for testing when i change to c4.xlarge, it was working so problem is only with c5 instance type. i also checked both instance type using optimized EBS volume so there is no big different on disk level.



Logs:



Mar 28 05:50:30 ip-10-116-54-180 cloud-init[1876]: Setting up python3-botocore (1.4.70-1~16.04.0) ...
Mar 28 05:50:30 ip-10-116-54-180 cloud-init[1876]: Setting up python3-s3transfer (0.1.9-1~16.04.0) ...
Mar 28 05:50:31 ip-10-116-54-180 cloud-init[1876]: Setting up awscli (1.11.13-1ubuntu1~16.04.0) ...
Mar 28 05:50:31 ip-10-116-54-180 cloud-init[1876]: Processing triggers for libc-bin (2.23-0ubuntu11) ...
**Mar 28 05:50:32 ip-10-116-54-180 cloud-init[1876]: Error: Could not stat device /dev/xvdb - No such file or directory.
Mar 28 05:50:32 ip-10-116-54-180 cloud-init[1876]: #015 #015Error: Could not stat device /dev/xvdb - No such file or directory.**
Mar 28 05:50:39 ip-10-116-54-180 systemd[1]: Created slice User Slice of ubuntu.
Mar 28 05:50:39 ip-10-116-54-180 systemd[1]: Starting User Manager for UID 1000...
Mar 28 05:50:39 ip-10-116-54-180 systemd[1]: Started Session 1 of user ubuntu.
Mar 28 05:50:39 ip-10-116-54-180 systemd[8734]: Reached target Sockets.
Mar 28 05:50:39 ip-10-116-54-180 systemd[8734]: Reached target Timers.
Mar 28 05:50:39 ip-10-116-54-180 systemd[8734]: Reached target Paths.
Mar 28 05:50:39 ip-10-116-54-180 systemd[8734]: Reached target Basic System.
Mar 28 05:50:39 ip-10-116-54-180 systemd[8734]: Reached target Default.
Mar 28 05:50:39 ip-10-116-54-180 systemd[8734]: Startup finished in 8ms.
Mar 28 05:50:39 ip-10-116-54-180 systemd[1]: Started User Manager for UID 1000.
Mar 28 05:50:55 ip-10-116-54-180 amazon-ssm-agent.amazon-ssm-agent[1800]: 2019-03-28 05:50:55 INFO [HealthCheck] HealthCheck reporting agent health.
Mar 28 05:53:32 ip-10-116-54-180 systemd[1]: Started Session 2 of user ubuntu.


User Data for instance:



#!/bin/bash
export DEBIAN_FRONTEND=noninteractive
apt-get update
apt-get install -y awscli python-pip python-dev python-virtualenv
mkdir /var/log/nginx
parted /dev/xvdb mklabel gpt
parted -a opt /dev/xvdb mkpart primary ext4 0% 100%
echo '/dev/xvdb1 /var/log/nginx ext4 defaults 0 0' >> /etc/fstab
sleep 10
while [ ! -e /dev/xvdb1 ]; do sleep 1; done
mkfs.ext4 /dev/xvdb1
mount /var/log/nginx
chown root:adm /var/log/nginx
aws s3 cp s3://bw-ald-euwe1-dev-routing/aws-ss-routing/features/P2PDO-3152-scaleup-routingservice-nodes-to-c5.xlarge-all-region/000003/aws-ss-routing.tar.gz .
tar zxvf aws-ss-routing.tar.gz
chmod +x nginx/install.sh
cd nginx && ./install.sh


As c5 class is advance level class for c4 class type so i need to use this and solve this problem.









share







New contributor




user2682305 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.



























    0















    I am providing user data to linux machine by cloudformation and its working fine when i am using c4 class type(example: c4.large, c4.xlarge) while it stop working when i am changing instance type in cloudformation and deploying on server by running jenkin job.



    i am using c4.large and when i changed instance type to c5.xlarge it was not working so for testing when i change to c4.xlarge, it was working so problem is only with c5 instance type. i also checked both instance type using optimized EBS volume so there is no big different on disk level.



    Logs:



    Mar 28 05:50:30 ip-10-116-54-180 cloud-init[1876]: Setting up python3-botocore (1.4.70-1~16.04.0) ...
    Mar 28 05:50:30 ip-10-116-54-180 cloud-init[1876]: Setting up python3-s3transfer (0.1.9-1~16.04.0) ...
    Mar 28 05:50:31 ip-10-116-54-180 cloud-init[1876]: Setting up awscli (1.11.13-1ubuntu1~16.04.0) ...
    Mar 28 05:50:31 ip-10-116-54-180 cloud-init[1876]: Processing triggers for libc-bin (2.23-0ubuntu11) ...
    **Mar 28 05:50:32 ip-10-116-54-180 cloud-init[1876]: Error: Could not stat device /dev/xvdb - No such file or directory.
    Mar 28 05:50:32 ip-10-116-54-180 cloud-init[1876]: #015 #015Error: Could not stat device /dev/xvdb - No such file or directory.**
    Mar 28 05:50:39 ip-10-116-54-180 systemd[1]: Created slice User Slice of ubuntu.
    Mar 28 05:50:39 ip-10-116-54-180 systemd[1]: Starting User Manager for UID 1000...
    Mar 28 05:50:39 ip-10-116-54-180 systemd[1]: Started Session 1 of user ubuntu.
    Mar 28 05:50:39 ip-10-116-54-180 systemd[8734]: Reached target Sockets.
    Mar 28 05:50:39 ip-10-116-54-180 systemd[8734]: Reached target Timers.
    Mar 28 05:50:39 ip-10-116-54-180 systemd[8734]: Reached target Paths.
    Mar 28 05:50:39 ip-10-116-54-180 systemd[8734]: Reached target Basic System.
    Mar 28 05:50:39 ip-10-116-54-180 systemd[8734]: Reached target Default.
    Mar 28 05:50:39 ip-10-116-54-180 systemd[8734]: Startup finished in 8ms.
    Mar 28 05:50:39 ip-10-116-54-180 systemd[1]: Started User Manager for UID 1000.
    Mar 28 05:50:55 ip-10-116-54-180 amazon-ssm-agent.amazon-ssm-agent[1800]: 2019-03-28 05:50:55 INFO [HealthCheck] HealthCheck reporting agent health.
    Mar 28 05:53:32 ip-10-116-54-180 systemd[1]: Started Session 2 of user ubuntu.


    User Data for instance:



    #!/bin/bash
    export DEBIAN_FRONTEND=noninteractive
    apt-get update
    apt-get install -y awscli python-pip python-dev python-virtualenv
    mkdir /var/log/nginx
    parted /dev/xvdb mklabel gpt
    parted -a opt /dev/xvdb mkpart primary ext4 0% 100%
    echo '/dev/xvdb1 /var/log/nginx ext4 defaults 0 0' >> /etc/fstab
    sleep 10
    while [ ! -e /dev/xvdb1 ]; do sleep 1; done
    mkfs.ext4 /dev/xvdb1
    mount /var/log/nginx
    chown root:adm /var/log/nginx
    aws s3 cp s3://bw-ald-euwe1-dev-routing/aws-ss-routing/features/P2PDO-3152-scaleup-routingservice-nodes-to-c5.xlarge-all-region/000003/aws-ss-routing.tar.gz .
    tar zxvf aws-ss-routing.tar.gz
    chmod +x nginx/install.sh
    cd nginx && ./install.sh


    As c5 class is advance level class for c4 class type so i need to use this and solve this problem.









    share







    New contributor




    user2682305 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
    Check out our Code of Conduct.























      0












      0








      0








      I am providing user data to linux machine by cloudformation and its working fine when i am using c4 class type(example: c4.large, c4.xlarge) while it stop working when i am changing instance type in cloudformation and deploying on server by running jenkin job.



      i am using c4.large and when i changed instance type to c5.xlarge it was not working so for testing when i change to c4.xlarge, it was working so problem is only with c5 instance type. i also checked both instance type using optimized EBS volume so there is no big different on disk level.



      Logs:



      Mar 28 05:50:30 ip-10-116-54-180 cloud-init[1876]: Setting up python3-botocore (1.4.70-1~16.04.0) ...
      Mar 28 05:50:30 ip-10-116-54-180 cloud-init[1876]: Setting up python3-s3transfer (0.1.9-1~16.04.0) ...
      Mar 28 05:50:31 ip-10-116-54-180 cloud-init[1876]: Setting up awscli (1.11.13-1ubuntu1~16.04.0) ...
      Mar 28 05:50:31 ip-10-116-54-180 cloud-init[1876]: Processing triggers for libc-bin (2.23-0ubuntu11) ...
      **Mar 28 05:50:32 ip-10-116-54-180 cloud-init[1876]: Error: Could not stat device /dev/xvdb - No such file or directory.
      Mar 28 05:50:32 ip-10-116-54-180 cloud-init[1876]: #015 #015Error: Could not stat device /dev/xvdb - No such file or directory.**
      Mar 28 05:50:39 ip-10-116-54-180 systemd[1]: Created slice User Slice of ubuntu.
      Mar 28 05:50:39 ip-10-116-54-180 systemd[1]: Starting User Manager for UID 1000...
      Mar 28 05:50:39 ip-10-116-54-180 systemd[1]: Started Session 1 of user ubuntu.
      Mar 28 05:50:39 ip-10-116-54-180 systemd[8734]: Reached target Sockets.
      Mar 28 05:50:39 ip-10-116-54-180 systemd[8734]: Reached target Timers.
      Mar 28 05:50:39 ip-10-116-54-180 systemd[8734]: Reached target Paths.
      Mar 28 05:50:39 ip-10-116-54-180 systemd[8734]: Reached target Basic System.
      Mar 28 05:50:39 ip-10-116-54-180 systemd[8734]: Reached target Default.
      Mar 28 05:50:39 ip-10-116-54-180 systemd[8734]: Startup finished in 8ms.
      Mar 28 05:50:39 ip-10-116-54-180 systemd[1]: Started User Manager for UID 1000.
      Mar 28 05:50:55 ip-10-116-54-180 amazon-ssm-agent.amazon-ssm-agent[1800]: 2019-03-28 05:50:55 INFO [HealthCheck] HealthCheck reporting agent health.
      Mar 28 05:53:32 ip-10-116-54-180 systemd[1]: Started Session 2 of user ubuntu.


      User Data for instance:



      #!/bin/bash
      export DEBIAN_FRONTEND=noninteractive
      apt-get update
      apt-get install -y awscli python-pip python-dev python-virtualenv
      mkdir /var/log/nginx
      parted /dev/xvdb mklabel gpt
      parted -a opt /dev/xvdb mkpart primary ext4 0% 100%
      echo '/dev/xvdb1 /var/log/nginx ext4 defaults 0 0' >> /etc/fstab
      sleep 10
      while [ ! -e /dev/xvdb1 ]; do sleep 1; done
      mkfs.ext4 /dev/xvdb1
      mount /var/log/nginx
      chown root:adm /var/log/nginx
      aws s3 cp s3://bw-ald-euwe1-dev-routing/aws-ss-routing/features/P2PDO-3152-scaleup-routingservice-nodes-to-c5.xlarge-all-region/000003/aws-ss-routing.tar.gz .
      tar zxvf aws-ss-routing.tar.gz
      chmod +x nginx/install.sh
      cd nginx && ./install.sh


      As c5 class is advance level class for c4 class type so i need to use this and solve this problem.









      share







      New contributor




      user2682305 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.












      I am providing user data to linux machine by cloudformation and its working fine when i am using c4 class type(example: c4.large, c4.xlarge) while it stop working when i am changing instance type in cloudformation and deploying on server by running jenkin job.



      i am using c4.large and when i changed instance type to c5.xlarge it was not working so for testing when i change to c4.xlarge, it was working so problem is only with c5 instance type. i also checked both instance type using optimized EBS volume so there is no big different on disk level.



      Logs:



      Mar 28 05:50:30 ip-10-116-54-180 cloud-init[1876]: Setting up python3-botocore (1.4.70-1~16.04.0) ...
      Mar 28 05:50:30 ip-10-116-54-180 cloud-init[1876]: Setting up python3-s3transfer (0.1.9-1~16.04.0) ...
      Mar 28 05:50:31 ip-10-116-54-180 cloud-init[1876]: Setting up awscli (1.11.13-1ubuntu1~16.04.0) ...
      Mar 28 05:50:31 ip-10-116-54-180 cloud-init[1876]: Processing triggers for libc-bin (2.23-0ubuntu11) ...
      **Mar 28 05:50:32 ip-10-116-54-180 cloud-init[1876]: Error: Could not stat device /dev/xvdb - No such file or directory.
      Mar 28 05:50:32 ip-10-116-54-180 cloud-init[1876]: #015 #015Error: Could not stat device /dev/xvdb - No such file or directory.**
      Mar 28 05:50:39 ip-10-116-54-180 systemd[1]: Created slice User Slice of ubuntu.
      Mar 28 05:50:39 ip-10-116-54-180 systemd[1]: Starting User Manager for UID 1000...
      Mar 28 05:50:39 ip-10-116-54-180 systemd[1]: Started Session 1 of user ubuntu.
      Mar 28 05:50:39 ip-10-116-54-180 systemd[8734]: Reached target Sockets.
      Mar 28 05:50:39 ip-10-116-54-180 systemd[8734]: Reached target Timers.
      Mar 28 05:50:39 ip-10-116-54-180 systemd[8734]: Reached target Paths.
      Mar 28 05:50:39 ip-10-116-54-180 systemd[8734]: Reached target Basic System.
      Mar 28 05:50:39 ip-10-116-54-180 systemd[8734]: Reached target Default.
      Mar 28 05:50:39 ip-10-116-54-180 systemd[8734]: Startup finished in 8ms.
      Mar 28 05:50:39 ip-10-116-54-180 systemd[1]: Started User Manager for UID 1000.
      Mar 28 05:50:55 ip-10-116-54-180 amazon-ssm-agent.amazon-ssm-agent[1800]: 2019-03-28 05:50:55 INFO [HealthCheck] HealthCheck reporting agent health.
      Mar 28 05:53:32 ip-10-116-54-180 systemd[1]: Started Session 2 of user ubuntu.


      User Data for instance:



      #!/bin/bash
      export DEBIAN_FRONTEND=noninteractive
      apt-get update
      apt-get install -y awscli python-pip python-dev python-virtualenv
      mkdir /var/log/nginx
      parted /dev/xvdb mklabel gpt
      parted -a opt /dev/xvdb mkpart primary ext4 0% 100%
      echo '/dev/xvdb1 /var/log/nginx ext4 defaults 0 0' >> /etc/fstab
      sleep 10
      while [ ! -e /dev/xvdb1 ]; do sleep 1; done
      mkfs.ext4 /dev/xvdb1
      mount /var/log/nginx
      chown root:adm /var/log/nginx
      aws s3 cp s3://bw-ald-euwe1-dev-routing/aws-ss-routing/features/P2PDO-3152-scaleup-routingservice-nodes-to-c5.xlarge-all-region/000003/aws-ss-routing.tar.gz .
      tar zxvf aws-ss-routing.tar.gz
      chmod +x nginx/install.sh
      cd nginx && ./install.sh


      As c5 class is advance level class for c4 class type so i need to use this and solve this problem.







      linux ubuntu nginx





      share







      New contributor




      user2682305 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.










      share







      New contributor




      user2682305 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.








      share



      share






      New contributor




      user2682305 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.









      asked 1 min ago









      user2682305user2682305

      1




      1




      New contributor




      user2682305 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.





      New contributor





      user2682305 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.






      user2682305 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.






















          0






          active

          oldest

          votes












          Your Answer








          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "2"
          };
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function() {
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled) {
          StackExchange.using("snippets", function() {
          createEditor();
          });
          }
          else {
          createEditor();
          }
          });

          function createEditor() {
          StackExchange.prepareEditor({
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });






          user2682305 is a new contributor. Be nice, and check out our Code of Conduct.










          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fserverfault.com%2fquestions%2f963226%2ferror-related-to-disk-while-changing-instance-type-from-c4-large-to-c5-xlarge-fo%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          0






          active

          oldest

          votes








          0






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes








          user2682305 is a new contributor. Be nice, and check out our Code of Conduct.










          draft saved

          draft discarded


















          user2682305 is a new contributor. Be nice, and check out our Code of Conduct.













          user2682305 is a new contributor. Be nice, and check out our Code of Conduct.












          user2682305 is a new contributor. Be nice, and check out our Code of Conduct.
















          Thanks for contributing an answer to Server Fault!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fserverfault.com%2fquestions%2f963226%2ferror-related-to-disk-while-changing-instance-type-from-c4-large-to-c5-xlarge-fo%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          As a Security Precaution, the user account has been locked The Next CEO of Stack OverflowMS...

          Список ссавців Італії Природоохоронні статуси | Список |...

          Українські прізвища Зміст Історичні відомості |...