RE: [Vserver] pre-start / pre-stop

2006-08-21 Thread Roman Pretory
You might want to read http://www.catb.org/~esr/faqs/smart-questions.html a
bit.
if there is a bit why not :-)

Roman Pretory wrote:
 to split for the util-vserver: 
 /etc/vserver/guestname/scripts/post-start
 
  mkdir -p /vservers/file//data
  mkdir -p /vservers/file//data/storage
  mkdir -p /vservers/file//data/storage/160GB_1
  mkdir -p /vservers/file//data/storage/60GB_1
  mkdir -p /vservers/file//data/storage/60GB_2
  mount --bind /data/storage/160GB_1 
 /vservers/file//data/storage/160GB_1
  mount --bind /data/storage/60GB_1
/vservers/file//data/storage/60GB_1
  mount --bind /data/storage/60GB_2
 /vservers/file//data/storage/60GB_2
 
 ===
 
 why dos it not work!!!

How doesn't it work? 
I have after the start of the guest the mounts not mounted!

What have you tried to make it work?
-)test on different nodes with differt os
-)change syntax
-)look for howto/or answers in this mailinglist


Why are you 
using a script for that rather than using the built-in fstab 
functionality? etc... In addition, version information is always helpful 
in case of an actual bug.

it works in the old config, the pre-start exist in the new too, why should
it not work normally.
i tryed fstab too, with no success.

output of one node:
node3 ~ $ ./testme.sh
Linux-VServer Test [V0.15] Copyright (C) 2003-2006 H.Poetzl
chcontext is working.
chbind is working.
Linux 2.6.12.3-vs #1 Tue Sep 6 23:18:17 CEST 2005 i686
Ea 0.30.210 273/glibc (DSa) v13,net
VCI: 0002:0001 273 0316 (TbLgnP)
---
[000]# succeeded.
[001]# succeeded.
[011]# succeeded.
[031]# succeeded.
[101]# succeeded.
[102]# succeeded.
[201]# succeeded.
[202]# succeeded.


BUT:
in the moment it seems to work, 
only in the guest I could see it.
the hole time I looked from the node.

funny, but if this is true i could use this in differt way too.

TBRG
RP




-- 
Daniel Hokka Zakrisson
GPG id: 06723412
GPG fingerprint: A455 4DF3 990A 431F FECA  7947 6136 DDA2 0672 3412
___
Vserver mailing list
Vserver@list.linux-vserver.org
http://list.linux-vserver.org/mailman/listinfo/vserver

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


RE: [Vserver] pre-start / pre-stop

2006-08-21 Thread Roman Pretory
Hi there,

pls adjust your humor level to m/m 2.0 before reading this reply.

on Sunday, August 20, 2006 at 10:06:08 PM there was posted:

RP why dos it not work!!!

Some possible answers:
a) If you meant this to be a question, why do you miss out the
   question mark?


 for our species :-)
 and it work, as you see. :-)

b) This list relates to Linux, not to DOS.
c) YES SIR! WILL WORK!!eleven!!
d) NO SIR! NO WORK!!eleven!!

e) Pls refine it through your local interpreter an send us the debug
   info.
f) Why? It was designed to. If not, pls state why. And read this again

-- 
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

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


[Vserver] pre-start / pre-stop

2006-08-20 Thread Roman Pretory
hi

I have try to convert the old skipt(guestname.sh/guestname.conf) to the new
style

/etc/vserver/guestname.sh:
#!/bin/sh
case $1 in
pre-start)
mkdir -p /vservers/file//data
mkdir -p /vservers/file//data/storage
mkdir -p /vservers/file//data/storage/160GB_1
mkdir -p /vservers/file//data/storage/60GB_1
mkdir -p /vservers/file//data/storage/60GB_2
mount --bind /data/storage/160GB_1
/vservers/file//data/storage/160GB_1
mount --bind /data/storage/60GB_1
/vservers/file//data/storage/60GB_1
mount --bind /data/storage/60GB_2
/vservers/file//data/storage/60GB_2
;;
post-start)
;;
pre-stop)
;;
post-stop)
umount /vservers/file//data/storage/160GB_1
umount /vservers/file//data/storage/60GB_1
umount /vservers/file//data/storage/60GB_2
;;
*)
echo $0 pre-start
echo $0 pre-stop
echo $0 post-start
echo $0 post-stop
;;
esac

to split for the util-vserver:
/etc/vserver/guestname/scripts/post-start

mkdir -p /vservers/file//data
mkdir -p /vservers/file//data/storage
mkdir -p /vservers/file//data/storage/160GB_1
mkdir -p /vservers/file//data/storage/60GB_1
mkdir -p /vservers/file//data/storage/60GB_2
mount --bind /data/storage/160GB_1
/vservers/file//data/storage/160GB_1
mount --bind /data/storage/60GB_1
/vservers/file//data/storage/60GB_1
mount --bind /data/storage/60GB_2
/vservers/file//data/storage/60GB_2

===

why dos it not work!!!

TBW
Roman Pretory



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


Re: [Vserver] pre-start / pre-stop

2006-08-20 Thread Daniel Hokka Zakrisson
You might want to read 
http://www.catb.org/~esr/faqs/smart-questions.html a bit.


Roman Pretory wrote:

to split for the util-vserver:
/etc/vserver/guestname/scripts/post-start

mkdir -p /vservers/file//data
mkdir -p /vservers/file//data/storage
mkdir -p /vservers/file//data/storage/160GB_1
mkdir -p /vservers/file//data/storage/60GB_1
mkdir -p /vservers/file//data/storage/60GB_2
mount --bind /data/storage/160GB_1
/vservers/file//data/storage/160GB_1
mount --bind /data/storage/60GB_1
/vservers/file//data/storage/60GB_1
mount --bind /data/storage/60GB_2
/vservers/file//data/storage/60GB_2

===

why dos it not work!!!


How doesn't it work? What have you tried to make it work? Why are you 
using a script for that rather than using the built-in fstab 
functionality? etc... In addition, version information is always helpful 
in case of an actual bug.


--
Daniel Hokka Zakrisson
GPG id: 06723412
GPG fingerprint: A455 4DF3 990A 431F FECA  7947 6136 DDA2 0672 3412
___
Vserver mailing list
Vserver@list.linux-vserver.org
http://list.linux-vserver.org/mailman/listinfo/vserver


Re: [Vserver] pre-start / pre-stop

2006-08-20 Thread Guenther Fuchs
Hi there,

on Sunday, August 20, 2006 at 11:48:09 PM there was posted:

DHZ You might want to read 
DHZ http://www.catb.org/~esr/faqs/smart-questions.html a bit.

Or better ther German variant:
http://www.lugbz.org/documents/smart-questions_de.html
;-)

DHZ Roman Pretory wrote:
DP why dos it not work!!!

Daniel forgot one question: What at all - if any - does not work?

-- 
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] pre-start / pre-stop

2006-08-20 Thread Guenther Fuchs
Hi there,

pls adjust your humor level to m/m 2.0 before reading this reply.

on Sunday, August 20, 2006 at 10:06:08 PM there was posted:

RP why dos it not work!!!

Some possible answers:
a) If you meant this to be a question, why do you miss out the
   question mark?
b) This list relates to Linux, not to DOS.
c) YES SIR! WILL WORK!!eleven!!
d) NO SIR! NO WORK!!eleven!!
e) Pls refine it through your local interpreter an send us the debug
   info.
f) Why? It was designed to. If not, pls state why. And read this again

-- 
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