Thứ Bảy, 14 tháng 11, 2015

Resize root volume Openstack instance

Quá trình resize root volume được thực hiện ngay khi launch instance, chính vì vậy mà có thể resize root volume sau khi đã launch instace.
Yêu cầu: image/instance có cloud-init
Bước làm:
- Stop instance
$ nova stop <instance-id>
- Check root volume id:
$ nova show <instance-id> | grep volumes
- Reset state volume về available
$ cinder reset-state --state available <volume-id>
- Extend volume
$ cinder extend <volume-id> <size>
- Reset state volume về in-use
$ cinder reset-state --state in-use <volume-id>
- Start instance
$ nova start <instance-id>



Kết quả: ( trước và sau )


Không có nhận xét nào:

Đăng nhận xét