From: Wolfgang <moo...@wo...> - 2016-01-15 09:56:01
|
Hi Piotr Robert! Thank you for your answer! Please find my response below: On 2016-01-15 08:13, Piotr Robert Konopelko wrote: > Hi Wolfgang, > > >> On 15 Jan 2016, at 2:44 AM, Wolfgang <moo...@wo... >> <mailto:moo...@wo...>> wrote: >> >> Dear List! >> >> As I have recognized today according to Changelog on version 3.0.64-1 >> the mounted /mnt/meta/trash/ >> folder is now splitted up into 4096 like "000", "001", ..., "FFE", FFF >> >> # MooseFS 3.0.64-1 (2015-12-21) >> >> * (master+mount) split trash into 4096 separate sub-trashes >> >> I guess you had a reason to do this - but how am I supposed to >> undelete a complete folder including many files when this is spread >> up in thousand folders. >> > Yes, we had. The reason is problem with performing any operation on > trash when you have a big instance and a lot of files in trash (like > millions, tens of millions). > When you have such amount of files in trash, any operation on it fails > because of e.g. timeouts during connection with master. > Apart this, rm or even find is not able to operate on such a big > amount of files. Yes I thought so that there are problems with lot of files in one directory - but whats the suggested way to undelete files/folders? (in big instances as well as in small instances) Probably it would be nice to have a cli-tool which can list deleted files in the folder-structure as it was - and then undelete it from client. ? Greetings Wolfgang >> Is there any mfs tool one can use for restoring? >> >> In the previous versions I had done a >> mv *testfolder* undel/ >> >> But now I should do a: >> find /mnt/meta/trash/ -iname testfolder -exec mv {} ./undel/ \; >> to restore each file but I think this would be error prune and ugly ;-) >> > Maybe we consider adding back whole trash as a directory, probably > hidden especially for small instances. > >> Thanks for any advise. >> >> Greetings >> Wolfgang >> > > Regards, > > -- > Piotr Robert Konopelko > *MooseFS Technical Support Engineer* | moosefs.com <https://moosefs.com> > |