From: Piotr R. K. <pio...@mo...> - 2016-01-15 07:13:29
|
Hi Wolfgang, > On 15 Jan 2016, at 2:44 AM, Wolfgang <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. > 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/> |