EBS Operations

Make sure instance is ready for EBS

Make sure acpiphp is loaded in the instance you are planning to attach EBS to

 depmod -a
 modprobe acpiphp

See available volumes

 ec2-describe-volumes

Look for available volumes.

Create a volume

To create 1GB of volume at NICPB:

 ec2-create-volume -s 1 -z KBFI

Snapshotting

1. Creating a volume from them snapshot (e.g. restoring previously saved data)

 ec2-create-volume --snapshot <snapshot id> -z KBFI

2. Snapshotting volume

 ec2-create-snapshot <VOLUME-ID>

Attaching a volume

 ec2-attach-volume <volume id> -i <instance id> -d <local device name>

For example:

 ec2-attach-volume vol-FG6578 -i i-345678 -d /dev/sdb

Detaching volumes

 ec2-detach-volume <VOLUME-ID>

Make sure the volume is not mounted when you detach! Otherwise it may corrupt the data.

Deleting volumes

 ec2-delete-volume <VOLUME-ID>

Describing snapshots

 ec2-describe-snapshots

Deleting snapshots

 ec2-delete-snapshot <VOLUME-ID>

Talks and presentations

Cloud administration

Cloud usage

Reading

Blix theme adapted by David Gilbert, powered by PmWiki