Edward Ned Harvey wrote: >> From: [email protected] [mailto:[email protected]] On Behalf >> Of Phil Pennock >> >> On 2010-04-27 at 22:47 -0400, Edward Ned Harvey wrote: >> >>> Generate an index file for the whole filesystem. I guessed that >>> >> would take >> >>> ... I don't know ... an hour. >>> >> How large is the FS? How long does a forced fsck take on an FS of >> equivalent size? (I don't recall if ZFS uses fsck ever). >> >> Bear in mind that finding all the inodes and correlating them to >> filenames is what the first couple of stages of fsck do. >> > > There is no such thing as fsck, but there is scrub. Unfortunately, these > are not very closely related. > > Doing a "find" takes approx 4-5 hrs on the live filesystem. Slower on > snapshots. And slower still if you have to walk all the snapshots. > >
I've been thinking about this a different way lately.. do a find once per day and dump it into an index file (or use one of the existing full text search indexers to do this for you, for some value of use). Then use grap to search the index file or database that results. _______________________________________________ Tech mailing list [email protected] http://lopsa.org/cgi-bin/mailman/listinfo/tech This list provided by the League of Professional System Administrators http://lopsa.org/
