Indexing A Networked Drive

Discussion in 'Mac OS X Server, Xserve, and Networking' started by ethan-1878, Dec 8, 2016.

  1. ethan-1878 macrumors member

    Jun 8, 2014
    Hi All,

    Not sure if this is the correct place for this post but I apologise if it's not. Nonetheless, I'm sure somebody here will have a solution for me.

    I've just set up a Synology NAS and I am trying to force spotlight to index my NAS. I have tried using the following command:

    sudo mdutil /Volume/Volume\ Name -i on
    but terminal keeps giving me this response:

    /Volumes/Volume Name:
        Indexing disabled.
    I have tried running
    sudo mdutil /Volume/Volume\ Name -s
    to check whether it is enabled or not in case it was a strange Finder glitch but that gives the same response.

    If I try to disable indexing using
    sudo mdutil /Volume/Volume\ Name -i off
    I get this response:

    2016-12-08 15:04:02.923 mdutil[3240:1772539] mdutil disabling Spotlight: /Volumes/Volume Name -> kMDConfigSearchLevelFSSearchOnly
        Indexing disabled.
    Does anyone know what's going on here and why I can't enable indexing?

    Thanks in advance,

  2. belvdr macrumors 603

    Aug 15, 2005
    Not sure if it matters, but the usage of the command is:

    Usage: mdutil -pEsa -i (on|off) -d volume ...
    So, does this work?

    mdutil -i on /Volumes/<VolName>
    It's quite possible that it won't work on network volumes, for good reason.
  3. ethan-1878 thread starter macrumors member

    Jun 8, 2014

    Nope, doesn't work. I have used this before and it's worked fine. Exactly the same set up too.
  4. Mufasa804 macrumors regular

    Mar 6, 2009
    I'm curious to see if anyone provides a fix. From my understanding, OS X will not index of networked volumes.
  5. ethan-1878 thread starter macrumors member

    Jun 8, 2014
    I don't have access to the NAS I have set up to index as it is in a secondary office which I'm no longer at full time but it did work. I could spotlight search any file on the mounted share. This was enabled under Yosemite or El Capitan though.

    Curious as to why it won't let me enable spotlight indexing under Sierra.

    Hope someone out there knows the answer to this!
  6. belvdr macrumors 603

    Aug 15, 2005
    It doesn't work on my El Capitan machine connected via SMB. I wonder if it's a protocol thing.
  7. ethan-1878, Dec 8, 2016
    Last edited: Dec 11, 2016

    ethan-1878 thread starter macrumors member

    Jun 8, 2014
    See the below article. OS X does support indexing network shares but only those mounted via AFP (I already knew this also was using AFP anyway).
    --- Post Merged, Dec 8, 2016 ---
    Yeah, I've just posted a stack exchange thread above explaining this. I knew about that though so I use AFP anyway.

    The NAS in question are both synology DS216j's and I connect to both using AFP.
  8. hwojtek macrumors 65816


    Jan 26, 2008
    A small rural village in western Poland
    I bet it takes ages... My 8TB array hooked up to a Mini Server with FW800 (yeah, I know, should've bought an array with TB) indexed for like 3 days...
  9. ethan-1878 thread starter macrumors member

    Jun 8, 2014
    Terminal tells me that indexing is disabled even when I try to force spotlight to index the networked drive. I've also tried adding the drive to spotlight exclusions then removing it again but there's doesn't help. Spotlight doesn't even begin to index the drive.
  10. starion macrumors newbie

    May 11, 2008
    I know this is quite a bit down the road since the original post, but here's what I have discovered recently (probably old news to many of you):

    Spotlight does seem to index networked SMB volumes in High Sierra 10.13.4.

    The problem I have run into though, is that if the network volume disappears, then shows up again, Spotlight gets disabled and has to be re-enabled again (via terminal) for that volume.

    Does anybody know of a way to make this stick between mounts/unmounts of the network volume?
  11. jdmagoo1 macrumors regular

    May 5, 2010
    Thats a very good question and one I would like to know.

    By the way, how did you get it to index and SMB structure

Share This Page