:: 테스트를 하기 위해 단일호스트(ComputeNode) 에서 진행할때
Description of common configuration options
# vim /etc/nova/nova.conf
allow_resize_to_same_host = True
(BoolOpt) Allow destination machine to match source for resize. Useful when testing in single-host environments.
:: 인스턴스 현재 사양체크
# cat /proc/cpuinfo |grep proce
processor : 0
# free -m
total used free shared buffers cached
Mem: 996 123 872 0 5 34
-/+ buffers/cache: 83 912
Swap: 0 0 0
:: 1CPU 에서 2CPU / 1G RAM 에서 2G RAM으로 Flavor 변경
root@controller:~# nova flavor-list
usage: nova resize [--poll] <server> <flavor>
root@controller:~# nova resize test_vm1 919a79cf-6013-4108-904c-3630a9e1f199 --poll
Server resizing... 100% complete
Finished
:: resize-confirm Status 값 변경 (VERIFY_RESIZE -> ACTIVE)
usage: nova resize-confirm <server>
root@controller:~# nova resize-confirm test_vm1
:: 인스턴스 변경된 사양 확인
# cat /proc/cpuinfo |grep processor
processor : 0
processor : 1
# free -m
total used free shared buffers cached
Mem: 1877 134 1742 0 5 34
-/+ buffers/cache: 94 1782
Swap: 0 0 0
Flavor migrating Status, Task State 변화
# nova resize <server> <flavor>
| RESIZE | resize_prep | Running
| RESIZE | resize_migrating | Running
| RESIZE | resize_finished | Running
Server resizing complete (Rebooting)
| VERIFY_RESIZE | - | Running
# nova resize-confirm <server>
| ACTIVE | - | Running
사양변경 로그 (resize action-list)
# nova instance-action-list <server>
참고)