On 11/11/2013 11:10 PM, Haomai Wang wrote:
Hi all,
Now OpenStack Nova master branch still exists a bug when you boot a VM which
root disk size is specified. The storage backend of Nova also is rbd. For
example, you boot a VM and specify 10G as root disk size. But the image is only
1G. Then VM will be spawned and the root disk size will expands to 10G. The
filesystem still is 1G.
Now I have a way to solve it. When we boot a VM and resize root disk size, we use
"fuse-rbd" command to resize filesystem.
fuse-rbd -p pool -c /etc/ceph/ceph.conf /tmp-ceph-rbd
cd /tmp-ceph-rbd
resize2fs volume-xxxxxxxxxxx
It seemed to work but I want to know whether exists problems when many volumes
in a pool. I'm not sure that too many volumes cause performance problem.
fuse-rbd has a 128 image limit at the moment. It's more of a prototype
than something I'd recommend relying on.
Interacting with an untrusted filesystem on a compute host is also a
bit worrying from a security perspective. If you really need to resize
the fs and can't use cloud-init, using libguestfs would be best. This
isolates the operations into a vm, so the host kernel isn't interacting
with untrusted filesystems.
Josh
--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html