[Users] Binding HVN directory to container
Sirk Johannsen
s.johannsen at satzmedia.de
Tue Nov 27 05:30:45 EST 2012
Hi Aleksey,
it should be mounted to /vz/root/103/var/local/syntagma3/ and not "private" -
Since you use $VE_ROOT it should be alright though.
best regards,
Sirk
2012/11/27 Aleksey Cheusov <cheusov at tut.by>:
> Hi. I'm trying to bind a HVM directory to container
> with a help of VE mount and umount scripts.
> These script are below.
>
> I use this documentation http://wiki.openvz.org/Bind_mounts
>
> /etc/vz/conf/103.mount:
> #!/bin/sh
>
> . /etc/vz/vz.conf
> . ${VE_CONFFILE}
>
> while read src dst; do
> mount -n -t simfs "$src" "$VE_ROOT$dst" -o "$src"
> done < ${VE_CONFFILE%.conf}.fslist
>
> /etc/vz/conf/103.umount:
> #!/bin/sh
>
> . /etc/vz/vz.conf
> . ${VE_CONFFILE}
>
> while read src dst; do
> umount "$VE_ROOT$dst"
> done < ${VE_CONFFILE%.conf}.fslist
>
> /etc/vz/conf/103.fslist:
> /shared/syntagma3 /var/local/syntagma3
>
> "vzctl start 103" starts my container and runs the mount script
> and appropriate directory (/vz/private/103/var/local/syntagma3/)
> is mounted. So, I see its new content on HVM.
> However, inside container /var/local/syntagma3 is empty.
>
> Can anybody explain what's happening?
> _______________________________________________
> Users mailing list
> Users at openvz.org
> http://lists.openvz.org/mailman/listinfo/users
--
Satzmedia GmbH
Altonaer Poststraße 9
22767 Hamburg
Tel: +49 (0) 40 - 1 888 969 - 140
Fax: +49 (0) 40 - 1 888 969 - 200
E-Mail: s.johannsen at satzmedia.de
E-Business-Lösungen: http://www.satzmedia.de
Amtsgericht Hamburg, HRB 71729
Ust-IDNr. DE201979921
Geschäftsführer:
Dipl.-Kfm. Christian Satz
Dipl.-Inform. Markus Meyer-Westphal
--
More information about the Users
mailing list