Bug 1326498 - DHT: Provide mechanism to nuke a entire directory from a client (offloading the work to the bricks)
Summary: DHT: Provide mechanism to nuke a entire directory from a client (offloading t...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Gluster Storage
Classification: Red Hat Storage
Component: distribute
Version: rhgs-3.1
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: ---
: RHGS 3.1.3
Assignee: Shyamsundar
QA Contact: krishnaram Karthick
URL:
Whiteboard:
Depends On:
Blocks: 1311817
TreeView+ depends on / blocked
 
Reported: 2016-04-12 19:58 UTC by Shyamsundar
Modified: 2019-11-14 07:46 UTC (History)
10 users (show)

Fixed In Version: glusterfs-3.7.9-3
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-06-23 05:17:11 UTC
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2016:1240 0 normal SHIPPED_LIVE Red Hat Gluster Storage 3.1 Update 3 2016-06-23 08:51:28 UTC

Description Shyamsundar 2016-04-12 19:58:34 UTC
Description of problem:
An rm -rf of a directory causes the client (say FUSE) to crawl through the entire directory structure and unlink files and remove directories underneath the directory that is being entirely removed. This is slow, and also has too many round trips.

As an admin shortcut for this removal process, it would be better to provide a mechanism whereby, a directory can be marked for deletion and removed from the name space, but acted upon by each individual brick. This can leverage the AFR janitor mechanism for the same purpose.

Comment 17 krishnaram Karthick 2016-05-16 06:16:06 UTC
verified the fix in build - glusterfs-server-3.7.9-4.el7rhgs.x86_64. The fix works as expected

Steps followed to verify:

1) created a distributed volume and created 1000 dirs and 1000 files under a directory say 'dir1'
2) From the gluster server, issued the following command
'setfattr -n glusterfs.dht.nuke -v "test" /mnt/dir-1'
3) After step 2 was completed, dir1 was not accessible immediately from the mountpoint
4) Validated if the entry was moved to '/bricks/brick*/dilbert/.glusterfs/landfill' and deleted eventually.

Moving the bug to verified.

Comment 19 errata-xmlrpc 2016-06-23 05:17:11 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2016:1240


Note You need to log in before you can comment on or make changes to this bug.