Amazon EC2 下 ESB 挂载到 服务器上

 

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.

 

注意:centos下不能用yes命令,如果创建volume 时选择了 Snapshot,那就就不用执行mkfs -t ext3 /dev/sdh,直接就可以挂载了。

 

 

 

 

你可能感兴趣的:(list,centos,服务器,ext,System,dialog)