Best practice to move the MDF and LDF from one drive to another (Sharepoint 2016)

Bharat 21 Reputation points
2020-08-02T03:12:55.847+00:00

Please let me know the best practice to move the MDF and LDF from one drive to another (SharePoint 2016)

Usually we perform the following steps:

1)Pause the crawl
2)Dismount the database from the web app
3) Detach the database from the server
4) move the LDF and MDF
5) Attach the database
6)Mount the database
7)resume the crawl.

While performing /following the above steps, sporadically, some new document are not getting crawled , even after performing multiple incremental crawl.

Am I missing any of the steps here..

SharePoint Server Management
SharePoint Server Management
SharePoint Server: A family of Microsoft on-premises document management and storage systems.Management: The act or process of organizing, handling, directing or controlling something.
2,829 questions
0 comments No comments
{count} votes

Accepted answer
  1. Trevor Seward 11,691 Reputation points
    2020-08-02T22:42:26.36+00:00

    You should be looking at pausing the crawl, then the easiest thing to do is just shutdown your SharePoint servers. Otherwise, you can stop IIS via iisreset /stop and the SharePoint Timer Service. Those may get you all you need to detach the database. Note that SharePoint holds onto database connections for a few minutes.


1 additional answer

Sort by: Most helpful
  1. Dave Patrick 426.2K Reputation points MVP
    2020-08-02T12:11:15.797+00:00

    You can follow along here.
    https://learn.microsoft.com/en-us/sql/relational-databases/databases/move-user-databases?view=sql-server-ver15

    --please don't forget to Accept as answer if the reply is helpful--