GithubHelp home page GithubHelp logo

Comments (8)

brikis98 avatar brikis98 commented on August 13, 2024

Indeed. Using nvme is quite a bit more complicated:

  1. You have to detect if the system is using nvme using lsblk.
  2. You then run nvme list to get the list of nvme volumes (note: this requires the nvme utility to be installed).
  3. You then have to find the device you want using nvme id-ctrl.
  4. And then when mounting the volume, you have to mount it using its UUID, as that's the only thing consistent across reboots.

I don't think we're going to be able to get a fix in soon. Does anyone have some cycles to submit a PR for this in the meantime?

from terraform-aws-couchbase.

tinomen avatar tinomen commented on August 13, 2024

Keep in mind that your step 3 assumes you can reuse the terraform device name. This however throws an error when ASG tries to create the ebs volume. So your solution would have to create a second volume name and pass it forward thru the functions.

from terraform-aws-couchbase.

brikis98 avatar brikis98 commented on August 13, 2024

Keep in mind that your step 3 assumes you can reuse the terraform device name. This however throws an error when ASG tries to create the ebs volume.

What error?

from terraform-aws-couchbase.

tinomen avatar tinomen commented on August 13, 2024

The asg is unable to start the instances because the EBS volume fails creation. I donโ€™t recall the words. Give it a try.

from terraform-aws-couchbase.

brikis98 avatar brikis98 commented on August 13, 2024

We use the approach described in #73 (comment) (which we have in a private script) with a number of ASGs, and it works OK, so I'm not sure how to repro...

from terraform-aws-couchbase.

tinomen avatar tinomen commented on August 13, 2024

What device name are you using? I tired nvme1 and nvme1n1 and the instances failed to start due to a failed ebs volume.

Well, hopefully the issue and this closed pr will help someone overcome the hurdles in making these scripts production ready.

from terraform-aws-couchbase.

brikis98 avatar brikis98 commented on August 13, 2024

As I wrote above, we use the UUID, which we look up using blkid.

from terraform-aws-couchbase.

ellisonc avatar ellisonc commented on August 13, 2024

This repo is being archived, feel free to use a fork if necessary.

from terraform-aws-couchbase.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.