About this list Date view Thread view Subject view Author view Attachment view

From: Ola Lundqvist (opal_at_debian.org)
Date: Thu 12 Jun 2003 - 13:03:40 BST


Hello

On Thu, Jun 12, 2003 at 01:53:43PM +0200, Herbert Poetzl wrote:
> On Thu, Jun 12, 2003 at 08:03:58AM +0200, Ola Lundqvist wrote:
*SNIP*
> > rsync -a --delete \
> > --exclude=/proc --exclude=/dev/pts\
> > $VSERVERS_ROOT/$FROM/ $VSERVERS_ROOT/$TO
> > mkdir -p $VSERVERS_ROOT/$TO/proc
> > mkdir -p $VSERVERS_ROOT/$TO/dev/pts
>
> hmm, so I have to modify this script, if I do
> additional mounting like mount --bind /var/tmp /tmp

That is very dangerout. This means that your vserver will be able to
remove the motherhost temp files. It also means that they will be cleaned
when you restart the vserver.

> or something similar in the vserver?

No I do not think so. Well if you start to use some other mounts to things
that change in the same manner as /proc and /dev/pts, yes but not otherwise.

The problem is not that they are mounted. It is that these mounted points
behave very different from all other filesystems. Chey are linked directly
into the kernel.

/proc is very special
/dev/pts is also a bit special.
/tmp,/var/tmp ... It should not need to be copied either. It is (should) be
cleaned on every boot anyway.

Regards,

// Ola

> best,
> Herbert
>
> > In Debian I have patched vserver to allow other directories than /vservers, so
> > that is the reason for $VSERVERS_ROOT.
> >
> > Regards,
> >
> > // Ola
> >
> > --
> > --------------------- Ola Lundqvist ---------------------------
> > / opal_at_debian.org Annebergsslingan 37 \
> > | opal_at_lysator.liu.se 654 65 KARLSTAD |
> > | +46 (0)54-10 14 30 +46 (0)70-332 1551 |
> > | http://www.opal.dhs.org UIN/icq: 4912500 |
> > \ gpg/f.p.: 7090 A92B 18FE 7994 0C36 4FE4 18A1 B1CF 0FE5 3DD9 /
> > ---------------------------------------------------------------

-- 
 --------------------- Ola Lundqvist ---------------------------
/  opal_at_debian.org                     Annebergsslingan 37      \
|  opal_at_lysator.liu.se                 654 65 KARLSTAD          |
|  +46 (0)54-10 14 30                  +46 (0)70-332 1551       |
|  http://www.opal.dhs.org             UIN/icq: 4912500         |
\  gpg/f.p.: 7090 A92B 18FE 7994 0C36  4FE4 18A1 B1CF 0FE5 3DD9 /
 ---------------------------------------------------------------


About this list Date view Thread view Subject view Author view Attachment view
[Next/Previous Months] [Main vserver Project Homepage] [Howto Subscribe/Unsubscribe] [Paul Sladen's vserver stuff]
Generated on Thu 12 Jun 2003 - 13:36:22 BST by hypermail 2.1.3