RE: [Vserver] Vserver rpm errors

2003-11-05 Thread Charles Dale
OK rebuilt vserver-0.26 i386 RPM & SRPM available here until Jack/Herbert
update theirs:

http://aphid.net/vserver/

They work for me, that's the only testing they've had though.

Chuck

> -Original Message-
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf Of 
> Lucian Daniel Kafka
> Sent: Thursday, 6 November 2003 4:46 PM
> To: [EMAIL PROTECTED]
> Subject: [Vserver] Vserver rpm errors
> 
> 
> Hi.
> 
> I'm getting RPM errors on all new vserver RPMs (using RH9):
> 
>  error: vserver-0.26-1.i386.rpm: rpmReadSignature 
> failed: region 
> trailer: BAD, tag 61 type 7 offset 48 count 16
>  error: vserver-0.26-1.i386.rpm cannot be installed
> 
> Any ideas?
> 
> 
> Kind regards,
> 
> Lucian Kafka
> www.conexim.com.au
> 
> ___
> Vserver mailing list
> [EMAIL PROTECTED] 
> http://list.linux-> vserver.org/mailman/listinfo/vserver
> 

___
Vserver mailing list
[EMAIL PROTECTED]
http://list.linux-vserver.org/mailman/listinfo/vserver


RE: [Vserver] Vserver rpm errors

2003-11-05 Thread Charles Dale
Ditto here, both for source and i386 RPMs. Can't query then with -qp or
anything. Using rpm-4.2-0.69 (RH9).

They work fine on RH6.2 (rpm-4.0.2-6x).

A quick Google search shows people having similar problems this year with
packages in Cooker. Seems to have something to do with RPM 4.2. No details
of how the problem was fixed on the cooker lists, just a promise that fixed
RPMs were coming, so don't know what to do about it.

I'll extract the sources using the RH6.2 vserver and compile a new i386 RPM
for anyone who needs it, assuming Jack doesn't get a new one out soon.

Chuck

> -Original Message-
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf Of 
> Lucian Daniel Kafka
> Sent: Thursday, 6 November 2003 4:46 PM
> To: [EMAIL PROTECTED]
> Subject: [Vserver] Vserver rpm errors
> 
> 
> Hi.
> 
> I'm getting RPM errors on all new vserver RPMs (using RH9):
> 
>  error: vserver-0.26-1.i386.rpm: rpmReadSignature 
> failed: region 
> trailer: BAD, tag 61 type 7 offset 48 count 16
>  error: vserver-0.26-1.i386.rpm cannot be installed
> 
> Any ideas?
> 
> 
> Kind regards,
> 
> Lucian Kafka
> www.conexim.com.au
> 
> ___
> Vserver mailing list
> [EMAIL PROTECTED] 
> http://list.linux-> vserver.org/mailman/listinfo/vserver
> 

___
Vserver mailing list
[EMAIL PROTECTED]
http://list.linux-vserver.org/mailman/listinfo/vserver


[Vserver] Vserver rpm errors

2003-11-05 Thread Lucian Daniel Kafka
Hi.

I'm getting RPM errors on all new vserver RPMs (using RH9):

error: vserver-0.26-1.i386.rpm: rpmReadSignature failed: region 
trailer: BAD, tag 61 type 7 offset 48 count 16
error: vserver-0.26-1.i386.rpm cannot be installed

Any ideas?

Kind regards,

Lucian Kafka
www.conexim.com.au
___
Vserver mailing list
[EMAIL PROTECTED]
http://list.linux-vserver.org/mailman/listinfo/vserver


Re: [Vserver] Copy a vserver to different partition?

2003-11-05 Thread Herbert Poetzl
On Wed, Nov 05, 2003 at 12:34:48PM -0800, Roderick A. Anderson wrote:
> I've been all over the wiki and web site looking for a solution but I'm 
> getting no place slowly.
> 
> We had a hard drive fail but was able to move the /vservers/* into a 
> working drive before replacing the bad drive.  As this is a live system 
> I'd like to _not_ take the server down and do another copy t othe new 
> partition.  I need to copy all the vservers (or one at a time) in 
> /vservers to /vserver.new so I can stop the vservers, change the mount 
> point, and restart them.  
>I tried Herbert's dump/restore suggestion (FAQs) but have no experience 
> with dump/restore (spoiled by bru at an early age :-) and couldn't figure 
> out why it was failing the restore?  Well some of it could be I'm using an 
> older version of dump (dump -v => dump 0.4b28) or my understand of the 
> example is wrong.
>I've tried both
> 
>   dump 0zf /mnt/vbackup/ref.dump /vservers/ref/
>   dump 0zf /mnt/vbackup/ref.dump /vservers/{ref}

try the following

cd /vservers.new
dump 0f - /vservers/ref | restore rf -

this makes a copy of your vserver 'ref' to /vservers.new
(you don't have to care about proc/dev/pts umounting,
but, as somebody already pointed out, you have to worry
about applications not able to start from an uncleanly
shut down state ... in this case you could do the following:

vserver ref stop

mount --bind /vservers.new/ref /vservers/ref
vserver ref start

HTH,
Herbert

> the first works (but doesn't restore) and fails like this
> 
>   {/vservers.new}# restore -tf /mnt/vbackup/ref.dump ./ref
>   Dump tape is compressed.
>   Dump   date: Wed Nov  5 11:25:02 2003
>   Dumped from: the epoch
>   Level 0 dump of /vservers (dir /ref) on 
>   web2.technologyservicesmanagementgroup.com:/dev/sda2
>   Label: /var
>   Read error while restoring 
> 
> and the second dump fails like this.
> 
>   {/vservers}# dump 0zf /mnt/vbackup/ref.dump /vservers/{ref}
> DUMP: Date of this level 0 dump: Wed Nov  5 11:42:22 2003
> DUMP: Dumping /dev/sda2 (/vservers (dir /{ref})) to 
>   /mnt/vbackup/ref.dump
> DUMP: Added inode 8 to exclude list (journal inode)
> DUMP: Added inode 7 to exclude list (resize inode)
> DUMP: Label: /var
> DUMP: Compressing output at compression level 2 (zlib)
> DUMP: mapping (Pass I) [regular files]
> DUMP: File cannot be accessed (/vservers/{ref}).
> DUMP: The ENTIRE dump is aborted.
> 
> There have been a few threads on this list about using cp and other
> options but I can't find them now.  Vserver-copy doesn't seem to have the
> ability (option) to copy from partition to partiotion on the same server.  
> I'm willing to damn the 'save space' option and worry about that later
> just to get them onto the new drive/partition.
> 
> Any help for the slow-witted? 
> 
> 
> TIA,
> Rod
> -- 
>   "Open Source Software - Sometimes you get more than you paid for..."
> 
> ___
> Vserver mailing list
> [EMAIL PROTECTED]
> http://list.linux-vserver.org/mailman/listinfo/vserver
___
Vserver mailing list
[EMAIL PROTECTED]
http://list.linux-vserver.org/mailman/listinfo/vserver


Re: [Vserver] Re: chroot and CAP_SYS_CHROOT broken ??

2003-11-05 Thread Herbert Poetzl
On Wed, Nov 05, 2003 at 01:15:28PM -0600, Linas Vepstas wrote:
> Hi,
> 
> 
> On Thu, Oct 30, 2003 at 08:57:01PM +0100, [EMAIL PROTECTED] was heard to remark:
> > 
> > hmm, after --cap '!CAP_SYS_CHROOT', you should not be able
> > to perform chroot() at all ... and I don't see any reason
> > why the chroot() in you example should have worked ...
> 
> Hmm. What was I thinking?   Clearly, I should stop testing late at night... 
> Thanks for the help, though ... 
> 
> 
> I was exploring using some of the vserver features without going "all the way"
> and using vservers.  To do this, it's become clear to me that a set of tools
> that are easier to use/better than setpcap/getpcap are needed.  Is there 
> anyone working on such a thing?

hmm, what do you have in mind?

> 
> p.s. I have ppc64 patches; they are essentially identical to the other
> arch patches.  Should I send them to you directly?

vserver ppc64 patches? right this way ;)
are you able/willing to test on that platform?

TIA,
Herbert

> --linas
> 
> -- 
> pub  1024D/01045933 2001-02-01 Linas Vepstas (Labas!) <[EMAIL PROTECTED]>
> PGP Key fingerprint = 8305 2521 6000 0B5E 8984  3F54 64A9 9A82 0104 5933
> ___
> Vserver mailing list
> [EMAIL PROTECTED]
> http://list.linux-vserver.org/mailman/listinfo/vserver
___
Vserver mailing list
[EMAIL PROTECTED]
http://list.linux-vserver.org/mailman/listinfo/vserver


Re: [Vserver] umm, little security problem:... www.solucorp.qc.ca mailing list memberships reminder

2003-11-05 Thread Herbert Poetzl
On Wed, Nov 05, 2003 at 07:32:50PM +0100, Brian Ipsen wrote:
> Hi,
> 
> > I got this on the mailing list digest.  I don't think I was
> > supposed to get
> > message 5, as it contains a passwd and its not my passwd or my acct.
> 
> Same here. I also wonder why I get messages from several list-servers -
> instead of people could agree to use just one list-server (make
> filterting/sorting a nightmeare, who knows, in the future postings might
> arrive from 45 different list-servers - all for the sam elist :-/ )

I hope this already _is_ solved now, right Martin?

best,
Herbert

> /Brian
> 
> ___
> Vserver mailing list
> [EMAIL PROTECTED]
> http://list.linux-vserver.org/mailman/listinfo/vserver
___
Vserver mailing list
[EMAIL PROTECTED]
http://list.linux-vserver.org/mailman/listinfo/vserver


Re: [Vserver] NFS problems with vs1.00

2003-11-05 Thread Herbert Poetzl
On Wed, Nov 05, 2003 at 11:02:56AM +0100, Jan Zuchhold wrote:
> > > There seems to be a problem with using nfs shares in a vserver with
> > > vs1.00. It appears that it is related to file locking.
> > >
> > > The share is mounted like this in the vserver startup script:
> > >
> > > /usr/sbin/chbind --ip 192.168.1.145 --bcast 192.168.1.255 mount
> > > -t nfs fileserver:/home /var/lib/vservers/$2/home
> > >
> > > After mounting the share it seems to work correctly (cd/ls/touch showing
> > > no problems).
> > >
> > > When I start a process (in my case it's eclipse in jvm 1.4.1) which tries
> > > to lock a file on that nfs share, it goes to state D ('uninterruptible
> > > sleep') and cannot be killed. Any other process which tries to access the
> > > share goes to state D as well.
> >
> > hmm, could you try to reproduce this without eclipse/jvm?
> > (some small C programm or perl script will do)
> 
> I could track down the problem to the fcntl64 syscall.
> Strace output:
> 10:36:19 fcntl64(3, F_SETLKW64, {type=F_WRLCK, whence=SEEK_SET, start=0, 
> len=0}
> 
> I attached a small perl script to reproduce this.

okay, will look into it today ...

> After that syscall the process goes to state D and if the lock would be 
> granted by the nfs server (if it is not locked already), there is no further 
> access possible to that nfs share, even umount -f does not work.
> As far as I can tell, if the file is already locked by another process, it 
> just waits, as I would expect.
> 
> 
> > > This problem does not appear in ctx-17c (the last version I tried
> > > before), although the first three syslog messages appear as well.
> >
> > maybe the patch isn't the only variable in this game,
> > maybe you patched another (newer?) kernel with v1.00?
> 
> (sorry I forgot to include the versions):
> Both 2.4.22, same .config, just the vserver patch is different.
> Host is debian stable/woody, vserver is debian unstable/sid.

good, thanks for for narrowing it down ..

> Thank you,
> Jan
> 
> --
> #!/usr/bin/perl
> 
> use Fcntl;
> 
> open FH, ">locktest.lock" or die "Cannot open $fn: $!";
> flock FH, 2;
> print "flock works...\n";
> 
> print "Testing fcntl...\n";
> @list = (F_WRLCK,0,0,0,0); # exclusive write lock, entire file
> $struct = pack("SSLLL",@list);
> fcntl(FH,&F_SETLKW,$struct) or die("cannot lock because: $!\n");
> 
> # With vs1.00 I don't get here
> 
> print FH "blabla";
> 
> close FH;
> 
> ___
> Vserver mailing list
> [EMAIL PROTECTED]
> http://list.linux-vserver.org/mailman/listinfo/vserver
___
Vserver mailing list
[EMAIL PROTECTED]
http://list.linux-vserver.org/mailman/listinfo/vserver


RE: [Vserver] Red Hat kernels (NPTL)

2003-11-05 Thread Charles Dale
OK thanks Enrico.

Fortunately there are only 2 RH9-included packages which require db4 -
libtabe ("Chinese lexicons library for xcin-2.5's bimsphone input method."
don't think I'll be needing that one) and XEmacs.

Should I be recompiling my glibc? It seems to be running alright at the
moment. Although I've got a fairly bare-bones install on the host server so
I wouldn't really know if there were problems in various apps.

Chuck

> -Original Message-
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf Of 
> Enrico Scholz
> Sent: Thursday, 6 November 2003 12:28 PM
> To: [EMAIL PROTECTED]
> Subject: Re: [Vserver] Red Hat kernels (NPTL)
> 
> 
> [EMAIL PROTECTED] ("Charles Dale") writes:
> 
> >> Correct... that's assuming redhat9 uses NPTL, I'm pretty sure
> >> it does but somebody correct me if I'm wrong...
> >
> > Yes the RH kernel's got NPTL, but I'm using RH9 with a 
> vanilla kernel 
> > fine here...
> >
> > Anyone know which standards apps threads?
> 
> db4 makes problems[1] (which causes e.g. subversion to fail). 
> Only solution is to recompile db4 (set 'nptlarchs' to 
> 'noarch' on top of .spec-file).
> 
> I am using a recompiled glibc also (same method like db4) 
> with vanilla kernel and have not encountered any problems 
> with other userspace programs.
> 
> 
> 
> Enrico
> 
> Footnotes: 
> [1]  https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=91933
> 
> ___
> Vserver mailing list
> [EMAIL PROTECTED] 
> http://list.linux-> vserver.org/mailman/listinfo/vserver
> 

___
Vserver mailing list
[EMAIL PROTECTED]
http://list.linux-vserver.org/mailman/listinfo/vserver


Re: [Vserver] Red Hat kernels (NPTL)

2003-11-05 Thread Enrico Scholz
[EMAIL PROTECTED] ("Charles Dale") writes:

>> Correct... that's assuming redhat9 uses NPTL, I'm pretty sure 
>> it does but somebody correct me if I'm wrong...
>
> Yes the RH kernel's got NPTL, but I'm using RH9 with a vanilla kernel fine
> here...
>
> Anyone know which standards apps threads?

db4 makes problems[1] (which causes e.g. subversion to fail). Only solution
is to recompile db4 (set 'nptlarchs' to 'noarch' on top of .spec-file).

I am using a recompiled glibc also (same method like db4) with vanilla
kernel and have not encountered any problems with other userspace
programs.



Enrico

Footnotes: 
[1]  https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=91933

___
Vserver mailing list
[EMAIL PROTECTED]
http://list.linux-vserver.org/mailman/listinfo/vserver


RE: [Vserver] Red Hat kernels (NPTL)

2003-11-05 Thread Charles Dale
> On Thursday, November 06, 2003 10:28 AM NZT,
> Jan-Hendrik Heuing <[EMAIL PROTECTED]> wrote:
> 
> > It looks a bit like there is no straight way using redhat9 with 
> > vserver, am I right with this conclusion ?
> 
> Correct... that's assuming redhat9 uses NPTL, I'm pretty sure 
> it does but somebody correct me if I'm wrong...

Yes the RH kernel's got NPTL, but I'm using RH9 with a vanilla kernel fine
here. That's probably because I'm not using any threaded apps, and my main
vserver is running RH6.2 (legacy). There aren't many standard apps that
would be threaded, you'd be more talking Java/threaded Apache/etc, so NPTL
is only an issue if you actually use threaded apps.

Anyone know which standards apps threads?

As to the O(1) scheduler well that doesn't really matter too much - it just
means you'll get worse performance, everything should work fine without it.
Herbert's got O(1) scheduler patches for 2.4 if you want it though.

Also you could _possibly_ rip the RedHat NPTL patches out of their kernel
SRPM and apply them to a vanilla 2.4.22 kernel. Looking at the spec file
you'd need these patches:

  # threading backport and O(1) scheduler backport; 
  # last because they need to
  # be ifarch'd and touch a lot of code
  Patch11000: linux-2.4.20-o1-sched+threading-backport.patch
  Patch11001: linux-2.4.20-noresched.patch
  Patch11002: linux-2.4.20-futex-debug.patch
  Patch11003: linux-2.4.20-softlockup.patch
  Patch11004: linux-2.4.20-ptrace.patch
  Patch11005: linux-2.4.22-security-nptl.patch
  Patch11006: linux-2.4.20-ntpl-signal-delivery-fix.patch
  Patch11030: linux-2.4.20-noscheduler.patch
  Patch11031: linux-2.4.20-ptrace-hammer.patch
  Patch11032: linux-2.4.22-security.patch

Still, it would probably get ugly pretty quickly.

Anyone up for porting the v1.0 vserver patch to a Red Hat kernel? There'd be
lots of happy customers =) ...

Chuck

___
Vserver mailing list
[EMAIL PROTECTED]
http://list.linux-vserver.org/mailman/listinfo/vserver


Re: [Vserver] Copy a vserver to different partition?

2003-11-05 Thread Geoffrey D. Bennett
On Wed, Nov 05, 2003 at 09:55:26PM +0100, Bodo Eggert wrote:
[...]
> The canonical way of copying a directory tree is:
> (cd srcdir && tar -cf - .)|(cd dstdir && tar -xvf -)

s/xvf/xvpf/ otherwise your umask will get in the way.

-- 
Geoffrey D. Bennett, RHCE, RHCX   [EMAIL PROTECTED]
Senior Systems Engineer   http://www.netcraft.com.au/geoffrey/
NetCraft Australia Pty Ltd   http://www.netcraft.com.au/linux/
___
Vserver mailing list
[EMAIL PROTECTED]
http://list.linux-vserver.org/mailman/listinfo/vserver


Re: [Vserver] is there any "getting started with vserver" documentation anywhere?

2003-11-05 Thread Simon Garner
On Thursday, November 06, 2003 10:28 AM NZT,
Jan-Hendrik Heuing <[EMAIL PROTECTED]> wrote:

>
> Just to get this right:
>
> - vanilla kernel should not be used on redhat
> - vserver does not patch redhat kernel yet
>
> ?
> It looks a bit like there is no straight way using redhat9 with
> vserver, am I right with this conclusion ?
>

Correct... that's assuming redhat9 uses NPTL, I'm pretty sure it does
but somebody correct me if I'm wrong...


> Anyway, if you still know the place of the kernel sources, I'd still
> like to know, as I can't find them. And I guess at some point there
> will be patches for the redhat kernel.
>

up2date --download kernel-source

The redhat9+ kernels also use the O(1) scheduler which I think is the
main sticking point for vserver, but there has been work on O(1) vserver
patches... somebody else can tell you more about that.


>
> What would be the way to go ?
>
> Use debian as the host, and maybe use rh vservers ? I'd like to use
> redhat for some things as I know about it. Just looking into debian...
>

At Herbert's suggestion I'm now using Mandrake 9.2 and have found it
quite nice. It's a redhat-based/redhat-style distribution, so most
things are quite similar to redhat (i.e. it uses rpms and the system
layout is much the same). But it doesn't use NPTL or O(1), so a vanilla
kernel with vserver patches works just fine on Mandrake.

-Simon

___
Vserver mailing list
[EMAIL PROTECTED]
http://list.linux-vserver.org/mailman/listinfo/vserver


Re: [Vserver] Copy a vserver to different partition?

2003-11-05 Thread jon
On Wed, Nov 05, 2003 at 09:55:26PM +0100, Bodo Eggert wrote:
> On Wed, 5 Nov 2003, Roderick A. Anderson wrote:
> 
> >
> > I've been all over the wiki and web site looking for a solution but I'm
> > getting no place slowly.
> >
> > We had a hard drive fail but was able to move the /vservers/* into a
> > working drive before replacing the bad drive.  As this is a live system
> > I'd like to _not_ take the server down and do another copy t othe new
> > partition.  I need to copy all the vservers (or one at a time) in
> > /vservers to /vserver.new so I can stop the vservers, change the mount
> > point, and restart them.
> 
> If you copy a running system, you will get an inconsistent state.
> If you're running a web server, a proxy or some other read-only/caching
> service, you'll just lose some log entries, so this may be ok. vservers
> offering storage, mail or other r/w services should be stopped before
> moving them.

yes, further more, dont copy the /vserver//proc or pts, or devfs, or ...

Why not just mount it ontop of the old one ?



JonB
___
Vserver mailing list
[EMAIL PROTECTED]
http://list.linux-vserver.org/mailman/listinfo/vserver


Re: [Vserver] Copy a vserver to different partition?

2003-11-05 Thread Bodo Eggert
On Wed, 5 Nov 2003, Roderick A. Anderson wrote:

>
> I've been all over the wiki and web site looking for a solution but I'm
> getting no place slowly.
>
> We had a hard drive fail but was able to move the /vservers/* into a
> working drive before replacing the bad drive.  As this is a live system
> I'd like to _not_ take the server down and do another copy t othe new
> partition.  I need to copy all the vservers (or one at a time) in
> /vservers to /vserver.new so I can stop the vservers, change the mount
> point, and restart them.

If you copy a running system, you will get an inconsistent state.
If you're running a web server, a proxy or some other read-only/caching
service, you'll just lose some log entries, so this may be ok. vservers
offering storage, mail or other r/w services should be stopped before
moving them.

The canonical way of copying a directory tree is:
(cd srcdir && tar -cf - .)|(cd dstdir && tar -xvf -)
-- 
   ¤ Bill of Spammer-Rights ¤
1. We have the right to assassinate you.
2. You have the right to be assassinated.
3. You have the right to resist, but it is futile.

___
Vserver mailing list
[EMAIL PROTECTED]
http://list.linux-vserver.org/mailman/listinfo/vserver


Re: [Vserver] is there any "getting started with vserver" documentation anywhere?

2003-11-05 Thread Bodo Eggert
On Wed, 5 Nov 2003, Alexander Goeres wrote:

>
> I once tried to make the vservers run on a SuSE disto but after serveral
> weekends gave up. That's basically due to my lack of ability to compile a
> vanilla kernel on SuSE so that all the modules it has with its standard
> kernel work.

The .config file for the suse kernel is saved somewhere in the /proc
directory. If you copy it into the vanilla kernel directory, the settings
should be correct for building the new kernel.
-- 
   ¤ Bill of Spammer-Rights ¤
1. We have the right to assassinate you.
2. You have the right to be assassinated.
3. You have the right to resist, but it is futile.

___
Vserver mailing list
[EMAIL PROTECTED]
http://list.linux-vserver.org/mailman/listinfo/vserver


Re: [Vserver] is there any "getting started with vserver" documentation anywhere?

2003-11-05 Thread Jan-Hendrik Heuing

> Ages ago I searched for the same for rh7.3, that days it was
> seperated, I also had to install kernel-headers etc..., but I can't
> find these things for rh9.
>
I think running a vanilla kernel on rh9/rhel3 is not a good idea (this
was what I found with taroon at least) - the red hat kernel has NPTL
(native posix thread library) support patched in, and a lot of userspace
things expect this kernel support to be there. If you run a vanilla
kernel (which won't have NPTL) then you will see problems with threaded
apps.
Unfortunately the vserver patches won't patch (yet) against the red hat
patched kernels.
Just to get this right:

- vanilla kernel should not be used on redhat
- vserver does not patch redhat kernel yet
?
It looks a bit like there is no straight way using redhat9 with vserver, am 
I right with this conclusion ?

Anyway, if you still know the place of the kernel sources, I'd still like 
to know, as I can't find them. And I guess at some point there will be 
patches for the redhat kernel.

What would be the way to go ?

Use debian as the host, and maybe use rh vservers ? I'd like to use redhat 
for some things as I know about it. Just looking into debian...

thanks, JH 

___
Vserver mailing list
[EMAIL PROTECTED]
http://list.linux-vserver.org/mailman/listinfo/vserver


Re: [Vserver] is there any "getting started with vserver" documentation anywhere?

2003-11-05 Thread Simon Garner
On Thursday, November 06, 2003 2:16 AM NZT,
Jan-Hendrik Heuing <[EMAIL PROTECTED]> wrote:

>
> Ages ago I searched for the same for rh7.3, that days it was
> seperated, I also had to install kernel-headers etc..., but I can't
> find these things for rh9.
>

I think running a vanilla kernel on rh9/rhel3 is not a good idea (this
was what I found with taroon at least) - the red hat kernel has NPTL
(native posix thread library) support patched in, and a lot of userspace
things expect this kernel support to be there. If you run a vanilla
kernel (which won't have NPTL) then you will see problems with threaded
apps.

Unfortunately the vserver patches won't patch (yet) against the red hat
patched kernels.

-Simon

___
Vserver mailing list
[EMAIL PROTECTED]
http://list.linux-vserver.org/mailman/listinfo/vserver


[Vserver] Copy a vserver to different partition?

2003-11-05 Thread Roderick A. Anderson
I've been all over the wiki and web site looking for a solution but I'm 
getting no place slowly.

We had a hard drive fail but was able to move the /vservers/* into a 
working drive before replacing the bad drive.  As this is a live system 
I'd like to _not_ take the server down and do another copy t othe new 
partition.  I need to copy all the vservers (or one at a time) in 
/vservers to /vserver.new so I can stop the vservers, change the mount 
point, and restart them.  
   I tried Herbert's dump/restore suggestion (FAQs) but have no experience 
with dump/restore (spoiled by bru at an early age :-) and couldn't figure 
out why it was failing the restore?  Well some of it could be I'm using an 
older version of dump (dump -v => dump 0.4b28) or my understand of the 
example is wrong.
   I've tried both

dump 0zf /mnt/vbackup/ref.dump /vservers/ref/
dump 0zf /mnt/vbackup/ref.dump /vservers/{ref}

the first works (but doesn't restore) and fails like this

{/vservers.new}# restore -tf /mnt/vbackup/ref.dump ./ref
Dump tape is compressed.
Dump   date: Wed Nov  5 11:25:02 2003
Dumped from: the epoch
Level 0 dump of /vservers (dir /ref) on 
web2.technologyservicesmanagementgroup.com:/dev/sda2
Label: /var
Read error while restoring 

and the second dump fails like this.

{/vservers}# dump 0zf /mnt/vbackup/ref.dump /vservers/{ref}
  DUMP: Date of this level 0 dump: Wed Nov  5 11:42:22 2003
  DUMP: Dumping /dev/sda2 (/vservers (dir /{ref})) to 
/mnt/vbackup/ref.dump
  DUMP: Added inode 8 to exclude list (journal inode)
  DUMP: Added inode 7 to exclude list (resize inode)
  DUMP: Label: /var
  DUMP: Compressing output at compression level 2 (zlib)
  DUMP: mapping (Pass I) [regular files]
  DUMP: File cannot be accessed (/vservers/{ref}).
  DUMP: The ENTIRE dump is aborted.

There have been a few threads on this list about using cp and other
options but I can't find them now.  Vserver-copy doesn't seem to have the
ability (option) to copy from partition to partiotion on the same server.  
I'm willing to damn the 'save space' option and worry about that later
just to get them onto the new drive/partition.

Any help for the slow-witted? 


TIA,
Rod
-- 
  "Open Source Software - Sometimes you get more than you paid for..."

___
Vserver mailing list
[EMAIL PROTECTED]
http://list.linux-vserver.org/mailman/listinfo/vserver


[Vserver] Re: chroot and CAP_SYS_CHROOT broken ??

2003-11-05 Thread Linas Vepstas
Hi,


On Thu, Oct 30, 2003 at 08:57:01PM +0100, [EMAIL PROTECTED] was heard to remark:
> 
> hmm, after --cap '!CAP_SYS_CHROOT', you should not be able
> to perform chroot() at all ... and I don't see any reason
> why the chroot() in you example should have worked ...

Hmm. What was I thinking?   Clearly, I should stop testing late at night... 
Thanks for the help, though ... 


I was exploring using some of the vserver features without going "all the way"
and using vservers.  To do this, it's become clear to me that a set of tools
that are easier to use/better than setpcap/getpcap are needed.  Is there 
anyone working on such a thing?


p.s. I have ppc64 patches; they are essentially identical to the other
arch patches.  Should I send them to you directly?

--linas

-- 
pub  1024D/01045933 2001-02-01 Linas Vepstas (Labas!) <[EMAIL PROTECTED]>
PGP Key fingerprint = 8305 2521 6000 0B5E 8984  3F54 64A9 9A82 0104 5933
___
Vserver mailing list
[EMAIL PROTECTED]
http://list.linux-vserver.org/mailman/listinfo/vserver


RE: [Vserver] umm, little security problem:... www.solucorp.qc.ca mailing list memberships reminder

2003-11-05 Thread Brian Ipsen
Hi,

> I got this on the mailing list digest.  I don't think I was
> supposed to get
> message 5, as it contains a passwd and its not my passwd or my acct.

Same here. I also wonder why I get messages from several list-servers -
instead of people could agree to use just one list-server (make
filterting/sorting a nightmeare, who knows, in the future postings might
arrive from 45 different list-servers - all for the sam elist :-/ )

/Brian

___
Vserver mailing list
[EMAIL PROTECTED]
http://list.linux-vserver.org/mailman/listinfo/vserver


[Vserver] umm, little security problem:... www.solucorp.qc.ca mailing list memberships reminder

2003-11-05 Thread Linas Vepstas
Uhh,

I got this on the mailing list digest.  I don't think I was supposed to get
message 5, as it contains a passwd and its not my passwd or my acct.

--linas

On Sat, Nov 01, 2003 at 12:00:04PM +0100, [EMAIL PROTECTED] was heard to remark:
> Send Vserver mailing list submissions to
>   [EMAIL PROTECTED]
> 
> To subscribe or unsubscribe via the World Wide Web, visit
>   http://list.linux-vserver.org/mailman/listinfo/vserver
> or, via email, send a message with subject or body 'help' to
>   [EMAIL PROTECTED]
> 
> You can reach the person managing the list at
>   [EMAIL PROTECTED]
> 
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of Vserver digest..."
> 
> 
> Today's Topics:
> 
>1. Re: Problems Setting Limits (Enrico Scholz)
>2. RE: OT virtualize server ... (Charles Dale)
>3. Project Overview Page (Charles Dale)
>4. Re: 1.0 release - I agree! (GuruJ)
>5. www.solucorp.qc.ca mailing list memberships reminder ([EMAIL PROTECTED])
> 
> 
> --__--__--
> 
> Message: 5
> Date: Sat, 01 Nov 2003 05:10:43 -0500
> From: [EMAIL PROTECTED]
> To: [EMAIL PROTECTED]
> Subject: [Vserver] www.solucorp.qc.ca mailing list memberships reminder
> Reply-To: [EMAIL PROTECTED]
> 
> This is a reminder, sent out once a month, about your
> www.solucorp.qc.ca mailing list memberships.  It includes your
> subscription info and how to use it to change it or unsubscribe from a
> list.
> 
> You can visit the URLs to change your membership status or
> configuration, including unsubscribing, setting digest-style delivery
> or disabling delivery altogether (e.g., for a vacation), and so on.
> 
> In addition to the URL interfaces, you can also use email to make such
> changes.  For more info, send a message to the '-request' address of
> the list (for example, [EMAIL PROTECTED]) containing
> just the word 'help' in the message body, and an email message will be
> sent to you with instructions.
> 
> If you have questions, problems, comments, etc, send them to
> [EMAIL PROTECTED]  Thanks!
> 
> Passwords for [EMAIL PROTECTED]:
> 
> List Password // URL
>    
> [EMAIL PROTECTED]   bisaih
> http://www.solucorp.qc.ca/mailman/options/vserver/vserver%40lists.tuxbox.dk
> 
> 
> --__--__--
> 
> ___
> Vserver mailing list
> [EMAIL PROTECTED]
> http://list.linux-vserver.org/mailman/listinfo/vserver
> 
> 
> End of Vserver Digest

-- 
pub  1024D/01045933 2001-02-01 Linas Vepstas (Labas!) <[EMAIL PROTECTED]>
PGP Key fingerprint = 8305 2521 6000 0B5E 8984  3F54 64A9 9A82 0104 5933
___
Vserver mailing list
[EMAIL PROTECTED]
http://list.linux-vserver.org/mailman/listinfo/vserver


Re: [Vserver] is there any "getting started with vserver" documentation anywhere?

2003-11-05 Thread Jan-Hendrik Heuing
At 13:53 05.11.2003, you wrote:
Charles Dale wrote:
Re: compiliing a kernel on SuSE, they should provide a .config file that has
all the configuration options used for compiling the stock kernel.
With RedHat this is in the config/ directory inside the kernel tree. Looking
at a SuSE source RPM I can't see anything similar. Hmm.
On redhat, if the config is in that directory, what is the config file in 
/boot ?

The other thing: I might be wrong with this, but: Isn't it the case that 
redhat provides a patched kernel ? I could not fine the whole source 
kernel. Finally I used a standard vanilla kernel (which I still have little 
problems with).

I could only find some kernel-xxx.src.rpm, but which only installs some 
other directory structure, not like it would be with a vanilla kernel.

Ages ago I searched for the same for rh7.3, that days it was seperated, I 
also had to install kernel-headers etc..., but I can't find these things 
for rh9.

Hints are appreaciated !

JH

___
Vserver mailing list
[EMAIL PROTECTED]
http://list.linux-vserver.org/mailman/listinfo/vserver


Re: [Vserver] is there any "getting started with vserver" documentation anywhere?

2003-11-05 Thread Christian Mayrhuber
Charles Dale wrote:
Re: compiliing a kernel on SuSE, they should provide a .config file that has
all the configuration options used for compiling the stock kernel.
With RedHat this is in the config/ directory inside the kernel tree. Looking
at a SuSE source RPM I can't see anything similar. Hmm.
If I remember right, then the SuSE kernels have stored their 
configuration within the /proc filesystem. Have a look at 
/proc/config.gz for a gzip compressed configuration.

--
lg, Chris
___
Vserver mailing list
[EMAIL PROTECTED]
http://list.linux-vserver.org/mailman/listinfo/vserver


Re: [Vserver] is there any "getting started with vserver" documentation anywhere?

2003-11-05 Thread Alexander Goeres
Am Mittwoch, 5. November 2003 12:09 schrieb Charles Dale:
> Re: compiliing a kernel on SuSE, they should provide a .config file that
> has all the configuration options used for compiling the stock kernel.

Hmm, should have thought of that myself..
Here goes another weekend..

> Chuck
 Thanx...

Alexander
--
[EMAIL PROTECTED]
tel.: +49 (0)30 / 61 20 26 87
fax: +49 (0)30 / 61 20 26 89
---
lieblinxNET
 we do software
a Marwood & Thiele GbR
---
reichenberger straße 125
10999 Berlin

http://lieblinx.net
---

___
Vserver mailing list
[EMAIL PROTECTED]
http://list.linux-vserver.org/mailman/listinfo/vserver


RE: [Vserver] is there any "getting started with vserver" documentation anywhere?

2003-11-05 Thread Charles Dale
Re: compiliing a kernel on SuSE, they should provide a .config file that has
all the configuration options used for compiling the stock kernel.

With RedHat this is in the config/ directory inside the kernel tree. Looking
at a SuSE source RPM I can't see anything similar. Hmm.

Chuck

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Alexander Goeres
Sent: Wednesday, 5 November 2003 9:15 PM
To: [EMAIL PROTECTED]
Subject: Re: [Vserver] is there any "getting started with vserver"
documentation anywhere?


I once tried to make the vservers run on a SuSE disto but after serveral 
weekends gave up. That's basically due to my lack of ability to compile a 
vanilla kernel on SuSE so that all the modules it has with its standard 
kernel work. 
We run vservers under Debian 3.0 (Woody) without any problems. The "normal" 
vservers (without setting disk-space limits and without setting the context 
number :-)) are "simple": I started with the introduction by Jacques (in 
april, I think) and worked up my way through the other docs in mentioned 
http://linux-vserver.org. Astonishingly there's not really much to do to run

vservers: patching, compiling and installing the kernel, getting the tools
of 
choice (either from the Debian distro or Enrico's util-vserver), setting up
a 
vserver, do a "vserver xxx start" and that's it... As a kernel I use
whatever 
is currently regarded as stable (on the long running system 2.4.18, on the 
systems to-be-set-up 2.4.22) and where the developers provide a patch.

I found it to be very stable, relatively easy to install and extremely
useful!

Alexander


Am Mittwoch, 5. November 2003 05:31 schrieb ian douglas:
> Considering RedHat's recent press release about discontinuing the
> "RedHat Linux" line in favor of the more expensive enterprise version, 
> I'd really like a few answers from others (only had one off-list 
> reply) regarding which operating system is going to be my best bet 
> since I'm going to have to convert my server to another Linux distro 
> now.
>
> I'll be starting a whole new server to manage everything but curious,
> obviously, which distro people have had the most success with other 
> than RedHat.
>
> Thanks for any help on that, as well as my other unanswered questions.
>
> -id
>
> > I searched the site's documentation and found the multi-page "this
> > is what it's capable of" documentation, but didn't see any offhand 
> > that answered the following questions. I sent them to Jacques, but 
> > I'd like to pose it to the list
> > in general for the 1.0 release so I can get started on vserver in
> > the coming
> > weeks.
> >
> > ---
> > Hi Jacques,
> >
> > I've been daydreaming about a vserver setup for my system.
> >
> > A few things that perhaps would be handy to have in the FAQ:
> >
> > - what OS works 'best'? Kernel version is obviously important, but
> > it would be neat to see some sort of volunteered information from 
> > various users as to the OS
> > and version of that OS, that they have the most success with
> >
> > - how does one get started? is it best to start with a totally fresh
> > machine and build from there, or could I start from a medium-sized 
> > virtual hosting setup
> > using Linuxconf and build a vserver and go from there? I guess
> > I'm looking for
> > guidance on what should/should not get copied over when building the
> > first vserver - once I build the first one, I can just use the vserver
> > software to
> > duplicate it, but I'm worried about disk space and how to
> > actually mount/share
> > file system areas...
> >
> > - any patched versions of up2date out there? or would I have to tell
> > up2date to save a copy of the RPM's on the disk somewhere and run 
> > the vserver rpm utility
> > to patch all vservers? If I have 100 vservers, is there a quicker
> > way to tell it
> > to patch all vservers, or would I have to literally type "rpm
> > server1 server2
> > server3 ... server99 server100 -Uvh *rpm" ?
> >
> > ---
> >
> > Thanks for any additional feedback.
> > -id
> >
> >
> > ___
> > Vserver mailing list
> > [EMAIL PROTECTED]
> > http://list.linux-vserver.org/mailman/listinfo/vserver
>
> ___
> Vserver mailing list
> [EMAIL PROTECTED]
> http://list.linux-vserver.org/mailman/listinfo/vserver

-- 
---
[EMAIL PROTECTED]
tel.: +49 (0)30 / 61 20 26 87
fax: +49 (0)30 / 61 20 26 89
---
lieblinxNET
 we do software
a Marwood & Thiele GbR
---
reichenberger straße 125
10999 Berlin

http://lieblinx.net
---

___
Vserver mailing list
[EMAIL PROTECTED]
http://list.linux-vserver.org/mailman/listinfo/vserver

___
Vserver mailing list
[EMAIL PROTECTED]
http://list.linux-vse

Re: [Vserver] NFS problems with vs1.00

2003-11-05 Thread Jan Zuchhold
> > There seems to be a problem with using nfs shares in a vserver with
> > vs1.00. It appears that it is related to file locking.
> >
> > The share is mounted like this in the vserver startup script:
> >
> > /usr/sbin/chbind --ip 192.168.1.145 --bcast 192.168.1.255 mount
> > -t nfs fileserver:/home /var/lib/vservers/$2/home
> >
> > After mounting the share it seems to work correctly (cd/ls/touch showing
> > no problems).
> >
> > When I start a process (in my case it's eclipse in jvm 1.4.1) which tries
> > to lock a file on that nfs share, it goes to state D ('uninterruptible
> > sleep') and cannot be killed. Any other process which tries to access the
> > share goes to state D as well.
>
> hmm, could you try to reproduce this without eclipse/jvm?
> (some small C programm or perl script will do)

I could track down the problem to the fcntl64 syscall.
Strace output:
10:36:19 fcntl64(3, F_SETLKW64, {type=F_WRLCK, whence=SEEK_SET, start=0, 
len=0}

I attached a small perl script to reproduce this.

After that syscall the process goes to state D and if the lock would be 
granted by the nfs server (if it is not locked already), there is no further 
access possible to that nfs share, even umount -f does not work.
As far as I can tell, if the file is already locked by another process, it 
just waits, as I would expect.


> > This problem does not appear in ctx-17c (the last version I tried
> > before), although the first three syslog messages appear as well.
>
> maybe the patch isn't the only variable in this game,
> maybe you patched another (newer?) kernel with v1.00?

(sorry I forgot to include the versions):
Both 2.4.22, same .config, just the vserver patch is different.
Host is debian stable/woody, vserver is debian unstable/sid.

Thank you,
Jan

--
#!/usr/bin/perl

use Fcntl;

open FH, ">locktest.lock" or die "Cannot open $fn: $!";
flock FH, 2;
print "flock works...\n";

print "Testing fcntl...\n";
@list = (F_WRLCK,0,0,0,0); # exclusive write lock, entire file
$struct = pack("SSLLL",@list);
fcntl(FH,&F_SETLKW,$struct) or die("cannot lock because: $!\n");

# With vs1.00 I don't get here

print FH "blabla";

close FH;

___
Vserver mailing list
[EMAIL PROTECTED]
http://list.linux-vserver.org/mailman/listinfo/vserver


Re: [Vserver] is there any "getting started with vserver" documentation anywhere?

2003-11-05 Thread Alexander Goeres
I once tried to make the vservers run on a SuSE disto but after serveral 
weekends gave up. That's basically due to my lack of ability to compile a 
vanilla kernel on SuSE so that all the modules it has with its standard 
kernel work. 
We run vservers under Debian 3.0 (Woody) without any problems. The "normal" 
vservers (without setting disk-space limits and without setting the context 
number :-)) are "simple": I started with the introduction by Jacques (in 
april, I think) and worked up my way through the other docs in mentioned 
http://linux-vserver.org. Astonishingly there's not really much to do to run 
vservers: patching, compiling and installing the kernel, getting the tools of 
choice (either from the Debian distro or Enrico's util-vserver), setting up a 
vserver, do a "vserver xxx start" and that's it... As a kernel I use whatever 
is currently regarded as stable (on the long running system 2.4.18, on the 
systems to-be-set-up 2.4.22) and where the developers provide a patch.

I found it to be very stable, relatively easy to install and extremely useful!

Alexander


Am Mittwoch, 5. November 2003 05:31 schrieb ian douglas:
> Considering RedHat's recent press release about discontinuing the "RedHat
> Linux" line in favor of the more expensive enterprise version, I'd really
> like a few answers from others (only had one off-list reply) regarding
> which operating system is going to be my best bet since I'm going to have
> to convert my server to another Linux distro now.
>
> I'll be starting a whole new server to manage everything but curious,
> obviously, which distro people have had the most success with other than
> RedHat.
>
> Thanks for any help on that, as well as my other unanswered questions.
>
> -id
>
> > I searched the site's documentation and found the multi-page
> > "this is what it's
> > capable of" documentation, but didn't see any offhand that answered the
> > following questions. I sent them to Jacques, but I'd like to pose
> > it to the list
> > in general for the 1.0 release so I can get started on vserver in
> > the coming
> > weeks.
> >
> > ---
> > Hi Jacques,
> >
> > I've been daydreaming about a vserver setup for my system.
> >
> > A few things that perhaps would be handy to have in the FAQ:
> >
> > - what OS works 'best'? Kernel version is obviously important,
> > but it would be
> > neat to see some sort of volunteered information from various
> > users as to the OS
> > and version of that OS, that they have the most success with
> >
> > - how does one get started? is it best to start with a totally
> > fresh machine and
> > build from there, or could I start from a medium-sized virtual
> > hosting setup
> > using Linuxconf and build a vserver and go from there? I guess
> > I'm looking for
> > guidance on what should/should not get copied over when building the
> > first vserver - once I build the first one, I can just use the vserver
> > software to
> > duplicate it, but I'm worried about disk space and how to
> > actually mount/share
> > file system areas...
> >
> > - any patched versions of up2date out there? or would I have to
> > tell up2date to
> > save a copy of the RPM's on the disk somewhere and run the
> > vserver rpm utility
> > to patch all vservers? If I have 100 vservers, is there a quicker
> > way to tell it
> > to patch all vservers, or would I have to literally type "rpm
> > server1 server2
> > server3 ... server99 server100 -Uvh *rpm" ?
> >
> > ---
> >
> > Thanks for any additional feedback.
> > -id
> >
> >
> > ___
> > Vserver mailing list
> > [EMAIL PROTECTED]
> > http://list.linux-vserver.org/mailman/listinfo/vserver
>
> ___
> Vserver mailing list
> [EMAIL PROTECTED]
> http://list.linux-vserver.org/mailman/listinfo/vserver

-- 
---
[EMAIL PROTECTED]
tel.: +49 (0)30 / 61 20 26 87
fax: +49 (0)30 / 61 20 26 89
---
lieblinxNET
 we do software
a Marwood & Thiele GbR
---
reichenberger straße 125
10999 Berlin

http://lieblinx.net
---

___
Vserver mailing list
[EMAIL PROTECTED]
http://list.linux-vserver.org/mailman/listinfo/vserver