Storage Management
Storage management is accomplished using nova-volume
. As mentioned earlier, instance storage is not persistent, so a persistent volume is needed if data will be needed longer than the instance will run.
To create a 10GB storage volume, use the following:
localadmin@watson~$: euca-create-volume -s 10 -z nova
You get output like this:
VOLUME vol-00000002 1 creating (proj, None, None, None) 2011-08-21T11:19:52Z
To list all storage volumes, use this:
localadmin@watson~$ euca-describe-volumes
You will see output like this:
VOLUME vol-00000001 1 nova in-use (proj, None, None, None) 2011-08-21T09:12:42ZVOLUME vol-00000002 1 nova available (proj, None, None, None) 2011-08-21T11:19:52Z
Volumes may only be attached to one running instance ...
Get Ubuntu Unleashed 2013 Edition: Covering 12.10 and 13.04, Eighth Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.