On Fri, Apr 22, 2005 at 12:53:33PM +0200, Francois Duchatelet wrote:
>  
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> Hi guys,
> 
> I have a very strange problem: even root on the host system can't remove a
> symlink inside one of the vservers space.
> 
> Context:
> Kernel 2.4.25
> vserver patch 1.26
> rh 7.3 host server
> 
> [EMAIL PROTECTED] opt]# rpm -qf `which lsattr`
> e2fsprogs-1.35-7.1
> [EMAIL PROTECTED] opt]# mount
>    ...
> /dev/md2 on /mnt/raidbak1 type ext3 (rw)
>    ...
> 
> rostst1 is a RH73 vserver. I tried to unlink with the vserver running or
> stopped
> 
> 
> 
> Session extract:
> - ------------------------
> [EMAIL PROTECTED] opt]# pwd
> /mnt/raidbak1/vservers/rostst1/opt
> [EMAIL PROTECTED] opt]# ls -l de?
> lrwxrwxrwx    1 root     root            3 Apr 22 12:07 de0 -> vm4
> lrwxrwxrwx    1 root     root            3 Oct  9  2004 dev -> vm4
> [EMAIL PROTECTED] opt]# lsattr de?
> - ------------- de0
> - ------------- dev

hmm, could you add the output of:

        lsattr -d /mnt/raidbak1/vservers/rostst1/opt
        showattr -d /mnt/raidbak1/vservers/rostst1/opt
        showattr /mnt/raidbak1/vservers/rostst1/opt/de*

> [EMAIL PROTECTED] opt]# strace -e trace=file rm -f dev
>    ...
> lstat64(".", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
> lstat64("dev", {st_mode=S_IFLNK|0777, st_size=3, ...}) = 0
> unlink("dev")                           = -1 EPERM (Operation not
> permitted)
>    ...
> [EMAIL PROTECTED] opt]# rm -f de0
> [EMAIL PROTECTED] opt]# ls -l de?
> lrwxrwxrwx    1 root     root            3 Oct  9  2004 dev -> vm4
> - --------------------------------
> 
> The problem symlink is 'dev'. 
> 'de0' is another symlink I just created to compare: this one can be removed
> whithout any problems.
> While the vserver was stopped, I checked with 'lsof' that no processes
> would have a file opened using that link. Which is obviously not that case.

what does a forced e2fsck report?
do you have any unusual/related messages in the syslog/klog/dmesg?

> For the moment, it is just slightly annoying, because I can work around.
> But I have some other files around which also show the same behaviour. It's
> like a virus: it's spreading :-).

very strange ...

HTH,
Herbert

> I'm stuck here.
> 
> Are there other tools I can use to track this problem ?
> 
> TIA
> 
> 
> Fran�ois Duchatelet,
> Ariane Services
> Rue du Verregat, 12
> B-1020 Brussels
> TEL:+32(2)479.37.59 - FAX:+32(2)478.14.20
> Mobile:+32(486)13.07.85 - +31 (6) 47044881 
> GPS: 4�19'59" E 50�54'03" N
> 
> -----BEGIN PGP SIGNATURE-----
> Version: PGP 8.0.3
> 
> iQA/AwUBQmjXouXix9dFBcbpEQIpigCfTGSuYQTEdzQPyHvv+AKxumr8hxIAoK0M
> 7Boq/CNXJp+kMnNsxvVGKKbK
> =szZG
> -----END PGP SIGNATURE-----
> 
> 
> _______________________________________________
> 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

Reply via email to