Share via

How to Move WSUS Content and Database Files to a Different Volume

[Today's post comes to us courtesy of Rod White]

When trying to free up space, customers frequently have questions about moving WSUS Content and Databases to different partitions. Our objective is to explain three things:

  • How to move the WSUS Content
  • How to move the WSUS Database files
  • How to cleanup the WSUS Database

Start by checking the size of the Volumes by looking at the Server Storage. Open SBS Console and select the Backup and Server Storage Tab. Next, select Server Storage to determine the space available on each partition. When highlighting the C: drive you'll see the size of the different components that you may wish to move with the Storage Wizards. Today we will focus on moving the WSUS Components. Under the Storage Task the Move Windows Update Repository Data Wizard only moves the downloaded content. This will not move the WSUS Metadata or SUS database (SUSDB.mdf and SUSDB.ldf).


How to Move the WSUS Content

  1. Open the SBS console and select Backup and Server Storage.
  2. Select the Server Storage tab.
  3. Click the Move Windows Update Repository Data Wizard.
  4. When prompted to take a backup, we recommend that you select Yes.
  5. Select the new drive location and click Move.

During the move the wizard will create a WSUS directory on the new location and will begin copying the contents into the <Drive>:\WSUS\WsusContent directory.

How to Move the WSUS Database

  1. Launch SQL Server Management Studio Express console as an administrator. It is located under Start > Programs > Microsoft SQL Server 2005 > SQL Server Management Studio Express.
  2. Fill in the following information and then click Connect
    • Server type: Database Engine
    • Servername: \\.\pipe\MSSQL$MICROSOFT##SSEE\sql\query
    • Authentication: Windows Authentication
  3. Expand Databases and right-click on SUSDB and select Tasks > Detach... from the context menu.
  4. Select the "Drop Connection" checkbox and click OK.
  5. Open explorer and move the C:\WSUS\SUSDB folder to the <new drive>:\WSUS directory.
  6. To reattach the database, right-click on Database and select Attach… from the context menu.
  7. On the Attach Databases page select the Add button.
  8. Browse to the new location of the SUSDB.mdf database and select OK twice to complete the move. clip_image014

How to Cleanup the WSUS Database

Note: We recommend you perform these steps after hours due to significant resource requirements.

  1. Open the native WSUS console. Start > Programs > Administrative Tools > Microsoft Windows server Update Services 3.0 SP1.
  2. Expand your server and select Options > Server Cleanup Wizard.
  3. Leave all boxes checked and click Next to start the cleaning process.
    Note: This process may take many hours to complete (24+ in some cases).
  4. Once the scan has completed it will display the summary information as shown below. The key information is the Disk space freed by deleting unused content files. Click Finish to complete the wizard.clip_image020