Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

Click here to return to the '10.4: Create Spotlight indexes for networked volumes' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
10.4: Create Spotlight indexes for networked volumes
Authored by: ldm on May 04, '05 01:15:48PM
The index is preserved. It is saved under a private tree (you can do lsof | grep Volumes To see which files are open after enabling the indexing and you will see the exact location of the DB. The spotlight index is not stored on the networked volume, it is stored on the local host.


[ Reply to This | # ]

Local Index Database
Authored by: lullabud on May 05, '05 12:38:36PM

Stored locally? That's would mean each system would need to index the host causing severe strain on the network. *sigh* I suppose I'll give it a whirl anyways and see if I can come up with anything...

[ Reply to This | # ]
publishing metadata to the network share
Authored by: lullabud on May 06, '05 03:05:03PM
From the man page:
-p Publishes the local copies of the metadata stores for the volumes indicated to their real drives.
I just tried sudo mdutil -p /Volumes/networkshare/ on a linux hosted smb share and it did indeed put the spotlight index in the root of the shared folder, returned an error about the indexing status, then started indexing the disk. I'm waiting for spotlight to finish indexing everything right now to see if it works.

My guess is that if spotlight finds an index on a networked drive it'll use it and update it accordingly whenever accessing data on that disk. If so, my job just got a LOT less stressful.

[ Reply to This | # ]
Index status flag not persistent
Authored by: lullabud on May 06, '05 03:24:13PM
Well, it appears to me as though you'd have to enable indexing each time you mount a network share. Connecting to an SMB share which has an index on it already then checking the indexing status with sudo mdutil -s /Volumes/sharename/ says that indexing is disabled. If I enable it, unmount the share and remount it the flag will be reset, and I need to turn indexing on again. Using the spotlight search gui doesn't search the network drive's index, but using mdfind -onlyin /Volumes/networkshare/ does. I'd sure like to see a howto on this.

[ Reply to This | # ]