Coder Social home page Coder Social logo

ec2-udev-scripts's Introduction

ec2-udev-scripts

<<<<<<< HEAD

Some udev rules and scripts to enable /dev/disk/by-ebs-volumeid

EC2 Requirements

  1. boto - https://github.com/boto/boto
  2. EC2 IAM Role with ec2:DescribeInstanceAttribute - http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/UsingIAM.html

Setup

  1. sudo cp 52-ec2-volid.rules /etc/udev/rules.d
  2. sudo cp ec2_dev_2_volid.py /sbin
  3. sudo cp ec2blkdev /etc/init.d
  4. sudo chkconfig ec2blkdev on
  5. sudo service ec2blkdev start

Mounting volumes

To mount using the /dev/disk/by-ebs-volumeid/vol-xxxxxxx path, you should add _netdev to the options

[ec2-user@ip-10-244-161-112 ~]$ cat /etc/fstab

LABEL=/ / ext4 defaults,noatime 1 1 tmpfs /dev/shm tmpfs defaults 0 0 devpts /dev/pts devpts gid=5,mode=620 0 0 sysfs /sys sysfs defaults 0 0 proc /proc proc defaults 0 0 /dev/sda3 none swap sw,comment=cloudconfig 0 0 /dev/disk/by-ebs-volumeid/vol-eaa74883 /mnt/ebs ext4 defaults,noatime,_netdev 0 0 [ec2-user@ip-10-244-161-112 ~]

=======

ed4ad87731fedf553bf1186c8ff0224bc4599ef4

ec2-udev-scripts's People

Watchers

 avatar  avatar

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.