On 11/29/06, <b class="gmail_sendername">Kir Kolyshkin</b> &lt;<a href="mailto:kir@openvz.org">kir@openvz.org</a>&gt; wrote:<div><span class="gmail_quote"></span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Vasily Tarasov wrote:<br>&gt; Alastair Neil wrote:<br>&gt;<br>&gt;&gt; I would like to have some directories mounted within a VPS from the<br>&gt;&gt; host node.&nbsp;&nbsp;I can do this using a bind mount from the host, however I<br>
&gt;&gt; have not found any configurable way to achieve this automatically.<br>&gt;&gt; Ideally these mounts should be mounted before the VPS starts any<br>&gt;&gt; services.&nbsp;&nbsp;Anyone have any suggestions?<br>&gt;&gt;<br>&gt; You can create script /etc/vz/conf/101.mount
<br>&gt; This script will be executed before VE start, so you can add mounts there.<br>&gt;<br>&gt; Typical content of 101.mount:<br>&gt; #! /bin/sh<br>&gt; mount -n -o bind,ro /shared/directory /vz/root/101/shared<br>&gt;
<br>More details are in OpenVZ User's Guide, around page 100 or so.<br>The guide itself is at <a href="http://download.openvz.org/doc/">http://download.openvz.org/doc/</a> (in case you<br>missed it).<br><br>Regards,<br>&nbsp;&nbsp;Kir.
<br></blockquote></div><br>Ahh I see it it is on page 88 in the pdf I have.&nbsp; Thanks for the pointer.<br><br>