-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi,
Alexander Gerasiov wrote:
> Package: util-vserver
> Version: 0.30.210-10
> Severity: normal
>
> Hi there.
> I want to push main host's mysqld socket inside vserver.
> So I think that the simplest way is to mount /var/run/mysqld from host
> to /var/run/mysqld on vserver. But that forces /var/run/mysqld cleaning
> on vserver's start.
>
The reason this happens is not because of util-vserver, or anything
related to vservers at all, but instead the Debian startup scripts which
clean /var/run on bootup and shutdown. The only way to fix this is to
alter your debian scripts not to do this.
> Then I made mount --bind -o ro (I also tried to specify that in
> vserver's fstab with the same behaviour), but in such situations vserver
> start fails with:
> =======
> #vserver bigfoot start
> chroot-shunlink("var/run/mysqld/mysqld.pid"): Read-only file system
> chroot-shunlink("var/run/mysqld/mysqld.sock"): Read-only file system
>
>
> Failed to start vserver 'bigfoot'
> ======
This fails because the Debian startup scripts need to be able to write
to /var/run, so they fail and thus the startup of that server fails.
> So I see here two questions:
> 1st May be read-only subdir in /var/run shouldn't be fatal?
This isn't a util-vserver bug, and the maintainers of the debian startup
scripts will also tell you that this isn't a bug. Trust me, I've checked
this out, they will tell you that you are trying to do something
non-standard and the cleaning of /var/run is there for a reason. If you
want to make it fail, then you make the startup fail.
> 2nd Am I wrong? May be there are better way to do the same thing (I'm
> speaking not about mysql, I know that it's possible to use network
> socket, but I want to use the same scheme for some other services, so
> I'm interested in mounting something inside vserver with bind option.).
The way I solved this was to have mysql listen on the private network
and then I contact it over the network, rather than through a socket. If
you want to use a socket, then you need to be putting that socket
somewhere other than /var/run.
Micah
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (GNU/Linux)
iD8DBQFEvPVt9n4qXRzy1ioRAtTIAJ0a7xeworIAL5LBvcPzdi3s0jnW1wCfc8W7
74MqSMlkocfR3nS1n22A1LI=
=hXhb
-----END PGP SIGNATURE-----
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]