[Users] Bind mounts and/or additional disk volumes

Christian Hofstaedtler ch at zeha.at
Tue Dec 29 04:48:39 EST 2009


* 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.
You can use the mount and umount VE scripts to do your work.

-- 
christian hofstaedtler


More information about the Users mailing list