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.
SharePoint server 2016 change ALL index files location
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
4 answers
Sort by: Most helpful
-
-
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?
-
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?
-