Strange errors from ls and find

From: Alexander Sarreiter (alexander@sarreiter.de)
Date: Mon Nov 10 2003 - 10:55:41 EST


Hi managers!

I found a very strange problem today. It appears on a
SUN (5.9 Generic_112233-08) with an attached 600GB LSI RAID.
The actual patch-cluster is installed.

If I run find or ls, I get the error message "No such file or
directory", but the directories do exist. If I run ls again, I get fewer
errors and if I run ls the third time all files show up fine.

# pwd
/raid/lsi/disk2/daten/b" CarlStahl - NICHT LCSCHEN
b"/DATEN%0/tabellen_texte/bild_properties
# ls
./047_025: No such file or directory
./047_172: No such file or directory
./077_079: No such file or directory
./101_028: No such file or directory
./101_031: No such file or directory
./114_040: No such file or directory
./131_001: No such file or directory
./131_002: No such file or directory
./131_117: No such file or directory
./131_119: No such file or directory
./209_090: No such file or directory
./209_091: No such file or directory

[much more No such file or directory]

.rsrc/ 053_005/ 075_006/ 110_019/ 130_019/ 158_087/ 186_167/
209_114/ 231_048/ 248_108/ 273_030/ 287_091/ 305_047/ 329_016/
348_136/
013_004/ 053_007/ 075_029/ 110_134/ 130_020/ 159_085/ 186_252/
209_116/ 232_075/ 248_110/ 273_032/ 287_093/ 306_089/ 329_235/
348_137/
013_005/ 053_017/ 075_031/ 110_182/ 130_024/ 160_001/ 186_257/
209_118/ 232_085/ 249_003/ 274_262/ 287_094/ 306_119/ 329_243/
348_145/
013_006/ 053_018/ 075_055/ 110_183/ 130_025/ 160_007/ 186_262/
209_124/ 232_086/ 249_004/ 274_264/ 288_062/ 306_148/ 329_244/
348_146/
014_007/ 053_090/ 076_012/ 110_193/ 130_100/ 160_165/ 187_089/
210_155/ 232_139/ 249_035/ 274_276/ 288_063/ 307_018/ 329_245/
348_147/
014_008/ 053_091/ 076_013/ 111_027/ 131_003/ 160_166/ 187_091/
210_1

[...]

# ls
./047_025: No such file or directory
./131_002: No such file or directory
./131_117: No such file or directory
./131_119: No such file or directory
./209_090: No such file or directory
./209_091: No such file or directory
.rsrc/ 053_005/ 075_006/ 110_019/ 130_019/ 158_087/ 186_167/
209_114/ 231_048/ 248_108/ 273_030/ 287_091/ 305_047/ 329_016/
348_136/
013_004/ 053_007/ 075_029/ 110_134/ 130_020/ 159_085/ 186_252/
209_116/ 232_075/ 248_110/ 273_032/ 287_093/ 306_089/ 329_235/
348_137/
013_005/ 053_017/ 075_031/ 110_182/ 130_024/ 160_001/ 186_257/
209_118/ 232_085/ 249_003/ 274_262/ 287_094/ 306_119/ 329_243/
348_145/
013_006/ 053_018/ 075_055/ 110_183/ 130_025/ 160_007/ 186_262/
209_124/ 232_086/ 249_004/ 274_264/ 288_062/ 306_148/ 329_244/
348_146/
014_007/ 053_090/ 076_012/ 110_193/ 130_100/ 160_165/ 187_089/
210_155/ 232_139/ 249_035/ 274_276/ 288_063/ 307_018/ 329_245/
348_147/
014_008/ 053_091/ 076_013/ 111_027/ 131_003/ 160_166/ 187_091/
210_1

[...]

# ls
.rsrc/ 052_187/ 075_005/ 109_059/ 129_088/ 156_074/ 184_214/
208_285/ 230_083/ 247_169/ 273_022/ 287_020/ 305_046/ 329_016/
348_137/
013_004/ 052_189/ 075_006/ 109_060/ 129_149/ 156_075/ 185_020/
209_087/ 231_014/ 247_211/ 273_025/ 287_089/ 305_047/ 329_235/
348_145/
013_005/ 053_005/ 075_029/ 109_085/ 130_015/ 156_076/ 185_025/
209_088/ 231_015/ 248_071/ 273_026/ 287_091/ 306_089/ 329_243/
348_146/
013_006/ 053_007/ 075_031/ 110_019/ 130_019/ 157_045/ 185_039/
209_089/ 231_017/ 248_073/ 273_030/ 287_093/ 306_119/ 329_244/
348_147/
014_007/ 053_017/ 075_055/ 110_134/ 130_020/ 157_046/ 185_052/
209_090/ 231_047/ 248_108/ 273_032/ 287_094/ 306_148/ 329_245/
348_148/
014_008/ 053_018/ 076_012/ 110_182/ 130_024/ 158_001/ 186_167/
209_091/ 231_048/ 248_110/ 274_262/ 288_062/ 307_018/ 329_247/
348_149/
014_027/ 053_090/ 076_013/ 110_183/ 130_025/ 158_087/ 186_252/
209_114/ 232_

[...]

And now for something completely different:

# ls
./115_034: No such file or directory
[...]
# ls -d ./115_034
./115_034/

There is an other directory which contains files named
123_456, I have the same problem there.

#find .

[...]

cannot open
./zCarlStahl_Hilfsordner/tabellen_texte/bild_properties/.rsrc: No such
file or directory
cannot open
./zCarlStahl_Hilfsordner/tabellen_texte/bild_properties/252_010: No such
file or directory

[...]

#file ./zCarlStahl_Hilfsordner/tabellen_texte/bild_properties/.rsrc
./zCarlStahl_Hilfsordner/tabellen_texte/bild_properties/.rsrc:
directory

#file ./zCarlStahl_Hilfsordner/tabellen_texte/bild_properties/252_010
./zCarlStahl_Hilfsordner/tabellen_texte/bild_properties/252_010:
directory

If I start "find ." in /raid/lsi/disk2/daten I get the EONENT
errors only in /raid/lsi/disk2/daten/b" CarlStahl - NICHT LCSCHEN
b"/DATEN%0/tabellen_texte/bild_properties. The /usr/bin/sparcv9/ls and
/usr/ucb/ls commands seem to work fine in this directory.

Sample output from truss -ef -wall -rall /usr/bin/ls:

8451: lstat64("./061_008", 0xFFBFF8E0) Err#2 ENOENT
8451: write(2, " . / 0 6 1 _ 0 0 8", 9) = 9
8451: write(2, " : ", 2) = 2
8451: write(2, 0xFF325AA2, 25) = 25
8451: N o s u c h f i l e o r d i r e c t o r y
8451: write(2, "\n", 1) = 1

I also checked for a possible root-kit, but did not find something, so
far (e.g. no open to /dev/ptyr, ls -/).

# /usr/bin/sparcv9/ls -l /usr/bin/find /usr/bin/ls
-r-xr-xr-x 1 root bin 20180 Apr 7 2002 /usr/bin/find
-r-xr-xr-x 1 root bin 19084 Apr 7 2002 /usr/bin/ls

# which ls
/usr/bin/ls

Any ideas? Will summarize.

cu
alexs

--
Alexander Sarreiter <alexander@sarreiter.de>
AlexS.DE Network
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers


This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 23:27:26 EDT