Mount an ESB under Amazon EC2 to a server

Source: Internet
Author: User
Tags aws management console

 

1.Create an Amazon EBS volume

  1. Log in to the AWS Management Console and click the Amazon EC2 tab.

  2. Click volumes in the Navigation Pane.

    The console displays a list of current volumes.

  3. Click Create volume.

    The create volume dialog box appears.

  4. Configure the following settings and click Create.

    • Size of the volume (in Gib)

    • Availability zone in which to launch the instance

    • The ID of the snapshot from which you are launching the volume (optional

 

 

2.To attach an Amazon EBS volume

  1. Log in to the AWS Management Console and click
    The Amazon EC2 tab.

  2. Click volumes in the Navigation Pane.

    The console displays a list of current volumes.

  3. Select a volume and click attach volume.

    The attach volume dialog box appears.

  4. Select the instance to attach the volume to from the instance list box (only
    Instances in the same availability zone as the volume are displayed ).

  5. Select how the device is exposed to the instance from the device list box.

  6. Click attach.

    The volume is attached to the instance.

 

3. To create an ext3 File System on the Amazon EBS volume and mount it as/mnt/data-store

  1. Enter the following command.

    $  yes | mkfs -t ext3 /dev/sdh 
  2. Enter the following command.

    $  mkdir /mnt/data-store
  3. Enter the following command.

    $  mount /dev/sdh /mnt/data-store

Any data written to this file system is written to the Amazon EBS volume and is transparent to applications using
The device.

 

Note:The YES command cannot be used in centos.Volume selectedSnapshot.Mkfs-T ext3/dev/SDH can be mounted directly.

 

 

 

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.