SharePoint server 2016 change ALL index files location

przlwo 21 Reputation points
2020-08-07T15:46:23.137+00:00

Hi,

Does anyone know why New-SPEnterpriseSearchIndexComponent toghether with -RootDirectory does not change all index files location? At least most of file are being moved to the provided location but still some of file are processing in 'C:\Program Files\Microsoft Office Servers\16.0\Data\Office Server\Applications'.

After location for index is changed and I'm executing (Get-SPEnterpriseSearchServiceInstance).components I can see this

PS C:\Users\user> (Get-SPEnterpriseSearchServiceInstance).components

Id : 3009aa8a-4f1a-49e2-98aa-289d69a0f6fd
ServerName : XXXXXXXXX
IndexLocation : E:\SPIndex
State : Ready
DesiredState : Ready
IndexLocation
: C:\Program Files\Microsoft Office Servers\16.0\Data\Office Server\Applications
Initialized : True
Name : 9235f889-3352-40ed-b44d-3118ec467b04
ServerName : XXXXXXXX
ServerId : 82840937-6e43-4b00-a986-ed7c96e0eeb9
Server : SearchServiceInstance

Does anyone know why there are still some files processed in the default location? Maybe (for any reason) some files have to remain in the default location? Is it possible to change all "Index locations" to the custom directory?

Thanks in advance

SharePoint Server
SharePoint Server
A family of Microsoft on-premises document management and storage systems.
2,258 questions
{count} votes

4 answers

Sort by: Most helpful
  1. Trevor Seward 11,691 Reputation points
    2020-08-10T03:08:58.89+00:00

    Unless you install SharePoint Server to an alternate volume, the behavior you're seeing is expected. You can move the Search Index, but not other files that are still processed in that location.

    1 person found this answer helpful.
    0 comments No comments

  2. przlwo 21 Reputation points
    2020-08-10T19:22:54.693+00:00

    Thank you both for reply

    @Jerry Xu-MSFT I already checked and all inactive topologies are removed, therefore this is not the case

    @Trevor Seward Are there any special requirements - in regards to files in this location - for search/index backup-restore scenario (backup-restore other than native SharePoint)? The files have to be restored from exactly the same timestamp as index?

    0 comments No comments

  3. przlwo 21 Reputation points
    2020-08-15T11:19:35.017+00:00

    in addition I can tell you that I've installed SharePoint using config.xml file and this file contained

    <Setting Id="DATADIR" Value="E:\Program Files\" />

    so all binaries should be placed on E drive but as we see they aren't....

    can you advice about a 'custom backup' strategy in this case? The files from 'C:\Program Files\Microsoft Office Servers\16.0\Data\Office Server\Applications' have to be restored from exactly the same timestamp as index files?

    0 comments No comments

  4. przlwo 21 Reputation points
    2020-08-30T08:57:33.483+00:00

    Can anyone advise?

    0 comments No comments