<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
Hi Tina, <br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
I think its much faster to recreate the file system <br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
after that .. it is enough to     do <br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
<span style="font-family:monospace"><span style="color:#000000;background-color:#ffffff">mmauth grant  {RemoteClusterName | all} -f {Device</span><br>
</span><br>
</div>
<div id="signature_bookmark"></div>
<div id="appendonsend"></div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)" class="elementToProof">
in my case ..its always ... grant all -f all ðŸ˜‰ <br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)" class="elementToProof">
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)" class="elementToProof">
and every remote mount will  work  as before.. the remote cluster key information is in the cluster CCR  .. not in the filesystem..
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)" class="elementToProof">
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)" class="elementToProof">
Pay attention.. when you 'll create the file system, it will be created with the current code's version... in Case remote cluster is backlevel.. don't forget to specify --version  
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)" class="elementToProof">
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)" class="elementToProof">
have fun ðŸ˜‰</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)" class="elementToProof">
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)" class="elementToProof">
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)" class="elementToProof">
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)" class="elementToProof">
<br>
</div>
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="divRplyFwdMsg" dir="ltr"><font style="font-size:11pt" face="Calibri, sans-serif" color="#000000"><b>Von:</b> gpfsug-discuss <gpfsug-discuss-bounces@gpfsug.org> im Auftrag von Tina Friedrich <tina.friedrich@it.ox.ac.uk><br>
<b>Gesendet:</b> Donnerstag, 30. Juni 2022 13:31<br>
<b>An:</b> 'gpfsug main discussion list' <gpfsug-discuss@spectrumscale.org><br>
<b>Betreff:</b> [EXTERNAL] [gpfsug-discuss] quickest way to delete all files (and directories) in a file system</font>
<div> </div>
</div>
<div class="BodyFragment"><font size="2"><span style="font-size:11pt">
<div class="PlainText">Hello everyone,<br>
<br>
this should be a simple question, but we can't quite figure out how to <br>
best proceed.<br>
<br>
We have some file systems that we want to, basically, empty out. As in <br>
remove all files and directories currently on them. Both contain a <br>
pretty large number of files/directories (something like 50,000,000, <br>
with sometimes silly characters in the file names). 'rm -rf' clearly <br>
isn't the way to go forward.<br>
<br>
We've come up with either 'mmapplypolicy' (i.e. a policy to remove all <br>
files) or removing and re-creating the file systems as options (open to <br>
other suggestions!).<br>
<br>
We want the file systems still; ideally without having to redo the <br>
authentication and key swaps etc for the 'remote' clusters using them.<br>
<br>
This is a Lenovo DSS, but I don't think it makes much of a difference.<br>
<br>
So - what's the best way to proceed?<br>
<br>
If it is mmapplypolicy - does anyone have a (tested/known working) <br>
example of a policy to simply remove all files?<br>
<br>
Thanks,<br>
Tina<br>
<br>
-- <br>
Tina Friedrich, Advanced Research Computing Snr HPC Systems Administrator<br>
<br>
Research Computing and Support Services<br>
IT Services, University of Oxford<br>
<a href="http://www.arc.ox.ac.uk" data-auth="NotApplicable">http://www.arc.ox.ac.uk</a> 
<a href="http://www.it.ox.ac.uk" data-auth="NotApplicable">http://www.it.ox.ac.uk</a>
<br>
<br>
_______________________________________________<br>
gpfsug-discuss mailing list<br>
gpfsug-discuss at gpfsug.org<br>
<a href="http://gpfsug.org/mailman/listinfo/gpfsug-discuss_gpfsug.org" data-auth="NotApplicable">http://gpfsug.org/mailman/listinfo/gpfsug-discuss_gpfsug.org</a>
<br>
</div>
</span></font></div>
H<br>
</body>
</html>