The ArcGIS for Server AMI comes with an attached EBS volume. The size of this volume is set at 100 GB by default when you build your site with ArcGIS Server Cloud Builder on Amazon Web Services. If you build your site with the AWS Management Console, the size is 10 GB. If you need more space, you can create additional volumes and attach them to your EC2 instance.
The steps below explain how to create a new EBS volume and attach it to your EC2 instance.
- Open the AWS Management Console and display the EC2 page corresponding to your Amazon region.
- From the left menu, click Volumes.
- Click the Create Volume button.
- Type a value for Size. Remember that you will be charged by Amazon for the size you choose, and you cannot change this size once you've created the volume.
- Choose a value for Availability Zone. You need to match the zone of the EC2 instance to which you will attach the volume.
- If you don't know the zone of the instance to which you want to attach the volume, return to the AWS Management Console, click Instances, click your instance, then examine the Description tab to find the zone.
- Optionally, choose a snapshot. Snapshots are a way of preformatting a disk with certain datasets. To create a new empty disk, choose No Snapshot.
- Click Yes, Create to create the volume. This can take a while. When the volume is ready, you'll see its status change from Creating to Available in the AWS Management Console.
- You've successfully created your EBS volume, but it's not attached to your EC2 instance yet. The remaining steps explain how to format the disk and attach it to your instance.
- Right-click the volume and click Attach Volume.
- Choose your instance from the drop-down list. Remember that you can only attach your volume to instances that reside in the same availability zone.
- Use the Device field to specify how to expose the volume to the instance (/dev/sdb through /dev/sdz). Click Attach.
It may take a few minutes to attach your volume. You can see the status in the Attachment Information column in the AWS Management Console list of volumes. After a while, Attaching changes to Attached.
- To make a volume available to the Linux operating system, use the following command (the following command is an example of how to create an ext3 file system and mount it as /mnt/data-store):
ssh –i <your key pair file> ubuntu@<Public DNS of your EC2 instance> sudo yes | mkfs –t ext3 /dev/sdh Caution: This procedure assumes you want to mount an empty volume. If you're mounting a volume that already has data on it, don't use mkfs before mounting the volume. Otherwise you'll format the volume and delete the existing data. sudo mkdir /mnt/data-store sudo 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.