Re: [vserver] Link file in host to guests

From: Herbert Poetzl <herbert_at_13thfloor.at>
Date: Wed 03 Apr 2013 - 01:14:35 BST
Message-ID: <20130403001435.GB8336@MAIL.13thfloor.at>

On Tue, Apr 02, 2013 at 02:12:33AM +0200, moi@nonooo.eu wrote:
> I do not know how to do it for a file... I have created this "special"
> directory. let me knkow if you found a cleaner solution...

bind mounts work for files the same as for directories,
so assuming that your kernel and util-vserver are moderately
recent, there shouldn't be any problem to use a file instead
of your 'special' directory

best,
Herbert

> Le 01/04/2013 22:35, Roderick A. Anderson a ťcrit†:
>> Thanks. I'd thought of this but only need one file not a directory.
>> I guess I could create a special directory and put the file there.

>> Again thanks,
>> Rod
>> --

>> On 04/01/2013 12:06 PM, moi@nonooo.eu wrote:
>>> you can try to mount the directory in fstab using bind (but you will
>>> need to restart the guest)

>>> I do this for mysql socket and it is working fine.

>>> arnaud

>>> Le 29/03/2013 00:43, Roderick A. Anderson a ťcrit :
>>>> I have a need (desire actually) to link a file in the host system
>>>> into selected guests.

>>>> The file will not be static. Updated about every minute.

>>>> Currently I have the script that generates the file copy it to the
>>>> guests but it seems such a brute-force method. The guests only need
>>>> to read the file.

>>>> I tried a soft link from the host but got errors. (I tried it last
>>>> week or before and much has happened since so I can't remember the
>>>> exact error.)

>>>> Any ideas, pointers, clue-sticks?

>>>> TIA,
>>>> Rod
>>>> --
Received on Wed Apr 3 01:14:46 2013

[Next/Previous Months] [Main vserver Project Homepage] [Howto Subscribe/Unsubscribe] [Paul Sladen's vserver stuff]
Generated on Wed 03 Apr 2013 - 01:14:46 BST by hypermail 2.1.8