Subject: Re: [vserver] vhashify problem?
From: "JF Straeten" <jfstraeten@scarlet.be>
Date: Thu, 2 Dec 2010 14:40:24 +0100


Re,

On Thu, Dec 02, 2010 at 02:15:10PM +0100, Eugen Leitl wrote:

> > do you use or did you recently update to/from the known
> > broken 2.6.26 kernel (without fixing up the attributes)?
 
> Yes, I've updated to 2.6.31.14-vs2.3.0.36.28.2-beng #1 SMP Mon Aug 9 10:18:48 BST
2010 x86_64 GNU/Linux
> after discovering that I was running the stock
> Debian breakage.
> 
> How would I fix the attributes for all running guests?

This page document the migration :

http://linux-vserver.org/FromLennysKernelToBenGsKernel/Fr

but it's in french :-/

To summarize in your case : 

1. You need the iunlink flag on hashified files :

~# find /srv/vservers/.hash -type f

-----UIC- /srv/vservers/.hash/dd/76 /a83691887d3cd1fddcc6dcab2d5c7b8ee273-00000000
[...]


2. If you don't see the "U" (caps one), it isn't set. (A lowercase "u"
means flag possible, but not enabled.)

So, to enable it :

~# find /srv/vservers/.hash -type f -exec setattr --iunlink {} \;


After that, restart all vservers :

~# for vs in $(ls -1 /srv/vservers)
do
vserver $vs restart
done

(Of course, substitue "/srv/vservers" as approriate for your setup.)


Hih,


-- 

JFS.