I want my vm to use a filesystem tree consisting of multiple filesystem mounted together:
mount <root-path> /var/lib/vz/private/<id>/
mount <home-path> /var/lib/vz/private/<id>/home/
Using this layout vzctl start
fails since vzquota
can not work on busy directories. /var/lib/vz/private/<id>/
is busy since there is something mounted inside it.
How can I create such a filesystem tree and still use it for a vm?
Some solutions which do not work
mount --bind
When bind mounting a directory, the busy flag is preserved, and is therefore still preventing vzquota from working.
aufs
Using aufs
with only one source filesystem is much alike bind mounting. Unfortunately my root filesystem is already aufs, and aufs on debian squeeze cannot be used inside aufs itself.