Re: [Nfs-ganesha-devel] Device or resource busy when runltp cleanup test-files

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 





On Wed, Apr 12, 2017 at 10:37 PM, Kinglong Mee <mijinlong@xxxxxxxxxxx> wrote:
Yes, this one is silly rename,

>>> rm: cannot remove ‘/mnt/nfs/ltp-JEYAuky2dz/.nfsaa46457a6a72f8ea000014f5’: Device or resource busy

But, the other one isn't client's silly rename,

>>>>     rm: cannot remove ‘/mnt/nfs/ltp-JEYAuky2dz/rmderQsjV’: Directory not empty

Also, the second one often appears when testing ganesha nfs by ltp.

I try to get an tcpdump, I found, when ls under the nfs client directory,

the glusterfs client doesn't send readdir to glusterfs server, so that,
the nfs client gets an empty directory information, but it's empty underlying.

ls at some other directory,
the glusterfs client send readdir to glusterfs server, nfs client gets right dirctory
information as the underlying.

So, I guess maybe there are some problems in MDCHANE or glusterfs client?

]# cat /var/lib/glusterd/vols/gvtest/trusted-gvtest.tcp-fuse.vol
volume gvtest-client-0
    type protocol/client
    option send-gids true
    option password d80765c8-95ae-46ed-912a-0c98fdd1e7cd
    option username 7bc6276f-245c-477a-99d0-7ead4fcb2968
    option transport.address-family inet
    option transport-type tcp
    option remote-subvolume /gluster-test/gvtest
    option remote-host 192.168.9.111
    option ping-timeout 42
end-volume

volume gvtest-client-1
    type protocol/client
    option send-gids true
    option password d80765c8-95ae-46ed-912a-0c98fdd1e7cd
    option username 7bc6276f-245c-477a-99d0-7ead4fcb2968
    option transport.address-family inet
    option transport-type tcp
    option remote-subvolume /gluster-test/gvtest
    option remote-host 192.168.9.111
    option ping-timeout 42
end-volume

volume gvtest-dht
    type cluster/distribute
    option lock-migration off
    subvolumes gvtest-client-0 gvtest-client-1
end-volume

volume gvtest
    type debug/io-stats
    option count-fop-hits off
    option latency-measurement off
    option log-level INFO
    subvolumes gvtest-dht
end-volume




Have you checked the gluster export directories after receiving ENOTEMPTY? If you observe any files there, can you please check if they are 0-byte files with access mode 600 and sticky bit set? 

When a file is being renamed, if the hash value of its new name happens to fall in a range that is different than that of the old name, gluster creates one such file. In the past we have seen instances of these files not being cleaned up properly in some cases and that causes a ENOTEMPTY when rmdir lands on the parent directory. Trying to see if we are hitting the same problem here.

Regards,
Vijay
_______________________________________________
Gluster-devel mailing list
Gluster-devel@xxxxxxxxxxx
http://lists.gluster.org/mailman/listinfo/gluster-devel

[Index of Archives]     [Gluster Users]     [Ceph Users]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux