Xsan

Disable Spotlight for Xsan Volumes

I’ve seen a number of Xsan environments spewing tons of errors in regards to Spotlight this and Spotlight that. Yup, that is with Spotlight disabled on the volumes. You can use the mdutil command to help with this. If you have two volumes, then the script to do so would be similar to the following (assuming they are called A and B):

mdutil -i off /Volumes/A

mdutil -i off /Volumes/B

Later if you decide to implement Spotlight, you can use the following to re-enable indexing:

mdutil -i on /Volumes/A

mdutil -i on /Volumes/B