<div dir="ltr"><pre style="white-space:pre-wrap;color:rgb(0,0,0)"><font face="monospace, monospace">Hi,

I have a volume created with 3 bricks.</font></pre><pre style="white-space:pre-wrap;color:rgb(0,0,0)"><pre style="white-space:pre-wrap"><font face="monospace, monospace">After delete file which was created by &quot;echo&quot;, the file has been move to unlink folder.</font></pre><pre style="white-space:pre-wrap"><font face="monospace, monospace">Excepted result, opened fd should be zero, and unlink folder contains no file.</font></pre><pre style="white-space:pre-wrap"><font face="monospace, monospace">But actually, opened fd is not zero,  unlink folder contains a file.</font></pre><pre style="white-space:pre-wrap"><font face="monospace, monospace"><br></font></pre><pre style="white-space:pre-wrap"><font face="monospace, monospace">Here are some examples:</font></pre></pre><font face="monospace, monospace"><font size="4"># gluster volume info ec2</font><br><br>Volume Name: ec2<br>Type: Disperse<br>Volume ID: 47988520-0e18-4413-9e55-3ec3f3352600<br>Status: Started<br>Number of Bricks: 1 x (2 + 1) = 3<br>Transport-type: tcp<br>Bricks:<br>Brick1: giting1:/export/ec2/fs<br>Brick2: giting2:/export/ec2/fs<br>Brick3: giting3:/export/ec2/fs<br>Options Reconfigured:<br>performance.readdir-ahead: on<br><br><br><font size="4"># gluster v status ec2</font><br><br>Status of volume: ec2<br>Gluster process                             TCP Port  RDMA Port  Online  Pid<br>------------------------------------------------------------------------------<br>Brick giting1:/export/ec2/fs                49154     0          Y       10856<br>Brick giting2:/export/ec2/fs                49154     0          Y       7967<br>Brick giting3:/export/ec2/fs                49153     0          Y       7216<br>NFS Server on localhost                     N/A       N/A        N       N/A<br>Self-heal Daemon on localhost               N/A       N/A        Y       10884<br>NFS Server on giting3                       2049      0          Y       7236<br>Self-heal Daemon on giting3                 N/A       N/A        Y       7244<br>NFS Server on giting2                       2049      0          Y       7987<br>Self-heal Daemon on giting2                 N/A       N/A        Y       7995<br><br>Task Status of Volume ec2<br>------------------------------------------------------------------------------<br>There are no active volume tasks<br><font size="4"><br># mount -t glusterfs giting1:ec2 /ec2<br># df -h</font><br>Filesystem               Size  Used Avail Use% Mounted on<br>/dev/mapper/centos-root   18G   12G  5.8G  67% /<br>devtmpfs                 1.9G     0  1.9G   0% /dev<br>tmpfs                    1.9G     0  1.9G   0% /dev/shm<br>tmpfs                    1.9G   41M  1.9G   3% /run<br>tmpfs                    1.9G     0  1.9G   0% /sys/fs/cgroup<br>/dev/sdb                  40G   33M   40G   1% /export/bk1<br>/dev/sda1                497M  168M  330M  34% /boot<br>tmpfs                    380M     0  380M   0% /run/user/0<br>giting1:dht               80G   66M   80G   1% /dht<br>giting1:/ec1              35G   24G   12G  67% /volume/ec1<br>giting1:ec2               35G   24G   12G  67% /ec2</font><div><font face="monospace, monospace"><br></font></div><div><font face="monospace, monospace"><font size="4"># gluster v top ec2 open</font><br></font></div><div><div><font face="monospace, monospace">Brick: giting1:/export/ec2/fs</font></div><div><font face="monospace, monospace">Current open fds: 0, Max open fds: 0, Max openfd time: N/A</font></div><div><font face="monospace, monospace">Brick: giting2:/export/ec2/fs</font></div><div><font face="monospace, monospace">Current open fds: 0, Max open fds: 0, Max openfd time: N/A</font></div><div><font face="monospace, monospace">Brick: giting3:/export/ec2/fs</font></div><div><font face="monospace, monospace">Current open fds: 0, Max open fds: 0, Max openfd time: N/A</font></div></div><div><font face="monospace, monospace" size="4"><br></font></div><div><font face="monospace, monospace" size="4"># for ((i=0;i&lt;10;i++)); do echo 123 &gt; /ec2/test.txt; done</font></div><div><font face="monospace, monospace" size="4"><br></font></div><div><div><font face="monospace, monospace" size="4"># gluster v top ec2 open</font></div><div><font face="monospace, monospace">Brick: giting1:/export/ec2/fs</font></div><div><font face="monospace, monospace">Current open fds: 9, Max open fds: 10, Max openfd time: 2016-06-08 10:09:23.665717</font></div><div><font face="monospace, monospace">Count           filename</font></div><div><font face="monospace, monospace">=======================</font></div><div><font face="monospace, monospace">10              /test.txt</font></div><div><font face="monospace, monospace">Brick: giting3:/export/ec2/fs</font></div><div><font face="monospace, monospace">Current open fds: 9, Max open fds: 10, Max openfd time: 2016-06-08 10:09:23.299795</font></div><div><font face="monospace, monospace">Count           filename</font></div><div><font face="monospace, monospace">=======================</font></div><div><font face="monospace, monospace">10              /test.txt</font></div><div><font face="monospace, monospace">Brick: giting2:/export/ec2/fs</font></div><div><font face="monospace, monospace">Current open fds: 9, Max open fds: 10, Max openfd time: 2016-06-08 10:09:23.236294</font></div><div><font face="monospace, monospace">Count           filename</font></div><div><font face="monospace, monospace">=======================</font></div><div><font face="monospace, monospace">10              /test.txt</font></div></div><div><br></div><div><font face="monospace, monospace"><br></font></div><div><font face="monospace, monospace"><font size="4"># ll /export/ec2/fs/.glusterfs/unlink/</font><br></font></div><div><font face="monospace, monospace">total 0<br></font></div><div><br></div><div><font face="monospace, monospace" size="4"># rm /ec2/test.txt<br></font></div><div><font face="monospace, monospace" size="4"><br></font></div><div><div><font face="monospace, monospace" size="4"># ls -l /export/ec2/fs/.glusterfs/unlink/</font></div><div><font face="monospace, monospace">total 8</font></div><div><font face="monospace, monospace">-rw-r--r-- 1 root root 512 Jun  8 18:09 a053b266-15c5-4ac7-ac44-841e177c7ebe</font></div></div><div><font face="monospace, monospace"><br></font></div><div><font face="monospace, monospace"><div><font size="4"># gluster v top ec2 open</font></div><div>Brick: giting1:/export/ec2/fs</div><div>Current open fds: 8, Max open fds: 10, Max openfd time: 2016-06-08 10:09:23.665717</div><div>Count           filename</div><div>=======================</div><div>10              /test.txt</div><div>Brick: giting2:/export/ec2/fs</div><div>Current open fds: 8, Max open fds: 10, Max openfd time: 2016-06-08 10:09:23.236294</div><div>Count           filename</div><div>=======================</div><div>10              /test.txt</div><div>Brick: giting3:/export/ec2/fs</div><div>Current open fds: 8, Max open fds: 10, Max openfd time: 2016-06-08 10:09:23.299795</div><div>Count           filename</div><div>=======================</div><div>10              /test.txt</div><div><br></div></font></div><div><font face="monospace, monospace"><br></font></div><div><font face="monospace, monospace">Reference:</font></div><font face="monospace, monospace">Commit: storage/posix: Implement .unlink directory<br><a href="https://github.com/gluster/glusterfs/commit/195548f55b09bf71db92929b7b734407b863093c">https://github.com/gluster/glusterfs/commit/195548f55b09bf71db92929b7b734407b863093c</a></font><div><br><div><pre style="white-space:pre-wrap;color:rgb(0,0,0)">Regards,</pre><pre style="white-space:pre-wrap;color:rgb(0,0,0)">Gi-ting Peng</pre><pre style="white-space:pre-wrap;color:rgb(0,0,0)"><br></pre></div></div></div>