Score:0

How can I quickly search for multiple files in a large mounted NAS file system connected to a Linux server?

in flag

I have a NAS filesystem mounted on a Linux server. I need to search that file system for a series of files. The NAS is very large and contains a large number of files so individual find commands take forever.

We need to search for a few thousand files on the NAS. This can be scripted but the time each find command takes would make this process take weeks to complete.

Is there a faster way to accomplish this task? I'm thinking some way to create an index/snapshot of the NAS contents and then interact/search that index offline.

Additional details:

  • I don't have physical access to the NAS.
  • I don't care about changes to the NAS after I start this process.
  • My needs for search only involve file names, I don't care about each file's contents but it would be helpful to be able to see file sizes after I find a file that matches.
djdomi avatar
za flag
locate could be your friend. remember that it needs to be runned regularly after removing or modify filenames
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.