Skip to contentSkip to conversation

Unknown error 525 from getdents from a connection to an AIX nfs server

DISCUSSION Christoph Bartoschek 2 participants 6 messages Jun 4, 2005 – Jun 22, 2005

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

Hi,

I have the problem that rm does not work reliable over the nfs connection to our AIX nfs server. If one deletes a whole directoy recursively one gets an "Unknown error 525". All files but the directory itself are deleted.

The error can be reproduced as follows:

bartosch@feiler:/fs/data/bartosch/temp> mkdir testdir bartosch@feiler:/fs/data/bartosch/temp> touch testdir/a bartosch@feiler:/fs/data/bartosch/temp> rm -rf testdir
rm: reading directory `testdir': Unknown error 525 bartosch@feiler:/fs/data/bartosch/temp> rm -rf testdir bartosch@feiler:/fs/data/bartosch/temp>

strace says that the error message comes from getdents.

This is the output of strace on rm showing the important parts:

..
lstat(".", {st_mode=S_IFDIR|S_ISGID|0755, st_size=288, ...}) = 0 open(".", O_RDONLY|O_NONBLOCK|O_DIRECTORY) = 4 fstat(4, {st_mode=S_IFDIR|S_ISGID|0755, st_size=288, ...}) = 0

fcntl(4, F_SETFD, FD_CLOEXEC)           = 0
getdents64(4, /* 3 entries */, 512)     = 72
unlink("a")                             = 0
getdents64(4, 0x50e1c8, 512)            = -1 ETOOSMALL (Unknown error 525)
close(4)                                = 0

open("/usr/share/locale/en_US/LC_MESSAGES/coreutils.mo", O_RDONLY) = -1 ENOENT (No such file or directory) open("/usr/share/locale/en/LC_MESSAGES/coreutils.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
write(2, "rm: ", 4rm: ) = 4
write(2, "reading directory testdir\'", 27reading directory testdir') = 27
...
write(2, ": Unknown error 525", 19: Unknown error 525) = 19
...

You can see that getdents returns ETOOSMALL which is the error.

The client machine feiler is has an AMD opteron 64bit CPU runnning Linux kernel:

Linux feiler 2.4.21-286-smp #1 SMP Sun Apr 3 05:18:39 UTC 2005 x86_64 x86_64 x86_64 GNU/Linux

We get the same error from a machine with a newer kernel:

Linux maximator 2.6.4-52-smp #1 SMP Wed Apr 7 01:58:54 UTC 2004 x86_64 x86_64 x86_64 GNU/Linux

Or one with a very new one:

Linux castell.vlsi.uni-bonn.de 2.6.11-APIC-ID #1 SMP Tue May 24 11:31:43 CEST 2005 x86_64 x86_64 x86_64 GNU/Linux

Even on 32bit machines this error occurs

Linux inzadi-en0 2.4.21-231-smp #1 SMP Mon Jun 28 15:04:14 UTC 2004 i686 unknown

The Server is an AIX 4.3.3 machine: AIX cook 3 4 0045B0AA4C00

How can I get rid of this problem? If you need more information I will provide it for you.

Greets,
Christoph Bartoschek

-------------------------------------------------------
This SF.Net email is sponsored by: NEC IT Guy Games. How far can you shotput a projector? How fast can you ride your desk chair down the office luge track? If you want to score the big prize, get to know the little guy. Play to win an NEC 61" plasma display: http://www.necitguy.com/?r=20
_______________________________________________
NFS maillist - [email protected]
https://lists.sourceforge.net/lists/listinfo/nfs

#1 lore raw

lau den 04.06.2005 Klokka 13:41 (+0200) skreiv Christoph Bartoschek:

Quoted 8 lines

Hi,

I have the problem that rm does not work reliable over the nfs connection to our AIX nfs server. If one deletes a whole directoy recursively one gets an "Unknown error 525". All files but the directory itself are deleted.

The error can be reproduced as follows:

Quoted 8 lines

bartosch@feiler:/fs/data/bartosch/temp> mkdir testdir bartosch@feiler:/fs/data/bartosch/temp> touch testdir/a bartosch@feiler:/fs/data/bartosch/temp> rm -rf testdir
rm: reading directory `testdir': Unknown error 525 bartosch@feiler:/fs/data/bartosch/temp> rm -rf testdir bartosch@feiler:/fs/data/bartosch/temp>

strace says that the error message comes from getdents.

Sounds like a server bug. 525 is the translations of NFSERR_TOOSMALL, which means "buffer is too small".
i.e. the server is claiming that it suddenly is incapable of fitting the result of the readdir operation into the same buffer that apparently had no problems fitting the 3 entry case.

Cheers,
Trond

-------------------------------------------------------
This SF.Net email is sponsored by: NEC IT Guy Games. How far can you shotput a projector? How fast can you ride your desk chair down the office luge track? If you want to score the big prize, get to know the little guy. Play to win an NEC 61" plasma display: http://www.necitguy.com/?r=20
_______________________________________________
NFS maillist - [email protected]
https://lists.sourceforge.net/lists/listinfo/nfs

#2 lore raw
In reply to Christoph Bartoschek

Hi,

we have updated our NFS Server to AIX 5.2. Now the problems occur only on the clients with 64bit processors. Clients on 32bit machines run fine. (However, maybe I made some mistakes when I checked the 32bit machines for the last post).

Are there any issues known for the 64bit Version of the NFS Client?

Christoph Bartoschek

-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
NFS maillist - [email protected]
https://lists.sourceforge.net/lists/listinfo/nfs

#3 lore raw

ty den 21.06.2005 Klokka 14:33 (+0200) skreiv Christoph Bartoschek:

Quoted 6 lines

Hi,

we have updated our NFS Server to AIX 5.2. Now the problems occur only on the clients with 64bit processors. Clients on 32bit machines run fine. (However, maybe I made some mistakes when I checked the 32bit machines for the last post).

Remind me please. Is this error appearing on the wire? i.e. do you see a readdir request coming across and an error being returned when you use tcpdump?

Cheers,
Trond

-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
NFS maillist - [email protected]
https://lists.sourceforge.net/lists/listinfo/nfs

#4 lore raw

Am Dienstag 21 Juni 2005 22:04 schrieb Trond Myklebust:

Quoted 11 lines

ty den 21.06.2005 Klokka 14:33 (+0200) skreiv Christoph Bartoschek:

Quoted 6 lines

Hi,

we have updated our NFS Server to AIX 5.2. Now the problems occur only on the clients with 64bit processors. Clients on 32bit machines run fine. (However, maybe I made some mistakes when I checked the 32bit machines for the last post).

Remind me please. Is this error appearing on the wire? i.e. do you see a readdir request coming across and an error being returned when you use tcpdump?

Hi,

I do not know how to read NFS traffic. Therefore I made an ethereal dump during the rm -rf a in the following sequence:

mkdir a
touch a/b
rm -rf a

I hope you find some useful information. If you need other information, give me short instruction on how to obtain it.

Christoph Bartoschek

Ôò¡ÿÿê+¹B\¦¦)¨‰é%tE˜gõ@@1›À¨�ÅÀ¨�¹ä©÷è¾ó³"€Ah¡Z

	D�P÷©9€`ÆÅ2,†£$Cè—tarema\ddÈê+¹B1¾¾%t)¨‰éE°?@@‘9À¨�¹À¨�žó³"䩸L€ž`�Ý
÷¬¨	D�P€xÆÅ2,AíB¹B�š$B�š$ê+¹B=BB)¨‰é%tE4g÷@@1ýÀ¨�ÅÀ¨�¹䩸L¾ó³ž€Ahó®
	D�Q÷¬¨ê+¹Bb®®)¨‰é%tE gù@@1�À¨�ÅÀ¨�¹䩸L¾ó³ž€Ah¡b
	D�Q÷¬¨€hÇÅ2,†£$Cè—tarema\ddÈ?úÒ¯iê+¹B¾¾%t)¨‰éE°@@@‘8À¨�¹À¨�žó³žä©ø¸€ž`ºò
÷¬¨	D�Q€xÇÅ2,Aíú?B¹B¹
pB¹
pê+¹B/ªª)¨‰é%tEœgû@@1‘À¨�ÅÀ¨�¹䩸¸¾ó´€Ah¡^
	D�Q÷¬¨€dÈÅ2,†£$Cè—tarema\ddÈä	ÝÅ£ê+¹B³¶¶%t)¨‰éE¨D@@‘<À¨�¹À¨�žó´ä©ù €ž`ŠÝ
÷¬¨	D�Q€pÈÅ2,Aí	äB¹
©B¸2AB¹
©ê+¹B⪪)¨‰é%tEœgý@@1�À¨�ÅÀ¨�¹ä©ù ¾ó´Ž€Ah¡^
	D�Q÷¬¨€dÉÅ2,†£$Cè—tarema\ddÈä	ÝÅ£ê+¹Bk¶¶%t)¨‰éE¨A@@‘?À¨�¹À¨�žó´Žä©ùˆ€ž`‰
÷¬¨	D�Q€pÉÅ2,Aí	äB¹
©B¸2AB¹
©ê+¹B‘ªª)¨‰é%tEœgÿ@@1�À¨�ÅÀ¨�¹ä©ùˆ¾óµ€Ah¡^
	D�Q÷¬¨€dÊÅ2,†£$Cè—tarema\ddÈä	ÝÅ£ê+¹B¶¶%t)¨‰éE¨E@@‘;À¨�¹À¨�žóµä©ùð€ž`‡%
÷¬¨	D�Q€pÊÅ2,Aí	äB¹
©B¸2AB¹
©ê+¹B9ªª)¨‰é%tEœh@@1‹À¨�ÅÀ¨�¹ä©ùð¾óµv€Ah¡^
	D�Q÷¬¨€dËÅ2,†£$Cè—tarema\ddÈä	ÝÅ£ê+¹B¿¶¶%t)¨‰éE¨B@@‘>À¨�¹À¨�žóµvä©úX€ž`…I
÷¬¨	D�Q€pËÅ2,Aí	äB¹
©B¸2AB¹
©ê+¹B窪)¨‰é%tEœh@@1‰À¨�ÅÀ¨�¹ä©úX¾óµê€Ah¡^
	D�Q÷¬¨€dÌÅ2,†£$Cè—tarema\ddÈö»Äé£ê+¹Bf¶¶%t)¨‰éE¨F@@‘:À¨�¹À¨�žóµêä©úÀ€ž`a
÷¬¨	D�Q€pÌÅ2,Aí»öB¹EB·ÓÀB·ÕÓê+¹By®®)¨‰é%tE h@@1ƒÀ¨�ÅÀ¨�¹ä©úÀ¾ó¶^€Ah¡b
	D�R÷¬¨€hÍÅ2,†£$Cè—tarema\ddÈö»Äé£ê+¹B¾¾%t)¨‰éE°C@@‘5À¨�¹À¨�žó¶^ä©û,€ž`_
÷¬©	D�R€xÍÅ2,Aí»öB¹EB·ÓÀB·ÕÓê+¹B®®)¨‰é%tE h@@1�À¨�ÅÀ¨�¹ä©û,¾ó¶Ú€Ah¡b
	D�R÷¬©€hÎÅ2,†£$Cè—tarema\ddÈ×+Êš£ê+¹B�¾¾%t)¨‰éE°G@@‘1À¨�¹À¨�žó¶Úä©û˜€ž`‰î
÷¬©	D�R€xÎÅ2,Aí  +×B¸‘»B²ž³B·ÕÔê+¹BÀªª)¨‰é%tEœh	@@1ƒÀ¨�ÅÀ¨�¹ä©û˜¾ó·V€Ah¡^
	D�R÷¬©€dÏÅ2,†£$Cè—tarema\ddÈö»Äé£ê+¹BG¶¶%t)¨‰éE¨H@@‘8À¨�¹À¨�žó·Vä©ü€ž`[c
÷¬©	D�R€pÏÅ2,Aí»öB¹EB·ÓÀB·ÕÓê+¹Bjªª)¨‰é%tEœh@@1�À¨�ÅÀ¨�¹ä©ü¾ó·Ê€Ah¡^
	D�R÷¬©€dÐÅ2,†£$Cè—tarema\ddÈö»Äé£ê+¹Bé¶¶%t)¨‰éE¨L@@‘4À¨�¹À¨�žó·Êä©üh€ž`Y‡
÷¬©	D�R€pÐÅ2,Aí»öB¹EB·ÓÀB·ÕÓê+¹Bªª)¨‰é%tEœh
@@1À¨�ÅÀ¨�¹ä©üh¾ó¸>€Ah¡^
	D�R÷¬©€dÑÅ2,†£$Cè—tarema\ddÈö»Äé£ê+¹B‘¶¶%t)¨‰éE¨I@@‘7À¨�¹À¨�žó¸>ä©üЀž`W«

÷¬© D�R€pÑÅ2,Aí»öB¹EB·ÓÀB·ÕÓê+¹B>ªª k¾yv%tEœ6{@@cÀ¨�ÅÀ¨�³çqÕ™_àùdPDH¡X€pžDâÛ†£$Cè—tarema\ddÈ 4
‚
 ê+¹B%t k¾yvEœÝö<ÿ›À¨�³À¨�Å_àùdçqÖ PÿÿŠ4€pžDâÛEè\È€B¹ ¹ãPB©·É-—ĨB©·É-—Ĩê+¹Bú66 k¾yv%tE(6}@@c‰À¨�ÅÀ¨�³çqÖ _àùØPDH¨oê+¹B
ªª k¾yv%tEœ6@@cÀ¨�ÅÀ¨�³çqÖ _àùØPDH¡X€pŸDâÛ†£$Cè—tarema\ddÈ 4
¶‚s
 ê+¹B§ªª%t k¾yvEœÝ÷<ÿšÀ¨�³À¨�Å_àùØçqÖ�PÿÿÒ€pŸDâÛEí\È@ sB¹*²B¹*¶ bÖB¹*¶ bÖê+¹BÒªª k¾yv%tEœ6�@@cÀ¨�ÅÀ¨�³çqÖ�_àúLPDH¡X€p DâÛ†£$Cè—tarema\ddÈ 4

‚V
 ê+¹BWªª%t k¾yvEœÝø<ÿ™À¨�³À¨�Å_àúLçqÖõPÿÿî�€p DâÛEí\È  VB¹+xB¹+Æ
~n�B¹+Æ
~n�ê+¹B� k¾yv%tE´6ƒ@@b÷À¨�ÅÀ¨�³çqÖõ_àúÀPDH¡p€ˆ¡DâÛ†£$Cè—tarema\ddÈ 4

‚V
 ê+¹Bâ"’’%t k¾yvE„Ýÿ<ýªÀ¨�³À¨�Å_àúÀçq×�Pÿÿö€X¡DâÛEí\È  VB¹+ëB¹+Æ
~n�B¹+Æ
~n� V.ÀEí\È  VB¹+ëB¹+Æ ~n�B¹+Æ
~n� 4

‚V
  s..àEí\È@ sB¹*²B¹*¶ bÖB¹*¶ bÖ 4 ¶‚s
  Uàb�¤\È UàB¹+Æ
� ÀB¹+Æ
� ÀB¹+Æ
ަè 4

‚Uà
 ê+¹B #ªª k¾yv%tEœ6…@@c À¨�ÅÀ¨�³çq×�_àýPDH¡X€p¢DâÛ†£$Cè—tarema\ddÈ 4

‚Uà
 ê+¹B§#ªª%t k¾yvEœÞ<ÿ‘À¨�³À¨�Å_àýçq×õPÿÿÄ!€p¢DâÛ�¤\È UàB¹+Æ
� ÀB¹+Æ
� ÀB¹+Æ
ަèê+¹BÀ#²² k¾yv%tE¤6‡@@cÀ¨�ÅÀ¨�³çq×õ_àý�PDH¡`€x£DâÛ†£ $Cè—tarema\ddÈ 4

‚V
 bê+¹B&ÊÊ%t k¾yvE¼Þ<ÿnÀ¨�³À¨�Å_àý�çqØqPÿÿSb€�£DâÛ B¹+Æ
~n�B¹+Æ
~n�Eí\È  VB¹+ëB¹+ë!@8èB¹+ë!@8èê+¹B &ªª k¾yv%tEœ6‰@@c À¨�ÅÀ¨�³çqØq_àþ$PDH¡X€p¤DâÛ†£$Cè—tarema\ddÈ 4

‚V
 ê+¹BÍ&ªª%t k¾yvEœÞ<ÿ�À¨�³À¨�Å_àþ$çqØåPÿÿ!Ø€p¤DâÛEí\È  VB¹+ëB¹+ë!@8èB¹+ë!@8èê+¹Bä& k¾yv%tE´6‹@@bïÀ¨�ÅÀ¨�³çqØå_àþ˜PDH¡p€ˆ¥DâÛ†£$Cè—tarema\ddÈ 4

‚V
 ê+¹BJ(öö%t k¾yvEèÞ<þ>À¨�³À¨�Å_àþ˜çqÙqPÿÿq\€¼¥DâÛEí\È  VB¹+ëB¹+ë!@8èB¹+ë!@8è V.ÀEí\È  VB¹+ëB¹+ë!@8èB¹+ë!@8è 4

‚V
  s..àEí\È@ sB¹*²B¹*¶ bÖB¹*¶ bÖ 4 ¶‚s
 ê+¹Ba( k¾yv%tE´6�@@bíÀ¨�ÅÀ¨�³çqÙq_áXPDH¡p€ˆ¦DâÛ†£$Cè—tarema\ddÈ 4

‚V
 ê+¹B)®®%t k¾yvE Þ<ÿ…À¨�³À¨�Å_áXçqÙýPÿÿõm€t¦DâÛ'Eí\È  VB¹+ëB¹+ë!@8èB¹+ë!@8èê+¹Bò´BB)¨‰é%tE4h@@1åÀ¨�ÅÀ¨�¹ä©üо󸲀Ahéì

	D�z÷¬©ê+¹B‘Ä66	k¾yv%tE(6�@@cwÀ¨�ÅÀ¨�³çqÙý_áÐPDH�‡ì+¹BF
¢¢)¨‰é%tE”h@@1ƒÀ¨�ÅÀ¨�¹ä©üо󸲀Ah¡V
	D—ó÷¬©€\ÒÅ2,†£ Cè™taremaì+¹BÏF

¾¾%t)¨‰éE°
o@@� À¨�¹À¨�žó¸²ä©ý0€ž`}é
÷­… D—ó€xÒÅ2,AíB¹B�š$B�š$ì+¹BØF
BB)¨‰é%tE4h@@1áÀ¨�ÅÀ¨�¹ä©ý0¾ó¹.€Ahß»
D—ó÷­…

#5 lore raw

on den 22.06.2005 Klokka 11:24 (+0200) skreiv Christoph Bartoschek:

Quoted 9 lines

I do not know how to read NFS traffic. Therefore I made an ethereal dump during the rm -rf a in the following sequence:

mkdir a
touch a/b
rm -rf a

I hope you find some useful information. If you need other information, give me short instruction on how to obtain it.

That appears to be a server bug.

The client is performing a READDIRPLUS operation using a cookie that used to be valid but now refers to an entry that was deleted. Instead of returning the correct error of NFS3ERR_BADCOOKIE, the server is returning NFS3ERR_TOOSMALL.

Cheers,
Trond

-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
NFS maillist - [email protected]
https://lists.sourceforge.net/lists/listinfo/nfs