[Vserver] time in guest vserver

2006-08-01 Thread Jonathan Dray
I have a correct output with the date function inside guests : mardi 1 août 2006, 12:07:14 (UTC+0200)But time only give me 0 :real 0m0.000suser 0m0.000ssys 0m0.000sIs this normal ?
The problem is that the php time() function takes the results of the system time call.And I need the time() value to synchronise database values.Is there any way to have the correct time ?
___
Vserver mailing list
Vserver@list.linux-vserver.org
http://list.linux-vserver.org/mailman/listinfo/vserver


Re: [Vserver] guest network interface disappears

2006-08-01 Thread Guenther Fuchs
Hi there,

on Tuesday, August 1, 2006 at 12:37:02 PM there was posted:

GF # /sbin/sysctl -w net.ipv4.conf.all.promote_secondaries=1
MP This actually solved our problem.

Further hint: I've placed this as line in /etc/rc.d/rc.local on the
host so it get's loaded already on boot, that makes it easier.

MP Thanks very much for the hint.

You're welcome.

-- 
regards 'n greez,

Guenther Fuchs
(aka muh and powerfox)

___
Vserver mailing list
Vserver@list.linux-vserver.org
http://list.linux-vserver.org/mailman/listinfo/vserver


Re: [Vserver] time in guest vserver

2006-08-01 Thread Michael S. Zick
On Tue August 1 2006 05:29, Jonathan Dray wrote:
 I have a correct output with the date function inside guests :
 mardi 2006, 12:07:14 (UTC+0200)
 
 But time only give me 0 :
 
 real0m0.000s
 user0m0.000s
 sys 0m0.000s
 
 Is this normal ?
 
Yes

 The problem is that the php time() function takes the results of the system
 time call.

try: date

 And I need the time() value to synchronise database values.
 Is there any way to have the correct time ?
 
The date-time value would probably be better than using
the elapsed time of a process.

Mike
___
Vserver mailing list
Vserver@list.linux-vserver.org
http://list.linux-vserver.org/mailman/listinfo/vserver


Re: [Vserver] guest network interface disappears

2006-08-01 Thread ADNET Ghislain


 Further hint: I've placed this as line in /etc/rc.d/rc.local on the
 host so it get's loaded already on boot, that makes it easier.

   

the sysctl.conf file seems more appropriate for this kind of settings,
see man page for syntax :)

regards,
Ghislain.
___
Vserver mailing list
Vserver@list.linux-vserver.org
http://list.linux-vserver.org/mailman/listinfo/vserver


Re: [Vserver] guest network interface disappears

2006-08-01 Thread Guenther Fuchs
Hi there,

on Tuesday, August 1, 2006 at 1:15:47 PM there was posted:

AG the sysctl.conf file seems more appropriate for this kind of
AG settings,

You're right - but as I never used it before, I wasn't even aware of
its existance ;-)

AG see man page for syntax :)

Thx 4 that hint.

-- 
regards 'n greez,

Guenther Fuchs
(aka muh and powerfox)

___
Vserver mailing list
Vserver@list.linux-vserver.org
http://list.linux-vserver.org/mailman/listinfo/vserver


Re: [Vserver] time in guest vserver

2006-08-01 Thread Jonathan Dray
thanks for the hint !I used date(Y-m-d H:i:s) which worked as expected ^^once again for the quick reply.2006/8/1, Michael S. Zick 
[EMAIL PROTECTED]:On Tue August 1 2006 05:29, Jonathan Dray wrote: I have a correct output with the date function inside guests :
 mardi 2006, 12:07:14 (UTC+0200) But time only give me 0 : real0m0.000s user0m0.000s sys 0m0.000s Is this normal ?Yes
 The problem is that the php time() function takes the results of the system time call.try: date And I need the time() value to synchronise database values. Is there any way to have the correct time ?
The date-time value would probably be better than usingthe elapsed time of a process.Mike___Vserver mailing list
Vserver@list.linux-vserver.orghttp://list.linux-vserver.org/mailman/listinfo/vserver
___
Vserver mailing list
Vserver@list.linux-vserver.org
http://list.linux-vserver.org/mailman/listinfo/vserver


[Vserver] Vserver stop problem

2006-08-01 Thread Vladimir Artemov
Hi all.

Is there any chance to stop (or maybe kill) one of the vservers if i get this 
strange
things:

[EMAIL PROTECTED] vserver myserver stop
vkill: vc_ctx_kill(): No such process
A timeout or other error occured while waiting for the synchronization
signal from vserver 'myserver'.
The vserver will be killed nevertheless...
Vserver '/etc/vservers/myserver' still running unexpectedly; please investigate 
it manually...
umount: .: not mounted
umount: .: not mounted
Warning: Executing wildcard deletion to stay compatible with old scripts.
 Explicitly specify the prefix length (xxx.xxx.xxx.xxx/32) to avoid 
this warning.
 This special behaviour is likely to disappear in further releases,
 fix your scripts!
RTNETLINK answers: Cannot assign requested address


And why is this happening? There are another two vservers on this host and they
function properly.


-- 
Regards,
 Vladimir  mailto:[EMAIL PROTECTED]

___
Vserver mailing list
Vserver@list.linux-vserver.org
http://list.linux-vserver.org/mailman/listinfo/vserver


[Vserver] IBM storage support

2006-08-01 Thread Henrik Woffinden
Hello,

Have anyone succeded to compile this driver into (or as module) the
latest 2.6 smp kernel?

http://www-307.ibm.com/pc/support/site.wss/document.do?lndocid=MIGR-64628

-- 
Med venlig hilsen / Best regards,

Henrik Woffinden


___
Vserver mailing list
Vserver@list.linux-vserver.org
http://list.linux-vserver.org/mailman/listinfo/vserver


[Vserver] Fwd: [PATCH] pidspace is_init()

2006-08-01 Thread Sukadev Bhattiprolu
CCing Vserver and OpenVz lists.

BTW, can we add these two lists to the lxc-devel list ?

- Forwarded message from Sukadev Bhattiprolu [EMAIL PROTECTED] -

| Date: Tue, 1 Aug 2006 09:41:26 -0700
| From: Sukadev Bhattiprolu [EMAIL PROTECTED]
| To: Linux Containers on Source Forge [EMAIL PROTECTED],
|   [EMAIL PROTECTED]
| Cc: [EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED],
|   [EMAIL PROTECTED]
| Subject: [PATCH] pidspace is_init()
| 
| Eric,
| 
| This is an updated version of your is_init() patch.
| (http://lkml.org/lkml/2006/2/6/280). It applies cleanly to 2.6.18-rc2
| and replaces a few more instances of -pid == 1 with is_init().
| 
| Further, is_init() checks pid (for now) and thus removes dependency on
| your other patches.
| 
| Please review and let me know if I can send it out to LKML.
| 
| Couple of questions:
| 
|   Are there cases where child_reaper is not pid = 1. Should the
|   tsk == child_reaper check in do_exit() be replaced with is_init() ? 
| 
|   Looks like, we would need a similar, is_idle() wrapper for pid==0
|   checks - although the name is_idle_task() maybe more intuitive. If
|   so, should we rename is_init() to is_init_task() ? 
| 
| 
| Eric's original description: 
| 
|   There are a lot of places in the kernel where we test for init
|   because we give it special properties.  Most  significantly init
|   must not die.  This results in code all over the kernel test
|   -pid == 1.
| 
|   Introduce is_init to capture this case.  
| 
|   With multiple pid spaces for all of the cases affected we are
|   looking for only the first process on the system, not some other
|   process that has pid == 1. 
| 
| Signed-off-by: Eric W. Biederman [EMAIL PROTECTED]
| Signed-off-by: Sukadev Bhattiprolu [EMAIL PROTECTED]
| Cc: Dave Hansen [EMAIL PROTECTED]
| Cc: Serge Hallyn [EMAIL PROTECTED]
| Cc: Cedric Le Goater [EMAIL PROTECTED]
| Cc: [EMAIL PROTECTED]
| 
| 
|  arch/alpha/mm/fault.c|2 +-
|  arch/arm/mm/fault.c  |2 +-
|  arch/arm26/mm/fault.c|2 +-
|  arch/i386/lib/usercopy.c |2 +-
|  arch/i386/mm/fault.c |2 +-
|  arch/ia64/mm/fault.c |2 +-
|  arch/m32r/mm/fault.c |2 +-
|  arch/m68k/mm/fault.c |2 +-
|  arch/mips/mm/fault.c |2 +-
|  arch/powerpc/mm/fault.c  |2 +-
|  arch/powerpc/platforms/pseries/ras.c |2 +-
|  arch/ppc/kernel/traps.c  |2 +-
|  arch/ppc/mm/fault.c  |2 +-
|  arch/s390/mm/fault.c |2 +-
|  arch/sh/mm/fault.c   |2 +-
|  arch/sh64/mm/fault.c |6 +++---
|  arch/um/kernel/trap.c|2 +-
|  arch/x86_64/mm/fault.c   |4 ++--
|  arch/xtensa/mm/fault.c   |2 +-
|  drivers/char/sysrq.c |2 +-
|  include/linux/sched.h|   10 ++
|  kernel/capability.c  |2 +-
|  kernel/cpuset.c  |2 +-
|  kernel/exit.c|2 +-
|  kernel/kexec.c   |2 +-
|  kernel/ptrace.c  |1 +
|  kernel/sysctl.c  |2 +-
|  mm/oom_kill.c|6 +++---
|  security/commoncap.c |2 +-
|  security/seclvl.c|9 +
|  30 files changed, 48 insertions(+), 36 deletions(-)
| 
| Index: linux-2.6.18-rc2c/arch/alpha/mm/fault.c
| ===
| --- linux-2.6.18-rc2c.orig/arch/alpha/mm/fault.c  2006-07-28 
09:20:03.0 -0700
| +++ linux-2.6.18-rc2c/arch/alpha/mm/fault.c   2006-07-28 09:35:37.0 
-0700
| @@ -193,7 +193,7 @@ do_page_fault(unsigned long address, uns
|   /* We ran out of memory, or some other thing happened to us that
|  made us unable to handle the page fault gracefully.  */
|   out_of_memory:
| - if (current-pid == 1) {
| + if (is_init(current)) {
|   yield();
|   down_read(mm-mmap_sem);
|   goto survive;
| Index: linux-2.6.18-rc2c/arch/arm/mm/fault.c
| ===
| --- linux-2.6.18-rc2c.orig/arch/arm/mm/fault.c2006-07-28 
09:20:04.0 -0700
| +++ linux-2.6.18-rc2c/arch/arm/mm/fault.c 2006-07-31 17:53:40.0 
-0700
| @@ -197,7 +197,7 @@ survive:
|   return fault;
|   }
|  
| - if (tsk-pid != 1)
| + if (!is_init(tsk))
|   goto out;
|  
|   /*
| Index: linux-2.6.18-rc2c/arch/arm26/mm/fault.c
| ===
| --- linux-2.6.18-rc2c.orig/arch/arm26/mm/fault.c  2006-07-28 
09:19:59.0 -0700
| +++ linux-2.6.18-rc2c/arch/arm26/mm/fault.c   2006-07-31 22:48:32.0 

Re: [Vserver] Fwd: [PATCH] pidspace is_init()

2006-08-01 Thread Herbert Poetzl
On Tue, Aug 01, 2006 at 10:28:34AM -0700, Sukadev Bhattiprolu wrote:
 CCing Vserver and OpenVz lists.
 
 BTW, can we add these two lists to the lxc-devel list ?

that's fine with me, Kir will decide for the OVZ one

best,
Herbert

___
Vserver mailing list
Vserver@list.linux-vserver.org
http://list.linux-vserver.org/mailman/listinfo/vserver