[Users] Bind mounts and/or additional disk volumes

Gordan Bobic gordan at bobich.net
Tue Dec 29 05:00:58 EST 2009


Christian Hofstaedtler wrote:
> * Gordan Bobic <gordan at bobich.net> [091229 10:05]:
>> I'm experimenting with using OpenVZ for shared-root guest VMs. Thus far  
>> I have managed to get most of it working using GFS for /vz/private. I  
>> can start up the same guest on two different hosts (both of which mount  
>> the same /vz/private GFS volume), and both guests come up fine without  
>> trashing the file system.
>>
> [..]
>> Further, since bind-mounting such private volumes from the host doesn't  
>> seem to work, how do I add a private disk volume of some description  
>> inside the guest?
> 
> "private" is the storage area for the VE's root-fs. You need to mount
> into "root" instead, which in itself is a hidden bind mount which is
> only available as long as the VE is mounted.

I'm not entirely sure I follow what you mean. Can you please elaborate? 
How do I mount things into "root"?

> You can use the mount and umount VE scripts to do your work.

Can you provide an example or a link to the relevant docs or wiki page?

Gordan


More information about the Users mailing list