Eucalyptus volumes

From Bashlinux
Revision as of 01:51, 10 June 2015 by Manpaz (talk | contribs) (Created page with "__NOTOC__ === How to create a volume === euca-create-volume -z cluster01 -s 2 === How to list volumes === euca-describe-volumes === How to attach a volume to a running ins...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

How to create a volume

euca-create-volume -z cluster01 -s 2

How to list volumes

euca-describe-volumes

How to attach a volume to a running instance

euca-attach-volume -i i-5B7942F1 -d /dev/sdb1 vol-E54C3B1A

How to detach a volume from any instance

Note that instance name is not necessary here

euca-detach-volume vol-E54C3B1A

How to extend root FS

dd if=/dev/zero of=4g.img count=4096 bs=1M
dd if=eucalyptus.img of=4g.img conv=notrunc
losetup /dev/loop0 4g.img
e2fsck -f /dev/loop0
resize2fs /dev/loop0
e2fsck -f /dev/loop0
losetup -d /dev/loop0

EBS References