Difference between revisions of "Talk:Bind mounts"

From OpenVZ Virtuozzo Containers Wiki
Jump to: navigation, search
(use source tag)
(Where exactly do you add this script?: new section)
 
Line 11: Line 11:
 
</source>
 
</source>
 
--[[User:Kir|Kir]] 09:26, 11 July 2011 (UTC)
 
--[[User:Kir|Kir]] 09:26, 11 July 2011 (UTC)
 +
 +
== Where exactly do you add this script? ==
 +
 +
I'm at a loss as to where this script is to be placed.  There is no mention on this page or the referring pages on where this script should be placed in order to have a common shared directory across all nodes.

Latest revision as of 20:31, 22 December 2012

simfs instead of bind mount[edit]

FIXME merge this info

Here's how to use simfs instead of --bind (helpful if you are using checkpointing or live migration and host FS is "exotic" like xfs.

#!/bin/sh
. /etc/vz/vz.conf
. $VE_CONFFILE
set -x
mount -n -t simfs /usr/src $VE_ROOT/usr/src -o /usr/src

--Kir 09:26, 11 July 2011 (UTC)

Where exactly do you add this script?[edit]

I'm at a loss as to where this script is to be placed. There is no mention on this page or the referring pages on where this script should be placed in order to have a common shared directory across all nodes.