Re: XFS внутри openvz
Tue, 13 Oct 2009 16:37:20 +0400
Dmitri Samsonov <samson.samson.samson@gmail.com> wrote:
> Artem Chuprina пишет:
> > xfs на HN и bindmount не спасут?
>
> Спасли.
> Но неприятный осадок^W^W интерес остался. (-:
>
> Если целый раздел на диске существует заради одного-единственного
> контейнера -- логично было бы целиком весь раздел контейнеру и отдать
> "и забыть", дабы не плодить лишних сущностей.
>
> --
> Dmitri Samsonov
>
>
cat /etc/vz/conf/1001.mount
#!/bin/sh
#
# This script source VPS configuration files in the same
# order as vzctl does
# if one of these files does not exist then something is
# really broken
[ -f /etc/vz/vz.conf ] || exit 1
[ -f $VE_CONFFILE ] || exit 1
# source both files. Note the order, it is important
. /etc/vz/vz.conf
. $VE_CONFFILE
mount --bind /var/log/apache2 $VE_ROOT/var/log/apache2
mount --bind /space/debian $VE_ROOT/mnt/debian
mount --bind /var/lib/git $VE_ROOT/var/lib/git
И симметричный ему 1001.umount
--
Best regards,
Alexander GQ Gerasiov
Contacts:
e-mail: gq@cs.msu.su Jabber: gq@jabber.ru
Homepage: http://gq.net.ru ICQ: 7272757
PGP fingerprint: 04B5 9D90 DF7C C2AB CD49 BAEA CA87 E9E8 2AAC 33F1
Reply to: