Re: [Vserver] Small bug report and feature request

2005-02-01 Thread Enrico Scholz
[EMAIL PROTECTED] (Micah Anderson) writes:

>> |*  make a 'clone' build method
>> |
>> |which allows to clone an existing vserver (with modified options)
>> 
>> I would like to have a generic CLI tool which modifies the
>> configuration, before I implement this method. 'vcopy' needs
>> testing also; especially for the not-link-but-copy and
>> skipped-files cases.
>
> What is vcopy? I did not know it existed and I cannot find any man
> pages for it. Does it do a "clone" of a vserver?

It is a 'cp -l' with a builtin 'vunify'. It uses the same exclude
list mechanism like 'vunify' so that certain files will be copied
instead of linked (e.g. cfg-files), or skipped entirely (e.g. ssh
hostkeys, user data).

Basic usage (requires 0.30.203+) is

| # mkdir -p /etc/vservers//apps/vunify
|   (+ configure special exclude lists)
| # /usr/lib/util-vserver/vunify  

But it is not mature enough to document it somewhere else ;)
(e.g. '-n' does not really work,  *requires* a supported
pkg-management, ...)




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


Re: [Vserver] Small bug report and feature request

2005-02-01 Thread Micah Anderson
On Tue, 01 Feb 2005, Enrico Scholz wrote:

> [EMAIL PROTECTED] (Herbert Poetzl) writes:
> 
> > here is some other stuff to think about ;)
> >
> > http://linux-vserver.org/ToDo+List+Tools
> 
> |*  make a 'clone' build method
> |
> |which allows to clone an existing vserver (with modified options)
> 
> I would like to have a generic CLI tool which modifies the
> configuration, before I implement this method. 'vcopy' needs
> testing also; especially for the not-link-but-copy and
> skipped-files cases.

What is vcopy? I did not know it existed and I cannot find any man
pages for it. Does it do a "clone" of a vserver?

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


Re: [Vserver] vunify problem

2005-02-01 Thread Micah Anderson
On Tue, 01 Feb 2005, Enrico Scholz wrote:

> [EMAIL PROTECTED] (Micah Anderson) writes:
> 
> > Then I followed the instructions on
> > http://linux-vserver.org/alpha+util-vserver to unify vservers:
> >
> > 1. mkdir -p /usr/local/etc/vservers/MT/apps/vunify
> > 2. ln -s /usr/local/etc/vservers/seedbank
> > /usr/local/etc/vservers/MT/apps/vunify/refserver.00 
> >
> > Then when I do a dry-run of the unification, it does not work:
> > # /usr/local/lib/util-vserver/vunify -v -n MT
> > /usr/local/lib/util-vserver/vunify -v -n MT
> > Initializing exclude-list for /vservers/MT (MT)
> > no reference vserver configured
> >
> > ?
> 
> Strange... you should get 'unification for reference vserver not
> configured'...

I should mention that I am using util-vserver-0.30.201.

> Can you try
> 
> | # mkdir -p /usr/local/etc/vservers/seedbank/apps/vunify
> | # /usr/local/lib/util-vserver/vunify -v -n MT

This worked... I see that the mkdir -p
/usr/local/etc/vservers//apps/vunify was not included in
the instructions, but it is now. This solved the problem.

Also, while following these instructions I was not sure if this line
was correct:

# ln -s /etc/vservers/
/etc/vservers//apps/vunify/refserver.00

I thought it was intending:

# ln -s /etc/vservers/
/etc/vservers//apps/vunify/.00

but I see that is supposed to be literally "refserver.00".

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