Re: [Vserver] How to vunify/vhashify on Gentoo

2006-01-22 Thread Enrico Scholz
[EMAIL PROTECTED] (Wilhelm Meier) writes:

 I'm using Gentoo as a host and also Gentoo as VPSs. If I try to 
 vunify/vhashify two VPS, I get:

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

 gs vservers # vserver vs01c unify
 Can not determine packagemanagement style
 failed to determine configfiles

Does vhashify/vunify really make sense on Gentoo? AFAIK, Gentoo does not
have a packagemanagement and you have to recompile everything (which
will probably produce different checksums).

When you do a 'make install' from the same source tree, vhashify/vunify will
still not work because most 'make install' do not preserve timestamps. But
because timestamps are used to check whether files are identically resp. are
going into the calculation of the hash value, you will not gain very much
with vhashify/vunify on Gentoo.



Enrico


pgpDukvkGqWs6.pgp
Description: PGP signature
___
Vserver mailing list
Vserver@list.linux-vserver.org
http://list.linux-vserver.org/mailman/listinfo/vserver


Re: [Vserver] How to vunify/vhashify on Gentoo

2006-01-22 Thread Michael S. Zick
On Sun January 22 2006 05:38, Enrico Scholz wrote:
 [EMAIL PROTECTED] (Wilhelm Meier) writes:
 
  I'm using Gentoo as a host and also Gentoo as VPSs. If I try to 
  vunify/vhashify two VPS, I get:
 
  gs vservers # ln 
  -s /etc/vservers/vs01 /etc/vservers/vs01c/apps/vunify/refserver.00
 
  gs vservers # vserver vs01c unify
  Can not determine packagemanagement style
  failed to determine configfiles
 
 Does vhashify/vunify really make sense on Gentoo? AFAIK, Gentoo does not
 have a packagemanagement and you have to recompile everything (which
 will probably produce different checksums).

Gentoo does handle binary package management - do:

emerge --buildpkg whatever (you can set that option in your FEATURES)
the 'install' tools accept binary package.tbz2 with a --usepkg option. 

The package is a 'tar --bzip2' with additional meta-data 
The process will preserve timestamps and etc as well as any tar --bzip2

Mike
 
 When you do a 'make install' from the same source tree, vhashify/vunify will
 still not work because most 'make install' do not preserve timestamps. But
 because timestamps are used to check whether files are identically resp. are
 going into the calculation of the hash value, you will not gain very much
 with vhashify/vunify on Gentoo.
 
 
 
 Enrico
 
___
Vserver mailing list
Vserver@list.linux-vserver.org
http://list.linux-vserver.org/mailman/listinfo/vserver


Re: [Vserver] How to vunify/vhashify on Gentoo

2006-01-22 Thread Wilhelm Meier
Am Sonntag, 22. Januar 2006 12:38 schrieb Enrico Scholz:
 [EMAIL PROTECTED] (Wilhelm Meier) writes:
  I'm using Gentoo as a host and also Gentoo as VPSs. If I try to
  vunify/vhashify two VPS, I get:
 
  gs vservers # ln
  -s /etc/vservers/vs01 /etc/vservers/vs01c/apps/vunify/refserver.00
 
  gs vservers # vserver vs01c unify
  Can not determine packagemanagement style
  failed to determine configfiles

 Does vhashify/vunify really make sense on Gentoo? AFAIK, Gentoo does not
 have a packagemanagement and you have to recompile everything (which
 will probably produce different checksums).

Yes, but Gentoo has package-management - the portage system. 


 When you do a 'make install' from the same source tree, vhashify/vunify
 will still not work because most 'make install' do not preserve timestamps.
 But because timestamps are used to check whether files are identically
 resp. are going into the calculation of the hash value, you will not gain
 very much with vhashify/vunify on Gentoo.

You have to use binary packages, then you will gain the same amount as with 
other distributions. And you have to compile the things only once. This is 
o.k. since the compiler-flags won't change from Vserver to VServer. The only 
issue might be with the portage-use-flags.




 Enrico

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


Re: [Vserver] How to vunify/vhashify on Gentoo

2006-01-22 Thread Benedikt Boehm
On Sunday 22 January 2006 15:46, Wilhelm Meier wrote:
 Am Sonntag, 22. Januar 2006 12:38 schrieb Enrico Scholz:
  [EMAIL PROTECTED] (Wilhelm Meier) writes:
   I'm using Gentoo as a host and also Gentoo as VPSs. If I try to
   vunify/vhashify two VPS, I get:
  
   gs vservers # ln
   -s /etc/vservers/vs01 /etc/vservers/vs01c/apps/vunify/refserver.00
  
   gs vservers # vserver vs01c unify
   Can not determine packagemanagement style
   failed to determine configfiles
 
  Does vhashify/vunify really make sense on Gentoo? AFAIK, Gentoo does not
  have a packagemanagement and you have to recompile everything (which
  will probably produce different checksums).

 Yes, but Gentoo has package-management - the portage system.

  When you do a 'make install' from the same source tree, vhashify/vunify
  will still not work because most 'make install' do not preserve
  timestamps. But because timestamps are used to check whether files are
  identically resp. are going into the calculation of the hash value, you
  will not gain very much with vhashify/vunify on Gentoo.

 You have to use binary packages, then you will gain the same amount as with
 other distributions. And you have to compile the things only once. This is
 o.k. since the compiler-flags won't change from Vserver to VServer. The
 only issue might be with the portage-use-flags.

well, if you want unification you probably use the same use flags among 
unified guests anyway...


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


[Vserver] How to vunify/vhashify on Gentoo

2006-01-06 Thread Wilhelm Meier
Hi,

I'm using Gentoo as a host and also Gentoo as VPSs. If I try to 
vunify/vhashify two VPS, I get:

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

gs vservers # vserver vs01c unify
Can not determine packagemanagement style
failed to determine configfiles
gs vservers #

So, how can I fix this?

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


Re: [Vserver] How to vunify/vhashify on Gentoo

2006-01-06 Thread Herbert Poetzl
On Fri, Jan 06, 2006 at 01:47:41PM +0100, Wilhelm Meier wrote:
 Hi,
 
 I'm using Gentoo as a host and also Gentoo as VPSs. If I try to 
 vunify/vhashify two VPS, I get:
 
 gs vservers # ln 
 -s /etc/vservers/vs01 /etc/vservers/vs01c/apps/vunify/refserver.00
 
 gs vservers # vserver vs01c unify
 Can not determine packagemanagement style
 failed to determine configfiles
 gs vservers #
 
 So, how can I fix this?

no idea, Enrico might know ...

but you can use vhashify (manually) which was
reported to work fine on gentoo

HTH,
Herbert

 
 --
 Wilhelm Meier
 email: [EMAIL PROTECTED]
 ___
 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