PROBLEM: ReiserFS: cannot remove file as root with 2.6.0test9-mm3
A message that is not in the archive (sent off-list or not yet received): [email protected]
Quoted 9 lines · Andrew Morton
Begin forwarded message:
Date: Mon, 17 Nov 2003 21:11:17 +0000
From: Ingmar Sittl <[email protected]>
To: Andrew Morton <[email protected]>
Subject: Re: PROBLEM: ReiserFS: cannot remove file as root with 2.6.0test9-mm3
Hello,
Ingmar, to start we need the following info:
1. any kernel messages (dmesg or /var/log/messages) that appear when you try and fail to remove file as root.
2. output of
# lsattr /offending-file
Also, can you elaborate what does it mean that you cannot remove file in 2.6.0-test9-mm3, but can in 2.6.0-test9? You tried to remove it in -mm3, failed, rebooted into -test9 and it removes successfully there, or what?
Quoted 35 lines
oops, forgot the attachement
2.6.0test9
reiserfsck --check started at Mon Nov 17 20:50:52 2003
###########
Filesystem seems mounted read-only. Skipping journal replay. Checking internal tree..finished
Comparing bitmaps..finished
Checking Semantic tree:
finished
No corruptions found
There are on the filesystem:
Leaves 53652
Internal nodes 367
Directories 14221
Other files 216874
Data block pointers 1906983 (96 of them are zero) Safe links 0
###########
reiserfsck finished at Mon Nov 17 20:54:36 20032.6.0test9-mm3
reiserfsck --check started at Mon Nov 17 20:57:52 2003
###########
Filesystem seems mounted read-only. Skipping journal replay. Checking internal tree..finished
Comparing bitmaps..finished
Checking Semantic tree:
finished
No corruptions found
There are on the filesystem:
Leaves 53652
Quoted 9 lines
Internal nodes 367
Directories 14221
Other files 216874
Data block pointers 1906983 (96 of them are zero) Safe links 0
###########
reiserfsck finished at Mon Nov 17 20:59:15 2003
###########
By the way, upgrade your reiserfsprogs. Latest ones are at ftp://ftp.namesys.com/pub/reiserfsprogs/reiserfsprogs-3.6.11.tar.gz
[...]
Quoted 5 lines
prepare_retry: 186
/proc/fs/reiserfs/hda6/oidmap
used: [ 1 .. d52ff )
free: [ d52ff .. d5300 )
[...]
Quoted 5 lines
used: [ 100cb7 .. 100cd8 )
free: [ 100cd8 .. 100cdb )
used: [ 100cdb .. 100f70 )
free: [ 100f70 .. ffffffff )
total: 918 [918/972] used: 1046665 [exact]
What sort of work load are you exercising on this file system that fragments oid map so horribly?
Quoted 2 lines
/proc/fs/reiserfs/hda6/on-disk-super
[...]
Nikita.
Quoted 6 lines
Hello,
Ingmar, to start we need the following info:
1. any kernel messages (dmesg or
/var/log/messages) that appear when you try and fail to remove file as root.
Sorry, there are no kernel messages, rm just does not let me remove this file.
root:/usr/lib/pkgconfig# rm fontconfig.pc rm: cannot unlink `fontconfig.pc': Permission denied
Quoted 3 lines
2. output of
# lsattr /offending-file
root:/usr/lib/pkgconfig# lsattr fontconfig.pc s-Si-dAc------ fontconfig.pc
Quoted 4 lines
Also, can you elaborate what does it mean that you cannot remove file in 2.6.0-test9-mm3, but can in 2.6.0-test9? You tried to remove it in -mm3, failed, rebooted into -test9 and it removes successfully there, or what?
Almost exactly:
I tried to remove that file in 2.6.0-test9-mm3, failed, rebooted into 2.6.0-test9, the file was removed successfully, I reinstalled it, recompiled 2.6.0-test9-mm3 with CONFIG_REISERFS_CHECK,rebooted into 2.6.0-test9-mm3, rm failed again. I also tried this cycle with a 2.4.21 kernel, same result!
Quoted 43 lines
Quoted 34 lines
oops, forgot the attachement
2.6.0test9
reiserfsck --check started at Mon Nov 17 20:50:52 2003
###########
Filesystem seems mounted read-only. Skipping journal replay. Checking internal tree..finished
Comparing bitmaps..finished
Checking Semantic tree:
finished
No corruptions found
There are on the filesystem:
Leaves 53652
Internal nodes 367
Directories 14221
Other files 216874
Data block pointers 1906983 (96 of them are zero) Safe links 0
###########
reiserfsck finished at Mon Nov 17 20:54:36 20032.6.0test9-mm3
reiserfsck --check started at Mon Nov 17 20:57:52 2003
###########
Filesystem seems mounted read-only. Skipping journal replay. Checking internal tree..finished
Comparing bitmaps..finished
Checking Semantic tree:
finished
No corruptions found
There are on the filesystem:
Leaves 53652Quoted 8 lines
Internal nodes 367
Directories 14221
Other files 216874
Data block pointers 1906983 (96 of them are zero) Safe links 0
###########
reiserfsck finished at Mon Nov 17 20:59:15 2003
###########
Quoted 2 lines
By the way, upgrade your reiserfsprogs. Latest ones are at ftp://ftp.namesys.com/pub/reiserfsprogs/reiserfsprogs-3.6.11.tar.gz
Done. Still no problems found
Quoted 10 lines
[...]
Quoted 5 lines
prepare_retry: 186
/proc/fs/reiserfs/hda6/oidmap
used: [ 1 .. d52ff )
free: [ d52ff .. d5300 )[...]
Quoted 8 lines
Quoted 5 lines
used: [ 100cb7 .. 100cd8 )
free: [ 100cd8 .. 100cdb )
used: [ 100cdb .. 100f70 )
free: [ 100f70 .. ffffffff )
total: 918 [918/972] used: 1046665 [exact]What sort of work load are you exercising on this file system that fragments oid map so horribly?
This is the /usr partition on a LFS system, and I often try out current versions of software, installing into /usr/local.
Used to be the compile partition, too. Now that is done on another HD
Quoted 5 lines
Quoted 1 line
/proc/fs/reiserfs/hda6/on-disk-super[...]
Nikita.
Ingmar
Quoted 11 lines · Ingmar Sittl
Quoted 6 lines
Hello,
Ingmar, to start we need the following info:
1. any kernel messages (dmesg or
/var/log/messages) that appear when you try and fail to remove file as root.Sorry, there are no kernel messages, rm just does not let me remove this file.
root:/usr/lib/pkgconfig# rm fontconfig.pc rm: cannot unlink `fontconfig.pc': Permission denied
Quoted 6 lines
Quoted 3 lines
2. output of
# lsattr /offending-fileroot:/usr/lib/pkgconfig# lsattr fontconfig.pc s-Si-dAc------ fontconfig.pc
Seems you have immutable attribute set on this file. Can you try
root:/usr/lib/pkgconfig# chattr -i fontconfig.pc && rm fontconfig.pc
?
Confusing thing is that reiserfs requires special mount option "attr" to turn inode attributes support on. May be -mm3 has generic support for immutable attribute in VFS? Doesn't look so. With what options reiserfs is mounted?
Quoted 11 lines
Quoted 5 lines
Also, can you elaborate what does it mean that you cannot remove file in 2.6.0-test9-mm3, but can in 2.6.0-test9? You tried to remove it in -mm3, failed, rebooted into -test9 and it removes successfully there, or what?
Almost exactly:
I tried to remove that file in 2.6.0-test9-mm3, failed, rebooted into 2.6.0-test9, the file was removed successfully, I reinstalled it, recompiled 2.6.0-test9-mm3 with CONFIG_REISERFS_CHECK,rebooted into 2.6.0-test9-mm3, rm failed again. I also tried this cycle with a 2.4.21 kernel, same result!
Eh? You mean you can remove file when compiled without CONFIG_REISERFS_CHECK and fail when compiled with checks on?
Quoted 3 lines
Quoted 3 lines
Quoted 2 lines
/proc/fs/reiserfs/hda6/on-disk-super
[...]
Quoted 1 line
Quoted 1 line
Nikita.
Quoted 3 lines
Ingmar
Quoted 16 lines · Nikita Danilov
Quoted 15 lines · Ingmar Sittl
Quoted 6 lines
Hello,
Ingmar, to start we need the following info:
1. any kernel messages (dmesg or
/var/log/messages) that appear when you try and fail to remove file as root.Sorry, there are no kernel messages, rm just does not let me remove this file. root:/usr/lib/pkgconfig# rm fontconfig.pc
rm: cannot unlink `fontconfig.pc': Permission deniedQuoted 3 lines
2. output of
# lsattr /offending-file
Quoted 8 lines
Quoted 2 lines
root:/usr/lib/pkgconfig# lsattr fontconfig.pc s-Si-dAc------ fontconfig.pcSeems you have immutable attribute set on this file. Can you try
root:/usr/lib/pkgconfig# chattr -i fontconfig.pc && rm fontconfig.pc?
did not work.
lsattr now says:
s-S--dAc------ /usr/lib/pkgconfig/fontconfig.pc
but rm still complains.
Quoted 4 lines
Confusing thing is that reiserfs requires special mount option "attr" to turn inode attributes support on. May be -mm3 has generic support for immutable attribute in VFS? Doesn't look so. With what options reiserfs is mounted?
from /etc/fstab:/dev/hda6 /usr reiserfs defaults,noatime 1 2
it also looks like every file on that partition has those attributes set, but only this file cannot be removed (as far as I can tell after some quick tests)
Quoted 12 lines
Quoted 11 lines
Quoted 4 lines
Also, can you elaborate what does it mean that you cannot remove file in 2.6.0-test9-mm3, but can in 2.6.0-test9? You tried to remove it in -mm3, failed, rebooted into -test9 and it removes successfully there, or what?
Almost exactly:
I tried to remove that file in 2.6.0-test9-mm3, failed, rebooted into 2.6.0-test9, the file was removed successfully, I reinstalled it, recompiled 2.6.0-test9-mm3 with CONFIG_REISERFS_CHECK,rebooted into 2.6.0-test9-mm3, rm failed again. I also tried this cycle with a 2.4.21 kernel, same result!
Quoted 3 lines
Eh? You mean you can remove file when compiled without
CONFIG_REISERFS_CHECKand fail when compiled with checks on?
No, I wanted to say that I tried it with -mm3 first without and then with CONFIG_REISERFS_CHECK and it did not work both times.
Ingmar
Ingmar Sittl writes:
[...]
Quoted 7 lines
Quoted 4 lines
Eh? You mean you can remove file when compiled without
CONFIG_REISERFS_CHECKand fail when compiled with checks on?No, I wanted to say that I tried it with -mm3 first without and then with
CONFIG_REISERFS_CHECKand it did not work both times.
So what does `same result' result means for 2.4.21?
Also, are there any kernel messages, when kernel is compiled with CONFIG_REISERFS_CHECK?
Quoted 3 lines
Ingmar
Nikita.
Quoted 11 lines · Nikita Danilov
Ingmar Sittl writes:
[...]
Quoted 5 lines
Quoted 2 lines
Eh? You mean you can remove file when compiled without
CONFIG_REISERFS_CHECKand fail when compiled with checks on?No, I wanted to say that I tried it with -mm3 first without and then with
CONFIG_REISERFS_CHECKand it did not work both times.So what does `same result' result means for 2.4.21?
it means that I could remove and reinstall this particular file when running 2.4.21, but when I tried to remove it after rebooting into 2.6.0-test9-mm3, rm failed again.
Quoted 3 lines
Also, are there any kernel messages, when kernel is compiled with
CONFIG_REISERFS_CHECK?
No, only the error message from rm. Every information I already sent is from the kernel with CONFIG_REISERFS_CHECK, but there are no error messages visible when running dmesg or in any of the log files under /var/log.
If you have any idea what else I can check ? I´d really like to be helpful with this.
Ingmar
Quoted 3 lines · Ingmar Sittl
Quoted 2 lines · Nikita Danilov
Ingmar Sittl writes:
[...]
Quoted 8 lines
Quoted 1 line
No, only the error message from rm. Every information I already sent is from the kernel with
CONFIG_REISERFS_CHECK, but there are no error messages visible when running dmesg or in any of the log files under/var/log.If you have any idea what else I can check ? I´d really like to be helpful with this.
I am short on them. :) Can you provide me with shell access to this box so that I can poke around? I'll send you my public ssh key.
Quoted 3 lines
Ingmar
Nikita.