About this list Date view Thread view Subject view Author view Attachment view

From: Herbert Poetzl (herbert_at_13thfloor.at)
Date: Fri 22 Apr 2005 - 23:54:13 BST


On Fri, Apr 22, 2005 at 07:44:25PM +0200, Francois Duchatelet wrote:
>
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Here we are:
>
> [root_at_ros1 vservers]# lsattr -d /mnt/raidbak1/vservers/rostst1/opt
> - ------------- /mnt/raidbak1/vservers/rostst1/opt
>
> But I don't have showattr. Which package is it part of ?

it's part of util-vserver ...

HTH,
Herbert

> François Duchatelet,
> Mobile:+32(486)13.07.85
> Mobile:+31 (6) 47044881
>
>
> - -----Original Message-----
> From: vserver-bounces_at_list.linux-vserver.org
> [mailto:vserver-bounces_at_list.linux-vserver.org] On Behalf Of Herbert Poetzl
> Sent: Friday, April 22, 2005 5:01 PM
> To: Francois Duchatelet
> Cc: vserver_at_list.linux-vserver.org
> Subject: Re: [Vserver] Strange error while trying to remove a symlink
>
>
> 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
> >
> > [root_at_ros1 opt]# rpm -qf `which lsattr`
> > e2fsprogs-1.35-7.1
> > [root_at_ros1 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:
> > - ------------------------
> > [root_at_ros1 opt]# pwd
> > /mnt/raidbak1/vservers/rostst1/opt
> > [root_at_ros1 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
> > [root_at_ros1 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*
>
> > [root_at_ros1 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)
> > ...
> > [root_at_ros1 opt]# rm -f de0
> > [root_at_ros1 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
> > Vserver_at_list.linux-vserver.org
> > http://list.linux-vserver.org/mailman/listinfo/vserver
> _______________________________________________
> Vserver mailing list
> Vserver_at_list.linux-vserver.org
> http://list.linux-vserver.org/mailman/listinfo/vserver
>
> -----BEGIN PGP SIGNATURE-----
> Version: PGP 8.0.3
>
> iQA/AwUBQmk3+eXix9dFBcbpEQLo2ACeN1cePuXwII0gFb/eVVmX80i48TIAoJua
> TdZB+c+86zR6H/ih7n8MqdTp
> =ST7k
> -----END PGP SIGNATURE-----
>
>
> _______________________________________________
> Vserver mailing list
> Vserver_at_list.linux-vserver.org
> http://list.linux-vserver.org/mailman/listinfo/vserver
_______________________________________________
Vserver mailing list
Vserver_at_list.linux-vserver.org
http://list.linux-vserver.org/mailman/listinfo/vserver


About this list Date view Thread view Subject view Author view Attachment view
[Next/Previous Months] [Main vserver Project Homepage] [Howto Subscribe/Unsubscribe] [Paul Sladen's vserver stuff]
Generated on Fri 22 Apr 2005 - 23:54:37 BST by hypermail 2.1.3