Xsan supports two different levels of Spotlight searches:
- ReadWrite - Searches use a full index of file system attributes and metadata from file contents. The index is kept updated as file system content changes. This is the default search level when Spotlight is enabled on Xsan volumes in Xsan 2.2 and later.
- FsSearch - Searches against file system attributes are enabled, but no indexed searching of content is performed. This option requires metadata controllers using Mac OS X v10.6 or later and Xsan 2.2 or later.
OS X Yosemite
Use FsSearch on OS X Yosemite to change how Spotlight searches work with your Xsan. Replace VolumeName in all commands shown here with the name of your Xsan volume.
1. Set the spotlightSearchLevel key's value to "FsSearch" in the volume configuration on your primary MDC.
sudo /usr/libexec/PlistBuddy -c 'set :config:globals:spotlightSearchLevel FsSearch' /Library/Preferences/Xsan/VolumeName.cfgp
2. Update the Xsan configuration stored in LDAP:
sudo xsanctl pushConfigUpdate
3. Restart the Xsan volume.
sudo cvadmin -e 'stop VolumeName'
sudo cvadmin -e 'start VolumeName'
OS X Mavericks and earlier
Use these steps to change how Spotlight searches work with your Xsan on OS X Mavericks and earlier. Replace VolumeName in all commands shown here with the name of your Xsan volume.
1. Locate the Xsan volume's configuration file on the metadata controllers: /Library/Preferences/Xsan/VolumeName.cfg
2. Using these guidelines, edit the volume configuration file's global section so that it contains these two lines:
3. Repeat the configuration file changes on all other metadata controllers that control the volume.
4. Restart the volume.
If you want to revert to the default indexed search level (ReadWrite), repeat the steps listed above but change the SpotlightSearchLevel entry to "ReadWrite". Depending on how much data is on the volume, enabling the index might require several hours while the index is built.