[gpfsug-discuss] quickest way to delete all files (and directories) in a file system

Antony Steel antony.steel at belisama.com.sg
Thu Jun 30 13:26:16 BST 2022


Hi,

Perhaps use filesets?  Quicker to remove and recreate?



Keep safe,


Antony Steel

CTO Belisama




amailto:ntony.steel at belisama.com.sg

Singapore: +65 9789 6663

Australia +61 4 1980 3049

http://www.belisama.com.sg




















---- On Thu, 30 Jun 2022 21:31:43 +1000 Tina Friedrich <tina.friedrich at it.ox.ac.uk> wrote ---



Hello everyone, 
 
this should be a simple question, but we can't quite figure out how to 
best proceed. 
 
We have some file systems that we want to, basically, empty out. As in 
remove all files and directories currently on them. Both contain a 
pretty large number of files/directories (something like 50,000,000, 
with sometimes silly characters in the file names). 'rm -rf' clearly 
isn't the way to go forward. 
 
We've come up with either 'mmapplypolicy' (i.e. a policy to remove all 
files) or removing and re-creating the file systems as options (open to 
other suggestions!). 
 
We want the file systems still; ideally without having to redo the 
authentication and key swaps etc for the 'remote' clusters using them. 
 
This is a Lenovo DSS, but I don't think it makes much of a difference. 
 
So - what's the best way to proceed? 
 
If it is mmapplypolicy - does anyone have a (tested/known working) 
example of a policy to simply remove all files? 
 
Thanks, 
Tina 
 
-- 
Tina Friedrich, Advanced Research Computing Snr HPC Systems Administrator 
 
Research Computing and Support Services 
IT Services, University of Oxford 
http://www.arc.ox.ac.uk http://www.it.ox.ac.uk 
 
_______________________________________________ 
gpfsug-discuss mailing list 
gpfsug-discuss at gpfsug.org 
http://gpfsug.org/mailman/listinfo/gpfsug-discuss_gpfsug.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://gpfsug.org/pipermail/gpfsug-discuss_gpfsug.org/attachments/20220630/16149dc7/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 1655907620786000_629392709.png
Type: image/png
Size: 12431 bytes
Desc: not available
URL: <http://gpfsug.org/pipermail/gpfsug-discuss_gpfsug.org/attachments/20220630/16149dc7/attachment-0001.png>


More information about the gpfsug-discuss mailing list