upload of object to swift is failing

Asked by Manoj

Upload of object to swift is failing with 503 error.

syslog shows below error:

 object-server ERROR __call__ error with REPLICATE /sdb4/211327 : #012Traceback (most recent call last):#012 File "/usr/lib/python2.7/dist-packages/swift/obj/server.py", line 938, in __call__#012 res = method(req)#012 File "/usr/lib/python2.7/dist-packages/swift/common/utils.py", line 1558, in wrapped#012 return func(*a, **kw)#012 File "/usr/lib/python2.7/dist-packages/swift/common/utils.py", line 520, in _timing_stats#012 resp = func(ctrl, *args, **kwargs)#012 File "/usr/lib/python2.7/dist-packages/swift/obj/server.py", line 916, in REPLICATE#012 mkdirs(path)#012 File "/usr/lib/python2.7/dist-packages/swift/common/utils.py", line 306, in mkdirs#012 os.makedirs(path)#012 File "/usr/lib/python2.7/os.py", line 157, in makedirs#012 mkdir(name, mode)#012OSError: [Errno 31] Too many links: '/srv/5/node/sdb4/objects/211327'

Question information

Language:
English Edit question
Status:
Answered
For:
OpenStack Object Storage (swift) Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Samuel Merritt (torgomatic) said :
#1

http://blog.nexcess.net/2012/04/27/mkdir-too-many-links-what-it-is-and-how-to-fix/

Basically, you've got too many subdirectories of /srv/5/node/sdb4/objects for the underlying filesystem to handle.

You didn't mention anything about your setup, but I'm going to guess you've got a part power of 17 or more, a very small number of disks in your system, and that the filesystem on your data disks is ext3/ext4, not XFS. Fix any one of those things, and the problem should go away.

Revision history for this message
Manoj (mmelath) said :
#2

Thank you for your quick response.
Installed swift on a system with XFS filesystem. Will update with the status once we reach this limit.

Regards,
Manoj

Can you help with this problem?

Provide an answer of your own, or ask Manoj for more information if necessary.

To post a message you must log in.