Move SharePoint Search Index Files Location to Another Drive

Again C:\ is running out of disk space in a SharePoint Farm, due to the fact search index files are growing! Huh… So this time I decided to move SharePoint 2007 index files from C:\Program Files\Microsoft Office Servers\12.0\Data\Office Server\Applications to E:\.

Here are the steps to move SharePoint search index to another drive:

Move SharePoint Search Index Files from One Drive to Another

Its a good idea to pause the crawling schedules before we proceed moving SharePoint index location. After the index has been moved to the new location we have to resume the crawl that we have paused.

Run the below stsadm in Index Server:
stsadm -o editssp -title sharedservices1 -indexlocation e:\SharePointIndex

or you can run: stsadm -o osearch -indexlocation “E:\SharePointIndex”
This will reset the index and create a new location.

In each query server, run the below command:
stsadm -o osearch -propagationlocation e:\SharePointIndex

If its a SharePoint Services (WSS), in Index server, you can run:
stsadm -o spsearch -indexlocation E:\SharePointIndex

To view what is being indexed and the current location of the Index:
stsadm -o spsearch -action list

now you can delete the old search index file from its old location.

Here is the Technet article: Change the content index location for an index server 

Salaudeen Rajack

Salaudeen Rajack is a SharePoint Architect with Two decades of SharePoint Experience. He loves sharing his knowledge and experiences with the SharePoint community, through his real-world articles!

Leave a Reply