check using volume from list
openstack volume list
set status to available
to a volume
openstack volume set --state available [volume id]
resize the volume
openstack volume set --size 40 [volume id]
check size and status again
Openstack volume show [volume id]
status become in-use
, size become 40. It's attached to /dev/vda.
However, login into the vm, use df -h
check, didn't find /dev/vda
.
Filesystem Size Used Avail Use% Mounted on
/dev/vda1 20G 1.8G 19G 9% /
devtmpfs 1.9G 0 1.9G 0% /dev
tmpfs 1.9G 0 1.9G 0% /dev/shm
tmpfs 1.9G 17M 1.9G 1% /run
tmpfs 1.9G 0 1.9G 0% /sys/fs/cgroup
tmpfs 379M 0 379M 0% /run/user/1000
Why it doesn't change?