1.Create an Amazon EBS volume
Log in to the AWS Management Console and click the Amazon EC2 tab.
Click volumes in the Navigation Pane.
The console displays a list of current volumes.
Click Create volume.
The create volume dialog box appears.
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
Log in to the AWS Management Console and click
The Amazon EC2 tab.
Click volumes in the Navigation Pane.
The console displays a list of current volumes.
Select a volume and click attach volume.
The attach volume dialog box appears.
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 ).
Select how the device is exposed to the instance from the device list box.
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
Enter the following command.
$
yes | mkfs -t ext3 /dev/sdh
Enter the following command.
$
mkdir /mnt/data-store
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.