<div dir="ltr"><div>Hi,<br><br>I failed to create directories (using python os.makedirs) occationally, the following is an example.<br><br>When 00:01:56, my application try to create the directories /mnt/upload/sh_ugc/production/video/2014/01/22/a38/466/351/ ,but finally, my application failed write the file to the directories. I use ls to find that the directories doesn&#39;t exist, that means the application failed to create the directories.<br>

<br></div><div>From the glusterfs client&#39;s log, I found those pasted below, I could not understand why? any could help to figure out the root cause? thanks<br><br></div><i><b>======= Application&#39;s log ===========</b></i><br>

<div>2014-01-22 00:01:56 - FileUtil.createDir.83 - INFO : create an download 
dir named /mnt/upload/sh_ugc/production/video/2014/01/22/a38/466/351/<br>。。。<br>2014-01-22 00:02:04 - CmdUtil.executeCmd.34 - ERROR : The command:&quot;dd 
if=/data/tmp/480/7073760/f73624801c0887a9db20ce600cce312c.mkv 
<b>of=/mnt/upload/sh_ugc/production/video/2014/01/22/a38/466/351/</b>5ebc87b8-82b5-11e3-8262-b8ca3a608648
 bs=1M&quot; execute faily. Error info is &quot;dd: opening 
`/mnt/upload/sh_ugc/production/video/2014/01/22/a38/466/351/5ebc87b8-82b5-11e3-8262-b8ca3a608648&#39;:<b>
 No such file or directory</b><br>&quot;. Return status code: &quot;1&quot;<br><br><i><b>======= Glusterfs client &#39;s log ===========</b></i><br><br>[2014-01-22 00:01:58.331699] W [client3_1-fops.c:327:client3_1_mkdir_cbk] 0-sh-ugc1-mams-client-23: remote operation failed: File exists. Path: /production/video/2014/01/22/a38 (00000000-0000-0000-0000-000000000000)<br>

[2014-01-22 00:01:58.331897] W [client3_1-fops.c:327:client3_1_mkdir_cbk] 0-sh-ugc1-mams-client-22: remote operation failed: File exists. Path: /production/video/2014/01/22/a38 (00000000-0000-0000-0000-000000000000)<br>[2014-01-22 00:01:58.678114] W [fuse-bridge.c:255:fuse_entry_cbk] 0-glusterfs-fuse: 89189949: MKDIR() /production/video/2014/01/22/a38 returning inode 0<br>

[2014-01-22 00:01:58.701931] W [inode.c:914:inode_lookup] (--&gt;/usr/lib64/glusterfs/3.3.0.5rhs_iqiyi_7/xlator/debug/io-stats.so(io_stats_mkdir_cbk+0x1b0) [0x7f26c539e4f0] (--&gt;/usr/lib64/glusterfs/3.3.0.5rhs_iqiyi_7/xlator/mount/fuse.so(+0xf39c) [0x7f26c974739c] (--&gt;/usr/lib64/glusterfs/3.3.0.5rhs_iqiyi_7/xlator/mount/fuse.so(+0xf25b) [0x7f26c974725b]))) 0-fuse: inode not found<br>

<br></div></div>