Blog Note:
This is a companion article to my post titled: Remove Remote BLOB Storage (RBS) from a SharePoint 2010 Environment
NOTE: This solution has never been tested. This has been purely developed based on research.
Overview
This article describes the steps required to configure RBS in a SharePoint 2010 environment.
Rights Requirements
- You must have the following rights to be able to successfully execute this procedure:
- You must be a local administrator on the SQL server for the Farm and on every SharePoint Server.
- You must have SA rights on the SQL server for the Farm.
- You must be a Farm Administrator for the Farm that needs RBS configured.
- You must be a Site Collection Administrator on each Site Collection you are configuring for RBS support.
- You must have the following information to be able to successfully execute this procedure:
- Name(s) of the SQL server and the SharePoint server(s)
- The URL(s) of the Site Collection that you are configuring for RBS support
- The names of the content database(s) of the Site Collection that you are configuring for RBS support
- <CONTENT DATABASE> = The name of the SharePoint content database as it appears in the SQL Server Management Studio
- <FQDN> = The FQDN of the SharePoint Web Application
- Migrate all content off RBS to SQL and disable RBS for the content database.
- Change the default RBS garbage collection windows to 0 on the content database.
- Disable the RBS Maintainer Task
- Run the RBS Maintainer
- Uninstall RBS
- Disable FILESTREAM on the SQL server.
Migrate all Content off RBS to SQL and Disable RBS for the Content Database
- Log on to a SharePoint Web Front End
- Launch a SharePoint 2010 Management Shell
- Run the following code:$cdb=Get-SPContentDatabase <ContentDbName>
$rbs=$cdb.RemoteBlobStorageSettings
$rbs.GetProviderNames()
$rbs.SetActiveProviderName("")
$rbs.Migrate()
$rbs.Disable()
Change the Default RBS Garbage Collection Windows to 0 on the Content Database
- Log on the SharePoint Content SQL Database Server.
- Launch a command prompt
- Run the following commands:exec mssqlrbs.rbs_sp_set_config_value 'garbage_collection_time_window','time 00:00:00′
exec mssqlrbs.rbs_sp_set_config_value 'delete_scan_period','time 00:00:00′
- Launch the Windows Task Scheduler
- Click Start
- In the run field enter "Task Scheduler"
- Right click on the RBS Maintainer task and click Disable
- Open a command prompt
- Run the following command:"C:\Program Files\Microsoft SQL Remote Blob Storage 10.50\Maintainer\Microsoft.Data.SqlRemoteBlobs.Maintainer.exe" -connectionstringname RBSMaintainerConnection -operation GarbageCollection ConsistencyCheck ConsistencyCheckForStores -GarbageCollectionPhases rdo -ConsistencyCheckMode r -TimeLimit 120
- Run c:\masters\rbs.msi
- Walk through the wizard selecting the Remove option.
- Launch the SQL Server Management Studio
- Open a new query window
- Run the following script:use [<CONTENT DATABASE>]
ALTER TABLE [mssqlrbs_filestream_data_1].[rbs_filestream_configuration] DROP column [filestream_value]
ALTER TABLE [mssqlrbs_filestream_data_1].[rbs_filestream_configuration] SET (FILESTREAM_ON = "NULL") - Open a new Query window
- Run the following script:ALTER DATABASE [<CONTENT DATABASE>] Remove file RBSFilestreamFile;
ALTER DATABASE [<CONTENT DATABASE>] REMOVE FILEGROUP RBSFilestreamProvider; - Launch the SQL Server Configuration Manager
- Right Click on the SQL Service and click Properties
- Click the FILESTREAM tab
- Deselect all check boxes
- Click OK
- Restart the SQL Service
- Run the IISRESET command on each of the SharePoint Web Front End Servers
No comments:
Post a Comment