Success to add Volume service and attach volume into instance

Attach device must be after /dev/vda 

for example
#euca-attach-volume -i  <instance> -d /dev/vd[b,c,d,e] <volume_ID>



#euca-describe-volume

VOLUME  vol-00000003     5              nova    in-use (hugopro, ubuntu2, i-00000017[ubuntu3], \/dev\/vdb)      2011-04-14T09:07:02Z


instance#fdisk-l

Disk /dev/vda: 1476 MB, 1476395008 bytes
16 heads, 63 sectors/track, 2860 cylinders
Units = cylinders of 1008 * 512 = 516096 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000

Disk /dev/vda doesn't contain a valid partition table

Disk /dev/vdb: 5368 MB, 5368709120 bytes
16 heads, 63 sectors/track, 10402 cylinders
Units = cylinders of 1008 * 512 = 516096 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000

Comments

  1. dear Hugo k.
    請問用euca-run-instance建立的instance自帶的storage,跟用euca-create-volume建立掛於instance上的storage,有什麼不一樣?thanks.

    ReplyDelete
  2. Volume = EBS
    可以永久保存的blockdevice


    自帶的就像img 本身的暫時性device

    ReplyDelete
  3. dear Hugo k.

    我操作volume狀態如下:
    $ euca-describe-volumes
    VOLUME vol-00000001 40 nova error_deleting (yljh, server1, None, None) 2011-07-18T13:35:36Z

    $ euca-detach-volume vol-00000001
    ApiError: ApiError: Volume isn't attached to anything!

    刪除volume結果如下:
    $ euca-delete-volume vol-00000001
    ApiError: ApiError: 卷组状态必须可获取

    要怎麼才可以把這沒用的volume刪掉?thanks.

    ReplyDelete
  4. Hello , beginner ...
    我記得之前我是從VG下手後再把DB那筆資料k掉的

    ReplyDelete
  5. sorry,看不太懂,可以詳細告知嗎?thanks.

    ReplyDelete
  6. hi,我找到解決方法:
    用lvremove指令刪除/dev/nova-volumes/下不要的volume
    進入mysql,刪除volumes資料表內不要的volume記錄即可。
    感謝提醒。

    ReplyDelete
  7. dear Hugo k.
    instance附掛一volume,修改/etc/fstab,以便vm重開時掛載。發現vm重開時,volume的硬碟都會掛上,但是node server重開後,再reboot此instance,卻發現掛不上volume...請問這問題要如何處理較好?

    ReplyDelete

Post a Comment

Popular posts from this blog