Subject: Re: [vserver] File permission problem after upgrade
From: "Daniel Hokka Zakrisson" <daniel@hozac.com>
Date: Wed, 27 Apr 2011 15:35:40 +0200 (CEST)

Matthias Teege wrote:
> Moin,
>
> I've upgraded a vserver to 2.6.35-vs2.3.0.36.32. I use unify for most
> vservers. After the upgrade I have problems with file permissions:
>
> # whoami
> root
> # rm /vservers/sysA/tmp/ban.txt
> rm: cannot remove `ban.txt': Operation not permitted
>
> # stat /vservers/sysA/tmp/ban.txt
>   File: `/vservers/sysA/tmp/ban.txt'
>   Size: 89              Blocks: 8          IO Block: 4096   regular file
> Device: 9300h/37632d    Inode: 697531      Links: 2
> Access: (0644/-rw-r--r--)  Uid: (    0/    root)   Gid: (    0/    root)
> Access: 2011-04-27 05:12:00.000000000 +0200
> Modify: 2010-11-18 17:47:56.000000000 +0100
> Change: 2010-11-19 01:13:25.000000000 +0100
>
> I cannot remove, touch or mv the file. Reading isn't a problem.

Most likely, the file is immutable, without being marked as COW.

> Are there any known problems? Does anyone has an idea what the problem is?

What kernel did you come from? What filesystem are you using?

For some combinations of the above two answers, the answer will
be that you need to stash away your Linux-VServer attributes
while running the old kernel, and then restore them again.
http://people.linux-vserver.org/~dhozac/t/save-vsdata.sh can
help you do that.

-- 
Daniel Hokka Zakrisson